0
0
AWScloud~5 mins

Task definitions in AWS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
AThe user permissions for AWS console
BHow to run containers including image, CPU, and ports
CThe billing details for ECS usage
DThe physical server where containers run
What must you do after changing a task definition to apply updates to a running ECS service?
AUpdate the service to use the new task definition revision
BDelete the old task definition
CRestart the AWS account
DNothing, changes apply automatically
Which of these is NOT part of a task definition?
AAWS billing plan
BCPU and memory settings
CNetwork port mappings
DContainer image
What is a task in ECS?
AA billing invoice
BA user role in AWS
CA physical server
DA running instance of a task definition
Why do task definitions have revisions?
ATo increase billing
BTo assign user permissions
CTo track changes and allow rollback
DTo change AWS regions
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.