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 Architect (Arch-303) Exam - Topic 4 Question 76 Discussion

Actual exam question for Salesforce's Salesforce Certified B2C Commerce Architect (Arch-303) exam
Question #: 76
Topic #: 4
[All Salesforce Certified B2C Commerce Architect (Arch-303) 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: D

To resolve the issue of violating the spi.basket.addResolveInSameRequest quota and to maintain the functionality of dynamically calculating shipping costs for items before they are added to the basket, the best approach is:

Option D: Wrapping the adding of product and shipping cost calculation in a transaction, which is then rolled back to restore the original state. This method ensures that the system can calculate potential shipping costs without permanently altering the state of the basket. This approach keeps the basket's original state intact while allowing for multiple shipping calculations, effectively managing the load on system resources and adhering to platform quotas.


Contribute your Thoughts:

0/2000 characters
Vanda
3 days ago
I remember we discussed the importance of maintaining the original state of the basket during our practice sessions. I think option D might be the best approach.
upvoted 0 times
...

Save Cancel