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

Actual exam question for Salesforce's Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) exam
Question #: 107
Topic #: 2
[All Salesforce Certified B2C Commerce Cloud 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
Denise
4 days ago
I think D is the best choice here.
upvoted 0 times
...
Monte
9 days ago
I feel like Logger.debug could be useful, but it might not be visible enough for troubleshooting later on.
upvoted 0 times
...
Rodolfo
14 days ago
I’m not entirely sure, but Logger.error seems too strong for just an unexpected response.
upvoted 0 times
...
Kasandra
19 days ago
I remember practicing a question like this, and I think Logger.info is too casual for unexpected outcomes.
upvoted 0 times
...
Deandrea
24 days 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