Topic 1 Question 134
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?
Use AWS Lambda to run the application. Use Amazon CloudWatch Logs to invoke the Lambda function every 4 hours.
Use AWS Batch to run the application. Use an AWS Step Functions state machine to invoke the AWS Batch job every 4 hours.
Use AWS Fargate to run the application. Use Amazon EventBridge (Amazon CloudWatch Events) to invoke the Fargate task every 4 hours.
Use Amazon EC2 Spot Instances to run the application. Use AWS CodeDeploy to deploy and run the application every 4 hours.
ユーザの投票
コメント(4)
C is correct. only eventbridge can run scheduled task
👍 6zhangyu200002023/01/16- 正解だと思う選択肢: C
C. Use AWS Fargate to run the application. Use Amazon EventBridge (Amazon CloudWatch Events) to invoke the Fargate task every 4 hours.
AWS Fargate is a serverless compute engine for containers that allows running containerized workloads without managing the underlying EC2 instances. This eliminates the need to provision, configure, and scale clusters of virtual machines to run containers.
Amazon EventBridge (formerly CloudWatch Events) allows scheduling tasks using cron or rate expressions, which can be used to invoke the Fargate task every 4 hours. This will allow for cost-effective and scalable solution, as the infrastructure is managed by AWS and the application can run in a serverless fashion, only incurring costs when the task is running.
👍 3masetromain2023/01/16 - 正解だと思う選択肢: C
The application is a Linux binary which can be packaged into a container, then run on AWS Fargate and scheduled using Event Bridge.
Use a base image that matches your application's runtime environment
FROM ubuntu:latest
Copy the Linux binary into the container
COPY myapp /usr/local/bin/myapp
Set the entry point to execute the binary
ENTRYPOINT ["/usr/local/bin/myapp"]
👍 2rbm20232023/05/19
シャッフルモード