00:00

QUESTION 116

- (Exam Topic 3)
A developer created a Lightning web component for the Account record page that displays the five most recently contacted Contacts for an Account. The Apex method, getRecentContacts, returns a list of Contacts and will be wired to a property in the component.
Platform-Developer-II dumps exhibit
Which two lines must change in the above ode to make the Apex method able to be wired? Choose 2 answers

Correct Answer: CD

QUESTION 117

- (Exam Topic 3)
A developer is working with existing functionality that tracks how many times a stage has changed for an Opportunity. When the opportunity’s stage is changed, a workflow rule is fired to increase the value of a filed by one. The developer wrote an after trigger to create a child record when the field changes from 4 to 5.
A user changes the stage of an Opportunities and manually sets the count field to 4. The count field updates to 5, but the child record is not created.
What is the reason this is happening?

Correct Answer: D

QUESTION 118

- (Exam Topic 1)
A developer has requirement to query three fields (id, name, Type) from an Account and first and last names for all Contacts associated with the Account.
Which option is the preferred optimized method to achieve this for the Account named ‘Ozene Electronics’?

Correct Answer: B

QUESTION 119

- (Exam Topic 1)
What is a best practice when unit testing a controller? (Choose two.)

Correct Answer: BD