Winter Special - Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: top65certs

Passed Exam Today PDII

Page: 10 / 13
Total 193 questions

Salesforce Certified Platform Developer II (SU24) Questions and Answers

Question 37

Users report that a button on a custom Lightning web component (LWC) is not

saving the data they enter. The button looks to be clicked, but the LWC simply sits

there, seemingly doing nothing.

What should the developer use to ensure error messages are properly displayed?

Options:

A.

Add a try-catch block surrounding the DML statement.

B.

Use the Database method with a110rNone Set to false.

C.

Add the tag to the component.

D.

Add JavaScript and HTML to display an error message.

Question 38

Given the following information regarding Universal Containers (UC):

* UC represents their customers as Accounts in Salesforce.

* All customers have a unique Customer__Number_c that is unique across all of UC's systems.

* UC also has a custom Invoice c object, with a Lookup to Account, to represent invoices that are sent out from their external system.

UC wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer pays their bills on time.

What is the optimal way to implement this?

Options:

A.

Ensure Customer Number cis an External ID and that a custom field Invoice Number cis an External ID and Upsert invoice data nightly.

B.

Use Salesforce Connect and external data objects to seamlessly import the invoice data into Salesforce without custom code.

C.

Create a cross-reference table in the custom invoicing system with the Salesforce Account ID of each Customer and insert invoice data nightly,

D.

Query the Account Object upon each call to insert invoice data to fetch the Salesforce ID corresponding to the Customer Number on the invoice.

Question 39

An Apex trigger and Apex class increment a counter, Edit __C, any time the Case is changed.

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 40

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 blocked domains.

The list of blocked domains is stored in a custom object for ease of maintenance by users. The survey Response c object is populated via a custom Visualforce page.

What is the optimal way to implement this?

Options:

A.

Implement the logic in validation rules on the Contact and the Burvey Response_c Objects.

B.

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

C.

Implement the logic in an Apex trigger on Contact and also implement the logic within the custom Visualforce page controller.

D.

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

Page: 10 / 13
Total 193 questions