nerdexam
Amazon

DVA-C02 · Question #639

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…

The correct answer is C. Define a task definition with an AWS Fargate launch type. Running a containerized application on a scheduled hourly basis in ECS with minimal infrastructure management requires AWS Fargate, which eliminates the need to provision or manage EC2 instances.

Submitted by cyberguy42· Mar 5, 2026Development with AWS Services

Question

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 ECS. Which solution will meet these requirements with the LEAST amount of infrastructure management overhead?

Options

  • AAdd a capacity provider to manage instances.
  • BAdd an Amazon EC2 instance that runs the application.
  • CDefine a task definition with an AWS Fargate launch type.
  • DCreate an Amazon ECS cluster and add the managed node groups feature to run the application.

How the community answered

(35 responses)
  • A
    6% (2)
  • B
    3% (1)
  • C
    71% (25)
  • D
    20% (7)

Why each option

Running a containerized application on a scheduled hourly basis in ECS with minimal infrastructure management requires AWS Fargate, which eliminates the need to provision or manage EC2 instances.

AAdd a capacity provider to manage instances.

Adding a capacity provider to manage EC2 instances requires provisioning, patching, and maintaining the underlying servers, which adds significant infrastructure management overhead.

BAdd an Amazon EC2 instance that runs the application.

Running an Amazon EC2 instance directly involves ongoing server management including patching, monitoring, and scaling, increasing operational burden for what should be a simple scheduled task.

CDefine a task definition with an AWS Fargate launch type.Correct

Defining an ECS task definition with the Fargate launch type delegates all infrastructure provisioning and management to AWS; combined with an EventBridge Scheduler rule to trigger the task hourly, this approach requires zero server management while fully supporting the existing container image and its dependencies.

DCreate an Amazon ECS cluster and add the managed node groups feature to run the application.

Managed node groups are an Amazon EKS (Kubernetes) feature, not an ECS concept, and introducing Kubernetes adds substantial complexity and management overhead for a simple scheduled container workload.

Concept tested: ECS Fargate launch type for serverless scheduled containers

Source: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice