00:00

QUESTION 91

- (Exam Topic 1)
A developer is writing unit tests for the following method:
Platform-Developer-II dumps exhibit
Which assertion would be used in a negative test case?

Correct Answer: C

QUESTION 92

- (Exam Topic 3)
A developer is creating a Lightning web component that displays a list of records in a lightning-datatable. After saving a new record to the database, the list is not updating.
Platform-Developer-II dumps exhibit
What should the developer change in the code above for this to happen?

Correct Answer: D

QUESTION 93

- (Exam Topic 1)
Which type of controller is best suited when you want to add custom functionality to a standard controller page, or when you want reusable functionality throughout pages?

Correct Answer: C

QUESTION 94

- (Exam Topic 1)
@isTest static void testAccountUpdate() { Account acct = new Account({Name = 'Test'); acct.Integration Updated_c = false; insert acct; CalloutUtil.sendAccountUpdate (acct.Id); Account acctAfter = [SELECT Id, Integration Updated_c FROM Account WHERE Id = :acct.Id] [0]; System.assert(true, acctAfter.Integration_Updated_c); } The test method above calls a web service that updates an external system with Account information and sets the Account's Integration_Updated c checkbox to True when it completes. The test fails to execute and exits with an error: "Methods defined as TestMethod do not support Web service callouts." What is the optimal way to fix this?

Correct Answer: B

QUESTION 95

- (Exam Topic 3)
The following code segment is railed from a Trigger handler class from the Opportunity trigger:
Platform-Developer-II dumps exhibit
Which two changes should improve this code and make it more efficient? Choose 2 answers

Correct Answer: AB