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

    Universal Containers (UC) calculates commissions on their Opportunities in different ways based on complex rules that vary depending on the line of business of the Opportunity.

    Whenever a new line of business Is added to Salesforce at UC, it is likely that a different calculation will need to be added too. When an Opportunity's stage is changed to Closed/Won, its commission should be calculated in real time.

    What should a developer use so that different implementations of the commission calculation can be invoked on the stage change?

    A. A final dass with multiple methods
    B. Apex Describe Schema methods
    C. An Apex class with @ custom enum
    D. An Interface and implementing classes

  • Question 92:

    A corporation has many different Salesforce orgs, with some different objects and some common objects, and wants to build a single Java application that can create, retrieve, and update common object records in all of the different orgs.

    Which method of integration should the application use?

    A. Apex REST Web Service
    B. SOAP API with the partner WSDL
    C. SOAP API with the Enterprise WSDL
    D. Metadata API

  • Question 93:

    A company has a custom object Sales_Help_Request_c that has a Lookup relationship to Opportunity. The Sales_Help_Request_c has a number field, Number_of_Hours_c, that represents the amount of time spent on the Sales_Help_Request_c.

    A developer is tasked with creating a field, Total_Hours_c, on Opportunity that should be the sum of all of the Number_of_Hours_c values for the Sales_Help_Request_c records related to that Opportunity.

    What should the developer use to implement this?

    A. A workflow rule on the Sales_Help_Request_c object
    B. A roll-up summary field on the Opportunity object
    C. A trigger on the Opportunity object
    D. A trigger on Sales_Help_Request_c

  • Question 94:

    A Lightning web component exists in the system and displays information about the record in context as a modal. Salesforce administrators need to use this component within the Lightning App Builder.

    Which two settings should the developer configure in the component's XML configuration file? (Choose Two)

    A. Set the isExposed attribute to true.
    B. Set the isVisible attribute to true.
    C. Specify the target as lightning__RecordPage.
    D. Specify the target as lightning__AppPage.

  • Question 95:

    A large company uses Salesforce across several departments. Each department has its own Salesforce Administrator. It was agreed that each Administrator would have their own sandbox in which to test changes.

    Recently, users notice that fields that were recently added for one department suddenly disappear without warning. Also, Workflows that once sent emails and created tasks no longer do so.

    Which two statements are true regarding these issues and resolution? (Choose two.)

    A. A sandbox should be created to use as a unified testing environment instead of deploying Change Sets directly to production.
    B. Page Layouts should never be deployed via Change Sets, as this causes Workflows and Field-level Security to be reset and fields to disappear.
    C. The administrators are deploying their own Change Sets, thus deleting each other's fields from the objects in production.
    D. The administrators are deploying their own Change Sets over each other, thus replacing entire Page Layouts and Workflows in Production

  • Question 96:

    Refer to the code snippet below:

    public static void updateCreditMemo(String customerId, Decimal newAmount){

    List<Credit_Memo__c> toUpdate = new List<Credit_Memo__c>();

    for(Credit_Memo__c creditMemo : [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId LIMIT 50]) {

    creditMemo.Amount__c = newAmount;

    toUpdate.add(creditMemo);

    }

    Database.update(toUpdate,false);

    }

    A custom object called Credit_Memo_c exist in a Salesforce environment. As part of a new feature development that retrieves and manipulates this type of record, the developer needs to ensure race conditions are prevented when a set of records are modified within an Apex transaction.

    In the preceding Apex code, how can the developer alter the query statement to use SOQL features to prevent race condition within a transaction?

    A. [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId FOR REFERENCE LIMIT 50]
    B. [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId LIMIT 50 FOR REFERENCE]
    C. [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId LIMIT 50 FOR UPDATE]
    D. [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId FOR UPDATE LIMIT=50]

  • Question 97:

    The Metadata API___________.

    A. Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches
    B. Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects
    C. Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more
    D. Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment

  • Question 98:

    Universal Containers uses Salesforce to manage its product offerings to customers. A developer is building a custom mobile app that must allow app users to view product information, in real time, that is stored in Salesforce.

    What should the developer use to get the product information from Salesforce?

    A. SOAP API
    B. User Interface API
    C. Streaming API
    D. REST APT

  • Question 99:

    A developer Is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response__c do not belong to a list of blacklisted domains. The list of blacklisted domains will be stored In a custom object for ease of maintenance by users. Note that the Survey_Response__c object is populated via a custom visualforce page.

    What is the optimal way to implement this?

    A. Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom visualforce page controller.
    B. Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact.
    C. Implement the logic in a helper class that is called by an Apex trigger on Contact and from the Custom Visualforce page controller.
    D. Implement the logic in a Validation Rule on the Contact and a validation Rule on the Survey_Response__c object.

  • Question 100:

    A comply his reference data stored m multiple custom metadata records that represent del auh information and delete behavior for certain geographic regions.

    When a contact is inserted, the default information should be set on the contact from the custom metadata records based on the contact's address information. Additionally, if a user attempts to delete a contact that belongs to a flagged region, the user must get an error message.

    Depending on company personnel resources, what are two ways to automate this? (Choose Two)

    A. Apex invocable method
    B. Remote action
    C. Flow Builder
    D. Apex 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.