Recall & Review
beginner
What is the round-robin method in nginx load balancing?
Round-robin is the default load balancing method in nginx. It distributes incoming requests evenly across all backend servers in a repeating order, like taking turns.
Click to reveal answer
beginner
How does nginx decide which server to send a request to when using round-robin?
Nginx sends each new request to the next server in the list, cycling back to the first server after reaching the last one.
Click to reveal answer
intermediate
Show a simple nginx configuration snippet using round-robin load balancing.
upstream backend {
server backend1.example.com;
server backend2.example.com;
}
server {
location / {
proxy_pass http://backend;
}
}
Click to reveal answer
beginner
Why is round-robin load balancing useful?
It spreads the workload evenly across servers, preventing any single server from getting too busy and improving overall performance.
Click to reveal answer
intermediate
What happens if one backend server is slow or down in a round-robin setup?
Nginx will still send requests to that server unless health checks or failover are configured. This can cause delays or errors for users.
Click to reveal answer
What is the default load balancing method in nginx?
✗ Incorrect
Nginx uses round-robin as the default method, sending requests evenly in order to backend servers.
In round-robin load balancing, how does nginx choose the next server?
✗ Incorrect
Round-robin cycles through servers one by one, repeating the sequence.
Which nginx directive defines the group of backend servers for load balancing?
✗ Incorrect
The 'upstream' block lists backend servers for load balancing.
What is a limitation of round-robin without health checks?
✗ Incorrect
Without health checks, nginx may send requests to servers that are down or slow.
How can you improve round-robin load balancing to avoid sending requests to unhealthy servers?
✗ Incorrect
Health checks help nginx detect unhealthy servers and skip them.
Explain how round-robin load balancing works in nginx and why it is useful.
Think about taking turns to share work fairly.
You got /4 concepts.
Describe a simple nginx configuration to set up round-robin load balancing with two backend servers.
Focus on how to list servers and connect them to the proxy.
You got /4 concepts.