AWS Certified Solutions Architect – Professional — Question 991
A company runs a proprietary stateless ETL application on an Amazon EC2 Linux instances. The application is a Linux binary, and the source code cannot be modified. The application is single-threaded, uses 2 GB of RAM, and is highly CPU intensive. The application is scheduled to run every 4 hours and runs for up to
20 minutes. A solutions architect wants to revise the architecture for the solution.
Which strategy should the solutions architect use?
Answer options
- A. Use AWS Lambda to run the application. Use Amazon CloudWatch Logs to invoke the Lambda function every 4 hours.
- B. Use AWS Batch to run the application. Use an AWS Step Functions state machine to invoke the AWS Batch job every 4 hours.
- C. Use AWS Fargate to run the application. Use Amazon EventBridge (Amazon CloudWatch Events) to invoke the Fargate task every 4 hours.
- D. Use Amazon EC2 Spot Instances to run the application. Use AWS CodeDeploy to deploy and run the application every 4 hours.
Correct answer: C
Explanation
AWS Fargate is the ideal choice because it can run containerized Linux binaries without code changes and has no 15-minute execution limit, which rules out AWS Lambda. Amazon EventBridge can be used to easily schedule the Fargate task to run on a 4-hour interval. Other options like AWS CodeDeploy are deployment services and are not designed to schedule periodic execution of tasks.