BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam B2C Commerce Developer Topic 1 Question 78 Discussion

Actual exam question for Salesforce's B2C Commerce Developer exam
Question #: 78
Topic #: 1
[All B2C Commerce Developer Questions]

A controller route in the SFRA base looks as follows:

In order to extend this route using prepared ( ), what should the developer consider?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

King
28 days ago
This question is a great way to test our understanding of SFRA routing. I'm glad they're not asking us to write code from scratch - that would be a real brain-buster!
upvoted 0 times
Dorinda
7 days ago
B) Specify any middleware functions needed for the new functionality using only those called by the base route.
upvoted 0 times
...
Alana
13 days ago
A) Specify any middleware functions needed for the new functionality.
upvoted 0 times
...
...
Layla
1 months ago
Haha, I love how the question is phrased. It's almost like they're trying to trip us up with those silly answer choices. But B is clearly the way to go here.
upvoted 0 times
...
Sharita
1 months ago
I was a bit confused by the question at first, but after looking at the code, I agree that B is the best option. Removing next() would be a bad idea.
upvoted 0 times
Dorothy
2 days ago
I agree, removing next() would cause issues. B is the safest option.
upvoted 0 times
...
Karma
9 days ago
I think B is the correct answer. It makes sense to only use middleware functions called by the base route.
upvoted 0 times
...
...
Yun
1 months ago
Definitely, B is the correct answer. We should only specify the middleware functions that are called by the base route, not any other functions.
upvoted 0 times
Felix
8 days ago
By following option B, we ensure that the extended route remains streamlined and optimized.
upvoted 0 times
...
Kathrine
16 days ago
It's important to maintain the integrity of the base route by not adding unnecessary middleware functions.
upvoted 0 times
...
Cecily
1 months ago
I agree, B is the way to go. We need to stick to the middleware functions called by the base route.
upvoted 0 times
...
Hollis
1 months ago
Exactly, specifying only the necessary middleware functions keeps the route clean and efficient.
upvoted 0 times
...
...
Holley
2 months ago
I think removing next(); on the new route is also important to ensure only the route's middleware functions execute.
upvoted 0 times
...
Micheal
2 months ago
I agree with Bambi, adding middleware functions is important for extending the route.
upvoted 0 times
...
Bambi
2 months ago
I think the developer should consider specifying any middleware functions needed for the new functionality.
upvoted 0 times
...
Keneth
2 months ago
The key here is to consider the middleware functions used by the base route. Extending the route using prepared() will require adding any additional middleware needed for the new functionality.
upvoted 0 times
Thomasena
1 months ago
C) Remove next(); on the new route so only the route's middleware functions execute.
upvoted 0 times
...
Julieta
1 months ago
B) Specify any middleware functions needed for the new functionality using only those called by the base route.
upvoted 0 times
...
Deangelo
1 months ago
A) Specify any middleware functions needed for the new functionality.
upvoted 0 times
...
...

Save Cancel