A marketing agency is hosting a short-term promotional campaign website. During the promotion, users can submit contact forms that trigger a brief confirmation email and record the submission details. The website will experience massive, unpredictable traffic spikes during ad broadcasts, but will have zero traffic at night. The database needs to scale automatically to support these spikes, and the compute layer must run code only when a form is submitted to minimize idle costs.
Which two solutions should a solutions architect recommend to meet these requirements?
- Use AWS Lambda to process form submissions and send confirmation emails.Cevap
- Use Amazon DynamoDB with on-demand capacity mode to store contact form submissions.Cevap
- CUse AWS Lambda configured to run continuously 24/7 to poll for new submissions.
- DUse Amazon DynamoDB with provisioned capacity mode set to the maximum expected peak traffic.
- EUse an Amazon SQS standard queue to guarantee that confirmation emails are sent in the exact chronological order of form submissions.
Cevap
The correct solutions are to use AWS Lambda to process form submissions and send confirmation emails, and to use Amazon DynamoDB with on-demand capacity mode to store contact form submissions.
The correct options are utilizing AWS Lambda for processing and Amazon DynamoDB with on-demand capacity mode for storage. Because the promotional campaign experiences sudden traffic spikes and zero nightly traffic, event-driven serverless architectures are ideal. AWS Lambda ensures that compute resources are only active and billed when a form is submitted. Amazon DynamoDB in on-demand capacity mode handles scaling automatically without manual provisioning, ensuring you only pay for the exact volume of read and write requests and incur zero database compute costs during idle periods.
Adım Adım Çözüm
Anahtar Kavram
Serverless compute and database capacity modes can scale to zero, providing maximum cost efficiency for workloads with unpredictable spikes and idle periods.
Tahmini Süre:1m 0s