DEX-450 Exam Question 106

When the code executes, a DML exception is thrown.
How should a developer modify the code to ensure exceptions are handled gracefully?
  • DEX-450 Exam Question 107

    An org has a single account named 'NoContacts' that has no related contacts. Given the query:
    List<Account> accounts = [Select ID, (Select ID, Name from Contacts) from Account where Name='NoContacts']; What is the result of running this Apex?
  • DEX-450 Exam Question 108

    A developer has to Identify a method in an Apex class that performs resource intensive actions in memory by iterating over the result set of a SOQL statement on the account. The method also performs a DML statement to save the changes to the database. Which two techniques should the developer implement as a best practice to esure transaction control and avoid exceeding governor limits? Choose 2 answers
  • DEX-450 Exam Question 109

    A developer created a new after insert trigger on the Lead object that creates Task records for each Lead.
    After deploying to production, an existing outside integration that inserts Lead records in batches to Salesforce is occasionally reporting total batch failures being caused by the Task insert statement. This causes the integration process in the outside system to stop, requiring a manual restart.
    Which change should the developer make to allow the integration to continue when some records in a batch cause failure due to the Task insert statement, so that manual restarts are not needed?
  • DEX-450 Exam Question 110

    Consider the following code snippet for a Visualforce page that is launched using a Custom Button on the Account detail page layout.

    When the Save button is pressed the developer must perform a complex validation that involves multiple objects and, upon success, redirect the user to another Visualforce page.
    What can the developer use to meet this business requirement?