Soru

Zorluk: OrtaAWS Compute Services

A school district wants to send automated text alerts to parents whenever local emergency alerts are issued. The script that sends the alerts runs sporadically, takes less than a minute to complete, and must scale instantly to handle thousands of concurrent alerts. The district wants to minimize operational overhead by not managing any servers and paying only for the duration of the script's execution. Which AWS service is best suited for this requirement?

  1. A
    Amazon Elastic Compute Cloud (Amazon EC2)
  2. AWS LambdaCevap
  3. C
    Amazon Lightsail
  4. D
    AWS Elastic Beanstalk

Cevap

AWS Lambda
AWS Lambda is the most suitable service because it is an event-driven, serverless compute service. It runs code only when triggered (such as by an emergency alert), scales automatically to handle thousands of concurrent requests, requires no server administration, and charges only for the exact duration of the code execution.

Adım Adım Çözüm

1
Analyze the workload characteristics and operational requirements.
The workload is sporadic, short-lived (runs for less than a minute), requires rapid scaling to handle sudden spikes, and requires zero cost when idle with no server management overhead.
Understanding the workload pattern helps filter out services that require provisioning continuous virtual servers or have fixed billing models.
2
Compare the requirements against AWS compute services.
Virtual machine options like Amazon EC2 and Amazon Lightsail require ongoing server management and charge for idle time. AWS Elastic Beanstalk also manages continuous servers. AWS Lambda is event-driven, scales automatically, charges only for execution time, and requires no server management.
Matching the serverless, event-driven, and pay-per-use billing model to the correct AWS compute service ensures the most cost-effective and low-maintenance design.

Anahtar Kavram

Serverless compute execution with AWS Lambda
Bu soruyu puanla