Topic 1 Question 452
A company runs a Java-based job on an Amazon EC2 instance. The job runs every hour and takes 10 seconds to run. The job runs on a scheduled interval and consumes 1 GB of memory. The CPU utilization of the instance is low except for short surges during which the job uses the maximum CPU available. The company wants to optimize the costs to run the job.
Which solution will meet these requirements?
Use AWS App2Container (A2C) to containerize the job. Run the job as an Amazon Elastic Container Service (Amazon ECS) task on AWS Fargate with 0.5 virtual CPU (vCPU) and 1 GB of memory.
Copy the code into an AWS Lambda function that has 1 GB of memory. Create an Amazon EventBridge scheduled rule to run the code each hour.
Use AWS App2Container (A2C) to containerize the job. Install the container in the existing Amazon Machine Image (AMI). Ensure that the schedule stops the container when the task finishes.
Configure the existing schedule to stop the EC2 instance at the completion of the job and restart the EC2 instance when the next job starts.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: B
Agreed, B Lambda
👍 2Efren2023/05/17 - 正解だと思う選択肢: B
B - Within 10 sec and 1 GB Memory (Lambda Memory 128MB to 10GB)
👍 2Yadav_Sanjay2023/05/21 - 正解だと思う選択肢: B
AWS Lambda automatically scales resources to handle the workload, so you don't have to worry about managing the underlying infrastructure. It provisions the necessary compute resources based on the configured memory size (1 GB in this case) and executes the job in a serverless environment.
By using Amazon EventBridge, you can create a scheduled rule to trigger the Lambda function every hour, ensuring that the job runs on the desired interval.
👍 1alexandercamachop2023/06/04
シャッフルモード