
Answer-first summary for fast verification
Answer: Use AWS Fargate to run the application. Use Amazon EventBridge (Amazon CloudWatch Events) to invoke the Fargate task every 4 hours.
state machine doesn't have scheduler function, it needs to be invoked by other services like cloudevent 1) step state machine doesn't have schedule 2) Fargate task is good for the job and can be invoked by EventBridge https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-ecs-tutorial.html cloudevent 1)2)FargateEventBridge https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-ecs-tutorial.html
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company runs a proprietary stateless ETL application on an Amazon EC2 Linux instance. 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?
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.
No comments yet.