Question

Difficulty: EasyAWS Compute Services

A logistics company needs to run a brief data transformation script each time a new telemetry file is uploaded to an Amazon S3 bucket. The script takes less than ten seconds to execute, runs only a few times an hour, and the company wants to avoid provisioning or managing any servers. Which AWS compute service is best suited for this workload?

  1. AWS LambdaAnswer
  2. B
    Amazon EC2
  3. C
    Amazon Lightsail
  4. D
    AWS Elastic Beanstalk

Answer

AWS Lambda is the most appropriate service because it is an event-driven, serverless compute service that executes code in response to triggers like Amazon S3 uploads without requiring any server administration.
AWS Lambda is correct because it is a serverless compute service designed to run code in response to events, such as file uploads to Amazon S3, without requiring the user to manage servers or pay for idle time.

Step-by-Step Solution

1
Analyze the workload characteristics
The script is short-running (under 10 seconds), runs occasionally (a few times per hour), is triggered by an event (Amazon S3 upload), and requires zero server management.
Understanding the execution duration, frequency, trigger type, and management overhead helps narrow down the appropriate AWS compute service.
2
Evaluate the compute services against the requirements
AWS Lambda is serverless and event-driven, charging only for compute time used. Amazon EC2 and Amazon Lightsail require provisioning and managing virtual servers and charge for continuous uptime. AWS Elastic Beanstalk runs on top of provisioned EC2 instances.
Comparing service capabilities ensures the selection of the most cost-effective and low-overhead option.

Key Concept

Identifying the correct AWS compute service based on business needs, specifically serverless event-driven execution with AWS Lambda.
Estimated Time:45s
Rate this question