Exam Details

  • Exam Code
    :PDII
  • Exam Name
    :Salesforce Certification for Platform Developer II
  • Certification
    :Salesforce Certifications
  • Vendor
    :Salesforce
  • Total Questions
    :425 Q&As
  • Last Updated
    :Mar 27, 2025

Salesforce Salesforce Certifications PDII Questions & Answers

  • Question 11:

    Universal Containers wants to notify an external system in the event that an unhandled exception occurs when their nightly Apex batch gob runs.

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

    A. Have the external system subscribe to a standard Platform Event that gets fired with EventBus.publish().

    B. Have the external system subscribe to a custom Platform Event that gets fired with addError().

    C. Have the external system subscribe to a custom Platform Event that gets fired with EventBus.publish()

    D. Have the external system subscribe to a standard Platform Event that gets fired.

  • Question 12:

    Consider the following code snippet:

    When the component is deployed, an error is reported.

    Which two changes should the developer implement in the code to ensure the component deploys successfully? Choose 2 answers

    A. Option A

    B. Option B

    C. Option C

    D. Option D

  • Question 13:

    A developer is asked to replace the standard Case creation screen with a custom screen that takes users through a wizard before creating the Case. The org only has users running Lightning Experience.

    What should the developer override the Case New Action with to satisfy the requirements?

    A. Lightning Record Page

    B. Lightning Component

    C. Lightning Flow D. Lightning Page

  • Question 14:

    An end user reports that a Lightning component is performing poorly.

    Which two steps should to taken in production to investigate? Choose 2 answers

    A. Enable Debug Mode for Lightning component

    B. Print consoIe.log{} statements to identify where actions are delayed.

    C. Use the salesforce Lightning inspector chrome extension.

    D. Add a trace flag to the user who reported the issue.

  • Question 15:

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

    Refer to the component code and requirements below: Requirements:

    1.

    For mobile devices, the information should display In three rows.

    2.

    For desktops and tablets, the information should display in 2 single row.

    Requirement 2 is not displaying as desired.

    Which option has the correct component code to meet the requirements for desktops and and tablets?

    A. Option A

    B. Option B

    C. Option C

    D. Option D

  • Question 17:

    Consider the following code snippet:

    As part of the deployment cycle, a developer creates the following test class:

    When the test class runs, the assertion fails.

    Which charge should the developer implement in the Apex test method to ensure the test method execute successfully?

    A. Query the Standard User into memory and enclose lines 14 and 15 within the System.runAs (user) method.

    B. Add System.runAs (User) to line 14 and enclose line 14 within Test.startTest() and Test.stoptest ().

    C. Query the Administrator user into memory and enclose lines 14 and 15 within the System,runAs (user) method.

    D. Add @IsTest(seeAllData=True) to line 12 and enclose lines 14 and 15 within Test.startTest () and test.stopTest()

  • Question 18:

    A developer Is writing a Listener for implementing outbound messaging.

    Which three considerations must the developer keep in mind in this case? Choose 3 answers

    A. Messages can be delivered out of order.

    B. Messages are retried Independent of their order In the queue.

    C. The session in an outbound message Is scoped for both API requests and UT requests.

    D. The Organization 1D is included only in the first outbound message.

    E. The Listener must be reachable from the public internet.

  • Question 19:

    How should a developer reference a third-party JavaScript library from a Lightning component?

    A. From an asset file

    B. From a document

    C. From a static resource

    D. From a third-party URL

  • Question 20:

    A developer is building a Lightning web component that retrieves data from Salesforce and assigns it to the record property.

    What must be done in the component to get the data from Salesforce?

    A. Add the following code above record; @wire(getRecord, { recordId: `$recordId', fields: `$fields' })

    B. Add the following code above record; @wire(getRecord, { recordId: `$recordId' }) Get the fields in renderedCallback() and assign them to record.

    C. Add the following code above record; @api(getRecord, { recordId: `$recordId' }) Get the fields in renderedCallback() and assign them to record.

    D. Add the following code above record; @api(getRecord, { recordId: `$recordId', fields: `$fields' })

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.