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 4 Question 44 Discussion

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

An ecommerce site has dynamic shipping cost calculation. it allows the customers to see their potential shipping costs on the Product Detail Page before adding an item to the cart.

For this feature, shipping touts are calculated using the following logic:

* Set the shipping method on the Basket

* Add the item to the basket, calculate the basket total and get the shipping cost for this method

* Remove the item from the Basket to restore the original state

* The above process is repeated for each shipping method

During the testing it was discovered that the above code violates the spi.basket.addResolveInSameResquest quota.

What should the Architect do to resolve this issue and maintain the business requirement?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Isaiah
2 months ago
Option C: Wrap each step in its own transaction, like a boss. Why complicate things when you can just break it down and tackle it piece by piece? Simple and efficient!
upvoted 0 times
Marta
3 days ago
B) Omit the calculation of shipping cost until the customer is ready to check out and has chosen the shipping method they want to
upvoted 0 times
...
Catarina
9 days ago
A) Omit the removal of the Item and speed up the process for the customer by adding the product to the basket for them.
upvoted 0 times
...
Silva
26 days ago
C) Wrap each Individual step of the process its own transaction Instead of using one transaction for all steps.
upvoted 0 times
...
...
Avery
2 months ago
What is this 'spi.basket.addResolveInSameResquest quota' you speak of? I'm just going to go with the option that involves the least amount of basket-juggling. Can't be that hard, right?
upvoted 0 times
Lisbeth
1 months ago
D) Wrap the adding of product and shipping cost calculation in a transaction which Is then rolled back to restore the original state
upvoted 0 times
...
Laurena
1 months ago
C) Wrap each Individual step of the process its own transaction Instead of using one transaction for all steps.
upvoted 0 times
...
Lenny
1 months ago
B) Omit the calculation of shipping cost until the customer is ready to check out and has chosen the shipping method they want to
upvoted 0 times
...
...
Chantay
2 months ago
Hold up, are we seriously considering adding the item to the basket without the customer's consent? That's just plain wrong, man. Option A is a big no-go in my book.
upvoted 0 times
...
Rasheeda
2 months ago
I don't know, option D sounds like the best approach. Wrapping everything in a transaction and rolling it back keeps the business requirement intact without violating any quotas.
upvoted 0 times
Ronnie
26 days ago
Yes, wrapping the adding of product and shipping cost calculation in a transaction is a good way to ensure the original state is restored.
upvoted 0 times
...
Ronnie
1 months ago
I agree, option D seems like the most reliable solution to maintain the business requirement.
upvoted 0 times
...
...
Solange
2 months ago
Hmm, option B seems like the most straightforward solution. Why do all that extra work just to remove the item? Calculating the shipping cost on checkout makes more sense.
upvoted 0 times
...
Mari
2 months ago
That's a valid point, Tamera. But what if the customer wants to see the shipping costs upfront before deciding to add the item to the cart?
upvoted 0 times
...
Tamera
2 months ago
I disagree, I believe option B is more efficient. Why calculate shipping costs multiple times when the customer may not even proceed to checkout?
upvoted 0 times
...
Mari
2 months ago
I think option C is the best solution. It ensures each step is independent and can be rolled back if needed.
upvoted 0 times
...

Save Cancel