Development with AWS Services
Repeated failures from a downstream service are exhausting an application's connection pool. Which mechanism should temporarily stop calls to that service and later allow limited requests to test recovery?
Show the answer
Correct answerC. A circuit breaker with a half-open state
AWhy not this: A constant allowance limits volume but does not suspend calls based on repeated dependency failures.
BWhy not this: Additional retries increase calls to the failing dependency and can worsen resource exhaustion.
CWhy this is right: The open state blocks calls, and the half-open state permits limited recovery probes.
DWhy not this: Publishing health metrics alone does not prevent application calls to the failing service.
A circuit breaker stops calls after repeated failures and uses the half-open state to probe recovery. A constant rate limiter controls request volume but does not respond to dependency failures with this state transition.