Bird
0
0

Given an ECS service with ALB integration, if the ALB health check path is set to "/health" but the container does not expose this path, what will be the expected behavior?

medium📝 service behavior Q4 of 15
AWS - ECS and Fargate
Given an ECS service with ALB integration, if the ALB health check path is set to "/health" but the container does not expose this path, what will be the expected behavior?
AThe ALB will ignore health checks and route traffic normally.
BThe ALB will mark targets as unhealthy and stop routing traffic to them.
CThe ECS service will automatically fix the health check path.
DThe ALB will route traffic only to tasks with open ports.
Step-by-Step Solution
Solution:
  1. Step 1: Understand ALB health check mechanism

    ALB sends requests to the configured health check path to verify target health.
  2. Step 2: Analyze impact of incorrect health check path

    If the container does not respond successfully on "/health", ALB marks targets unhealthy and stops sending traffic to them.
  3. Final Answer:

    The ALB will mark targets as unhealthy and stop routing traffic to them. -> Option B
  4. Quick Check:

    Incorrect health check path = Targets unhealthy [OK]
Quick Trick: Health check path must match container endpoint [OK]
Common Mistakes:
  • Assuming ALB ignores failed health checks
  • Expecting ECS to auto-correct health check paths
  • Believing ALB routes traffic regardless of health

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes