A financial technology company is designing a serverless payment processing system. The system must process transactional ledger updates in the exact sequence they are received. The transaction volume is highly unpredictable, ranging from zero transactions for hours to sudden bursts of thousands of transactions per minute. Additionally, the system must run a nightly reconciliation report that processes all transaction data for the day. This report is computationally intensive and takes approximately 45 minutes to execute. Which two options should the solutions architect choose to design a highly cost-effective and automated scaling architecture? (Select two.)
- Configure an Amazon SQS FIFO queue to receive the transactional ledger updates and trigger AWS Lambda functions for processing.Cevap
- BConfigure an Amazon SQS standard queue to receive the transactional ledger updates and trigger AWS Lambda functions for processing.
- Run the nightly reconciliation report as a containerized task on Amazon ECS with AWS Fargate using Fargate Spot capacity providers.Cevap
- DRun the nightly reconciliation report as an AWS Lambda function triggered by an Amazon EventBridge scheduled rule.
- EStore the ledger updates in an Amazon DynamoDB table configured with provisioned capacity mode to handle peak write workloads.
Cevap
Configure an Amazon SQS FIFO queue to receive the transactional ledger updates and trigger AWS Lambda functions for processing, and run the nightly reconciliation report as a containerized task on Amazon ECS with AWS Fargate using Fargate Spot capacity providers.
For the transaction updates, configuring an Amazon SQS FIFO queue ensures that messages are processed in strict chronological order, while AWS Lambda scales automatically to handle traffic spikes and costs nothing when there are no transactions. For the nightly reconciliation report, which runs for 45 minutes and is computationally intensive, Amazon ECS with AWS Fargate is ideal because Fargate only charges for resources while the container is running. Leveraging Fargate Spot capacity providers provides massive discounts, making it the most cost-effective option since the runtime exceeds AWS Lambda's 15-minute timeout.
Adım Adım Çözüm
Anahtar Kavram
Combining serverless message queues (SQS FIFO) and auto-scaling compute (Lambda and Fargate Spot) to design cost-efficient architectures based on execution duration and ordering constraints.