ExamGecko
Question list
Search
Search

List of questions

Search

Question 241 - Certified B2B Commerce Administrator discussion

Report
Export

Which two are considered discrete units of work (code units) within a transaction in the debug logs?

A.
Validation rule
Answers
A.
Validation rule
B.
Lightning component load
Answers
B.
Lightning component load
C.
Web service invocation
Answers
C.
Web service invocation
D.
Apex class
Answers
D.
Apex class
Suggested answer: C, D

Explanation:

Discrete units of work (code units) are blocks of code that execute as a single operation and can be rolled back if an error occurs. Within a transaction in the debug logs, the following are considered discrete units of work:

Web service invocation. This is a code unit that calls an external web service using SOAP or REST protocols. The web service invocation can be synchronous or asynchronous, and it can return a response or a fault. The debug logs show the request and response details, as well as the execution time and heap size of the code unit.

Apex class. This is a code unit that defines a custom class with variables, methods, constructors, and other elements. The Apex class can be invoked by triggers, Visualforce pages, Lightning components, or other classes. The debug logs show the entry and exit points, as well as the execution time and heap size of the code unit.Reference:

Execution Governors and Limits

Debug Log Analysis

asked 23/09/2024
Matthew Wagner
30 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first