Hard1 markMultiple Choice
Domain 3.4: Reliability ImprovementReliabilityArchitecture PatternsRDSECS

AWS SAP-C02 · Question 39 · Domain 3.4: Reliability Improvement

A microservices architecture uses Amazon ECS and Amazon RDS. Occasionally, the RDS database experiences brief failovers or network blips, causing the ECS services to crash and restart, leading to a poor user experience. The architect wants to improve the reliability of the application so it can handle these transient database errors gracefully. Which strategies should be implemented? (Select TWO)

Answer options:

A.

Implement exponential backoff and retry logic in the application code.

B.

Migrate the database to DynamoDB.

C.

Implement the Circuit Breaker pattern in the application.

D.

Use AWS Fault Injection Simulator to prevent database failovers.

E.

Configure the ECS tasks to use the awsvpc network mode.

F.

Deploy an Amazon ElastiCache cluster to buffer database writes.

How to approach this question

Look for standard software engineering patterns for resilience (Retries, Circuit Breaker).

Full Answer

To handle transient errors (like brief network blips or DB failovers), applications should implement retries with exponential backoff. The Circuit Breaker pattern is also essential; it stops the application from overwhelming a struggling database and allows for graceful degradation.

Common mistakes

Thinking infrastructure changes (like awsvpc) solve application code resilience issues.

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

75 questions · hints · full answers · grading

More questions from this exam