Pass PDII Brain Dump Updated Certification Sample Questions [Q23-Q42]

Share

Pass PDII Brain Dump Updated Certification Sample Questions

Online PDII Test Brain Dump Question and Test Engine


Salesforce PDII certification exam is divided into four domains: Salesforce Fundamentals, Apex and Visualforce Controllers, Integration, and Programmatic Sharing and Visibility. Each domain covers a specific set of topics that are essential for a Platform Developer II to know. The Salesforce Fundamentals domain covers general Salesforce knowledge, while the other domains focus on specific technical skills required to become a Salesforce Certified Platform Developer II.


To earn the PDII certification, a developer must pass a rigorous exam that tests their knowledge and skills in various areas of Salesforce development. PDII exam covers a wide range of topics, including Apex programming language, Visualforce, Lightning Components, data modeling, security, and integration with other systems. PDII exam is designed to assess a developer's ability to design and implement complex solutions using these tools and technologies.

 

NEW QUESTION # 23
Which of the follow be used together in DML operations (transaction)? (Choose two.)

  • A. Opportunity - User
  • B. Case - CaseComment
  • C. Account - AccountShare
  • D. Account - Order

Answer: B,D


NEW QUESTION # 24
A managed package uses a list of country ISO codes and country names as reference data in many different places from within the managed package Apex code.
What is the optimal way to store and retrieve the list?

  • A. Store the information in Custom Metadata and access it with the getAll() method
  • B. Store the information in a List Custom Setting and access it with the getAll() method
  • C. Store the information in a List Custom Setting and query it with SOQL
  • D. Store the information in Custom Metadata and query it with SOQL

Answer: B

Explanation:
Explanation/Reference: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/ apex_customsettings.htm


NEW QUESTION # 25
A developer has been asked to create code that will meet the following requirements:
Receives input of: Map<ld, 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. Queueable interface
  • C. Schedulable interface
  • D. Database.AllowCallouts interface

Answer: B


NEW QUESTION # 26
A company processes Orders within their Salesforce instance. When an Order's status changes to 'Paid' it must notify the company's order management system (OMS). The OMS exposes SOAP web service endpoints to listen for when to retrieve the data from Salesforce.
What is the optimal method to implement this?

  • A. Create an Outbound Message that contains the session ID and send it to the OMS.
  • B. Create an Apex trigger and make a callout to the OMS from the trigger.
  • C. Generate the Enterprise WSDL and use it to make a callout to the OMS.
  • D. Generate the Partner WSDL and use it to make a callout to the OMS.

Answer: C

Explanation:
Explanation/Reference:


NEW QUESTION # 27
Which scenario requires a developer to use an Apex callout instead of Outbound Messaging?

  • A. The callout needs to be invoked from a Workflow Rule.
  • B. The Target system uses a SOAP API.
  • C. The Target system uses a REST API.
  • D. The callout needs to be asynchronous.

Answer: C


NEW QUESTION # 28
A business process requires sending new Account records to an external system. The Account Name, Id, CreatedDate. and CreatedByld must be passed to the external system in near real-time when an Account is Inserted without error.
How should a developer achieve this?

  • A. Use a Workflow rule that calls an @InvocableMethod method.
  • B. Use a before insert trigger and an @future method.
  • C. Use a Process Builder that calls an @InvocableMethod method.
  • D. Use a before insert trigger and a Queueable class.

Answer: B


NEW QUESTION # 29
Universal Containers (UC) has custom Order and Order Line objects that represent orders placed by its customers.
A developer has a new requirement that UC's external enterprise resource planning (CRP) system placed by its customers. integrate with Salesforce to create orders for existing customers in Salesforce whenever an ERP system.
What should the developer use to create the orders in Salesforce?

  • A. Event Monitoring API
  • B. SObject Tree API
  • C. Change Data Capture API
  • D. Connect API

Answer: D


NEW QUESTION # 30
How could a developer create a Visualforce page for a Multilanguage organization? Choose 2 answers

  • A. Use the language attribute of to support translation workbench.
  • B. Use by default to support translation workbench.
  • C. Use custom labels to display text in the current user's language.
  • D. Use custom labels to display validation rule errors in the current user's language.

Answer: A,C


NEW QUESTION # 31
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 Lightning Flow to read the customer's record type, and then do a dynamic query for recent interactions and display on the View page.
  • B. Use batch Apex to query for the most recent interactions when the customer view screen is loaded.
  • C. 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.
  • D. Use a dynamic form on the customer record page to display recent interactions.

Answer: A


NEW QUESTION # 32
Universal Containers wants to use a Customer Community with Customer Community Plus licenses so their customers can track how many of containers they are renting and when they are due back. Many of their customers are global companies with complex Account hierarchies, representing various departments within the same organization. One of the requirements is that certain community users within the same Account hierarchy be able to see several departments' containers, based on a junction object that relates the Contact to the various Account records that represent the departments. Which solution solves these requirements?

  • A. A Visualforce page that uses a Custom Controller that specifies without sharing to expose the records
  • B. An Apex Trigger that creates Apex Managed Sharing records based on the junction object's relationships
  • C. A Custom List View on the junction object with filters that will show the proper records based on owner
  • D. A Custom Report Type and a report Lightning Component on the Community Home Page

Answer: B


NEW QUESTION # 33
A developer 15 tasked with creating an application-centric feature on which end-users can access and update information. This feature must be available in lightning Experience while working seamlessly in multiple device form factors, such as desktops, phones, and tablets. Additionally, the feature must support Addressable URL Tabs and interact with the Salesforce Console APIs.
What arm two approaches a developer can take to build the application and support the business requirements
^
Choose 2 answers

  • A. Create the application using Lightning web Components wrapped in Aura Components.
  • B. Create application using Aura Components.
  • C. Create the application using Lightning Experience Builder.
  • D. Create the application using Aura Components wrapped in Lightning Web Components.

Answer: A,B


NEW QUESTION # 34
As part of a custom development, a developer creates a Lightning Component to show how a particular opportunity progresses over time. The component must display the date stamp when any of the following fields change:
* Amount Probability, Stage, or Close Date
What is the most efficient way to Query such information?

  • A. ('StageName', Probability',Amount /CloseDate')];
  • B. [Select Newvalue, Oldvalue From OpportunityField_History Where Oppportunity = oppid AND Field IN
  • C. [Select Amount, CloseDate, StageName, Probability FROM OpportunityHistory WHERE Opportunityld = :oppId];
  • D. [Select NewValue, Oldvalue FROM Opportunity FieldHistory WHERE Opportunityld = :oppId AND Field IN
  • E. [Select Amount CloseDate. StageName, Probability FROM Opportunity_History WHERE Opportunityld - :oppId];

Answer: D


NEW QUESTION # 35
Universal Containers (UC) wants to develop a customer community to help their customers log issues with their containers. The community needs to function for their German- and Spanish-speaking customers also. UC heard that it's easy to create an international community using Salesforce, and hired a developer to build out the site.
What should the developer use to ensure the site is multilingual?

  • A. Use Custom Labels to ensure custom messages are translated property.
  • B. Use Custom Objects to translate custom picklist values.
  • C. Use Custom Settings to ensure custom messages are translated properly.
  • D. Use Custom Metadata to translate custom picklist values.

Answer: A


NEW QUESTION # 36
Given a list of Opportunity records named opportunityList, which code snippet is best for querying all Contacts of the Opportunity's Account?
A)

B)

C)

D)

  • A. Option A
  • B. Option C
  • C. Option B
  • D. Option D

Answer: A


NEW QUESTION # 37
Which type of controller is best suited when you want all of the basic DML functions from an object's normal new/edit page and want to include multiple records?

  • A. Standard List/Set Controller
  • B. Controller Extensions
  • C. Custom Controller
  • D. Standard Controller

Answer: A


NEW QUESTION # 38
Which statement should be used to allow some of the records in a list of records to be inserted if others fail to be inserted?

  • A. Database.insert(records, true)
  • B. insert records
  • C. insert (records, false)
  • D. Database.insert(records, false)

Answer: D


NEW QUESTION # 39
Get Cloudy Consulting (GCC) has a multitude of servers that host its customers' websites. GCC wants to provide a servers status page that is always on display in its call center. It should update in real time with any changes made to any servers. To accommodate this on the server side, a developer created a Server Update platform event.
The developer is working on a Lightning web component to display the information.
What should be added to the Lightning web component to allow the developer to interact with the Server Update platform event?

  • A. import { subscribe, unsubscribe, onError } from 'lightning/empApi';
  • B. import { subscribe, unsubscribe, onError } from 'lightning/pubsub'
  • C. import { subscribe, unsubscribe, onError } from 'lightning/MessageChannel'
  • D. import { subscribe, unsubscribe, onError } from 'lightning/ServerUpdate'

Answer: A


NEW QUESTION # 40
A developer must create a way for external partners to submit millions of leads into Salesforce per day. How should the developer meet this requirement?

  • A. Publicly expose a Visualforce page via Force.com Sites.
  • B. Create a web service on Heroku that uses Heroku Connect.
  • C. Host a Web-to-Lead form on the company website.
  • D. Publicly expose an Apex Web Service via Force.com Sites.

Answer: D


NEW QUESTION # 41
A company uses Opportunism to track sales to their customers and their org has millions of Opportunities. They want to begging to track revenue over time through a related Revenue object.
As part of their initial implementation, they want to perform a one-time seeding of their data by automatically creating and populating Revenue records for Opportunities, based on complex logic. They estimate that roughly 100,000 Opportunities will have revenue records and populated.
What is the optimal way to automate this?

  • A. Use System.scheduleJob() to schedule a Database.Scheduleable class.
  • B. Use Database.executeBatch() to invoke a Queueable dass.
  • C. Use Database.txtcuteBatch() to invoke a Database.Batchable class.
  • D. Use System.enqueueJob>() to Invoke a Queueable class.

Answer: A


NEW QUESTION # 42
......


Salesforce Certified Platform Developer II (PDII) is an advanced certification offered by Salesforce that validates the expertise of developers in building custom applications on the Salesforce platform. Salesforce Certified Platform Developer II (PDII) certification is designed for experienced developers who have a deep understanding of the Salesforce platform, including its architecture, data model, security, and integration capabilities. The PDII exam tests the candidates on their ability to design and develop complex business logic, data models, and user interfaces using Apex, Visualforce, and Lightning Components.

 

Real Salesforce PDII Exam Dumps with Correct 177 Questions and Answers: https://testking.vceengine.com/PDII-vce-test-engine.html