Q14 — AWS SAA-C03 Ch.5
Question 14 of 65 | ← Chapter 5
Q314. A company containerized a Windows job that runs on NET 6 Framework under a Windows container. The company wants to run this job in the AWS Cloud. The job runs every 10 minutes.The job's runtime varies between 1 minute and 3 minutes.Which solution will meet these requirements MOST cost-effectively?
- A. Create an AWS IAMbda function based on the container image of the job. Configure Amazon EventBridge to invoke the function every 10 minutes
- B. Use AWS Batch to create a job that uses AWS Fargate resources. Configure the job scheduling to run every 10 minutes
- C. Use Amazon Elastic Container Service (Amazon ECS) on AWS Fargate to run the job. Create a scheduled task based on the container image of the job to run every 10 minutes ✓
- D. Use Amazon Elastic Container Service (Amazon ECS) on AWS Fargate to run the job. Create a standalone task based on the container image of the job. Use Windows task scheduler to run the job every 10 minutes
Correct Answer: C. Use Amazon Elastic Container Service (Amazon ECS) on AWS Fargate to run the job. Create a scheduled task based on the container image of the job to run every 10 minutes
Explanation
The solution that will meet the requirements of running a Windows job that runs on NET 6 Framework in the AWS Cloud, with the least cost is option C: Use Amazon Elastic Container Service (Amazon ECS) on AWS Fargate to run the job. Create a scheduled task based on the container image of the job to run every 10 minutes.Amazon ECS on AWS Fargate allows you to easily run and manage Docker containers without having to manage the underlying infrastructure. By creating a scheduled task in Amazon ECS, you can ensure that the Windows job runs every 10 minutes without having to manually trigger it each time. Additionally, since the runtime varies between 1 minute and 3 minutes, using Amazon ECS allows for flexibility in scaling resources according to the job's needs, which can help reduce costs. Option A, creating an AWS Lambda function based on the container image of the job, may not be cost- effective as the function would need to be invoked every 10 minutes and may incur additional charges if the function takes more than the free tier limits.Option B, using AWS Batch to create a job that uses AWS Fargate resources, may be more expensive, as AWS Batch is designed for batch processing workloads, while this job has shorter runtimes and runs every 10 minutes.Option D, using Amazon Elastic Container Service (Amazon ECS) on AWS Fargate to run the job and creating a standalone task based on the container image of the job, requires managing the scheduling of the job manually with Windows task scheduler, which can increase administrative overhead.