0
0
AWScloud~5 mins

ECS with ALB integration in AWS - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the role of an Application Load Balancer (ALB) in ECS?
An ALB distributes incoming traffic evenly across ECS tasks, improving availability and scalability by routing requests to healthy containers.
Click to reveal answer
intermediate
How does ECS register tasks with an ALB target group?
ECS automatically registers and deregisters tasks with the ALB target group based on task lifecycle, ensuring only healthy tasks receive traffic.
Click to reveal answer
beginner
What is a listener in the context of ALB?
A listener checks for connection requests on a specified port and protocol, then forwards requests to target groups based on rules.
Click to reveal answer
beginner
Why is health checking important in ECS with ALB integration?
Health checks let the ALB know which ECS tasks are healthy and can receive traffic, preventing requests from going to failed or unhealthy containers.
Click to reveal answer
intermediate
What is the benefit of using dynamic port mapping in ECS with ALB?
Dynamic port mapping allows multiple tasks on the same instance to use different ports, letting the ALB route traffic correctly to each task without port conflicts.
Click to reveal answer
What does an ALB use to decide where to send incoming traffic in ECS?
ARandom selection of ECS instances
BTarget groups with registered ECS tasks
COnly the first ECS task launched
DStatic IP addresses
Which ECS feature allows multiple tasks on one instance to use the ALB without port conflicts?
AStatic port assignment
BService discovery
CTask placement constraints
DDynamic port mapping
What does an ALB listener do?
ARoutes traffic based on rules and ports
BLaunches ECS tasks
CMonitors ECS task health
DManages ECS clusters
Why should ECS tasks be registered with an ALB target group?
ATo receive traffic from the ALB
BTo backup task data
CTo store task logs
DTo enable automatic scaling
What happens if an ECS task fails health checks from the ALB?
AIt is restarted immediately by ALB
BIt continues receiving traffic
CIt is deregistered and stops receiving traffic
DNothing changes
Explain how ECS integrates with an Application Load Balancer to manage incoming traffic.
Think about how ALB and ECS work together to route requests only to healthy containers.
You got /4 concepts.
    Describe the role of listeners and target groups in ALB when used with ECS.
    Focus on how ALB processes incoming requests and sends them to ECS tasks.
    You got /4 concepts.