AWS Certified Solutions Architect – Professional (SAP-C02) — Question 399
An e-commerce company is revamping its IT infrastructure and is planning to use AWS services. The company’s CIO has asked a solutions architect to design a simple, highly available, and loosely coupled order processing application. The application is responsible for receiving and processing orders before storing them in an Amazon DynamoDB table. The application has a sporadic traffic pattern and should be able to scale during marketing campaigns to process the orders with minimal delays.
Which of the following is the MOST reliable approach to meet the requirements?
Answer options
- A. Receive the orders in an Amazon EC2-hosted database and use EC2 instances to process them.
- B. Receive the orders in an Amazon SQS queue and invoke an AWS Lambda function to process them.
- C. Receive the orders using the AWS Step Functions program and launch an Amazon ECS container to process them.
- D. Receive the orders in Amazon Kinesis Data Streams and use Amazon EC2 instances to process them.
Correct answer: B
Explanation
Amazon SQS combined with AWS Lambda provides a fully managed, serverless, and loosely coupled architecture that easily scales to accommodate sporadic traffic spikes without administrative overhead. Amazon SQS acts as a buffer to decouple the ingestion and processing layers, while AWS Lambda dynamically scales in response to the queue size to process orders with minimal delay. Other options involving Amazon EC2 or Amazon ECS require more management overhead and are less cost-effective for highly sporadic traffic patterns.