An NLB is a type of load balancer that distributes incoming network traffic across multiple targets at the transport layer (Layer 4). It is designed to handle millions of requests per second while maintaining ultra-low latency.
Click to reveal answer
intermediate
How does an NLB differ from an Application Load Balancer (ALB)?
NLB works at Layer 4 (transport layer) and routes connections based on IP protocol data. ALB works at Layer 7 (application layer) and routes based on HTTP/HTTPS content. NLB is better for TCP/UDP traffic and extreme performance needs.
Click to reveal answer
beginner
What is a key benefit of using an NLB for TCP traffic?
NLB can handle sudden and volatile traffic patterns while maintaining high throughput and low latency, making it ideal for TCP and UDP traffic that requires fast, reliable connections.
Click to reveal answer
intermediate
Explain the concept of 'static IP' in the context of NLB.
NLB provides a static IP per Availability Zone, which means the IP addresses do not change. This helps clients whitelist IPs and simplifies firewall rules.
Click to reveal answer
beginner
What is the role of target groups in NLB?
Target groups are collections of endpoints (like EC2 instances or IP addresses) that receive traffic from the NLB. They help organize and manage where the load balancer sends requests.
Click to reveal answer
At which OSI layer does a Network Load Balancer operate?
ALayer 3 (Network Layer)
BLayer 4 (Transport Layer)
CLayer 7 (Application Layer)
DLayer 2 (Data Link Layer)
✗ Incorrect
NLB operates at Layer 4, handling TCP/UDP traffic based on transport layer information.
Which type of traffic is best suited for an NLB?
ATCP and UDP traffic requiring high performance
BHTTP/HTTPS traffic with content-based routing
CStatic website hosting
DEmail delivery
✗ Incorrect
NLB is optimized for TCP and UDP traffic with high throughput and low latency.
What is a key advantage of NLB's static IP addresses?
AThey change frequently for security
BThey enable content-based routing
CThey allow clients to whitelist IPs easily
DThey reduce DNS lookup times
✗ Incorrect
Static IPs help clients set firewall rules by whitelisting known IP addresses.
How does NLB handle sudden spikes in traffic?
AIt queues requests until capacity is available
BIt redirects traffic to a backup server
CIt drops excess requests
DIt automatically scales to handle millions of requests per second
✗ Incorrect
NLB is designed to scale automatically and handle sudden traffic spikes efficiently.
What is the purpose of target groups in NLB?
ATo group endpoints that receive traffic from the NLB
BTo store user session data
CTo encrypt network traffic
DTo monitor network latency
✗ Incorrect
Target groups organize the endpoints (like EC2 instances) that the NLB routes traffic to.
Describe how a Network Load Balancer manages incoming traffic and what makes it suitable for high-performance applications.
Think about speed, traffic type, and IP stability.
You got /5 concepts.
Explain the difference between Network Load Balancer and Application Load Balancer and when to use each.
Focus on OSI layers and traffic types.
You got /5 concepts.
Practice
(1/5)
1. What is the primary purpose of an AWS Network Load Balancer (NLB)?
easy
A. To efficiently distribute TCP/UDP traffic at the connection level
B. To manage HTTP requests with advanced routing rules
C. To store and retrieve data in a scalable way
D. To provide a user interface for managing AWS resources
Solution
Step 1: Understand NLB's traffic handling
NLB works at the connection level and handles TCP/UDP traffic efficiently.
Step 2: Compare with other AWS services
Unlike Application Load Balancer, NLB does not manage HTTP features but focuses on low latency and high throughput for TCP/UDP.
Final Answer:
To efficiently distribute TCP/UDP traffic at the connection level -> Option A
Quick Check:
NLB purpose = TCP/UDP load balancing [OK]
Hint: NLB handles TCP/UDP, not HTTP features [OK]
Common Mistakes:
Confusing NLB with Application Load Balancer
Thinking NLB manages HTTP routing
Assuming NLB stores data
2. Which of the following is a valid characteristic of an AWS Network Load Balancer (NLB)?
easy
A. Only supports HTTP and HTTPS protocols
B. Requires manual scaling for high traffic
C. Automatically modifies HTTP headers
D. Supports static IP addresses for the load balancer
Solution
Step 1: Identify NLB features
NLB supports static IP addresses, which is useful for fixed IP requirements.
Step 2: Eliminate incorrect options
NLB does not only support HTTP/HTTPS (it supports TCP/UDP), does not modify HTTP headers, and scales automatically.
Final Answer:
Supports static IP addresses for the load balancer -> Option D
Quick Check:
Static IP support = true for NLB [OK]
Hint: NLB supports static IPs, unlike ALB [OK]
Common Mistakes:
Thinking NLB only supports HTTP/HTTPS
Assuming NLB modifies HTTP headers
Believing NLB requires manual scaling
3. Given an NLB configured to balance TCP traffic across three targets, what happens if one target becomes unhealthy?
medium
A. NLB stops sending traffic to the unhealthy target and continues with healthy ones
B. NLB sends traffic evenly to all targets regardless of health
C. NLB shuts down until the unhealthy target recovers
D. NLB redirects traffic to a backup Application Load Balancer
Solution
Step 1: Understand NLB health checks
NLB performs health checks and routes traffic only to healthy targets.
Step 2: Analyze behavior on unhealthy target
If a target is unhealthy, NLB excludes it from routing until it recovers.
Final Answer:
NLB stops sending traffic to the unhealthy target and continues with healthy ones -> Option A
Quick Check:
Health checks exclude unhealthy targets [OK]
Hint: NLB routes only to healthy targets [OK]
Common Mistakes:
Assuming NLB sends traffic to unhealthy targets
Thinking NLB stops completely on failure
Believing NLB redirects to ALB automatically
4. You configured an NLB but notice it is not distributing UDP traffic as expected. What is the most likely cause?
medium
A. Health checks are disabled for the target group
B. The target group is configured for TCP instead of UDP
C. NLB does not support UDP traffic
D. NLB requires HTTP listeners for UDP traffic
Solution
Step 1: Check protocol configuration
NLB supports UDP, but the target group must be set to UDP to handle UDP traffic.
Step 2: Identify misconfiguration
If the target group is set to TCP, UDP traffic won't be routed correctly.
Final Answer:
The target group is configured for TCP instead of UDP -> Option B
Quick Check:
Target group protocol must match traffic [OK]
Hint: Match target group protocol to traffic type [OK]
Common Mistakes:
Thinking NLB does not support UDP
Ignoring target group protocol settings
Assuming health checks cause traffic issues
5. You need to design a highly scalable system that requires static IP addresses and low latency for millions of TCP connections. Which AWS load balancer should you choose and why?
hard
A. Gateway Load Balancer, because it manages HTTP and TCP traffic with static IPs
B. Application Load Balancer, because it supports HTTP routing and static IPs
C. Network Load Balancer, because it supports static IPs and handles millions of TCP connections with low latency
D. Classic Load Balancer, because it is the newest and fastest option
Solution
Step 1: Identify requirements
The system needs static IPs, low latency, and support for millions of TCP connections.
Step 2: Match requirements to load balancer features
NLB supports static IPs, is designed for extreme scalability, and handles TCP traffic efficiently with low latency.
Step 3: Eliminate incorrect options
ALB focuses on HTTP, Classic LB is older and less scalable, Gateway LB is for network appliances, not general TCP load balancing.
Final Answer:
Network Load Balancer, because it supports static IPs and handles millions of TCP connections with low latency -> Option C
Quick Check:
Static IP + TCP + scalability = NLB [OK]
Hint: For static IP and TCP scale, choose NLB [OK]
Common Mistakes:
Choosing ALB for TCP static IP needs
Confusing Classic LB as newest
Assuming Gateway LB handles general TCP load balancing
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.