Medium1 markMultiple Choice
Domain 2.4: ReliabilityReliabilitySQSDecoupling

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

An e-commerce application processes orders. Currently, the web tier writes orders directly to an RDS database. During flash sales, the database is overwhelmed and drops connections, resulting in lost orders. How can the architect decouple this architecture to ensure no orders are lost?

Answer options:

A.

Upgrade the RDS instance to a larger instance type.

B.

Modify the web tier to send orders to an Amazon SQS queue. Use an Auto Scaling group of worker EC2 instances to read from the queue and write to RDS.

C.

Use Amazon ElastiCache to cache the orders before writing to RDS.

D.

Implement Amazon SNS to send orders directly to RDS.

How to approach this question

Look for the service that provides durable buffering (queueing).

Full Answer

B.Modify the web tier to send orders to an Amazon SQS queue. Use an Auto Scaling group of worker EC2 instances to read from the queue and write to RDS.✓ Correct
Modify the web tier to send orders to an Amazon SQS queue. Use an Auto Scaling group of worker EC2 instances to read from the queue and write to RDS.
Amazon SQS provides durable, decoupled queueing. It absorbs spikes in traffic, allowing backend workers to process messages at a controlled rate without overwhelming the database.

Common mistakes

Choosing ElastiCache for write buffering, which risks data loss if the cache fails.

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

75 questions · hints · full answers · grading

More questions from this exam