Deal of The Day! 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 5 Question 66 Discussion

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

Given the following snippet:

Server.append( 'Show' , function (req, res, next) )

According to SFRA, which two options shows a correct way to complete the code above in order to provide

data to the response using a controller?

Choose 2 answers

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Shelba
2 months ago
I'm a bit torn between A and C, but I think I'll go with A. Setting the viewData feels more explicit and easier to maintain.
upvoted 0 times
Kerry
6 days ago
User 3: Yeah, A seems more explicit and easier to maintain compared to the other options.
upvoted 0 times
...
Fletcher
12 days ago
User 2: I agree, A looks like the better choice for providing data to the response.
upvoted 0 times
...
Lino
22 days ago
User 1: I think A is the correct option. It sets the viewData with myDataObject.
upvoted 0 times
...
...
Lindsey
2 months ago
Haha, Option D looks like someone just mashed the keyboard. I don't think that's going to work at all!
upvoted 0 times
...
Tanesha
2 months ago
I'm leaning towards Option C. Directly passing the data object to the render function seems more concise and straightforward.
upvoted 0 times
Chaya
3 days ago
User2: I agree with User1. Option A looks like the correct way to pass data to the response.
upvoted 0 times
...
Beula
1 months ago
User1: I think Option A is correct. Setting viewData and then rendering the page.
upvoted 0 times
...
...
Andra
2 months ago
Option A looks good to me. Setting the viewData and then rendering the page seems like the right way to go.
upvoted 0 times
Jarod
1 months ago
User4: Option C seems like a good choice too, passing the data object while rendering the page.
upvoted 0 times
...
Dan
1 months ago
User3: I think Option B could also work, setting the view data before rendering the page.
upvoted 0 times
...
Tammy
1 months ago
User 2
upvoted 0 times
...
Corinne
1 months ago
User 1
upvoted 0 times
...
Marsha
2 months ago
User2: I agree, that's the correct way to provide data to the response using a controller.
upvoted 0 times
...
Gregoria
2 months ago
User1: Option A looks good to me. Setting the viewData and then rendering the page seems like the right way to go.
upvoted 0 times
...
...
Laila
2 months ago
I'm not sure, but I think A and C could also be correct.
upvoted 0 times
...
Lindsey
2 months ago
I agree with Teri, A and B seem to be the correct options.
upvoted 0 times
...
Teri
2 months ago
I think the correct answers are A and B.
upvoted 0 times
...

Save Cancel