ALB vs NLB vs GWLB, target groups, health checks, Route 53 failover, Auto Scaling
0:00 / ~32m0/20 answered
20 timed scenario questions (~32 min, ~96 sec each). Reinforces night-11-elb-theory.md. Answer without peeking at night-11-quiz-answers.json first.
1.A microservices team runs HTTP APIs on ECS Fargate. They need path-based routing (/orders/* vs /catalog/*), AWS WAF, and OIDC authentication at the load balancer. Which load balancer type fits?
2.A financial app must expose TCP port 443 with a fixed Elastic IP per Availability Zone for partner allowlisting. TLS terminates on the EC2 instances, not the load balancer. Which service should front the fleet?
3.Security wants all east-west traffic between application tiers to pass through third-party firewall appliances before reaching databases. Appliances run as scaled EC2 instances. Which AWS load balancing service is purpose-built for this?
4.An ALB target group health check uses HTTP on port 8080 path /health. Targets show unhealthy. Curl from a bastion in the VPC to the instance private IP:8080/health returns 200. The instance security group allows inbound 443 from 0.0.0.0/0 but has no rule for port 8080. What is the most likely fix?
5.You attach an Auto Scaling group to an ALB target group. New instances register as healthy only after the grace period. During the first two minutes after launch, health checks fail while the app boots. What ASG setting addresses this without changing the target group?
6.Route 53 failover routing uses a primary record pointing to an ALB DNS name. The secondary record points to an S3 static site. What must be configured for automatic failover when the primary app is down?
7.A UDP-based telemetry protocol (not HTTP) must be load-balanced across EC2 instances in three AZs with minimal latency. Which load balancer is appropriate?
8.During an Auto Scaling scale-in event, the ASG terminates an EC2 instance registered with an ALB target group. In-flight HTTP requests to that instance should complete before the connection is cut. Which setting controls this behavior?
9.Fargate tasks in awsvpc mode sit behind an internal ALB. Tasks are in private subnets; the ALB is in public subnets. Which security group pattern is correct?
10.A company compares ALB and NLB cross-zone load balancing defaults. They want to minimize cross-AZ data transfer charges while still having load balancer nodes in every AZ. Which statement is correct?
11.An NLB target group uses TCP health checks on port 8080. Targets are healthy in the console but clients receive connection resets. Application logs show the app listens on 8080 but requires an HTTP GET /ping. What should you change?
12.You need Lambda functions as targets for HTTP POST requests from the internet, with path-based routing shared with EC2 targets on the same hostname. Which combination works?
13.Multi-AZ resilience: An Application Load Balancer serves traffic in us-east-1. One AZ loses power; ALB nodes in the other AZ remain. What happens to new client connections if clients use the ALB DNS name?
14.A legacy shopping cart stores session state in memory on EC2. Users must stick to the same instance until the session cookie expires. Which ALB feature helps without changing the application?
15.Gateway Load Balancer is deployed with firewall appliances in a dedicated subnet. Application VPCs must send traffic through inspection before reaching the internet. What must exist in each application VPC subnet that routes outbound traffic?
16.An ALB listener rule forwards HTTPS traffic to a target group of Fargate tasks on HTTP port 8080. This pattern is often called:
17.Auto Scaling detects unhealthy instances via the ALB target group. Instances fail health checks and are replaced. Which two components together provide this loop? (Pick the best single answer describing the integration.)
18.A partner requires your service IP to never change when you replace underlying EC2 instances. The protocol is raw TCP on port 9000, not HTTP. Which architecture satisfies allowlisting?
19.You run an internal-only API: ALB scheme is internal, placed in private subnets. Corporate users reach it via VPN into the VPC. Can you attach a CloudFront-scoped WAF Web ACL directly to this internal ALB?
20.After a deployment, half of targets in an ALB target group return HTTP 502 to clients. New targets pass health checks but the application log shows "connection refused" from the load balancer nodes only. What is the most likely cause?