Question

Difficulty: EasyDeploying Cloud Load Balancers and Configuring Cloud DNS

You need to deploy a Global External Application Load Balancer in Google Cloud using gcloud commands to serve a web application. What is the correct sequence of steps to configure the load balancer components from the back end to the front end?

  1. 1Create an unmanaged or managed instance group containing the backend Compute Engine instances.
  2. 2Create an HTTP health check and configure a global backend service that references the health check and instance group.
  3. 3Create a URL map that routes incoming request paths to the backend service.
  4. 4Create a target HTTP proxy linked to the URL map, and create a global forwarding rule with an IP address pointing to the target proxy.

Answer

The correct deployment sequence from back end to front end is: 1) Create the instance group containing backend VMs, 2) Create a health check and backend service referencing the instance group, 3) Create a URL map referencing the backend service, and 4) Create the target proxy and global forwarding rule for frontend traffic entry.
Google Cloud HTTP(S) load balancers require a bottom-up deployment dependency order. First, backend instances must be grouped into an instance group. Second, a health check and backend service must be created. Third, a URL map is created to route traffic to the backend service. Finally, a target HTTP proxy and global forwarding rule are created to provide the external IP frontend.

Step-by-Step Solution

1
Provision backend Compute Engine instances and group them into an Instance Group.
Backend compute capacity is established.
Traffic destinations must exist prior to configuring load balancing routing components.
2
Create an HTTP health check and define a backend service linking the health check and instance group.
Backend service is ready to handle health verification and traffic routing.
Backend services manage health probes and balancing algorithms for target instance groups.
3
Create a URL map specifying the default backend service.
Routing configuration mapping requests to backend services is created.
Target proxies require a URL map to determine where incoming HTTP requests should be routed.
4
Create a target HTTP proxy referencing the URL map and attach a global forwarding rule.
Frontend configuration is complete and listening for external requests.
The forwarding rule receives external IP traffic and hands it off to the target proxy, completing the chain.

Key Concept

Global External Application Load Balancer Architecture and Dependency Order
Rate this question