Bird
0
0

A company wants to ensure their web app stays available even if one server fails. They have three servers behind a load balancer. Which setup best achieves this goal?

hard📝 Best Practice Q15 of 15
GCP - Cloud Load Balancing
A company wants to ensure their web app stays available even if one server fails. They have three servers behind a load balancer. Which setup best achieves this goal?
AUse a load balancer with health checks and three backend servers in different zones.
BUse a single server with a backup database.
CUse three servers without a load balancer and rely on DNS round robin.
DUse a load balancer but disable health checks to avoid false failures.
Step-by-Step Solution
Solution:
  1. Step 1: Understand high availability requirements

    To stay available if one server fails, traffic must shift automatically to healthy servers in different zones.
  2. Step 2: Evaluate options for failover

    Use a load balancer with health checks and three backend servers in different zones. uses load balancer with health checks and multi-zone servers, ensuring automatic failover and availability.
  3. Step 3: Reject other options

    Use a single server with a backup database. lacks redundancy; Use three servers without a load balancer and rely on DNS round robin. lacks health checks and proper failover; Use a load balancer but disable health checks to avoid false failures. risks undetected failures by disabling health checks.
  4. Final Answer:

    Use a load balancer with health checks and three backend servers in different zones. -> Option A
  5. Quick Check:

    Health checks + multi-zone = high availability [OK]
Quick Trick: Health checks + multi-zone servers ensure uptime [OK]
Common Mistakes:
  • Disabling health checks thinking it helps
  • Relying on DNS round robin alone
  • Using single server for high availability

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes