PDII Exam Details

  • Exam Code
    :PDII
  • Exam Name
    :Salesforce Certified Platform Developer II (Plat-Dev-301)
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :445 Q&As
  • Last Updated
    :Jun 19, 2026

Salesforce PDII Online Questions & Answers

  • Question 131:

    What should a developer use to query all Account fields for the Acme account in their sandbox?

    A. SELECT * FROM Account WHERE Name = 'Acme' LIMIT 1
    B. SELECT ALL FROM Account WHERE Name = 'Acme' LIMIT 1
    C. SELECT FIELDS FROM Account WHERE Name = 'Acme' LIMIT 1
    D. SELECT FIELDS(ALL) FROM Account WHERE Name = 'Acme' LIMIT 1

  • Question 132:

    When developing a Visualforce page that will be used by a global organization that does business in many languages and many currencies, which feature should be used? (Choose three.)

    A. Custom Labels
    B. convertCurrency()
    C. Global Labels
    D. Translation Workberic
    E. getLocalCurrency()

  • Question 133:

    A developer has working business logic code, but sees the following error in the test class:

    "You have uncommitted work pending. Please commit or rollback before calling out."

    What is a possible solution?

    A. Rewrite the business logic and test classes with @TestVisible set on the callout.
    B. Set seeAllData=true at the top of the test class, since the code does not fail in practice.
    C. Call support for help with the target endpoint, as it is likely an external code error.
    D. Use Test.isRunningTest() before making the callout to bypass it in test execution.

  • Question 134:

    <lightning:layout multipleRows="true"> <lightning:layoutItem size="12">{!v.account.Name} </lightning:layoutItem>

    <lightning:layoutItem size="12">{!v.account.AccountNumber} </lightning:layoutItem>

    <lightning:layoutItem size="12">{!v.account.Industry} </lightning:layoutItem> </lightning:layout>

    Refer to the component code above. The information displays as expected (in three rows) on a mobile device. However, the information is not displaying as desired (in a single row) on a desktop or tablet.

    Which option has the correct component changes to display correctly on desktops and tablets?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 135:

    A developer is working with existing functionality that tracks how many times a stage has changed for an Opportunity. When the opportunity's stage is changed, a workflow rule is fired to increase the value of a filed by one. The developer wrote an after trigger to create a child record when the field changes from 4 to 5.

    A user changes the stage of an Opportunities and manually sets the count field to 4. The count field updates to 5, but the child record is not created.

    What is the reason this is happening?

    A. After triggers fire before workflow rules.
    B. After triggers are not fired after field updates.
    C. Trigger .new does not change after a field update.
    D. Trigger .old does not contain the updated value of the count field.

  • Question 136:

    Which annotation exposes an Apex class as a RESTful neb service?

    A. @RemoteAction
    B. @RestResource
    C. @AuraEnaWed
    D. @HttpInvocabte

  • Question 137:

    A custom field Exec_Count__c of type Number is created on the Account object. An Account record with a value of 1 for Exec_Count__c is saved. A workflow field update is defined on the Exec_Count__c field to increment its value every time an Account record is created or updated. The following trigger is defined on the Account:

    trigger ExecOrderTrigger on Account (before insert, before update, after insert, after update) {

    for (Account accountInstance : Trigger.new) {

    if (Trigger.isBefore) { accountInstance.Exec_Count__c += 1;

    } System.debug(accountInstance.Exec_Count__c);

    }

    }

    A. 1, 2, 3, 3
    B. 1, 2, 3, 4
    C. 2, 2, 4, 4
    D. 2, 2, 3, 3

  • Question 138:

    What is a benefit of using a WSDL with Apex?

    A. Allows for web services to be tested and achieve code coverage
    B. Allows for classes to be imported into Salesforce
    C. Reduces the number of callouts to third-party web services
    D. Enables the user to not pass a Session ID where it is not necessary

  • Question 139:

    A developer wrote an Apex class to make several callouts to an external system. If the URLs used in these callouts will change often, which feature should the developer use to minimize changes needed to the Apex class?

    A. Session Id
    B. Connected Apps
    C. Remote Site Settings
    D. Named Credentials

  • Question 140:

    An org has a requirement that the Shipping Address on the Account must be validated by a third- party web service, before the Account is allowed to be inserted.

    What is the optimal way to meet this requirement?

    A. Make a callout to the web service from a custom Visualforce controller.
    B. Make a callout to the web service from a standard Visualforce controller.
    C. Make a callout to the web service from an after insert trigger.
    D. Make a callout to the web service from a before insert trigger.

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Salesforce exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PDII exam preparations and Salesforce certification application, do not hesitate to visit our Vcedump.com to find your solutions here.