Question

Difficulty: MediumDeploying Cloud Load Balancers and Configuring Cloud DNS

You are deploying a Global External HTTP Load Balancer using the gcloud CLI to distribute web application traffic across Compute Engine instance groups in multiple regions. Place the deployment steps in the correct chronological order from first to last.

  1. 1Create a global HTTP health check to monitor backend instance availability.
  2. 2Create a global backend service and attach the health check and instance groups.
  3. 3Create a URL map that references the default backend service.
  4. 4Create a target HTTP proxy that links to the URL map.
  5. 5Create a global forwarding rule that binds an IP address and port to the target HTTP proxy.

Answer

The correct order of deployment steps is: 1) Create a global HTTP health check, 2) Create a global backend service and attach the health check and instance groups, 3) Create a URL map referencing the backend service, 4) Create a target HTTP proxy pointing to the URL map, and 5) Create a global forwarding rule pointing to the target HTTP proxy.
In GCP, load balancer components rely on direct dependency references. You must first create the health monitoring mechanism (health check) and backend pool configuration (backend service), followed by request routing logic (URL map), HTTP protocol processing (target HTTP proxy), and finally the public network listener (global forwarding rule).

Step-by-Step Solution

1
Create the Health Check
A global health check resource is created.
Backend services require a valid health check reference upon creation to monitor backend pool health.
2
Create the Backend Service and add Backends
The global backend service is provisioned with attached Compute Engine managed instance groups.
Backend services aggregate instances and define traffic distribution policies.
3
Create the URL Map
A URL map object is created specifying the default backend service.
URL maps route HTTP requests to specific backend services based on path rules.
4
Create the Target HTTP Proxy
A target proxy resource is provisioned linking to the URL map.
The target proxy evaluates incoming HTTP headers against the URL map rules.
5
Create the Global Forwarding Rule
An external IP and port listener are configured as the load balancer frontend.
The forwarding rule routes incoming client traffic on the frontend IP address to the target proxy.

Key Concept

Deploying a Global External HTTP Load Balancer in Google Cloud follows a bottom-up dependency hierarchy: Health Check → Backend Service → URL Map → Target Proxy → Global Forwarding Rule.
Rate this question