Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB — Question 34
You have an Azure Cosmos DB for NoSQL container named Contained that has a provisioned throughput of 1,000 request units per second (RU/s). Contained is queried by using an app named App1.
Users of App1 report that several times a day, they receive the following error message: “HTTP error code 429”
You need to improve the reliability of App1 without affecting the performance of the app.
What are two ways to improve the reliability? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Answer options
- A. Add a trigger to Container1.
- B. Update App1 to split large requests into several smaller requests.
- C. Update App1 to reduce the size of each request to less than 1 MB.
- D. Increase the provisioned throughout of Container1.
- E. Add retry logic to App1.
Correct answer: D, E
Explanation
Increasing the provisioned throughput of Container1 (D) directly addresses the limitation causing the HTTP 429 errors by allowing more requests to be processed per second. Adding retry logic to App1 (E) helps handle transient failures gracefully, improving user experience. The other options either don't address the root cause or are not effective solutions for improving reliability in this scenario.