When I sat for the Solutions Architect exam, I breezed through the questions on EC2 and RDS. But there were two specific areas where I found myself staring at the screen, second-guessing my answers.
These are the “silent killers” of the exam. They seem similar on the surface, but confusing them ensures a fail on scenario-based questions. Here is the simplest way to visualize them so you never mix them up again.
To understand the difference, you have to stop thinking about “servers” and start thinking about how traffic is handled.
Imagine walking into a high-end office building. You approach the receptionist (the ALB). She doesn’t just wave you through; she asks you questions.
She looks at the specific details of your request (the HTTP headers, the URL path). If you ask for /images, she directs you to the marketing floor. If you ask for /payroll, she directs you to finance.
Now imagine a nightclub with a line of 10,000 people. The bouncer (the NLB) does not care who you are. He does not care if you want a drink or a dance. He only cares about one thing: Ticket Valid? Go.
This is the topic that causes the most lost points. Both endpoints do the same thing: they allow your private EC2 instances to talk to AWS services (like S3) without going over the public internet. But they work in completely different ways.
Imagine your VPC is a fortress. You want to get to the “S3 Warehouse” outside. You could go out the front gate (Internet Gateway), but that’s dangerous. Instead, you just draw a new line on your map (Route Table) that says, “If you are going to the Warehouse, take the secret tunnel.”
Now, imagine you want to talk to the “SQS Department.” There is no secret tunnel for them. Instead, you pay the phone company to install a dedicated red phone (Elastic Network Interface - ENI) right inside your office (Subnet). When you pick up that phone, it rings directly at the SQS department.
To cement the “Endpoint” concept, this video provides a clear breakdown of when to pay for an Interface Endpoint versus when to use the free Gateway.
S3 Gateway Endpoint vs Interface Endpoint - Explained
This video is relevant because it specifically addresses the cost and architecture trade-offs between the two endpoint types, which is a frequent “distractor” in exam questions.