SAA-C03 · Question #181
SAA-C03 Question #181: Real Exam Question with Answer & Explanation
The correct answer is A: Use an Amazon API Gateway REST API to invoke an AWS Lambda function to send transaction. The solution must handle variable sales volumes, preserve transaction information, and store data in an Amazon Aurora database with minimal operational overhead. UsingAPI Gateway, AWS Lambda, and SQSis the best option because it provides scalability, reliability, and Why Option A
Question
A company is using microservices to build an ecommerce application on AWS. The company wants to preserve customer transaction information after customers submit orders. The company wants to store transaction data in an Amazon Aurora database. The company expects sales volumes to vary throughout each year. Which solution will meet these requirements with the LEAST operational overhead?
Options
- AUse an Amazon API Gateway REST API to invoke an AWS Lambda function to send transaction
- BUse an Amazon API Gateway HTTP API to send transaction data to an Application Load
- CUse an Application Load Balancer (ALB) to route transaction data to Amazon Elastic Kubernetes
- DUse Amazon Data Firehose to send transaction data to Amazon S3. Use AWS Database
Explanation
The solution must handle variable sales volumes, preserve transaction information, and store data in an Amazon Aurora database with minimal operational overhead. UsingAPI Gateway, AWS Lambda, and SQSis the best option because it provides scalability, reliability, and Why Option A is Correct: API Gateway: Serves as an entry point for transaction data in a serverless, scalable manner. AWS Lambda: Processes the transactions and sends them to Amazon SQS for queuing. Amazon SQS: Buffers the transaction data, ensuring durability and resilience against spikes in transaction Second Lambda Function: Processes messages from the SQS queue and updates the Aurora database, decoupling the workflow for better scalability. Dead-Letter Queue (DLQ): Ensures failed transactions are logged for later debugging or reprocessing. Why Other Options Are Not Ideal: Using an ALB with ECS on EC2 introduces operational overhead, such as managing EC2 instances and scaling ECS tasks.Not cost-effective. EKS is highly operationally intensive and requires Kubernetes cluster management, which is unnecessary for this use case.Too complex. Amazon Data Firehose and DMS are not designed for real-time transactional workflows. They are better suited for data analytics pipelines.Not suitable.
Community Discussion
No community discussion yet for this question.