PrepAway - Latest Free Exam Questions & Answers

Category: Certified Platform Developer I

Exam Certified Platform Developer I

Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)

Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.) A. The @testSetup annotation cannot be used when the @isTest(SeeAllData=True) annotation is used. B. Test data is inserted once for all test methods in a class. C. Records created in the @testSetup method cannot be updates in individual […]

Which approach should a developer take to automatically add a “Maintenance Plan” to each Opportunity that

Which approach should a developer take to automatically add a “Maintenance Plan” to each Opportunity that includes an “Annual Subscription” when an opportunity is closed? A. Build a OpportunityLineItem trigger that adds a PriceBookEntry record. B. Build an OpportunityLineItem trigger to add an OpportunityLineItem record. C. Build an Opportunity trigger that adds a PriceBookEntry record. […]

A developer encounters APEX heap limit errors in a trigger.

A developer encounters APEX heap limit errors in a trigger. Which two methods should the developer use to avoid this error? (Choose two.) A. Use the transient keyword when declaring variables. B. Query and store fields from the related object in a collection when updating related objects. C. Remove or set collections to null after […]

A developer working on a time management application wants to make total hours for each timecard available to

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? A. A Visualforce page that calculates the total number of hours for a timecard and […]

Which two environments meet the requirements for testing? (Choose two.)

A developer needs to test an Invoicing system integration. After reviewing the number of transactions required for the test, the developer estimates that the test data will total about 2 GB of data storage. Production data is not required for the integration testing. Which two environments meet the requirements for testing? (Choose two.) A. Developer […]

Where can a developer identify the time taken by each process in a transaction using Developer Console log ins

Where can a developer identify the time taken by each process in a transaction using Developer Console log inspector? A. Performance Tree tab under Stack Tree panel B. Execution Tree tab under Stack Tree panel C. Timeline tab under Execution Overview panel D. Save Order tab under Execution Overview panel

While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a stand

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? A. Use Test.getStandardPricebookId() to get the standard PriceBook ID. B. Use @IsTest(SeeAllData=true) and delete the existing standard PriceBook. C. Use Test.loadData() and […]


Page 2 of 3123