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 Administrators Accredited Professional (AP-201) Exam - Topic 3 Question 64 Discussion

Actual exam question for Salesforce's B2B Commerce for Administrators Accredited Professional (AP-201) exam
Question #: 64
Topic #: 3
[All B2B Commerce for Administrators Accredited Professional (AP-201) Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: C, D

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


Contribute your Thoughts:

0/2000 characters
Michal
3 months ago
Really? I’m surprised Apex class is considered a unit!
upvoted 0 times
...
Rikki
3 months ago
Lightning component load is not a unit, just a UI thing.
upvoted 0 times
...
Francine
3 months ago
Wait, I thought web service invocations counted too?
upvoted 0 times
...
Elise
4 months ago
Totally agree, those are the discrete units!
upvoted 0 times
...
Shaniqua
4 months ago
Validation rule and Apex class are the ones.
upvoted 0 times
...
Deeanna
4 months ago
Lightning component loads feel more like UI elements, so I'm leaning towards Apex class and web service invocation for this one.
upvoted 0 times
...
Lavina
4 months ago
Validation rules seem like they might be part of the process, but I can't recall if they count as discrete units in the logs.
upvoted 0 times
...
Leila
4 months ago
I practiced a similar question last week, and I believe web service invocations are also counted as discrete units.
upvoted 0 times
...
Ranee
5 months ago
I think I remember that Apex classes are definitely considered discrete units of work, but I'm not sure about the second one.
upvoted 0 times
...
Oren
5 months ago
Based on my understanding, the correct answer is validation rule and web service invocation. Those are the two discrete units of work within a transaction.
upvoted 0 times
...
Matthew
5 months ago
I'm pretty confident that Lightning component load and Apex class are also considered discrete units of work within a transaction. I'll mark those two.
upvoted 0 times
...
Chauncey
5 months ago
Okay, let's see. I know validation rules and web service invocations are definitely part of a transaction, but I'm not sure about the other options.
upvoted 0 times
...
Abraham
5 months ago
Hmm, this one seems tricky. I'll need to think carefully about the different code units within a transaction.
upvoted 0 times
...
Shawnee
5 months ago
I'm a bit confused on this one. I'm not sure if all the options are considered discrete units of work. I'll need to review my notes to be sure.
upvoted 0 times
...
Rutha
5 months ago
I'm pretty confident this is asking for the `sudo docker load -i YOUR_DOCKER_FILE.tar` command. That's the standard way to manually load Docker images, even in an air-gapped setup.
upvoted 0 times
...
Cruz
5 months ago
No problem, I've done this kind of thing before. I'll just follow the steps in the first answer choice - that seems like the clearest way to apply the effect.
upvoted 0 times
...
Stefany
5 months ago
Hmm, I'm a little confused. I'm not sure if I should just wait for syslogd to notice the updated configuration file or if I need to do something more active. I'll have to review the material on syslogd again before answering this.
upvoted 0 times
...

Save Cancel