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

    A developer is writing a Visualforce page to display a list of all of the checkbox fields found on a custom object. What is the recommended mechanism the developer should use to accomplish this?

    A. Schema Class
    B. Apex API
    C. Schema Builder
    D. Metadata API

  • Question 432:

    A developer used custom settings to store some configuration data that changes occasionally. However, tests are now failing in some of the sandboxes that were recently refreshed.

    What should be done to eliminate this issue going forward?

    A. Set the setting type on the custom setting to List.
    B. Replace custom settings with custom metadata.
    C. Set the setting type on the custom setting to Hierarchy.
    D. Replace custom settings with static resources.

  • Question 433:

    A developer has been asked to create code that will meet the following requirements:

    Receives input of: Map<Id, Project_c), List<Account> Performs a potentially long-running callout to an outside web service Provides a way to confirm that the process executed successfully Which asynchronous feature should be used?

    A. @future (callout=true)
    B. Database.AllowCallouts interface
    C. Schedulable interface
    D. Queueable interface

  • Question 434:

    What is the best way to display field-level error messages in Lightning?

    A. ukinputDefaultError
    B. ukoutputText
    C. auraxomponent
    D. apex:message

  • Question 435:

    This sales team needs a custom Visualforce page to enter sales orders. When a product is selected on the Visualforce page, a web service is invoked to determine if the product is in stock, and the result is displayed on the page.

    How can a developer write this page to display the result of the web service and ensure governor limits for concurrent usage are not exceeded?

    A. Use Continuation that is invoked when a Submit button is clicked.
    B. Use visualforce Remoting to handle the web service callout.
    C. Use the Salesforce Metadata API in the web service callout.
    D. Use an Apex trigger with callout=true annotation.

  • Question 436:

    A developer writes the following code:

    While testing the code, the developer receives the following error message:

    System.CalloutException : You have uncommitted work pending

    What should the developer do? (Choose two.)

    A. Use the asyncSend() method of the HTTP class to send the request in async context
    B. Ensure all callouts are completed prior to executing DML statements
    C. Move the web service callout into an @future method
    D. Use Database.insert (order, true) to immediately commit any database changes

  • Question 437:

    An org contains two custom objects: Building__c and Office__c. Office__c has a Lookup field to Building__c.

    A developer is asked to automatically populate the Number_of_Offices__c field on the Building__c object with the count of related Office__c records anytime an Office__c record is created or deleted. The developer cannot modify the field types.

    Which solution meets the requirements?

    A. Flow
    B. Workflow
    C. Apex Trigger
    D. Process Builder

  • Question 438:

    During the order of execution of a Visualforce page GET request, what happens after this step?

    A. Evaluate constructors and expressions on custom components
    B. Create view state if <apex: form> exists
    C. Send the HTML response to the browser
    D. Evaluate expressions, action attributes, and method calls

  • Question 439:

    Which API can b|e used to execute unit tests? (Choose three.)

    A. Streaming AP
    B. Test API
    C. Tooling API
    D. SOAP API
    E. Metadata API

  • Question 440:

    A developer has a Debug method within a class, which is invoked hundreds of times. What is the optimal functionality in the Developer Console to count the number of calls made to the method?

    A. The "Execution Log" Panel
    B. The "Execution Stack" Panel
    C. The "Executed Units" tab under the Execution Overview Panel
    D. The "Execution Tree" tab under the Stack Tree Panel

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.