AWS Certified Solutions Architect – Professional (SAP-C02) — Question 132
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
The correct answer is C because AWS Fargate allows for running containerized applications without managing servers, which is ideal for the stateless ETL application. Option A is incorrect because AWS Lambda has execution time limits that would not accommodate the 20-minute runtime. Option B is not suitable since AWS Batch is designed for batch processing and not for stateless applications. Option D is less optimal as EC2 Spot Instances may lead to interruptions, which would be problematic for a scheduled task.