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

    Universal Containers needs to integrate with a Heroku service that resizes product images submitted by users.

    What are two alternatives to implement the integration and protect against malicious calls to Heroku app's endpoint? (Choose Two)

    A. Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data and some form of pre-shared secret key. so that the Heroku app can authenticate requests and store the resized images in Salesforce.
    B. Create a trigger that uses an @future Apex HTTP callout passing JSON serialized data; therefore the Heroku app can automatically reply back to the callout with the resized images in Salesforce.
    C. Create a Workflow Rule with an Outbound Message and select Send Session ID so that the Heroku app can use it to send the resized images back to Salesforce.
    D. Create a Workflow Rule with an Outbound Message allowing the Heroku app to automatically store the resized images in Salesforce.

  • Question 112:

    A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list of AccountWrappers and is called imperatively from a JavaScript event handler.

    01: public class AccountSearcher {

    02:

    03: public static List<AccountWrapper> search(String term) {

    04: List<AccountWrapper> wrappers = getMatchingAccountWrappers(term);

    05: return wrappers;

    06: }

    07:

    08:

    09: public class AccountWrapper { 10: public Account account { get; set; }

    11: public Decimal matchProbability { get; set; }

    12: }

    13: // ...other methods, including getMatchingAccountWrappers implementation...

    14: }

    Which two changes should the developer make so the Apex method functions correctly? (Choose Two)

    A. Add @AuraEnabled to line 01.
    B. Add @AuraEnabled to line 09.
    C. Add @AuraEnabled to lines 10 and 11.
    D. Add @AuraEnabled to line 03.

  • Question 113:

    A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsUtils in Salesforce. Another developer is coding a new Lightning web component (LWC) and wants to leverage the library.

    Which statement properly loads the static resource within the LWC?

    A. import jsUtilities from '@salesforce/resourceUrl/jsUtils';
    B. import {jsUtilities} from '@salesforce/resourceUrl/jsUtils';
    C. const jsUtility = $A.get('$Resource.jsUtils');
    D. <lightning=require scripts="{$Resource.jsUtils}"/>

  • Question 114:

    A developer is integrating with a legacy on-premise SQL database. What should the developer use to ensure the data being integrated is matched to the right records in Salesforce?

    A. External Object
    B. Lookup field
    C. Formula field
    D. External id field

  • Question 115:

    A company wants to allow support managers to see all cases in the org, regardless of who owns them. However, they want to support agents to only see cases they own or cases owned by someone in their role or a subordinate role.

    Which sharing solution should a developer use to achieve this requirement?

    A. Sharing sets
    B. Apex managed sharing
    C. Role hierarchy
    D. Criteria-based sharing rules

  • Question 116:

    Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded? (Choose three.)

    A. Call loadScript.
    B. Append the static resource to the DOM.
    C. Import a method from the platformResourceLoader.
    D. Import the static resource.
    E. Reference the static resource in a <script> tag.

  • Question 117:

    A developer is writing unit tests for the following method:

    public static Boolean isFreezing(String celsiusTemp){ if(String.isNotBlank(celsiusTemp) && celsiusTemp.isNumeric())

    { return Decimal.valueof(celsiusTemp) <= 0; } return null; }

    Which assertion would be used in a negative test case?

    A. System.assertEquals(true, isFreezing(null))
    B. System.assertEquals (true, isFreezing('O')
    C. System.assertEquals(null, isFreezing('asdf))
    D. System.assertEquals(true, isFreezingClOO'))

  • Question 118:

    Consider the following code snippet:

    Which two steps should the developer take to add flexibility to change the endpolnt and credentials without needing to modify code? (Choose Two)

    A. Create a Named Credential, endPoint_NC, to store the endpoint and credentials.
    B. Store the URL of the endpoint in a custom Label named endPointURL.
    C. Use req.setEndpoint(,callcut:endPoint_NC,); within the callout request.
    D. Use req.setEndpoint(Label.endPointURL);

  • Question 119:

    A developer wants to write a generic Apex method that will compare the Salesforce Name field between any two object records. For example, to compare the Name field of an Account and an Opportunity, or the Name of an Account and a Contact.

    How should the developer do this?

    A. Use a String.replace() method to parse the contents of each Name field.
    B. Invoke a Schema.describe() function to compare the values of each Name field.
    C. Cast each object into an sObject and use sObject.get('Name') to compare the Name fields.
    D. Use the Salesforce Metadata API to extract the value of each object and compare the Name fields.

  • Question 120:

    What tool in the Developer Console contains information on SOQL query Cardinality?

    A. Checkpoints tab
    B. Query Editor
    C. Query Plan Tool
    D. Log Inspector
    E. View State Tab

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.