Question 4 of 84 from exam PCD: Professional Cloud Developer

Question 4 of 84 from exam PCD: Professional Cloud Developer

Question

You have deployed an HTTP(s) Load Balancer with the gcloud commands shown below.

export NAME-load-balancer

# create network
geloud compute networks create ${NAME}

# add instance
geloud compute instances create ${NAME}-backend-instance-1 --subnet ${NAME} --no address

# create the instance group

geloud compute instance-groups unmanaged create ${NAME}-i

geloud compute instance-groups unmanaged set-named-ports ${NAME}-i --named-ports http:80
geloud compute instance-groups unmanaged add-instances ${NAME}-i --instances ${NAME}-instance-1

# configure health checks
geloud compute health-checks create http ${NAME}-http-he --port 80

# create backend service

geloud compute backend-services create ${NAME}-http-bes --health-checks ${NAME}-http-he --protocol HTTP --port-name http
--global

geloud compute backend-services add-backend ${NAME}-http-bes --instance-group ${NAME}-i --balancing-mode RATE --max-rate

100000 --capacity-scaler 1.0 --global --instance-group-zone us-easti-d

# create urls maps and forwarding rule

geloud compute url-maps create ${NAME}-http-urlmap --default-service ${NAME}-http-bes

geloud compute target-http-proxies create ${NAME}-http-proxy --url-map ${NAME}-http-urlmap

geloud compute forwarding-rules create ${NAME}-http-fw --global --ip-protocol ICP --target-http-proxy ${NAME}-http-proxy
--ports 80

Health checks to port 80 on the Compute Engine virtual machine instance are failing and no traffic is sent to your instances.

You want to resolve the problem.

Which commands should you run?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C.

https://cloud.google.com/vpc/docs/special-configurations