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 Certified B2C Commerce Developer (Comm-Dev-101) Exam - Topic 2 Question 107 Discussion

A developer working on a simple web service integration is asked to add appropriate logging to allow futuretroubleshooting.According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?
D) Logger.warn('Unexpected service response')
A) Logger.info('Unexpected service response')
B) Logger.debug('Unexpected service response')
C) Logger.error('Unexpected service response')

Salesforce Certified B2C Commerce Developer (Comm-Dev-101) Exam - Topic 2 Question 107 Discussion

Actual exam question for Salesforce's Salesforce Certified B2C Commerce Developer (Comm-Dev-101) exam
Question #: 107
Topic #: 2
[All Salesforce Certified B2C Commerce Developer (Comm-Dev-101) Questions]

A developer working on a simple web service integration is asked to add appropriate logging to allow future

troubleshooting.

According to logging best practices, which code should the developer write to log when an operation succeeds, but has an unexpected outcome that may produce side effects?

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Gayla
13 days ago
I vote for D too. Warns about potential issues without being too severe.
upvoted 0 times
...
Reid
18 days ago
I prefer A. It's good to log info for unexpected responses.
upvoted 0 times
...
Temeka
23 days ago
I think D is the best choice. It's a warning, not an error.
upvoted 0 times
...
Stephaine
29 days ago
I’m surprised this is even a question; D is clearly the right answer!
upvoted 0 times
...
Myra
1 month ago
Wait, why not just use A? Seems simpler.
upvoted 0 times
...
Erick
1 month ago
But isn't it more of an info level situation?
upvoted 0 times
...
Shelba
1 month ago
Totally agree, D makes sense for unexpected outcomes.
upvoted 0 times
...
Denise
2 months ago
I think D is the best choice here.
upvoted 0 times
...
Monte
2 months ago
I feel like Logger.debug could be useful, but it might not be visible enough for troubleshooting later on.
upvoted 0 times
...
Rodolfo
2 months ago
I’m not entirely sure, but Logger.error seems too strong for just an unexpected response.
upvoted 0 times
...
Kasandra
2 months ago
I remember practicing a question like this, and I think Logger.info is too casual for unexpected outcomes.
upvoted 0 times
...
Deandrea
2 months ago
I think it might be Logger.warn because it indicates something unexpected happened, but it’s not a full error.
upvoted 0 times
...

Save Cancel