Medium1 markMultiple Choice
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?
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
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