Pass4itsure > Salesforce > Salesforce Certifications > PDII > PDII Online Practice Questions and Answers

PDII Online Practice Questions and Answers

Questions 4

Which method should be used to convert a Date to a String in the current user's locale?

A. Date.format

B. Date.parse

C. String.format

D. String. valueOf

Buy Now
Questions 5

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

Receives input of: Map 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

Buy Now
Questions 6

A developer is creating unit tests for code that makes SOAP web service callouts. The developer needs to insert some test data as a part of the unit tests setup. What are three actions to enable this functionality? (Choose three.)

A. Surround the callout with TeststartTest(), Test.stopTest()

B. Surround the data insertion with Test.startTest(), Test.stopTest()

C. Implement the WebServiceMock interface

D. Update code to call Test.setMock()

E. Implement the HttpCalloutMock interface

Buy Now
Questions 7

In which of the following scenarios would it be acceptable to use programmatic sharing instead of declarative sharing? (Choose three.)

A. Every record created by sales users needs to be visible to their respective manager

B. Poor performance when using native sharing components

C. Team functionality is required on custom objects

D. There is an existing, external system of truth for user access assignments which will continue to drive access and be integrated with salesforce

E. You need to change record access to read/write for all users utilising a lightning component

Buy Now
Questions 8

The Bulk API__________.

A. Is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, queryAII, insert, update, upsert, or delete many records asynchronously by submitting batches

B. Provides a powerful, convenient, and simple REST-based web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it's an excellent choice of technology for use with mobile applications and web projects

C. Is used to create, retrieve, update or delete records, such as accounts, leads, and custom objects, and allows you to maintain passwords, perform searches, and much more

D. Is used to retrieve, deploy, create, update, or delete customizations for your org. The most common use is to migrate changes from a sandbox or testing org to your production environment

Buy Now
Questions 9

Universal Containers requested the addition of a third-party Map widget to an existing Lightning web component. Which two actions should the developer take to implement this requirement? Choose 2 answers

A. Import the third-party JavaScript module directly Into the component.

B. Use a content distribution network and Include