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 Architect Topic 2 Question 23 Discussion

Actual exam question for Salesforce's B2C Commerce Architect exam
Question #: 23
Topic #: 2
[All B2C Commerce Architect Questions]

While validating a LINK Cartridge for inclusion into the solution, an Architect notices that the UNK cartridge documentation requires the Architect to add a script node to a Pipeline in the storefront cartridge. The script is also a valid CommonJS module.

Which approach can the Architect use to Integrate this cartridge into a site that uses Controllers only?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Lai
1 months ago
I bet the Architect who wrote this question is just sitting back and laughing at all the confused candidates. 'Just use the right approach, people!'
upvoted 0 times
Eden
11 days ago
C) Add the script that is required via a Module, exports statement in the Controller add the appropriate arguments, and execute the correct method.
upvoted 0 times
...
Terry
14 days ago
B) Add the script that is required via a require statement in the Controller, add the appropriate arguments, and execute the correct method.
upvoted 0 times
...
...
Alayna
2 months ago
Importing scripts with import$cript? That's a new one on me. Might as well throw in some jelly beans while we're at it.
upvoted 0 times
Laquanda
11 days ago
I'm not sure about importing scripts with import$cript either, but it seems like using a require statement or a Module exports statement in the Controller would be the way to go.
upvoted 0 times
...
Yolando
28 days ago
C) Add the script that is required via a Module, exports statement in the Controller, add the appropriate arguments, and execute the correct method.
upvoted 0 times
...
Coral
30 days ago
B) Add the script that is required via a require statement in the Controller, add the appropriate arguments, and execute the correct method.
upvoted 0 times
...
...
Laila
2 months ago
Ooh, option C with the Module.exports statement sounds interesting. I'll have to dig into that one a bit more.
upvoted 0 times
Rebbecca
1 months ago
User 2
upvoted 0 times
...
Cheryl
1 months ago
User 1
upvoted 0 times
...
...
Carmela
2 months ago
Ah, the old 'copy and paste' approach in option A is tempting, but that's a big no-no. We gotta do this the right way, folks.
upvoted 0 times
...
Xuan
2 months ago
Hmm, looks like we need to integrate a CommonJS module into a Controller-only site. This is tricky, but I think option B might be the way to go.
upvoted 0 times
...
Hyman
2 months ago
I'm not sure, but I think adding the script via a Module, exports statement could also work.
upvoted 0 times
...
Franchesca
2 months ago
I agree with Kerrie. Using a require statement keeps the code clean and organized.
upvoted 0 times
...
Kerrie
2 months ago
I think the best approach is to add the script via a require statement in the Controller.
upvoted 0 times
...
Loreen
2 months ago
I'm not sure, but I think adding the script via a Module, exports statement in the Controller could also work. It's worth considering.
upvoted 0 times
...
Billye
2 months ago
I agree with Rene. It makes sense to use a require statement to integrate the cartridge into a site that uses Controllers only.
upvoted 0 times
...
Rene
2 months ago
I think the best approach would be to add the script via a require statement in the Controller.
upvoted 0 times
...

Save Cancel