ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 369 - Certified Platform Developer II discussion

Report
Export

A developer created an Apex class that updates an Account based on input from a Lightning web component that is used to register an Account. The update to the Account should only be made if it has not already been registered.

What should the developer do to ensure that users do not overwrite each other's updates to the same Account if they make updates at the same time?

A.
Use CastiCase.update(account, false).
Answers
A.
Use CastiCase.update(account, false).
B.
Add a try/catch block around the update.
Answers
B.
Add a try/catch block around the update.
C.
Use upsert instead of update.
Answers
C.
Use upsert instead of update.
D.
Use FOR UPDATE in a SOQL query.
Answers
D.
Use FOR UPDATE in a SOQL query.
Suggested answer: A
asked 23/09/2024
SAI CHARAN TANGELLA
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first