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

    There is an Apex controller and a Visualforce page in an org that displays records with a custom filter consisting of a combination of picklist values selected by the user.

    The page takes too long to display results for some of the input combinations, while for other input choices it throws the exception, "Maximum view state size limit exceeded".

    What step should the developer take to resolve this issue?

    A. Split the layout to filter records in one Visualforce page and display the list of records in a second page using the same Apex Controller.
    B. Adjust any code that filters by picklist values since they are not indexed.
    C. Use a StandardSetController or SOQL LIMIT in the Apex controller to limit the number of records displayed at a time.
    D. Remove instances of the transient keyword from the Apex controller to avoid the view state error.

  • Question 272:

    A software company uses a custom object Defect_c, to track defects in their software, Defect__c has organisation-wide defaults set to private Each Dafect__c has a related list of Reviewer_c records, each with a lookup field to User that is used to indicate that the User will review the Defect_c.

    What should be used to give the User on the Reviewer_c record read only access to the Defect_c record on the Reviewer_c record?

    A. View All on Defect_c
    B. Apex managed sharing
    C. lightning web component
    D. Criteria based sharing

  • Question 273:

    Universal Containers uses Big Objects to store almost a billion customer transactions called Customer_Transaction__b.

    These are the fields on Customer_Transaction__b:

    Account__c Program__c Points_Earned__c Location__c Transaction_Date__c

    The following fields have been identified as Index Fields for the Customer_Transaction__b object: Account__c, Program__c, and Transaction_Date__c.

    Which SOQL query is valid on the Customer_Transaction__b Big Object?

    A. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__bWHERE Account__c = '001R000000302D3'AND Program__c ='Shoppers'AND Transaction_Date__c=2019-05-31T00:00Z
    B. SELECT Account__c, Program__c, Transaction_Date__cFROM Customer_Transaction__b WHERE Account__c = '001R000000302D3'AND Program__c LIKE 'Shop%'AND Transaction_Date__c=2019-05-31T00:00Z
    C. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__bWHERE Account__c = '001R000000302D3'AND Program__c INCLUDES ('Shoppers', 'Womens')AND Transaction_Date__c=2019-05-31T00:00Z
    D. SELECT Account__c, Program__c, Transaction_Date__c FROM Customer_Transaction__bWHERE Account__c = '001R000000302D3'AND Program__c EXCLUDES ('Shoppers', 'Womens')AND Transaction_Date__c=2019-05-31T00:00Z

  • Question 274:

    Universal Containers (UC) has an CRP system that stores customer information.

    When an Account is created in Salesforce, the FRP system's REST endpoint for creating new customers must automatically be called with the Account information, If the call to the ERP system fails, the Account should still be created.

    Accounts in UC org are only created, one at a time, by users in the customer on-boarding department.

    What should a developer to make the call to the CRP system's REST endpoint7

    A. REST call from JavaScript
    B. Headless Quick Action
    C. apex Continuation
    D. call a Queueable from a Trigger

  • Question 275:

    When the sales team views an individual customer record, they need to see recent interactions for the customer. These interactions can be sales, orders, phone calls, or Cases. The date range for recent interactions will be different for every customer record type.

    How can this be accomplished?

    A. Use a Lightning component to query and display interactions based on record type that is passed in using a design: attribute from the Lightning page.
    B. Use Batch Apex to query for the most recent interactions when the customer view screen is loaded.
    C. Use a Process Builder to query the most recent interactions and then display them on the customer view.
    D. Use Lightning Flow to read the customer's record type, and then do a dynamic query for recent interactions and display on the View page.

  • Question 276:

    A Developer wishes to improve runtime performance of Apex calls by caching results on the client. What is the best way to implement this?

    A. Decorate the server-side method with @AuraEnabled(cacheable=true).
    B. Set a cookie in the browser for use upon return to the page.
    C. Decorate the server-side method with @AuraEnabled(storable=true).
    D. Call the setStorable() method on the action in the JavaScript client-side code.

  • Question 277:

    An org has a requirement that an Account must always have one and only one Contact listed as Primary. So selecting one Contact will de-select any others. The client wants a checkbox on the Contact called 'Is Primary' to control this feature.

    The client also wants to ensure that the last name of every Contact is stored entirely in uppercase characters.

    What is the optimal way to implement these requirements?

    A. write a single trigger on Contact for both after update and before update and callout to helper classes to handle each set of logic.
    B. Write an after update trigger on Contact for the Is Primary logic and a separate before update trigger on Contact for the last name logic.
    C. write an after update trigger on Account for the Is Primary logic and a before update trigger on Contact for the last name logic.
    D. write a Validation Rule on the Contact for the Is Primary logic and a before update trigger on Contact for the last name logic.

  • Question 278:

    A developer built a Component to be used at the front desk for guests to self-register upon arrival at a kiosk. The developer is now asked to create a Component for the Utility Tray to alert Users whenever a guest has arrived at the front desk.

    What should be used?

    A. Changelog
    B. Component Event
    C. Application Event
    D. DML Operation

  • Question 279:

    A developer is using a third-party JavaScript library to create a custom user interface in Visualforce. The developer needs to use JavaScript to get data from a controller method in response to a user action.

    How can the developer accomplish this?

    A. Use <apex:actionFunction> to create a JavaScript wrapper for the controller method
    B. Use the @RemoteAction annotation on the method definition with JavaScript Remoting
    C. Use the $Controller global variable to access the controller method via JavaScript
    D. Use <apex:actionSupport> to enable JavaScript support for the controller method

  • Question 280:

    Universal Containers wants to notify an external system, in the event that an unhandled exception occurs, by publishing a custom event using Apex.

    What is the appropriate publish/subscribe logic to meet this requirement?

    A. Publish the error event using the EventBus.publish() method and have the external system subscribe to the event using CometD.
    B. Publish the error event using the addError() method and have the external system subscribe to the event using CometD.
    C. Publish the error event using the addError() method and write a trigger to subscribe to the event and notify the external system.
    D. Have the external system subscribe to the event channel. No publishing is necessary.

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.