New Year Special 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: Board70

Free CRT-450 Salesforce Updates

Page: 13 / 12
Question 52

A developer wants to get access to the standard price book in the org while writing a test class that covers an OpportunitylLineltem trigger.

Which method allows access to the price book?

Options:

A.

Use @IaTest (SeeAllData=true) and delete the existing standard price book,

B.

Use Test.loadData() and a static resource to load a standard price book,

C.

Use @TestVisible to allow the test method to see the standard price book.

D.

Use Teat.getStandardPricebookId() to get the standard price book 1D.

Page: 13 / 12
Exam Code: CRT-450
Exam Name: Salesforce Certified Platform Developer I (SU24)
Last Update: Dec 22, 2024
Questions: 174
CRT-450 pdf

CRT-450 PDF

$25.5  $84.99
CRT-450 Engine

CRT-450 Testing Engine

$28.5  $94.99
CRT-450 PDF + Engine

CRT-450 PDF + Testing Engine

$40.5  $134.99