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

    A developer is tasked with creating a Lightning web component that allows users to create a Case for a selected product, directly from a custom Lightning page. The input fields in the component are displayed in a non-linear fashion on top of an image of the product to help the user better understand the meaning of the fields.

    Which two components should a developer use to implement the creation of the Case from the Lightning web component? (Choose Two)

    A. lightning-record-edit-form
    B. lightning-input
    C. lightning-record-form
    D. lightning-input-field

  • Question 202:

    When testing batch classes, what must a developer do? (Choose two.)

    A. Use seeAllData=true
    B. Encapsulate code in Test.startTest() and Test.stopTest()
    C. Call the class execute method
    D. Limit the amount of records you test to fewer than 200

  • Question 203:

    A developer is asked to develop a new AppExchange application. A feature of the program creates Survey records when a Case reaches a certain stage and is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Surveys at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to most customers.

    What should the developer use to store and package the custom configuration settings for the app?

    A. Custom Settings
    B. Custom Metadata
    C. Custom Objects
    D. Custom Labels

  • Question 204:

    A developer is creating a Lightning web component that contains a child component. The property stage is being passed from the parent to the child. The public property is changing, but the setOppList function is not being invoked.

    What should the developer change to allow this?

    A. Move the logic from connectedCalIback() to constructor().
    B. Create a custom event from the parent component to set the property.
    C. Move the logic from connectedCallback() nto renderedCallback().
    D. Move the logic to a getter/setter pair.

  • Question 205:

    A developer is developing a reuseable Aura Component that will reside on an sObject Lightning Page with the following HTML snippet:

    <aura:component implements="force:hasRecordId,flexipage:availableForAIIPageTypesM> <div>Hello!</div> </aura:component>

    How can the component's Controller get the context of the Lightning Page that the sObject is on without requiring additional test coverage?

    A. Set the sObject type as a component attribute
    B. Add force:hasSobjectName to the implements
    C. Use the getSObjectType() method in an Apex class
    D. Create a design attribute and configure via App builder

  • Question 206:

    An org records customer order information In a custom object, Orcer__c, that has fields for the shipping address. A developer is tasked with adding code to calculate shipping charges on an order, based on a fiat percentage rate associated with the region of the shipping address.

    What should the developer use to store the rates by region, so that when the changes are deployed to production no additional steps are needed for the calculation to work?

    A. Custom object
    B. Custom metadata type
    C. Custom list setting
    D. Custom hierarchy setting

  • Question 207:

    A developer is tasked with creating a Lightning web component that is responsive on various devices.

    Which two components should help accomplish this goal? (Choose Two)

    A. lightning-input-location
    B. lightning-navigation
    C. lightning-layout
    D. lightning-layout-item

  • Question 208:

    Universal Charities (UC) uses Salesforce to collect electronic donations in the form of credit card deductions from individuals and corporations. When a customer service agent enters the credit card information, it must be sent to a 3rd-party payment processor for the donation to be processed. UC uses one payment processor for individuals and a different one for corporations.

    What should a developer use to store the payment processor settings for the different payment processors, so that their system administrator can modify the settings once they are deployed, if needed?

    A. Hierarchy custom setting
    B. Custom label
    C. Custom metadata
    D. List custom setting

  • Question 209:

    A developer is asked to build a solution that will automatically send an email to the Customer when an Opportunity stage changes. The solution must scale to allow for 10,000 emails per day. The criteria to send the email should be evaluated after all Workflow Rules have fired.

    What is the optimal way to accomplish this?

    A. Use a Workflow Email Alert.
    B. Usea MassEmailMessage() with an Apex Trigger.
    C. Use a SingleEmailMessage() with an Apex Trigger.
    D. Use an Email Alert with Process Builder.

  • Question 210:

    Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a server status page that is always on display in its call center. It should update in real time with any changes made to any servers. To accommodate this on the server side, a developer created a Server_Update__e platform event.

    The developer is working on a Lightning web component to display the information.

    What should be added to the Lightning web component to allow the developer to interact with the Server Update platform event?

    A. import { subscribe, unsubscribe, onError } from 'lightning/messageChannel'
    B. import { subscribe, unsubscribe, onError } from 'lightning/empApi';
    C. import { subscribe, unsubscribe, onError } from 'lightning/pubsub'
    D. import { subscribe, unsubscribe, onError } from 'lightning/ServerUpdate'

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.