Free CRT-450 Exam Braindumps

Pass your Salesforce Certified Platform Developer I (SU18) exam with these free Questions and Answers

Page 9 of 34
QUESTION 36

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. A. Use Test.getStandardPricebookId() to get the standard PriceBook ID.
  2. B. Use @IsTest(SeeAllData=true) and delete the existing standard PriceBook.
  3. C. Use Test.loadData() and a Static Resource to load a standard Pricebook.
  4. D. Use @TestVisible to allow the test method to see the standard PriceBoo

Correct Answer: A

QUESTION 37

A method is passed a list of generic sObjects as a parameter.
What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?

  1. A. Use the first three characters of the sObject ID to determine the sObject type.
  2. B. Use the getSObjectType method on each generic sObject to retrieve the sObject token.
  3. C. Use the getSObjectName method on the sObject class to get the sObject name.
  4. D. Use a try-catch construct to cast the sObject into one of the three sObject type

Correct Answer: B

QUESTION 38

What is a benefit of the lightning component framework?

  1. A. Better integration with Force.com sites
  2. B. Better performance for custom Salesforce1 Mobile Apps
  3. C. More Centralized control via server-side logic
  4. D. More pre-built components to replicate the salesforce look and feel

Correct Answer: D

QUESTION 39

A developer working on a time management application wants to make total hours for each timecard available to application users. A timecard entry has a Master-Detail relationship to a timecard.
Which approach should the developer use to accomplish this declaratively?

  1. A. A Visualforce page that calculates the total number of hours for a timecard and displays it on the page
  2. B. A Roll-Up Summary field on the Timecard Object that calculates the total hours from timecard entries for that timecard
  3. C. A Process Builder process that updates a field on the timecard when a timecard entry is created
  4. D. An Apex trigger that uses an Aggregate Query to calculate the hours for a given timecard and stores it in a custom field

Correct Answer: B

QUESTION 40

Where can debug log filter settings be set?Choose 2 answers

  1. A. The Filters link by the monitored user's name within the web UI.
  2. B. The Show More link on the debug log's record.
  3. C. On the monitored user's name.
  4. D. The Log Filters tab on a class or trigger detail pag

Correct Answer: AD

Page 9 of 34

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