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?
Use Test.getStandardPricebookId() to get the standard PriceBook ID.
Use @IsTest(SeeAllData=true) and delete the existing standard PriceBook.
Use Test.loadData() and a Static Resource to load a standard Pricebook.
Use @TestVisible to allow the test method to see the standard PriceBook.
Correct answer: A
Question 2
Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)
ENUM
sObject
External ID
String
Correct answer: AD
Explanation:
Question 3
Where can a developer identify the time taken by each process in a transaction using Developer Console log inspector?