0
0
AWScloud~20 mins

Network Load Balancer (NLB) in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
NLB Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does a Network Load Balancer handle sudden traffic spikes?

Imagine a popular online store uses a Network Load Balancer (NLB) to distribute incoming customer requests. Suddenly, a flash sale causes a huge spike in traffic. How does the NLB manage this sudden increase?

AIt automatically scales to handle millions of requests per second without pre-warming.
BIt queues incoming requests until backend servers are free to handle them.
CIt drops excess requests when traffic exceeds a fixed limit set during setup.
DIt redirects traffic to a backup load balancer to share the load.
Attempts:
2 left
💡 Hint

Think about how NLBs are designed to handle large volumes of traffic efficiently.

Architecture
intermediate
2:00remaining
Choosing the right target type for an NLB

You are designing a system using an AWS Network Load Balancer. You have two options for targets: IP addresses or instance IDs. Which choice allows you to load balance traffic to resources outside your VPC?

AUsing instance IDs because they allow cross-region load balancing.
BUsing instance IDs because they represent EC2 instances inside the VPC only.
CUsing IP addresses because they can point to any reachable resource, including outside the VPC.
DUsing IP addresses because instance IDs are deprecated.
Attempts:
2 left
💡 Hint

Consider which target type can represent resources outside the AWS environment.

scaling
advanced
2:00remaining
Estimating capacity for a Network Load Balancer

Your application expects 10 million TCP connections per minute. You plan to use an NLB to distribute this load. Which of the following is the best estimate of the NLB's capacity to handle this traffic?

ANLB can handle up to 1 million connections per minute, so you need 10 NLBs.
BNLB cannot handle TCP connections, only HTTP/HTTPS.
CNLB capacity depends on backend instances, so you must scale instances, not the NLB.
DNLB can handle millions of connections per second, so a single NLB can handle 10 million per minute easily.
Attempts:
2 left
💡 Hint

Recall the NLB's design for high throughput and connection handling.

tradeoff
advanced
2:00remaining
Tradeoffs between Network Load Balancer and Application Load Balancer

You need to choose between an AWS Network Load Balancer (NLB) and an Application Load Balancer (ALB) for your service. Which statement correctly describes a key tradeoff?

ANLB operates at the transport layer (TCP/UDP) and offers ultra-low latency, while ALB operates at the application layer (HTTP/HTTPS) with more routing features.
BALB can handle millions of connections per second, but NLB is limited to thousands.
CNLB supports advanced HTTP routing features, while ALB only supports TCP routing.
DNLB is cheaper but less reliable than ALB.
Attempts:
2 left
💡 Hint

Think about the OSI layers where each load balancer operates and their feature sets.

component
expert
3:00remaining
Request flow through a Network Load Balancer with multiple AZs

Consider an NLB deployed across three Availability Zones (AZs) with backend instances in each AZ. A client sends a TCP request. Which sequence best describes the request flow from client to backend instance?

A1, 2, 4, 3
B1, 2, 3, 4
C2, 1, 3, 4
D1, 3, 2, 4
Attempts:
2 left
💡 Hint

Think about how NLB preserves client IP and routes within AZs.