Medium1 markMultiple Choice
Domain 2.4: ReliabilityReliabilityMicroservicesPatterns

AWS SAP-C02 · Question 36 · Domain 2.4: Reliability

A microservices architecture uses Amazon ECS. Service A calls Service B synchronously. Under heavy load, Service B becomes slow, causing Service A to exhaust its threads waiting for responses, leading to cascading failures. How should the architect redesign this to improve reliability?

Answer options:

A.

Increase the timeout duration in Service A.

B.

Implement the Circuit Breaker pattern in Service A. If Service B times out repeatedly, Service A should fail fast or return a cached response.

C.

Replace ECS with AWS Lambda for Service B.

D.

Use a Network Load Balancer instead of an Application Load Balancer.

How to approach this question

Identify the architectural pattern designed to prevent cascading failures in synchronous calls.

Full Answer

B.Implement the Circuit Breaker pattern in Service A. If Service B times out repeatedly, Service A should fail fast or return a cached response.✓ Correct
Implement the Circuit Breaker pattern in Service A. If Service B times out repeatedly, Service A should fail fast or return a cached response.
The Circuit Breaker pattern detects failures and encapsulates the logic of preventing a failure from constantly recurring, protecting the calling service from thread exhaustion.

Common mistakes

Increasing timeouts, which is the opposite of the correct approach.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 6

75 questions · hints · full answers · grading

More questions from this exam