SAA-C03 · Domain 2: Design High-Performing Architectures

E-Commerce Flash Sale: ALB 502 Bad Gateway Port Mismatch

Client Profile: Retail Giant prepares for Black Friday peak traffic. An Application Load Balancer terminates customer HTTP requests on port 80. Problem: The monitoring dashboard alerts to 100% 502 Bad Gateway responses. All registered backend instances in the Target Group are marked UNHEALTHY.

Launch Interactive Lab in Browser → Browse All 56 AWS Labs

Lab Objective

Reconcile Target Group port to match the backend EC2 application port (80) to restore healthy status.

Exam Track & Type

Solutions Architect Associate (SAA) (SAA-C03) · Live Outage Troubleshooting Drill

FinOps & Cost Impact

Fixing Target Group port alignment restores existing cluster traffic distribution immediately, preventing costly unnecessary scale-up of redundant compute instances.

AWS Services Involved

VPC Cheatsheet → SUBNET Cheatsheet → IGW Cheatsheet → RTB Cheatsheet → EC2 Cheatsheet → ALB Cheatsheet → TG WEBCLIENT

Verification Success Criteria

Diagnostic Starting Point (Spoiler-Free Hint)

When an Application Load Balancer returns an HTTP 502 Bad Gateway to web clients, what Target Group health check or port configuration mismatch typically causes all backend instances to be marked unhealthy?

Real Solutions Architect Interview Question

What are the main causes of HTTP 502 vs HTTP 504 errors generated by an Application Load Balancer?

Frequently Asked Questions

How do I troubleshoot "E-Commerce Flash Sale: ALB 502 Bad Gateway Port Mismatch" in AWS?

When an Application Load Balancer returns an HTTP 502 Bad Gateway to web clients, what Target Group health check or port configuration mismatch typically causes all backend instances to be marked unhealthy?

Which AWS certification exam covers this architecture scenario?

This interactive lab maps directly to SAA-C03 (Solutions Architect Associate (SAA)) under Domain 2: Design High-Performing Architectures.

Do I need an AWS account or credit card to practice this lab?

No. CloudTracer runs a stateful VPC packet engine locally in your browser so you can debug Route Tables, Security Groups, NACLs, and target groups with $0 AWS cloud spend.

Related SAA-C03 Troubleshooting Labs

SAA-01

FinTech Payment Ledger: $6,750 NAT Gateway S3 Cost Surge

Add an S3 prefix-list destination route in the private route table targeting the S3 Gateway Endpoint.…

SAA-02

HealthTech EMR Backend: Asymmetric Outbound NAT Routing

Re-point the private route table default route pointing to NAT (0.0.0.0/0 -> nat-xxx) in the public subnet.…

SAA-03

Retail Banking PCI Audit: Stateless NACL Ephemeral Drop

Add an outbound NACL rule permitting return ephemeral traffic (TCP 1024-65535) to 0.0.0.0/0.…

SAA-05

SaaS Multi-Tenant DB: Least-Privilege Security Group Chaining

Replace CIDR 10.0.0.0/16 with the Application Security Group ID (sg-app) as the authorized source on port 5432.…

SAA-06

Streaming Media Platform: ASG Max Capacity Bottleneck

Increase ASG maximum capacity to at least 6 to absorb live traffic surges.…

SAA-07

Global Video Streaming: CloudFront OAC Origin Shielding & S3 Leak

Enable Origin Access Control (OAC) on CloudFront and enable Block Public Access on the origin S3 bucket.…