Q71 — AWS SAA-C03 Ch.4
Question 71 of 105 | ← Chapter 4
Q266. An ecommerce company needs to run a scheduled daily job to aggregate and filter sales records for analytics. The company stores the sales records in an Amazon S3 bucket. Each object can be up to 10 GB in size. Based on the number of sales events,the job can take up to an hour to complete.The CPU and memory usage of the job are constant and are known in advance.A solutions architect needs to minimize the amount of operational effort that is needed for the job to run.Which solution meets these requirements?
- A. Create an AWS Lambda function that has an Amazon EventBridge notification. Schedule the EventBridge event to run once a day
- B. Create an AWS Lambda function. Create an Amazon API Gateway HTTP API, and integrate the API with the function. Create an Amazon EventBridge scheduled event that calls the API and invokes the function
- C. Create an Amazon Elastic Container Service (Amazon ECS) cluster with an AWS Fargate launch type.Create an Amazon EventBridge scheduled event that launches an ECS task on the cluster to run the job ✓
- D. Create an Amazon Elastic Container Service (Amazon ECS) cluster with an Amazon EC2 launch type and an Auto Scaling group with at least one EC2 instance Create an Amazon EventBridge scheduled event that launches an ECS task on the cluster to run the job
Correct Answer: C. Create an Amazon Elastic Container Service (Amazon ECS) cluster with an AWS Fargate launch type.Create an Amazon EventBridge scheduled event that launches an ECS task on the cluster to run the job
Explanation
less operation and when you have "The job's CPU and memory requirements are consistent and known in advance". You can use Fargate mode (choose CPU, memory size when set the task definition)/. based on this statement: "The work might take up to an hour to complete depending on the amount of sales events" => rule out A and B which mention Lambda because of limitation 15 minutes for executing. Between C and D, the question also says "The job's CPU and memory requirements are consistent and known in advance", it means that we don't need an auto scaling group which would increase/decrease EC2 resources => rule out D- A and B are wrong. "work might take up to an hour", hence Lambda (with 15mins execution limit) is wrong- D is wrong. "reduce the amount of operational work", hence Fargate (serverless) is preferred over EC2 (self-managed instances) launch type