ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 115 - Certified B2C Commerce Developer discussion

Report
Export

A developer needs to perform the same additional checks before completing multiple routes in a custom controller, in order to decide whether to render a template or redirect the user to a different page.

According to SFRA best practices, what is the correct approach to improve code reusability in this scenario?

A.
Replace the existing routes by creating a controller in separate new cartridge
Answers
A.
Replace the existing routes by creating a controller in separate new cartridge
B.
Use the superModule property in the existing routes to extend their functionality
Answers
B.
Use the superModule property in the existing routes to extend their functionality
C.
Append a new function to all the existing routes with the server module
Answers
C.
Append a new function to all the existing routes with the server module
D.
Define a new middleware function and use it in the existing routes
Answers
D.
Define a new middleware function and use it in the existing routes
Suggested answer: D
asked 23/09/2024
Gudni Hauksson
42 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first