Soru

Zorluk: KolayServerless and Automated Scaling Architectures for Cost Efficiency

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?

  1. Use AWS Lambda to process form submissions and send confirmation emails.Cevap
  2. Use Amazon DynamoDB with on-demand capacity mode to store contact form submissions.Cevap
  3. C
    Use AWS Lambda configured to run continuously 24/7 to poll for new submissions.
  4. D
    Use Amazon DynamoDB with provisioned capacity mode set to the maximum expected peak traffic.
  5. E
    Use 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

1
Analyze the compute requirements for event-driven execution.
Identify that the application must run code only when a form is submitted to avoid paying for idle compute capacity during periods of inactivity.
AWS Lambda runs code in response to events (form submissions) and scales down to zero when there is no traffic, ensuring optimal compute cost efficiency.
2
Analyze the database requirements for automatic scaling.
Identify that the database must scale automatically to handle sudden spikes and cost nothing during idle periods.
Amazon DynamoDB with on-demand capacity mode scales dynamically to handle arbitrary workloads and has no base cost per request unit, matching the cost-efficiency requirements.

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
Bu soruyu puanla