ExamGecko
Question list
Search
Search

List of questions

Search

Question 27 - Certified Order Management Administrator discussion

Report
Export

What ate two reasons an admin should choose an Event over a Trigger when it comes to building out a solution?

A.
Event order is not guaranteed within a topic
Answers
A.
Event order is not guaranteed within a topic
B.
Events are asynchronous
Answers
B.
Events are asynchronous
C.
Events cannot be subscribed lo in a batch for bulk operations
Answers
C.
Events cannot be subscribed lo in a batch for bulk operations
D.
Events do not participate in a transaction scope
Answers
D.
Events do not participate in a transaction scope
Suggested answer: B, D

Explanation:

Two reasons an admin should choose an Event over a Trigger when it comes to building out a solution are:

Events are asynchronous. This means that events are processed in the background, without blocking the main execution thread. This can improve the performance and user experience of the solution, as well as avoid governor limits and timeouts.

Events do not participate in a transaction scope. This means that events are independent of the transaction that publishes them, and they do not affect the rollback or commit behavior of the transaction. This can avoid unwanted side effects and errors in the solution, as well as decouple the logic from the data.

Verified

Reference: https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_intro.htm https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_considerations.htm

asked 23/09/2024
Andrew Staton
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first