Soru

Zorluk: KolayManaging Networking Resources

A Cloud Engineer needs to reserve a static regional external IP address named `frontend-static-ip` in the `us-east1` region for a Google Cloud workload using the command-line interface. Which `gcloud` command should the engineer run?

  1. gcloud compute addresses create frontend-static-ip --region=us-east1Cevap
  2. B
    gcloud compute networks subnets update frontend-static-ip --region=us-east1
  3. C
    gcloud compute routes create frontend-static-ip --region=us-east1
  4. D
    gcloud storage addresses create frontend-static-ip --region=us-east1

Cevap

The command `gcloud compute addresses create frontend-static-ip --region=us-east1` reserves a static regional external IP address.
To reserve a static regional external IP address in Google Cloud, the `gcloud compute addresses create [ADDRESS_NAME] --region=[REGION]` command is used. This allocates a static IP address in the specified region that can be attached to Compute Engine instances or load balancers.

Adım Adım Çözüm

1
Identify the target resource category in gcloud.
IP address reservations belong to the `gcloud compute addresses` command group.
Networking addresses in Compute Engine are managed through `compute addresses`.
2
Specify the action subcommand and target name.
Use `create frontend-static-ip` to create a new address reservation with that name.
Creating a static IP reservation requires the `create` action.
3
Append mandatory location flags for regional IP allocation.
Add `--region=us-east1` to assign the static IP to the specified region.
Regional external IP addresses require the explicit `--region` flag.

Anahtar Kavram

Reserving Static IP Addresses in GCP
Bu soruyu puanla