Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Data Architect All Questions

View all questions & answers for the Certified Data Architect exam

Exam Certified Data Architect topic 1 question 50 discussion

Actual exam question from Salesforce's Certified Data Architect
Question #: 50
Topic #: 1
[All Certified Data Architect Questions]

Universal Containers (UC) owns a complex Salesforce org with many Apex classes, triggers, and automated processes that will modify records if available. UC has identified that, in its current development state, UC runs chance of encountering race conditions on the same record.
What should a data architect recommend to guarantee that records are not being updated at the same time?

  • A. Embed the keywords FOR UPDATE after SOQL statements.
  • B. Refactor or optimize classes and triggers for maximum CPU performance.
  • C. Migrate programmatic logic to processes and flows.
  • D. Disable classes or triggers that have the potential to obtain the same record.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
lizbette
6 months, 4 weeks ago
Selected Answer: A
A - see locking records, which can be achieved in Apex by using "FOR UPDATE" https://developer.salesforce.com/docs/atlas.en-us.248.0.apexcode.meta/apexcode/langCon_apex_locking_records.htm
upvoted 2 times
...
vishalwow
10 months, 3 weeks ago
Selected Answer: A
Answer is A https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_for_update.htm
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...