nerdexam
Google

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…

Submitted by cyberguy42· Apr 18, 2026Applying site reliability engineering principles to a service

Question

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) that is known to become unreliable under heavy load, resulting in connection timeout errors or 500 errors. Service B is used to collect request information for the transactions processed by Service A. You need to mitigate the impact of Service B issues on your Service A users. What should you do?

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)
  • A
    3% (2)
  • B
    10% (7)
  • C
    84% (56)
  • D
    3% (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

#Circuit Breaker Pattern#Service Reliability#Microservices Architecture#SLO

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVOPS-ENGINEER Practice