ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 24 - Certified B2C Commerce Developer discussion

Report
Export

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?

A.
Logger.exception('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
Answers
A.
Logger.exception('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
B.
Logger.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
Answers
B.
Logger.getErrorLog().log('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
C.
Logger.fault('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
Answers
C.
Logger.fault('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
D.
Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
Answers
D.
Logger.error('Unable to find Apple Pay payment instrument for order.'+paymentInstruments);
Suggested answer: A
asked 23/09/2024
Joseph McCray
43 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first