Salesforce PDII Exam (page: 6)
Salesforce Certified Platform Developer II
Updated on: 25-Dec-2025

Viewing Page 6 of 86

A custom Visualforce controller calls the ApexPages.addMessage() method, but no messages are rendering on the page.
Which component should be added to the Visualforce page to display the message?

  1. <apex:message for="info"/>
  2. <apex:facet name="messages" />
  3. <apex:pageMessage severity="info" />
  4. <apex:pageMessages />

Answer(s): D



A developer is writing code that requires making callouts to an external web service.
Which scenario necessitates that the callout be made in an @future method?

  1. The callouts will be made in an Apex Trigger.
  2. The callouts will be made in an Apex Test class.
  3. The callout could take longer than 60 seconds to complete.
  4. Over 10 callouts will be made in a single transaction.

Answer(s): A



A developer wants to call an Apex Server-side Controller from a Lightning Aura Component.
What are two limitations to the data being returned by the Controller? (Choose two.)

  1. A custom Apex Class can be returned, but only the values of public instance properties and methods annotated with @AuraEnabled are serialized and returned.
  2. Lists of Custom Apex Classes cannot be returned by Apex Controllers called by Lightning Aura Components.
  3. Basic data types are supported, but defaults, such as maximum size for a number, are defined by the objects that they map to.
  4. Only Basic data types and sObjects are supported as return types for Apex Controllers called by Lightning Aura Components.

Answer(s): A,C



Which interface needs to be implemented by a Lightning Component so that it may be displayed in modal dialog by clicking a button on a Lightning Record page?

  1. force:lightningQuickAction
  2. lightning:quickAction
  3. lightning:editAction
  4. force:lightningEditAction

Answer(s): A



Sometimes events on Salesforce need to be handled by an external system due to the scale or type of process being executed. Consider the use case of a user in Salesforce needing to get pricing for an order they are building in Salesforce while on the phone with a customer.

The pricing logic already exists in a third-party system. Instead of recreating this logic in Salesforce, it will be leveraged by making a request of the third-party system. The response, in this case the pricing, will be returned and stored back in Salesforce.

What is the optimal solution?

  1. A Visualforce page that can make a real-time Apex callout to display and save the pricing back in Salesforce
  2. An Apex trigger that upon saving the Order will make a real-time Apex callout, saving the pricing back in Salesforce
  3. A Process Builder process and Outbound Message to fetch the pricing upon save and store the pricing in Salesforce
  4. An ETL tool to process batches of newly saved Orders every few minutes to store the pricing back in Salesforce

Answer(s): A



Viewing Page 6 of 86



Share your comments for Salesforce PDII exam with other users:

Farooqi 11/21/2023 1:37:00 AM

good for practice.
INDIA