Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Accredited B2B Commerce Developer Professional (AP-202) Exam - Topic 5 Question 78 Discussion

Posted by Shayne on Apr 30, 2025 at 06:09 PM

Which three are considered code units, or discrete units of work within a transaction in the debug logs?

Suggested Answer: B, C, E

In the context of Salesforce debug logs, code units represent discrete units of work within a transaction. Apex classes (B), Web service invocations (C), and Workflow invocations (E) are considered code units as they encapsulate specific operations or sets of logic that can be executed as part of a transaction. Validation rules (A) and the loading of Lightning components (D) are not considered discrete units of work in the same way, as they are part of the declarative interface and front-end framework, respectively. For more details on how Salesforce handles transactions and debug logs, refer to the Salesforce Developer Documentation: Salesforce Developer Documentation on Transactions and Debug Logs.


Get Premium Salesforce Accredited B2B Commerce Developer Professional (AP-202) Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
27 comments · newest first
TW
Twanna 10 months ago
Workflow invocations are a must-have too!
HA
Harrison 11 months ago
Web service invocation? Really?
VA
Van 11 months ago
Validation rule is definitely one of them.
RO
Rozella 11 months ago
I think Apex class is also included.
JA
Janella 11 months ago
Wait, are Lightning components not considered code units?
AR
Arthur 11 months ago
I believe workflow invocations are also part of the code units. I just can't recall if Lightning component loads fit in there too.
MA
Margot 12 months ago
I'm a bit confused about web service invocations. I feel like they could be considered code units, but I need to double-check.
DA
Dante 12 months ago
I remember practicing a question similar to this, and I think Apex classes are definitely included as code units.
JO
Jordan 1 year ago
I think validation rules might be one of the code units, but I'm not entirely sure about the others.
NA
Na 1 year ago
Hmm, I'm a bit unsure about this one. I know Apex classes and web service invocations are code units, but I'm not sure about the other options. I'll have to review the debug log documentation to be sure.
MI
Ming 1 year ago
I'm leaning towards Apex class, web service invocation, and workflow invocations as the three code units mentioned in the question. The wording about "discrete units of work within a transaction" makes me think workflow invocations would be included.
JO
Johnson 1 year ago
I'm pretty confident that validation rules, Apex classes, and web service invocations are all considered code units in the debug logs. The other options seem less clear to me.
AL
Alida 1 year ago
Okay, let me think this through. I know Apex classes and web service invocations are definitely code units, but I'm not sure about the others.
LY
Lynette 1 year ago
This question seems straightforward, but I want to double-check the terminology around "code units" and "transactions" in the debug logs.
EU
Eun 1 year ago
I'm not sure about C and D, they might not be considered code units.
DO
Dominque 1 year ago
I agree with Kate, those are the ones that execute in the debug logs.
KA
Kate 1 year ago
I think A, B, and E are code units.
AN
Antonio 1 year ago
Haha, I bet the person who wrote this question has a wicked sense of humor. 'Code units' - sounds like something straight out of a sci-fi movie! Anyway, I'm going with B, C, and E. Can't go wrong with the classic Apex, web services, and workflows, right?
ED
Eden 1 year ago
↳ replying to Antonio
I agree, those are the most common code units in transactions.
MA
Maryann 1 year ago
↳ replying to Antonio
Yeah, those are the ones that make sense to me too.
LO
Lottie 1 year ago
↳ replying to Antonio
I think you're right, B, C, and E are the code units.
SH
Shoshana 1 year ago
I'm pretty sure web service invocations and workflow invocations are definitely code units. But I'm not sure about the Apex class - is that considered a separate unit or part of the overall transaction? Ah, the mysteries of debug logs!
RU
Rutha 1 year ago
Hmm, I think B, C, and E are the code units here. Validation rules and Lightning components are not really 'units of work' in the transaction sense.
RE
Regenia 1 year ago
↳ replying to Rutha
That makes sense, thanks for clarifying.
DI
Dick 1 year ago
↳ replying to Rutha
So, the correct ones are Apex class, Web service invocation, and Workflow invocations.
LO
Lorriane 1 year ago
↳ replying to Rutha
I agree, validation rules and lightning components are not really units of work.
FE
Felice 1 year ago
↳ replying to Rutha
I think B, C, and E are the code units here.
0/2000 characters

Save Cancel