A team packages a data-processing step as a container and wants to run many copies in parallel during the nightly window without managing servers. What fits?
- Exam domain
- Data Ingestion and Transformation34% of the exam
- Difficulty
- Medium
- In this mock
- 33 questions on this domainPractise this domain
Why the exam asks this
Task Statement 1.2: Transform and process data.
Objective in the exam guide: Optimize container usage for performance needs (for example, Amazon EKS, Amazon ECS).
Many data steps ship as containers. Running them efficiently, at the right size and without idle servers, is a common engineering task.
Why C is the answer
Amazon ECS tasks on AWS Fargate, sized with the CPU and memory each task needs
ECS on Fargate runs containers without servers, and each task can be sized for its workload.
Remember: Containerized batch steps without servers: ECS on Fargate, right-sized.
How it works
Amazon ECS runs containers as tasks; with AWS Fargate, AWS provides the compute, so there are no servers to manage.
Each task declares the CPU and memory it needs, which sets performance and cost.
Tasks start for the work and stop afterwards, so nothing runs idle.
Clues in the question
The words that point to the answer, and what each one tells you.
- Packaged as a container
- A container service.
- Without managing servers
- Fargate.
In detail
- Amazon EKS is the option for teams that standardize on Kubernetes.
- Right-sizing task CPU and memory controls cost and performance.
Side by side with look-alikes
| Option | Servers to manage | Idle cost |
|---|---|---|
| ECS on Fargate | None | None |
| Always-on EC2 | Yes | High |
| Lambda | None | None, but limits |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A Lambda function with a container image larger than its limitsWrong
Lambda has size and run-time limits.
B. A manual docker run on a laptopWrong
A laptop is not a production platform.
C. Amazon ECS tasks on AWS Fargate, sized with the CPU and memory each task needsRight
Containerized batch steps without servers: ECS on Fargate, right-sized.
D. One large EC2 instance kept running all dayWrongMost tempting
An always-on instance wastes money outside the nightly window.
Why it tempts: A big instance can run many containers. But it costs money all day for a nightly job.
In practice
- Measure a task's real memory use, then right-size it.
Use case
An illustrative scenario, not a real incident.
A team runs 40 Fargate tasks in parallel at midnight, each with 2 vCPU and 8 GB, and they stop when done.
See how it works
flowchart LR S["Nightly trigger"] --> T1["Fargate task 1"] S --> T2["Fargate task 2"] S --> T3["Fargate task 3"] T1 --> O["Results in S3"] T2 --> O T3 --> O
How to read this chart
- "Nightly trigger" leads to "Fargate task 1" and "Fargate task 2" and "Fargate task 3".
- "Fargate task 1" leads to "Results in S3".
- "Fargate task 2" leads to "Results in S3".
- "Fargate task 3" leads to "Results in S3".