A company containerized a Windows job that runs on the .NET 6 Framework inside a Windows container. The job must run in AWS every 10 minutes and runs between 1 and 3 minutes per execution. Which solution is MOST cost-effective?
Choose an answer
Tap an option to check your answer.
Correct answer: Use Amazon Elastic Container Service (Amazon ECS) on AWS Fargate to run the container. Create a scheduled task to run the job every 10 minutes..
Why this is the answer
The most cost-effective solution is using Amazon ECS on AWS Fargate with a scheduled task. This approach allows you to run your Windows containerized job without managing underlying EC2 instances, as Fargate provides serverless compute. ECS scheduled tasks are ideal for recurring jobs, ensuring the container is launched, runs the job, and then terminates, paying only for the compute time consumed. Creating an AWS Lambda function from the container image is not suitable because Lambda has a maximum execution duration of 15 minutes, which might be too restrictive for a job that runs between 1 and 3 minutes, and more importantly, Lambda does not natively support Windows containers. AWS Batch is designed for large-scale, high-throughput batch processing, which is overkill and less cost-effective for a single job running every 10 minutes. Running a standalone task with Windows Task Scheduler is not feasible as ECS Fargate tasks are ephemeral and not designed for persistent scheduling from within the container itself.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed