Your company is getting ready to deploy a multi-region application on Google Cloud.
The public-facing front-end will use a global external HTTP(S) Load Balancer and must keep the same IPv4 address across redeployments.
A back-end service that runs only in us-central1 will later be exposed by an internal TCP/UDP Load Balancer and needs a fixed virtual IP (VIP) inside the 10.20.0.0/24 subnet of the subnet named prod-subnet.
You want to reserve both IP addresses ahead of time with the gcloud CLI so no other team can allocate them. Which set of commands follows Google Cloud conventions for address scope and required flags?
To reserve a static IPv4 address for a global external HTTP(S) Load Balancer, use gcloud compute addresses create with the --global flag; no --region flag is needed because the address is global in scope.
An internal TCP/UDP Load Balancer uses a regional, subnet-specific address. Reserve it with gcloud compute addresses create specifying --region, --subnet, and the desired address. The --purpose flag is optional for internal load-balancer VIPs; omitting it still allows the address to be used for the load balancer.
Therefore, the only command set that correctly applies --global to the external address, omits --region for that address, and reserves the internal VIP regionally without using --global or unnecessary purpose flags is the correct choice. Other options either use --region for the global address, try to make the internal VIP global, or set an incorrect purpose, so they will fail or reserve addresses that cannot be used as intended.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is the --global flag necessary for the external HTTP(S) Load Balancer's IP address?
Open an interactive chat with Bash
What does the --purpose flag do when reserving an internal IP address?
Open an interactive chat with Bash
What happens if the --region flag is used with a global IP address?
Open an interactive chat with Bash
Can you explain the difference between global and regional IP address scopes in Google Cloud?
Open an interactive chat with Bash
What is the purpose of the flag --purpose when reserving an internal IP address?
Open an interactive chat with Bash
Why is it necessary to specify the subnet when reserving an internal IP address?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .