PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #210
You manage a microservice that provides a public-facing API (Service A). Service A is time- critical and has a response SLO of 500 ms. Service A makes synchronous calls to internal API (Service B)…
The correct answer is C. Implement a circuit breaker to store the request data in a database. A circuit breaker helps prevent cascading failures by short-circuiting calls to a failing service (Service B) and avoiding unnecessary latency. Storing request data in a database ensures that critical user-facing operations in Service A continue unaffected and the data can be…
Question
Options
- AIncrease the size of the queue in front of the thread pool used by Service A instances.
- BImplement retry logic with exponential back-offs when calling Service B.
- CImplement a circuit breaker to store the request data in a database.
- DImplement rate limiting in Service A to limit the number of requests to Service B.
How the community answered
(67 responses)- A3% (2)
- B10% (7)
- C84% (56)
- D3% (2)
Explanation
A circuit breaker helps prevent cascading failures by short-circuiting calls to a failing service (Service B) and avoiding unnecessary latency. Storing request data in a database ensures that critical user-facing operations in Service A continue unaffected and the data can be processed later. This approach preserves the 500 ms SLO while decoupling Service A from Service B's
Topics
Community Discussion
No community discussion yet for this question.