0
0
AWScloud~20 mins

Health checks configuration in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Health Check Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding ELB Health Check Behavior

An AWS Elastic Load Balancer (ELB) is configured with a health check that targets HTTP port 80 and path /status. The health check interval is 30 seconds, with 3 healthy threshold and 2 unhealthy threshold.

If a target instance returns HTTP 500 for 2 consecutive health checks, what will be the ELB's behavior?

AThe instance will be marked unhealthy after 2 failed checks and removed from the load balancer.
BThe instance will be marked unhealthy only after 3 failed checks and removed from the load balancer.
CThe instance will remain healthy because the unhealthy threshold is 2, so it needs 2 successful checks to mark unhealthy.
DThe instance will be marked unhealthy immediately after the first failed health check.
Attempts:
2 left
💡 Hint

Remember the unhealthy threshold defines how many consecutive failed checks are needed before marking unhealthy.

Configuration
intermediate
2:00remaining
Configuring a Target Group Health Check in AWS ALB

You want to configure an Application Load Balancer (ALB) target group health check to use HTTPS on port 443 and path /health. Which JSON snippet correctly defines this health check configuration?

A{"HealthCheckProtocol": "HTTPS", "HealthCheckPort": "443", "HealthCheckPath": "/health"}
B{"HealthCheckProtocol": "TCP", "HealthCheckPort": "443", "HealthCheckPath": "/health"}
C{"HealthCheckProtocol": "HTTPS", "HealthCheckPort": "80", "HealthCheckPath": "/health"}
D{"HealthCheckProtocol": "HTTP", "HealthCheckPort": "443", "HealthCheckPath": "/health"}
Attempts:
2 left
💡 Hint

Check the protocol and port consistency for HTTPS health checks.

Architecture
advanced
2:00remaining
Designing Health Checks for Multi-AZ Auto Scaling Group

You have an Auto Scaling Group (ASG) spanning 3 Availability Zones (AZs) with instances behind an ELB. You want to ensure that unhealthy instances are replaced quickly without affecting availability. Which health check configuration best supports this goal?

AUse only EC2 status checks for health checks and rely on ASG to replace instances after a long grace period.
BUse ELB health checks with a low interval and low unhealthy threshold, combined with ASG health checks set to ELB, to replace instances quickly.
CDisable ELB health checks and use custom scripts on instances to report health to ASG.
DUse ELB health checks with high interval and high unhealthy threshold to avoid false positives.
Attempts:
2 left
💡 Hint

Think about combining ELB and ASG health checks for fast detection and replacement.

security
advanced
2:00remaining
Security Implications of Health Check Endpoints

Your web application exposes a health check endpoint /health that returns detailed system status including database connection info. What is the best security practice regarding this health check endpoint?

ARemove the health check endpoint entirely to avoid exposing sensitive information.
BMake the health check endpoint publicly accessible to allow external monitoring services to check status.
CRestrict access to the health check endpoint to only the load balancer IPs using security groups or firewall rules.
DEncrypt the health check response with TLS but allow public access.
Attempts:
2 left
💡 Hint

Consider who really needs access to sensitive health information.

Best Practice
expert
2:00remaining
Optimizing Health Check Configuration for Cost and Performance

You manage a fleet of 1000 EC2 instances behind an ELB. Health checks are currently set to run every 10 seconds with a timeout of 5 seconds. This causes high CloudWatch costs and occasional false positives due to network latency spikes. Which health check configuration change best balances cost, performance, and reliability?

AKeep the interval at 10 seconds but reduce timeout to 1 second to reduce cost.
BDecrease the health check interval to 5 seconds and timeout to 2 seconds to detect failures faster.
CDisable health checks and rely on manual monitoring to reduce costs.
DIncrease the health check interval to 30 seconds and timeout to 10 seconds, and increase unhealthy threshold to 3.
Attempts:
2 left
💡 Hint

Think about how increasing intervals and thresholds affects cost and false positives.