Medium1 markMultiple Choice
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?
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
Q01A global enterprise requires highly available hybrid connectivity between its on-premises data ce...HardQ02An organization has 50 VPCs across two AWS Regions connected via Transit Gateways (TGW). The TGWs...HardQ03A company uses AWS Organizations. The network team wants to share a central Transit Gateway (TGW)...MediumQ04An enterprise has on-premises data centers in the US and Europe. They want to use the AWS global ...HardQ05A company requires that all API calls to Amazon S3 from their VPC must not traverse the public in...Medium
Expert