Exam Details

  • Exam Code
    :PDII
  • Exam Name
    :Salesforce Certification for Platform Developer II
  • Certification
    :Salesforce Developer
  • Vendor
    :Salesforce
  • Total Questions
    :425 Q&As
  • Last Updated
    :May 02, 2024

Salesforce Salesforce Developer PDII Questions & Answers

  • Question 1:

    Universal Containers (UC) calculates commissions on their Opportunities in different ways based on complex rules that vary depending on the line of business of the Opportunity.

    Whenever a new line of business Is added to Salesforce at UC, it is likely that a different calculation will need to be added too. When an Opportunity's stage is changed to Closed/Won, its commission should be calculated in real time.

    What should a developer use so that different implementations of the commission calculation can be invoked on the stage change?

    A. A final dass with multiple methods

    B. Apex Describe Schema methods

    C. An Apex class with @ custom enum

    D. An Interface and implementing classes

  • Question 2:

    A developer created the code to perform an HTP GET request to an external system.

    When the code is executed, the callout is unsuccessful and the following error appears within the Developer Console:System.CalloutException: Unauthorized endpoint Which recommended approach should the developer implement to the callout exception?

    A. create a remote site setting configuration that includes the endpoint.

    B. Annotate the getERPCatalogContents method With @Future (Callout-true)

    C. use the setHeader () method to specify Basic Authentication.

    D. Change the access modifier for ERPCatelog from Public to global

  • Question 3:

    Universal Containers (UC) has enabled the translation workbench and has translated picklist values. UC has a custom multi-select picklist field, Products__z, on the Account object that allows sales reps to specify which of UC's products an Account already has. A developer is tasked with writing an Apex method that retrieves Account records, Including product_c field.

    What should the developer do to ensure the value of Products__c is in the current user's language?

    A. Set the locale on each record in the SOQL result list.

    B. Use the locale clause in the SOQL query.

    C. Use toLabel1 Products_c in the fields list of the SOQL query.

    D. Call the translate ( ) method on each record in the SOQL result list.

  • Question 4:

    A developer is working on a set of custom Aura components that can be Individually added to a home page. One of the components, c:searchAccounts, allows users to search for an Account and then select a specific found Account. Once selected, the other components. Should get other information related to the selected Account and display it

    Which event should the c: 2eazchRccounta component fire to make it known that an Account is selected?

    A. An application event

    B. A refrestiview event

    C. A publish event

    D. A component event

  • Question 5:

    An org records customer order information In a custom object, Orcer__c, that has fields for the shipping address. A developer is tasked with adding code to calculate shipping charges on an order, based on a fiat percentage rate associated with the region of the shipping address.

    What should the developer use to store the rates by region, so that when the changes are deployed to production no additional steps are needed for the calculation to work?

    A. Custom object

    B. Custom metadata type

    C. Custom list setting

    D. Custom hierarchy setting

  • Question 6:

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

    Refer to the code segment above.

    When following best prachces for writing Apex triggers, which two lines are wrong or cause for concern? Choose 2 answers

    A. Lines

    B. Line 12

    C. Line 16

    D. Line 20

  • Question 8:

    Universal containers needs to integrate with several external systems. The process is initiated when a record is created in Salesforce. The remote systems do not require Salesforce to wait for a response before continuing.

    What is the recommended best solution to accomplish this?

    A. Trigger with callout

    B. Platform event

    C. PushTopic event

    D. Outbound message

  • Question 9:

    Account object has a field, Audit_Code__, that is used to specify what type of auditing the Account needs and a Lookup to user, Auditor__ that is the assigned auditor.

    When an Account is initially created, the user specifies the Audit_Code__. Each User in the org has a unique text field, that is used to automatically assign the correct user to the Account Auditor__ field.

    What should be changed to most optimize the code's efficiency? Choose 2 answers

    A. Build a Map> of audit code to accounts.

    B. Add an initial SOQL query to get all distinct audit codes.

    C. Add a WHERE clause to the SOQL query to filter On audit codes.

    D. Build a Map > of Account Id to audit codes.

  • Question 10:

    Universal Containers uses Salesforce to manage its product offerings to customers.

    A developer is building a custom mobile app that must allow app users to view product information, in real time, that is stored in Salesforce. What should the developer use to get the product information from Salesforce?

    A. SOAP API

    B. User Interface API

    C. Streaming API

    D. REST APT

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.