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

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

    Universal Containers has an Apex trigger on Account that creates an Account Plan record when an Account is marked as a Customer. Recently a workflow rule was added so that whenever an Account is marked as a Customer, a 'Customer

    Since' date field is updated with today's date.

    Since the addition of the workflow rule, two Account Plan records are created whenever the Account is marked as a Customer.

    What might cause this to happen?

    A. The workflow rule is configured to evaluate when a record is created and every time it is edited.

    B. The workflow rule field update is marked as 'Re-evaluate Workflow Rules After Field Change."

    C. The Apex trigger does not use a static variable to ensure it only fires once.

    D. The Apex trigger is not bulk safe and calls insert inside of a for loop.

  • Question 23:

    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.

    B. import {jsUtilities} from `@salesforce/resourceUrl/jsUtils';

    C. import jsUtilities from `@salesforce/resourceUrl/jsUtils';

    D. const jsUtility = $A.get (`$Resource.jsUtils');

  • Question 24:

    Which three approaches should a developer implement to obtain the best performance for data retrieval when building a Lightning web component? (Choose three.)

    A. Use (Cacheable=true) whenever possible.

    B. Use the Lightning Data Service.

    C. Use layoutTypes: [`Full'] to display a set of fields.

    D. Use lazy load for occasionally accessed data.

    E. Use getRecordUi to obtain metadata.

  • Question 25:

    A developer creates a Lightning web component to allow a Contact to be quickly entered. However, error messages are not displayed.

    Which component should the developer add to the form to display error messages?

    A. lightning-messages

    B. aura:messages

    C. lightning-error

    D. apex:messages

  • Question 26:

    A Lightning web component exists in the system and displays information about the record in context as a modal. Salesforce administrators need to use this component within the Lightning App Builder.

    Which two settings should the developer configure within the xml resource file?

    Choose 2 answers

    A. Set the IsExposed attribute to True.

    B. Set the IsVisible attribute to True.

    C. Specify the target to be lightning__RecordPage.

    D. Specify the target to be lightning__AppPage.

  • Question 27:

    A developer created a Lightning web component that uses a Lightning-record-edit-force to collect information about Leads. Users complain that they only see one error message at a time when they save a Lead record. What can the developer use to perform the validations, and allow multiple error messages to be displayed simultaneously?

    A. Apex REST

    B. External JavaScript Library

    C. Apex Trigger

    D. Process Builder

  • Question 28:

    Universal Containers needs to integrate with their own, existing, internal custom web application. The web application accepts JSON payloads, resizes product images, and sends the resized images back to Salesforce. What should the developer use to implement this integration?

    A. A workflow rule with an outbound message that contains a session ID

    B. An Apex trigger that calls an @future method that allows callouts

    C. A platform event that makes a callout to the web application

    D. A flow that calls an @future method that allows callouts

  • Question 29:

    When developing a Lightning web component, which setting displays lightning-layout-items in one column on small devices, such as mobile phones, and in two columns on tablet-size and desktop-size screens?

    A. Set size=M6" mobile-device-size="12"

    B. Set size-"12" medium-device-size?quot;";

    C. Set size-"12" tablet-device-size-"6"

    D. Set size-"6" small-device-size-"12"

  • Question 30:

    An Apex trigger creates a Contract record every time an Opportunity record is marked as Closed end Won. This trigger is working great, except (due to a recent acquisition) historical Opportunity records need to be loaded into the Salesforce

    instance.

    When a test batch of records are loaded, the Apex trigger creates Contract records. A developer is tasked with preventing Contract records from being created when mass loading the Opportunities, but the daily users still need to have the

    Contract records created.

    What is the most extendable way to update the Apex trigger to accomplish this?

    A. Use a List Custom Setting to disable the trigger for the user who loads the data.

    B. Add a Validation Rule to the Contract to prevent Contract creation by the user who loads the data.

    C. Use a Hierarchy Custom Setting to skip executing the logic inside the trigger for the user who loads the data.

    D. Add the Profile ID of the user who loads the data to the trigger so the trigger will not fire for this user.

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.