DEX-450 Exam Question 121

What is a benefit of using an after insert trigger over using a before insert trigger?
  • DEX-450 Exam Question 122

    A developer needs to create records for the object Property__c. The developer creates the following code block:List propertiesToCreate = helperClass.createProperties();try { // line 3 } catch (Exception exp ) { //exception handling }Which line of code would the developer insert at line 3 to ensure that at least some records are created, even if a few records have errors and fail to be created?
  • DEX-450 Exam Question 123

    A developer wants to display all of the picklist entries for the Opportunity StageName field and all of the available record types for the Opportunity object on a Visualforce page. Which two actions should the developer perform to get the available picklist values and record types in the controller? Choose 2 answers.
  • DEX-450 Exam Question 124

    A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type.
    Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)
  • DEX-450 Exam Question 125

    A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console: Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 250; x++)
    {Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;}catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount'); How many accounts are in the org after this code is run?