AWS Certified Developer – Associate (DVA-C02) — Question 273
A developer built an application that calls an external API to obtain data, processes the data, and saves the result to Amazon S3. The developer built a container image with all of the necessary dependencies to run the application as a container.
The application runs locally and requires minimal CPU and RAM resources. The developer has created an Amazon ECS cluster. The developer needs to run the application hourly in Amazon Elastic Container Service (Amazon ECS).
Which solution will meet these requirements with the LEAST amount of infrastructure management overhead?
Answer options
- A. Add a capacity provider to manage instances.
- B. Add an Amazon EC2 instance that runs the application.
- C. Define a task definition with an AWS Fargate launch type.
- D. Create an Amazon ECS cluster and add the managed node groups feature to run the application.
Correct answer: C
Explanation
AWS Fargate is a serverless compute engine for containers that completely removes the need to provision, configure, and scale virtual machines, yielding the lowest operational overhead. For a lightweight, hourly scheduled task, Fargate is the most efficient choice because you only pay for the resources consumed during the task's execution. Options A, B, and D all involve managing EC2 instances or node groups, which introduces unnecessary infrastructure management overhead.