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 1 Question 83 Discussion

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

What are two guidelines for logging that are used within the core Salesforce

B2B Commerce product? (2 answers)

Show Suggested Answer Hide Answer
Suggested Answer: B, C

Two guidelines for logging that are used within the core Salesforce B2B Commerce product are:

The close method of ccrz.ccLog must be called at the end of the remote action. This method will flush the log messages to the browser console or to a custom object, depending on the logging mode. If this method is not called, the log messages may not be displayed or saved properly.

No calls to ccrz.ccLog can be made before cc_CallContext.initRemoteContext is executed. This method will initialize the call context object, which contains information such as the current user, cart, storefront, and configuration settings. These information are required for logging, so calling ccrz.ccLog before initializing the call context will result in an error. Salesforce Reference:B2B Commerce and D2C Commerce Developer Guide,Logging


Contribute your Thoughts:

0/2000 characters
Stevie
2 months ago
Logging on both sides? Seems redundant, D doesn't make sense.
upvoted 0 times
...
Carolann
2 months ago
I thought A was important too, but I guess not.
upvoted 0 times
...
Mollie
2 months ago
Definitely B and C! Those are key.
upvoted 0 times
...
Norah
3 months ago
I agree with B, but C seems a bit strict.
upvoted 0 times
...
Sherman
3 months ago
Wait, logging before initRemoteContext? That sounds risky!
upvoted 0 times
...
Leah
3 months ago
I think it’s not okay to log data on the server if it’s already logged on the client side, but I’m a bit confused about that one.
upvoted 0 times
...
Willis
3 months ago
I feel like I studied that no calls to ccrz.ccLog can happen before initializing the remote context. That seems important!
upvoted 0 times
...
Desmond
4 months ago
I remember something about logging in loops, but I can't recall if it's a guideline or just a best practice.
upvoted 0 times
...
Anglea
4 months ago
I think one of the guidelines is about calling the close method of ccrz.ccLog at the end of the remote action, but I'm not completely sure.
upvoted 0 times
...
Nieves
4 months ago
I've worked with the Salesforce B2B Commerce product before, so I'm feeling confident about this question. I'll review the options and select the two that best match the guidelines I'm familiar with.
upvoted 0 times
...
Carlee
4 months ago
This is a good opportunity to demonstrate my knowledge of the Salesforce B2B Commerce logging best practices. I'll be sure to select the two most relevant guidelines.
upvoted 0 times
...
Inocencia
4 months ago
Okay, I think I've got a handle on this. I'll focus on the key points about logging, like not logging sensitive data and making sure to call the close method.
upvoted 0 times
...
Kimberely
5 months ago
Hmm, I'm a bit confused by the wording of the question. I'll need to make sure I understand the core guidelines before selecting the answers.
upvoted 0 times
...
Sabra
5 months ago
This looks like a tricky one. I'll need to carefully read through the options and think about the guidelines for logging within the Salesforce B2B Commerce product.
upvoted 0 times
...
Alberto
5 months ago
I believe option B is correct because closing the log properly is essential for proper execution.
upvoted 0 times
...
Micaela
5 months ago
Option C seems wrong to me. Logging can definitely happen before cc_CallContext.initRemoteContext is executed.
upvoted 0 times
...
Erick
5 months ago
I'm pretty sure option B is correct. The close method of ccrz.ccLog must be called at the end of the remote action to ensure proper logging.
upvoted 0 times
Edda
1 month ago
True, My. But I still feel B and C are more critical for the core process.
upvoted 0 times
...
My
2 months ago
What about option A? Logging in loops can help track performance issues.
upvoted 0 times
...
Skye
2 months ago
I agree with you, Gaynell. Both B and C seem essential for proper logging.
upvoted 0 times
...
Gaynell
2 months ago
I think option C is also correct. It makes sense to initialize the context first.
upvoted 0 times
...
...
Vilma
6 months ago
I agree, it's crucial to follow the guidelines to ensure smooth operation of the product.
upvoted 0 times
...
Josphine
6 months ago
I think the guidelines for logging in Salesforce B2B Commerce are important for efficient debugging.
upvoted 0 times
...

Save Cancel