Recall & Review
beginner
What is a task definition in AWS ECS?
A task definition is like a recipe that tells AWS ECS how to run a container. It includes details like which container image to use, how much CPU and memory to give, and what ports to open.
Click to reveal answer
beginner
Name three key parts of a task definition.
1. Container definitions (which containers to run)<br>2. CPU and memory settings<br>3. Networking and port mappings
Click to reveal answer
intermediate
Why do you need to register a new task definition revision in ECS?
Because each change to how your container runs (like updating the image or resources) needs a new version. ECS uses these versions to know which setup to use when starting tasks.
Click to reveal answer
beginner
How does a task definition relate to running tasks in ECS?
A task is an instance of a task definition. When you run a task, ECS uses the task definition to know what containers to start and how to configure them.
Click to reveal answer
intermediate
What happens if you update a task definition but don’t update your service to use the new revision?
Your service will keep running tasks with the old task definition version until you tell it to use the new one. So changes won’t take effect automatically.
Click to reveal answer
What does a task definition specify in AWS ECS?
✗ Incorrect
A task definition tells ECS how to run containers, including which image to use, CPU, memory, and ports.
What must you do after changing a task definition to apply updates to a running ECS service?
✗ Incorrect
You must update the ECS service to use the new task definition revision for changes to take effect.
Which of these is NOT part of a task definition?
✗ Incorrect
AWS billing plans are not part of task definitions.
What is a task in ECS?
✗ Incorrect
A task is a running instance of a task definition in ECS.
Why do task definitions have revisions?
✗ Incorrect
Revisions track changes to task definitions and allow you to roll back if needed.
Explain what a task definition is and why it is important in AWS ECS.
Think about how you tell ECS what containers to run and how.
You got /4 concepts.
Describe the process and reason for updating a task definition revision in ECS.
Consider what happens when you want to change how your app runs.
You got /4 concepts.