nerdexam
Salesforce

ARC-300 · Question #44

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…

The correct answer is B. Omit the calculation of shipping cost until the customer is ready to check out and has chosen the. See the full explanation below for the reasoning.

Question

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?

Options

  • AOmit the removal of the Item and speed up the process for the customer by adding the product to
  • BOmit the calculation of shipping cost until the customer is ready to check out and has chosen the
  • CWrap each Individual step of the process its own transaction Instead of using one transaction for
  • DWrap the adding of product and shipping cost calculation in a transaction which Is then rolled back

How the community answered

(53 responses)
  • A
    6% (3)
  • B
    81% (43)
  • C
    9% (5)
  • D
    4% (2)

Community Discussion

No community discussion yet for this question.

Full ARC-300 Practice