A financial technology company is building a serverless transaction processing system on AWS. The system must ingest ledger transaction entries, process them in the exact order they are received to ensure ledger integrity, and store the results in a database. The volume of transactions is highly unpredictable, scaling from zero to tens of thousands of requests in seconds. Additionally, the system must run a nightly ledger reconciliation job that aggregates all transactions from the past 24 hours, which typically takes 45 minutes to execute.
To minimize idle costs and maximize operational efficiency, which two architectural components should a solutions architect select? (Select two.)
- Deploy an Amazon SQS FIFO queue to receive the transaction entries, and configure an AWS Lambda function to process the queue.Cevap
- BDeploy an Amazon SQS Standard queue to receive the transaction entries, and configure an AWS Lambda function to process the queue.
- Use AWS Batch with an AWS Fargate Spot compute environment to run the nightly reconciliation job.Cevap
- DCreate an AWS Lambda function with a custom timeout of 1 hour to execute the nightly reconciliation job.
- EStore the transaction results in an Amazon DynamoDB table configured in Provisioned Capacity mode with Auto Scaling enabled.
Cevap
The solutions architect should deploy an Amazon SQS FIFO queue to ingest the transaction entries with an AWS Lambda function for ordered processing, and use AWS Batch with an AWS Fargate Spot compute environment to run the nightly reconciliation job.
Deploying an Amazon SQS FIFO queue with AWS Lambda ensures both strict ordering of transaction ledger events and serverless auto-scaling from zero to handle unpredictable spikes cost-effectively. Running the 45-minute nightly job on AWS Batch with AWS Fargate Spot is the most cost-efficient method because it bypasses Lambda's 15-minute limit and runs on discounted spare capacity.
Adım Adım Çözüm
Anahtar Kavram
Leveraging SQS FIFO for ordered transaction processing and AWS Batch with Fargate Spot for long-running, cost-efficient batch processing.