Free DEX-450 Exam Braindumps (page: 14)

Page 13 of 115

How should a developer avoid hitting the governor limits in test methods?

  1. Use @TestVisible on methods that create records.
  2. Use Test.loadData() to load data from a static resource.
  3. Use @IsTest (SeeAllData=true) to use existing data.
  4. Use Test.startTest() to reset governor limits.

Answer(s): D



Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)

  1. Number maps to Decimal.
  2. Number maps to Integer.
  3. TextArea maps to List of type String.
  4. Date/Time maps to Dateline.
  5. Checkbox maps to Boolean.

Answer(s): A,D,E



A developer is asked to set a picklist field to `Monitor' on any new Leads owned by a subnet of Users.
How should the developer implement this request?

  1. Create an after insert Lead trigger.
  2. Create a before insert Lead trigger.
  3. Create a Lead Workflow Rule Field Update.
  4. Create a Lead formula field.

Answer(s): C



Why would a developer consider using a custom controller over a controller extension?

  1. To increase the SOQL query governor limits.
  2. To implement all of the logic for a page and bypass default Salesforce functionality
  3. To leverage built-in functionality of a standard controller
  4. To enforce user sharing settings and permissions

Answer(s): B






Post your Comments and Discuss Salesforce DEX-450 exam with other Community members:

DEX-450 Discussions & Posts