ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 55 - Certified B2C Commerce Developer discussion

Report
Export

A Digital Developer has created a new PaymentForm controller that requires communication with the server and must be made using the HTTPS protocol.

Which code sample should the Developer use to make sure that HTTPS is used?

A.
exports.PaymentForm = guard.ensure(['http', 'post', 'loggedIn'], handlePaymentForm);
Answers
A.
exports.PaymentForm = guard.ensure(['http', 'post', 'loggedIn'], handlePaymentForm);
B.
exports.PaymentForm = guard.expose(['post', 'loggedIn'], handlePaymentForm);
Answers
B.
exports.PaymentForm = guard.expose(['post', 'loggedIn'], handlePaymentForm);
C.
exports.PaymentForm = guard.httpsPost(handlePaymentForm);
Answers
C.
exports.PaymentForm = guard.httpsPost(handlePaymentForm);
D.
exports.PaymentForm = guard.ensure(['https', 'post', 'loggedIn'], handlePaymentForm);
Answers
D.
exports.PaymentForm = guard.ensure(['https', 'post', 'loggedIn'], handlePaymentForm);
Suggested answer: D

Explanation:

Reference: https://documentation.b2c.commercecloud.salesforce.com/DOC1/index.jsp?topic=%2Fcom.demandware.dochelp%2Fjsdoc%2Fdist%2Fjs%2Fserver%2Fapp_storefront_controllers_cartridge_controllers_PaymentInstruments.js.html

asked 23/09/2024
asdf asdf
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first