Certbus > Salesforce > Salesforce Developer > PDII > PDII Online Practice Questions and Answers

PDII Online Practice Questions and Answers

Questions 4

If a developer wanted to display error messages with the standard Salesforce Ul styling, what would they use?

A.

B.

C.

D.

Browse 425 Q&As
Questions 5

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 Controller

B. Standard List/Set Controller

C. Controller Extensions

D. Custom Controller

Browse 425 Q&As
Questions 6

An org has a custom object, Registeration_c that has a lookup relationship to the Opportunity object. What should a developer use to create a stand-alone Vlsualforce page that displays the Registration__c records related to an Opportunity.

A. A standard controller with a controller extension

B. A controler extension

C. A custom controler

D. A standard controller

Browse 425 Q&As
Questions 7

When calling a RESTful web service, a developer receives a JSON payload that has a data hierarchy that is nested three levels deep. How can the developer describe the external data?

A. Deserialize the data untyped and then process it.

B. Declare a class with three levels and deserialize the JSON typed with this class.

C. Use the ANT migration tool, the custom metadata API, or the Dataloader.

D. Use middleware to flatten the JSON and consume it as a new custom object.

Browse 425 Q&As
Questions 8

A company manages information about their product offerings in custom objects named Catalog and Catalog Item. Catalog Item has a master-detail field to Catalog, and each Catalog may have as many as 100,000 Catalog Items. Both custom objects have a CurrencylsoCode Text field that contains the currency code they should use. If a Catalog's CurrencylsoCode changes, all of its Catalog Items' CurrencylsoCodes should be changed as well. What should a developer use to update the CurrencylsoCodes on the Catalog Items when the Catalog's CurrencylsoCode changes^5

A. An after insert trigger on Catalog that updates the Catalog Items if the Catalog's CurrencylsoCode is different

B. An after insert trigger on Catalog Item that updates the Catalog Items if the Catalog's CurrencylsoCode is different

C. A Database.Schedulable and Database.Batchable class that queries the Catalog object and updates the Catalog Items if the Catalog CurrencylsoCode is different

D. A Database.Schedulable and Database.Batchable class that queries the Catalog Item object and updates the Catalog Items if the Catalog CurrencylsoCode is different

Browse 425 Q&As
Questions 9

A developer Is tasked with ensuring that email addresses entered into the system for Contacts and for a Custom Object called Survey_Response__c do not belong to a list of blacklisted domains. The list of blacklisted domains will be stored

In a custom object for ease of maintenance by users. Note that the Survey_Response__c object is populated via a custom visualforce page.

What is the optimal way to implement this?

A. Implement the logic in an Apex trigger on Contact and also implement the logic within the Custom visualforce page controller.

B. Implement the logic in the Custom Visualforce page controller and call that method from an Apex trigger on Contact.

C. Implement the logic in a helper class that is called by an Apex trigger on Contact and from the Custom Visualforce page controller.

D. Implement the logic in a Validation Rule on the Contact and a validation Rule on the Survey_Response__c object.

Browse 425 Q&As
Questions 10

A developer wants to use an Aura component with a custom action.

What should be considered in order to do this?

A. A default value must be provided for each component attribute marked as required

B. The class "slds-modal__container" must be added to the top-level element of the component

C. The component must implement the flexipage:availableForRecordHome interface

D. The component's JavaScript controller must handle a method on initialization

Browse 425 Q&As
Questions 11

Ursa Major Solar has a custom object, serviceJcb__c, with an optional Lookup field to Account called Partr,er_service_Provid__c.

The TocaUobs__c field on Account tracks the total number of serviceJcb__o records to which a partner service provider Account is related.

What should be done to ensure that the TotalJobs_c field is kept up to date?

A. Build a Process Builder with an invocable action.

B. Create an Apex trigger on serviceJob__c

C. Implement a workflow cross-object field update.

D. Change TotalJobi__a to a roll-up summary field.

Browse 425 Q&As
Exam Code: PDII
Exam Name: Salesforce Certification for Platform Developer II
Last Update: Apr 26, 2024
Questions: 425 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99