New Year Sale 2026! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce CCM-101 Exam - Topic 6 Question 53 Discussion

Actual exam question for Salesforce's CCM-101 exam
Question #: 53
Topic #: 6
[All CCM-101 Questions]

There is a business requirement that a custom controller in app_custom_my_cartridge invokes the calculateTax(basket) function of the dw, order calculateTex hook that is defined in app_storefront_base. How can the developer implement this call?

A)

B)

C)

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

0/2000 characters
Nydia
3 months ago
Not sure about Option C, it feels a bit convoluted.
upvoted 0 times
...
Graciela
3 months ago
I agree with Harris, A seems straightforward.
upvoted 0 times
...
Charlie
3 months ago
Wait, can you really call a hook like that? Seems off.
upvoted 0 times
...
Amie
4 months ago
I think Option B is better, it handles errors more gracefully.
upvoted 0 times
...
Harris
4 months ago
Option A looks solid, it directly calls the function.
upvoted 0 times
...
Dacia
4 months ago
If I recall correctly, we might need to use the `require` statement to include the base cartridge before calling the function, but I’m not 100% sure.
upvoted 0 times
...
Frank
4 months ago
I’m a bit confused about the differences between the options. I feel like I need to review how to properly call functions from different cartridges.
upvoted 0 times
...
Lizbeth
4 months ago
I remember practicing a similar question about invoking hooks in custom cartridges. I think it might involve using the correct syntax for the hook.
upvoted 0 times
...
Tammara
5 months ago
I think we need to ensure that the custom controller properly references the calculateTax function, but I'm not entirely sure how to structure that call.
upvoted 0 times
...
Curt
5 months ago
This is a good test of our understanding of the SFRA framework. I'll need to double-check my knowledge, but I'm feeling confident I can figure this out.
upvoted 0 times
...
Shad
5 months ago
Based on the code snippets, I think Option B is the way to go. It looks like the most straightforward way to invoke the calculateTax function.
upvoted 0 times
...
Raina
5 months ago
I'm a bit confused by the wording of the question. Can someone clarify what the "dw, order calculateTex hook" is exactly?
upvoted 0 times
...
Tula
5 months ago
Okay, I think I've got a handle on this. Let me walk through the options and see which one makes the most sense.
upvoted 0 times
...
Page
5 months ago
Hmm, this looks like a tricky one. I'll need to carefully review the code snippets and think through the different options.
upvoted 0 times
...
Peggie
5 months ago
I'm a bit confused here. Do we need to throw an error or continue the flow run? I'll have to double-check the details.
upvoted 0 times
...
Vicente
1 year ago
Options A and C both look good, but I'm feeling a bit taxed trying to decide. Maybe I need to calculate the pros and cons of each.
upvoted 0 times
...
Omer
1 year ago
Hmm, I wonder if the calculateTax() function accepts any special parameters. Better double-check the documentation!
upvoted 0 times
...
Lynette
1 year ago
Option A seems a bit overkill. Why create a new module when we can just call the existing calculateTax() function?
upvoted 0 times
Willie
1 year ago
User 3: Let's go with Option B then, it seems like the simpler solution.
upvoted 0 times
...
Lauran
1 year ago
User Comment: I agree, we should just call the existing function.
upvoted 0 times
...
Trinidad
1 year ago
Option A seems like a lot of extra work.
upvoted 0 times
...
...
Melodie
1 year ago
I'm not sure about Option B. Doesn't that involve creating a new hook instead of using the existing one?
upvoted 0 times
Evangelina
1 year ago
Yes, Option A seems like the right way to implement the call without creating a new hook.
upvoted 0 times
...
Leonora
1 year ago
I think Option A would be better since it directly calls the existing calculateTax hook.
upvoted 0 times
...
Patria
1 year ago
Option B involves creating a new hook, so it might not be the best choice.
upvoted 0 times
...
...
France
1 year ago
Option C looks like the way to go. Invoking the calculateTax() function from the custom controller seems straightforward.
upvoted 0 times
Jovita
1 year ago
Let's go with Option C then.
upvoted 0 times
...
Isadora
1 year ago
I agree, invoking the calculateTax() function from the custom controller seems like the right approach.
upvoted 0 times
...
Tashia
1 year ago
Yeah, it looks like the most straightforward way to implement the call.
upvoted 0 times
...
Jeannetta
1 year ago
I think Option C is the best choice.
upvoted 0 times
...
...
Ty
1 year ago
That's a good point, but I still think Option A is the most straightforward solution for this requirement.
upvoted 0 times
...
Rikki
1 year ago
I disagree, I believe Option B is the best choice because it provides a more efficient way to invoke the calculateTax function.
upvoted 0 times
...
Ty
1 year ago
I think the developer can implement the call by using Option A.
upvoted 0 times
...

Save Cancel