New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

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

Actual exam question for Salesforce's B2B Commerce for Developers Accredited Professional (AP-202) exam
Question #: 78
Topic #: 5
[All B2B Commerce for Developers Accredited Professional (AP-202) Questions]

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

Show Suggested Answer Hide Answer
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.


Contribute your Thoughts:

0/2000 characters
Twanna
2 months ago
Workflow invocations are a must-have too!
upvoted 0 times
...
Harrison
2 months ago
Web service invocation? Really?
upvoted 0 times
...
Van
3 months ago
Validation rule is definitely one of them.
upvoted 0 times
...
Rozella
3 months ago
I think Apex class is also included.
upvoted 0 times
...
Janella
3 months ago
Wait, are Lightning components not considered code units?
upvoted 0 times
...
Arthur
3 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.
upvoted 0 times
...
Margot
3 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.
upvoted 0 times
...
Dante
4 months ago
I remember practicing a question similar to this, and I think Apex classes are definitely included as code units.
upvoted 0 times
...
Jordan
4 months ago
I think validation rules might be one of the code units, but I'm not entirely sure about the others.
upvoted 0 times
...
Na
4 months 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.
upvoted 0 times
...
Ming
4 months 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.
upvoted 0 times
...
Johnson
4 months 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.
upvoted 0 times
...
Alida
5 months 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.
upvoted 0 times
...
Lynette
5 months ago
This question seems straightforward, but I want to double-check the terminology around "code units" and "transactions" in the debug logs.
upvoted 0 times
...
Eun
9 months ago
I'm not sure about C and D, they might not be considered code units.
upvoted 0 times
...
Dominque
9 months ago
I agree with Kate, those are the ones that execute in the debug logs.
upvoted 0 times
...
Kate
9 months ago
I think A, B, and E are code units.
upvoted 0 times
...
Antonio
9 months 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?
upvoted 0 times
Eden
8 months ago
I agree, those are the most common code units in transactions.
upvoted 0 times
...
Maryann
9 months ago
Yeah, those are the ones that make sense to me too.
upvoted 0 times
...
Lottie
9 months ago
I think you're right, B, C, and E are the code units.
upvoted 0 times
...
...
Shoshana
9 months 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!
upvoted 0 times
...
Rutha
9 months 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.
upvoted 0 times
Regenia
8 months ago
That makes sense, thanks for clarifying.
upvoted 0 times
...
Dick
8 months ago
So, the correct ones are Apex class, Web service invocation, and Workflow invocations.
upvoted 0 times
...
Lorriane
8 months ago
I agree, validation rules and lightning components are not really units of work.
upvoted 0 times
...
Felice
9 months ago
I think B, C, and E are the code units here.
upvoted 0 times
...
...

Save Cancel