Free CRT-450 Exam Braindumps (page: 13)

Page 13 of 96

A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page.
Which three attributes need to be defined with values in the <apex:page> tag to accomplish this? (Choose three.)

  1. action
  2. renderAs
  3. standardController
  4. readOnly
  5. extensions

Answer(s): A,B,C



While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org.
How should the Developer overcome this problem?

  1. Use Test.getStandardPricebookId() to get the standard PriceBook ID.
  2. Use @IsTest(SeeAllData=true) and delete the existing standard PriceBook.
  3. Use Test.loadData() and a Static Resource to load a standard Pricebook.
  4. Use @TestVisible to allow the test method to see the standard PriceBook.

Answer(s): A



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



Which two platform features align to the Controller portion of MVC architecture? (Choose two.)

  1. Process Builder actions
  2. Workflow rules
  3. Standard objects
  4. Date fields

Answer(s): A,B






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

CRT-450 Exam Discussions & Posts