ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 13 - AD0-E718 discussion

Report
Export

An Architect needs to integrate an Adobe Commerce store with a new Shipping Carrier. Cart data is sent to the Shipping Carrier's API to retrieve the price and display to the customer. After the feature is implemented on the store, the API hits its quota and returns the error "Too many requests". The Shipping Carrier warns the store about sending too many requests with the same content to the API.

In the carrier model, what should the Architect change to fix the problem?

A.
Implement _setCachedQuotes () and_getCachedQuotes() return the data if the request matches.
Answers
A.
Implement _setCachedQuotes () and_getCachedQuotes() return the data if the request matches.
B.
In _doShipmentRequest (), call canCollectRates() before sending request to the API
Answers
B.
In _doShipmentRequest (), call canCollectRates() before sending request to the API
C.
Override getResponse (), save the response to a variable, check if the response exists, then return.
Answers
C.
Override getResponse (), save the response to a variable, check if the response exists, then return.
Suggested answer: A

Explanation:

Implementing setCachedQuotes () andgetCachedQuotes() in the carrier model can allow the store to store the cart data in a cache, so that repeated requests with the same content can be retrieved from the cache instead of sending a new request to the API. This can reduce the number of requests and avoid hitting the quota limit.

Reference: [1] https://docs.adobe.com/content/help/en/experience-manager-65/commerce/commerce-payment-shipping-modules/shipping/shipping-carrierapis.html [2] https://docs.adobe.com/content/help/en/experience-manager-65/commerce/commerce-payment-shipping-modules/shipping/developing-shipping-carrierintegrations/shipping-carrier-model.html

asked 02/10/2024
Nakli Pun
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first