Data Ingestion and Transformation

Each uploaded Amazon S3 object needs an independent Python transformation that takes 20 seconds and uses 512 MB of memory. Which service meets these requirements with the least infrastructure management?

Show the answer

Correct answerD. An AWS Lambda function

AWhy not this: An ECS service on EC2 requires managing container hosts rather than using an infrastructure-free event handler.

BWhy not this: A Redshift cluster is designed for warehouse processing, not independent Python execution for each S3 upload.

CWhy not this: An EMR on EC2 cluster adds cluster management for a small transformation that does not require distributed processing.

DWhy this is right: Lambda can handle S3 upload events, and the stated execution time and memory fit its supported limits.

AWS Lambda supports short, independent transformations triggered by S3 events without managing servers. Amazon EMR supports distributed processing but adds unnecessary cluster management for this workload.