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

    Users upload .csv files in an external system to create account and contact records in Salesforce. Up to 200 records can be created at a time. The users need to wait for a response from Salesforce in the external system, but the data does not need to synchronize between the two systems.

    Based on these requirements, which method should a developer use to create the records in Salesforce?

    A. REST API request using composite/vbatch/
    B. REST API request using composite/tree/
    C. Apex web services
    D. Bulk API 2.0

  • Question 152:

    The Contact object has a custom field called Zone__c. Its data type is Text, and the field length is 3.

    What is the outcome after executing the following code snippet in the org?

    List<Contact> contactsToBeInserted = new List<Contact>();

    Contact contactInstance = new Contact( LastName = 'Smith', Department = 'Tech', Zone__c = 'IAD' );

    contactsToBeInserted.add(contactInstance);

    contactInstance = new Contact( LastName = 'Sm1th', Department = 'Tech', Zone__c = 'PITT' );

    contactsToBeInserted.add(contactInstance);

    Database.insert(contactsToBeInserted, true);

    A. Both inserts succeed and the Contact record that has the Zone value of 'PITT' is set to NULL
    B. A partial insert succeeds and the Contact record that has the Zone value 'IAD' is inserted
    C. Both inserts succeed and the Contact record that has the Zone value of 'PITT' is truncated
    D. An unhandled DML exception is thrown and no Contact records are inserted

  • Question 153:

    A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on up to five fields. However, the users want to pick the five fields to use as filter fields when they run the page.

    Which Apex code feature is required to facilitate this solution?

    A. Streaming API
    B. Dynamic SOQL
    C. Report API
    D. Dynamic variable binding

  • Question 154:

    Which two queries are selective SOQL queries and can be used for a large data set of 200,000 Account records? (Choose Two)

    A. SELECT Id FROM Account WHERE Name != ''
    B. SELECT Id FROM Account WHERE Name = NULL
    C. SELECT Id FROM AccountWHERE Name = NULLAND Customer_Number__c = 'ValueA'
    D. SELECT Id FROM Account WHERE Id IN :listOfAccountIds

  • Question 155:

    What is the transaction limit on the number of "sendEmail" method calls?

    A. 20
    B. 10
    C. 50
    D. 100
    E. There is no limit

  • Question 156:

    What is the transaction limit for the number of DML statements allowed?

    A. 20
    B. 2,000
    C. 100 (synchronous), 200 (async)
    D. 200 (synchronous), 100 (async)
    E. 150

  • Question 157:

    As part of a custom development, a developer creates a Lightning component to show how a particular Opportunity progresses over time. The component must display the date stamp when any of the following fields change:

    Amount, Probability, Stage, or Close Date.

    How should the developer access the data that must be displayed?

    A. Execute a SOQL query for Amount, Probability, Stage, and Close Date on the OpportunityHistory object.
    B. Create custom date fields on Opportunity for each field to track the previous date and execute a SOQL query for those date fields.
    C. Subscribe to the Opportunity Change Data Capture event in the Lightning component.
    D. Subscribe to the OpportunityHistory Change Data Capture event in the Lightning component.

  • Question 158:

    MyOpportunities.js

    import { LightningElement, api, wire } from 'lwc';

    import getOpportunities from '@salesforce/apex/OpportunityController.findMyOpportunities';

    export default class MyOpportunities extends LightningElement { @api userId;

    @wire(getOpportunities, { oppOwner: '$userId' }) opportunities;

    }

    OpportunityController.cls public with sharing class OpportunityController {

    @AuraEnabled public static List<Opportunity> findMyOpportunities(Id oppOwner) { return [ SELECT Id, Name, StageName, Amount FROM Opportunity WHERE OwnerId = :oppOwner ];

    }

    }

    A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunities owned by the currently logged-in user. When the component is rendered, the following message is displayed:

    "Error retrieving data".

    Which action must be completed in the Apex method to make it wireable?

    A. Use the Continuation=true attribute in the Apex method.
    B. Edit the code to use the without sharing keyword in the Apex class.
    C. Use the cacheable=true attribute in the Apex method.
    D. Ensure the OWD for the Opportunity object is Public.

  • Question 159:

    A developer creates an application event that has triggered an infinite loop. What may have caused this problem?

    A. The event has multiple handlers registered in the project.
    B. The event handler calls a trigger.
    C. An event is fired ontouchend" and is unhandled.
    D. The event Is fired from a custom renderer.

  • Question 160:

    A developer created three Roll-Up Summary fields: Total_Timesheets__c, Total_Approved_Timesheets__c, and Total_Project_Timesheets__c on the custom object Project__c.

    Now, the developer is tasked with creating a new field to show the ratio between total and approved timesheets.

    Which statement best justifies using a formula field?

    A. No test methods will be executed during deployment.
    B. A test class that validates the formula field is needed for deployment.
    C. Using a formula field reduces maintenance overhead.
    D. A formula field will calculate the value retroactively for existing records.

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.