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 211:

    How long is field history retained?

    A. 18 Months
    B. 12 Months
    C. 24 Months
    D. 6 Months
    E. 36 Months

  • Question 212:

    A company has a custom object, Sales Demo Request, that has a lookup to an Opportunity. It is required that a Sales Demo Request record be created when an Opportunity's Probability is greater than 50%.

    What is the optimal way to automate this?

    A. Build a Flow on Opportunity.
    B. Create a Workflow on Opportunity.
    C. Use an Apex Trigger on Opportunity.
    D. Build a Process on Opportunity

  • Question 213:

    A company has a Lightning Page with many Lightning Components, some that cache reference data. It is reported that the page does not always show the most current reference data.

    What can a developer use to analyze and diagnose the problem in the Lightning Page?

    A. Salesforce Lightning Inspector Storage Tab
    B. Salesforce Lightning Inspector Actions Tab
    C. Salesforce Lightning Inspector Event Log Tab
    D. Salesforce Lightning Inspector Transactions Tab

  • Question 214:

    A Visualforce page needs to make a callout to get billing information and tax information from two different REST endpoints. The information needs to be displayed to the user at the same time and the return value of the billing information contains the input for the tax information callout. Each endpoint might take up to two minutes to process.

    How should a developer implement the callouts?

    A. A Continuation for both the billing callout and the tax callout
    B. An HTTP REST call out for both the billing callout and the tax callout
    C. An HTTP REST callout for the billing callout and a Continuation for the tax callout
    D. A Continuation for the billing callout and an HTTP REST callout for the tax callout

  • Question 215:

    A developer wants to use an Aura Component with a Custom Action. What should be considered in order to do this?

    A. A default value must be provided for each component attribute marked as required.
    B. The component must implement the force:lightningQuickActionButton interface.
    C. The component's JavaScript controller must handle a method on initialization.
    D. The class "slds-modal__container" must be added to the top-level element of the component.

  • Question 216:

    A developer has a Batch Apex process, Batch_Account_Sales, that updates the sales amount for 10,000 Accounts on a nightly basis. The Batch Apex works as designed In the sandbox. However, the developer cannot get code coverage on the Batch Apex class.

    The test class is below:

    @IsTest private class Batch_Account_Update_Test {

    @IsTest static void UnitTest() { Account a = new Account( Name = 'test', Type = 'Customer', Sales_Amount__c = 0 );

    insert a;

    Batch_Account_Sales bas = new Batch_Account_Sales();

    Id jobId = Database.executeBatch(bas);

    }

    }

    What is causing the code coverage problem?

    A. The batch process will not recognize new accounts created in the same session.
    B. The account creation already sets the Sales Amount to 0.
    C. The executeBatch call must be inside Test.startTest() and Test.stopTest().
    D. The batch needs more than one Account record created.

  • Question 217:

    UC Loans is a small company with a part time Salesforce administrator. UC Loans wants to create a Loan__c record whenever an Opportunity is won. What is the optimal solution for UC Loans to accomplish this?

    A. Quick Action
    B. Apex Trigger
    C. Process Builder
    D. Workflow Rule

  • Question 218:

    A developer is asked to replace the standard Case creation screen with a custom screen that takes users through a wizard before creating the Case. The org only has users running Lightning Experience.

    What should the developer override the Case New Action with to satisfy the requirements?

    A. Lightning Record Page
    B. Lightning Component
    C. Lightning Flow
    D. Lightning Page

  • Question 219:

    In an organization that has multi-currency enabled, a developer is tasked with building a Lighting Component that displays the top ten Opportunities most recently access by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user's locale.

    What is the most effective approach to ensure values displayed respect the users locale settings?

    A. Use the FOR VIEW clause in the SOQL Query.
    B. Use REGEX expressions to format the values retrieved via SOQL.
    C. Use the FORMAT() function in the SOQL query.
    D. Use a wrapper class to format the values retrieved via SOQL.

  • Question 220:

    A Visualforce Page throws an Attempt to dereference a null object error for a Contact. What change In the controller will fix the error?

    A. Declare a static final Contact at the top of the controller.
    B. Change the setters signature to return a Contact.
    C. Use a condition in the getter to return a new Contact if it is null.
    D. Change the getter's signature to be static Contact.

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.