Courseiva
MigrationhardMultiple ChoiceObjective-mapped

Why Replace ALB with NLB for Static IP Requirements

An organization is migrating a legacy application to AWS. The application requires a static IP address for client whitelisting. After migrating the application to an Application Load Balancer (ALB) with an Auto Scaling group, clients report connection failures. What should be done to resolve this issue?

Quick Answer

Client whitelisting by IP address requires a genuinely static, predictable IP address at the load balancer layer, and that requirement is where Application Load Balancers fundamentally fall short: ALBs are assigned dynamic IP addresses that can change over time, and there's no way to attach an Elastic IP directly to one, so any client-side IP whitelist configured against an ALB is at risk of breaking whenever the underlying IPs shift. A Network Load Balancer solves this because NLBs do support associating Elastic IP addresses with their nodes, giving you a fixed, known IP address that clients can safely whitelist and that won't change as the underlying infrastructure scales or is replaced. That's why the fix here is to replace the load balancer type entirely rather than trying to work around the ALB's behavior. The other options don't solve the root problem: adding a reverse proxy like Nginx in front of the ALB introduces another layer of complexity while still needing its own static IP to actually solve the whitelisting requirement, and changing the ALB's routing algorithm has no effect on IP address behavior at all, since routing algorithm and IP assignment are unrelated concerns. Whenever a scenario specifically requires a fixed, whitelistable IP address for a load-balanced AWS application, that's a strong signal pointing toward a Network Load Balancer with an Elastic IP rather than an Application Load Balancer.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Replace the ALB with a Network Load Balancer (NLB) and assign an Elastic IP.

The correct solution is to replace the ALB with a Network Load Balancer (NLB) and assign an Elastic IP. ALBs do not have static IP addresses; they use dynamic IPs that can change. NLBs support Elastic IPs, providing a fixed IP for client whitelisting. Option A is incorrect because adding an Nginx reverse proxy introduces unnecessary complexity and still requires a static IP. Option B is wrong because you cannot assign an Elastic IP to an ALB. Option C is incorrect because the routing algorithm does not affect the IP address; the ALB's IPs remain dynamic.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Place an Nginx reverse proxy in front of the ALB with an Elastic IP.

    Why it's wrong here

    Adds unnecessary complexity and single point of failure.

  • Assign an Elastic IP to the ALB.

    Why it's wrong here

    ALBs do not support Elastic IP assignments.

  • Configure the ALB to use a round-robin routing algorithm.

    Why it's wrong here

    Routing algorithm does not affect IP address.

  • Replace the ALB with a Network Load Balancer (NLB) and assign an Elastic IP.

    Why this is correct

    NLB supports static IP via Elastic IP.

Visual reference

Client Recursive Resolver Root DNS (13 root servers) TLD DNS (.com, .org, …) Authoritative example.com query IP addr answer

About these practice questions

One of 1,616 original PAS-C01 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more way this is tested on PAS-C01

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. A company is migrating a legacy application to AWS that requires a static IP address for client whitelisting. The application will run on EC2 instances behind an Application Load Balancer (ALB). The company wants to ensure the IP address does not change over time. What should the company do?

medium
  • A.Assign an Elastic IP to each EC2 instance
  • B.Use Route 53 latency-based routing to point to the ALB
  • C.Use AWS Global Accelerator to get two static IP addresses
  • D.Use a Network Load Balancer (NLB) with an Elastic IP address

Why D: A Network Load Balancer (NLB) supports static IP addresses by allowing you to assign Elastic IPs directly to each of its Availability Zone subnets. This provides fixed IP endpoints for client whitelisting, while the NLB can forward traffic to the EC2 instances behind an ALB, preserving the application's architecture.

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This PAS-C01 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PAS-C01 exam.