Salesforce Certified Platform Developer Exam
Certified Platform Developer (Page 12 )

Updated On: 30-Jan-2026

A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.
What should the developer do to deploy to production?

  1. Create a test class that provides coverage of the Visualforce page.
  2. Create a test page that provides coverage of the Visualforce page.
  3. Create a test page that provides coverage of the custom controller.
  4. Create a test class that provides coverage of the custom controller.

Answer(s): D



When viewing a Quote, the sales representative wants to easily see how many discounted items are included in the Quote Line Items.
What should a developer do to meet this requirement?

  1. Create a trigger on the Quote object that queries the Quantity field on discounted Quote Line Items.
  2. Create a Workflow Rule on the Quote Line Item object that updates a field on the parent Quote when the item is discounted.
  3. Create a roll-up summary field on the Quote object that performs a SUM on the quote Line Item Quantity field, filtered for only discounted Quote Line Items.
  4. Create a formula field on the Quote object that performs a SUM on the Quote Line Item Quantity field, filtered for only discounted Quote Line Items.

Answer(s): 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



Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)

  1. <apex:stylesheet> tag
  2. Inline CSS
  3. <apex:style>tag
  4. <apex:stylesheets>tag
  5. A static resource

Answer(s): A,B,E



How should a developer make sure that a child record on a custom object, with a lookup to the Account object, has the same sharing access as its associated account?

  1. Create a Sharing Rule comparing the custom object owner to the account owner.
  2. Create a validation rule on the custom object comparing the record owners on both records.
  3. Include the sharing related list on the custom object page layout.
  4. Ensure that the relationship between the objects is Master-Detail.

Answer(s): D



Viewing page 12 of 77
Viewing questions 56 - 60 out of 60 questions



Post your Comments and Discuss Salesforce Certified Platform Developer exam prep with other Community members:

Join the Certified Platform Developer Discussion