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 Certified B2C Commerce Cloud Developer (Comm-Dev-101) Exam - Topic 3 Question 81 Discussion

The developer has been given the following business requirement:The shipping method, Free Standard Ground Shipping' has an exclusion for products *lth category equals or is child of electronics-televisions.'The marketing department has scheduled a sale offering a ''Free Standard Ground Shipping'' method for brand XyzTv televisions for the next 3 months.What method accomplishes this while following best practices?
A) Extend the code in cartridge/models/shipping/shippingMethod.js using module, super Module and add an exception for the specified brand.
B) Extend the CheckoutShippingservices controller using module.superModule and add an exception for the specified brand
C) Create an allow list for the existing shipping method by adding a product exclusion for 'brand equals XyzTV' to the exclusion list for 'Free Standard Ground Shipping.'

Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) Exam - Topic 3 Question 81 Discussion

Actual exam question for Salesforce's Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) exam
Question #: 81
Topic #: 3
[All Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) Questions]

The developer has been given the following business requirement:

The shipping method, Free Standard Ground Shipping' has an exclusion for products *lth category equals or is child of electronics-televisions.'

The marketing department has scheduled a sale offering a ''Free Standard Ground Shipping'' method for brand XyzTv televisions for the next 3 months.

What method accomplishes this while following best practices?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Izetta
6 months ago
Totally agree with C, it’s straightforward!
upvoted 0 times
...
Chandra
6 months ago
Wait, can we really just add an exception like that?
upvoted 0 times
...
Malcolm
7 months ago
A seems a bit overkill for this situation.
upvoted 0 times
...
Fallon
7 months ago
I think B could work too, but not sure.
upvoted 0 times
...
Janine
7 months ago
Option C sounds like the best approach.
upvoted 0 times
...
Tina
7 months ago
I feel like we've seen similar questions before, and I think modifying the exclusion list might be the safest bet.
upvoted 0 times
...
Rolland
8 months ago
Creating an allow list seems like a straightforward solution, but I wonder if it covers all edge cases we talked about.
upvoted 0 times
...
Lizette
8 months ago
I think option B sounds familiar, but I can't recall if we practiced that specific controller extension.
upvoted 0 times
...
Hana
8 months ago
I remember we discussed extending the shipping method in class, but I'm not sure if that's the best approach here.
upvoted 0 times
...
Pamella
8 months ago
This is a good test of our understanding of module inheritance and overriding. I'll need to make sure I'm following best practices for extending the existing functionality.
upvoted 0 times
...
Rupert
8 months ago
I like the idea of creating an allow list for the existing shipping method. That seems like the most straightforward way to handle the brand-specific exception.
upvoted 0 times
...
Dominga
8 months ago
I'm a bit confused on the best practice here. Should I be modifying the existing shipping method or creating a new one?
upvoted 0 times
...
Halina
8 months ago
Okay, I think I've got a handle on this. I'll need to extend the existing shipping method code to add an exception for the XyzTV brand.
upvoted 0 times
...
Joana
8 months ago
Hmm, this seems like a tricky one. I'll need to carefully review the requirements and think through the best approach.
upvoted 0 times
...
Jesusita
1 year ago
This sounds like a classic case of 'the marketing team had a great idea, but they forgot to consult the developers'. Option C is definitely the way to go here. Extending the core code would be like trying to fit a square peg in a round hole - sure, you could do it, but it's going to be a mess.
upvoted 0 times
Trevor
1 year ago
Sure, you could do it, but it's going to be a mess.
upvoted 0 times
...
Lizbeth
1 year ago
Extending the core code would be like trying to fit a square peg in a round hole.
upvoted 0 times
...
Lera
1 year ago
Option C is definitely the way to go here.
upvoted 0 times
...
...
Kizzy
1 year ago
I bet the marketing team is just excited to offer 'free shipping' on their TVs. Who needs to worry about the details, right? Option C is the way to go, though. Hacking the core code would be like trying to assemble IKEA furniture with a hammer - sure, you could do it, but it's not going to end well.
upvoted 0 times
...
Felicidad
1 year ago
Ah, the classic 'marketing wants something, but the developer has to make it work' scenario. Option C is the clear winner here. Extending the core code just sounds like a recipe for future headaches. Now, if only the marketing team could come up with a sale that doesn't require any special exceptions...
upvoted 0 times
Eulah
1 year ago
Marketing always wants something special, but we have to make it work. Option C it is!
upvoted 0 times
...
Emmanuel
1 year ago
I agree, extending the core code seems risky. Let's keep it simple with Option C.
upvoted 0 times
...
Corinne
1 year ago
Option C is definitely the way to go. It's the simplest solution.
upvoted 0 times
...
...
Ashley
1 year ago
Option C is the way to go! Keeping the exclusion list updated is way easier than hacking the core shipping method. I wonder if the marketing team will remember to update the exclusion list when the sale is over, though. Perhaps we should set a calendar reminder for them.
upvoted 0 times
...
Willard
1 year ago
I'm curious to see how the developers will handle this. Hopefully, they'll come up with a solution that's both functional and maintainable. Extending the core code (Options A and B) seems like it could lead to some technical debt down the line.
upvoted 0 times
Veronika
1 year ago
A) Let's hope the developers find a solution that's both functional and maintainable for this business requirement.
upvoted 0 times
...
Hayley
1 year ago
C) Create an allow list for the existing shipping method by adding a product exclusion for 'brand equals XyzTV' sounds like a good approach.
upvoted 0 times
...
Ona
1 year ago
B) I agree, extending the CheckoutShippingservices controller using module.superModule seems like a better option.
upvoted 0 times
...
Hayley
1 year ago
A) Extend the code in cartridge/models/shipping/shippingMethod.js using module, super Module and add an exception for the specified brand.
upvoted 0 times
...
...
Annice
1 year ago
The marketing department's requirement seems straightforward, but the implementation needs to follow best practices. Option C looks like the most appropriate solution, as it allows for a targeted exception without modifying the core shipping method logic.
upvoted 0 times
...
Georgiann
1 year ago
Hmm, that makes sense too. It's important to consider the best practices for implementing this business requirement.
upvoted 0 times
...
Olive
1 year ago
I disagree, I believe option C is the way to go as it involves creating an allow list for the existing shipping method.
upvoted 0 times
...
Georgiann
1 year ago
I think option A is the best choice because it involves extending the code in the shipping method.
upvoted 0 times
...

Save Cancel