nerdexam
Amazon

SAP-C02 · Question #773

A company hosts a data-processing application on Amazon EC2 instances. The application polls an Amazon Elastic File System (Amazon EFS) file system for newly uploaded files. When a new file is…

The correct answer is B. Create an Amazon Elastic Container Service (Amazon ECS) cluster. Configure the processing to. The company needs to refactor its data-processing application to run Docker containers for up to 2 hours without EC2 instances, integrating with Amazon EFS.

Submitted by minji_kr· Mar 6, 2026Migrate Workloads and Modernize Solutions

Question

A company hosts a data-processing application on Amazon EC2 instances. The application polls an Amazon Elastic File System (Amazon EFS) file system for newly uploaded files. When a new file is detected, the application extracts data from the file and runs logic to select a Docker container image to process the file. The application starts the appropriate container image and passes the file location as a parameter. The data processing that the container performs can take up to 2 hours. When the processing is complete, the code that runs inside the container writes the file back to Amazon EFS and exits. The company needs to refactor the application to eliminate the EC2 instances that are running the containers. Which solution will meet these requirements?

Options

  • ACreate an Amazon Elastic Container Service (Amazon ECS) cluster. Configure the processing to
  • BCreate an Amazon Elastic Container Service (Amazon ECS) cluster. Configure the processing to
  • CCreate an Amazon Elastic Container Service (Amazon ECS) cluster. Configure the processing to
  • DCreate AWS Lambda container images for the processing. Configure Lambda functions to use

How the community answered

(66 responses)
  • A
    5% (3)
  • B
    64% (42)
  • C
    21% (14)
  • D
    11% (7)

Why each option

The company needs to refactor its data-processing application to run Docker containers for up to 2 hours without EC2 instances, integrating with Amazon EFS.

ACreate an Amazon Elastic Container Service (Amazon ECS) cluster. Configure the processing to

If option A refers to Spot Instances, they are not suitable for tasks requiring guaranteed execution for up to 2 hours, as they can be interrupted with short notice.

BCreate an Amazon Elastic Container Service (Amazon ECS) cluster. Configure the processing toCorrect

Option B proposes using Amazon ECS with AWS Fargate tasks, which eliminates the need to manage EC2 instances, and directly mounting Amazon EFS allows containers to access the file system for input and output, supporting tasks up to 2 hours without server management overhead.

CCreate an Amazon Elastic Container Service (Amazon ECS) cluster. Configure the processing to

If option C refers to standard EC2 instances, this option does not eliminate the EC2 instances, which is a primary requirement for the refactoring.

DCreate AWS Lambda container images for the processing. Configure Lambda functions to use

AWS Lambda functions have a maximum execution duration of 15 minutes, which is insufficient for data processing that can take up to 2 hours.

Concept tested: Serverless container orchestration with persistent storage

Source: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html

Community Discussion

No community discussion yet for this question.

Full SAP-C02 Practice