D3: Subnets, IPs, Routes, DNS & NAT
Google Cloud Associate Cloud Engineer exam practice questions · 13 flashcards
Question
How do you expand a subnet range?
1 / 13
Tip: Space flips the card, ← / → navigate.
Show all 13 Subnets, IPs, Routes, DNS & NAT practice questions and answers
- How do you expand a subnet range?gcloud compute networks subnets expand-ip-range SUBNET --region=R --prefix-length=N.
- Can you shrink a subnet?No; only expand, and the new range must not overlap.
- How do you reserve a static external IP?gcloud compute addresses create NAME --region=REGION (or --global for global LB).
- How do you reserve a static internal IP?gcloud compute addresses create NAME --region=R --subnet=SUB --addresses=IP.
- How do you promote an ephemeral IP to static?Reserve it with --addresses=CURRENT_IP.
- Are unused static external IPs charged?Yes.
- How do you add a custom static route?gcloud compute routes create NAME --network=NET --destination-range=CIDR --next-hop-instance/... --priority=N.
- How is route selection done?Most specific prefix first, then priority (lower wins).
- What is Cloud DNS?Managed authoritative DNS with public and private zones.
- What is a private DNS zone?Records visible only to selected VPC networks.
- What are forwarding and peering zones?Forwarding: send queries to other DNS servers. Peering: resolve using another VPC's DNS.
- What is Cloud NAT?Managed outbound NAT so private VMs/GKE nodes reach the internet without external IPs.
- Does Cloud NAT allow inbound connections?No, outbound only; it's regional and configured on a Cloud Router.