The following sample code is NOT providing the desired results. The Digital Developer needs to add an entry to the logs to debug the problem.

Which statement correctly adds a log entry?
Suggested Answer: A
Get Premium CCM-101 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
40 comments · newest first
ER
Erick
11 months ago
I doubt option C is correct; it’s more for faults, not errors.
NA
Naomi
11 months ago
I'm surprised there's no option for a warning log here.
AM
Amie
12 months ago
Wait, isn't option A also a valid way to log?
KI
King
12 months ago
Definitely agree with you, D seems most appropriate!
DU
Dulce
12 months ago
I think option D is the right choice for logging errors.
LA
Lajuana
1 year ago
I have a feeling that Logger.fault is more for critical issues, so I’m leaning towards Logger.error as well, but I’m not completely certain.
BE
Beula
1 year ago
I’m a bit confused about Logger.getErrorLog().log; it seems like it could work, but I don’t recall using that method in our exercises.
TR
Troy
1 year ago
I practiced a similar question where we had to log errors, and I feel like Logger.error might be the best option since it seems more appropriate for this situation.
SH
Shad
1 year ago
I think I remember that Logger.exception is used for catching exceptions, but I'm not sure if that's the right choice here.
BE
Benedict
1 year ago
I'm feeling pretty confident about this one. The prompt clearly states that it may take several months for the insurer to investigate and establish a case reserve, so I think the answer is True.
JA
Janey
1 year ago
Aftersales Support feels out of place here, right? I can't recall seeing it linked to migration strategies in my studies.
DA
Dahlia
1 year ago
I'm pretty sure the answer is C. I remember learning that you can make a non-reusable copy of a reusable transformation by selecting it and holding down Ctrl while dragging it into the mapping.
TE
Teresita
1 year ago
D is the way to go. Though I'm curious, why is the code not providing the desired results in the first place? Gotta love those tricky certification questions!
AL
Allene
1 year ago
D is the way to go. Though I'm curious, why is the code not providing the desired results in the first place? Gotta love those tricky certification questions!
OL
Olen
1 year ago
D) Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
AS
Ashleigh
1 year ago
C) Logger.fault('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
CH
Chandra
1 year ago
User3: Maybe there's an issue with the paymentInstruments variable.
BE
Beatriz
1 year ago
User2: I agree, D is the correct option.
JU
Judy
1 year ago
B) Logger.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
AG
Agustin
1 year ago
User1: D) Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
NO
Novella
1 year ago
A) Logger.exception('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
AM
Amie
1 year ago
Haha, the question is so straightforward. If you can't figure out the right way to log an error, you might as well just give up on this exam!
GL
Glory
1 year ago
I think option B is correct. Logger.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments) seems more comprehensive than just using Logger.error().
NO
Noble
1 year ago
Logger.getErrorLog().log() seems like the right way to go in this situation.
WH
Whitney
1 year ago
I think option B is the most appropriate one for debugging the issue.
DE
Detra
1 year ago
I would go with option B as well, it seems like the most detailed option.
SH
Sharika
1 year ago
I agree, option B looks like the best choice for adding a log entry.
DE
Deeanna
1 year ago
I think option B is the most appropriate for adding a log entry.
JE
Jeanice
1 year ago
I agree, option B looks like the best choice.
CL
Claribel
2 years ago
Why do you think D is the correct answer?
PR
Providencia
2 years ago
I disagree, I believe the correct answer is D.
CL
Claribel
2 years ago
I think the answer is B.
SE
Serita
2 years ago
The correct answer is D. Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments). This is the appropriate way to log an error message in the code.
NO
Novella
1 year ago
I'm positive, it's D) Logger.error.
OW
Owen
1 year ago
Are you sure? I believe it's B) Logger.getErrorLog().log.
GL
Glennis
1 year ago
No, the correct answer is D) Logger.error.
SH
Shoshana
2 years ago
I think the correct answer is A) Logger.exception.
GE
Gerald
2 years ago
I'm not sure, but I think B could also be a valid option.
RY
Ryan
2 years ago
I agree with Shala, Logger.error seems like the right choice.
SH
Shala
2 years ago
I think the correct answer is D.