Associate Cloud Engineer ยท Managing network resources
What do Cloud DNS zones and Cloud NAT each do?
Public vs private managed zones, record sets, Cloud NAT for VMs without external IPs, requirement for Cloud Router, NAT logging.
Key points
- Cloud DNS hosts managed zones; record sets such as A or CNAME live inside a zone.
- Public zone (--visibility=public): answers the internet.
- Private zone (--visibility=private): answers only VPC networks you authorize.
- Cloud NAT: outbound internet for VMs without external IPs, via a gateway on a Cloud Router in the same region.
- Replies to established connections pass; unsolicited inbound traffic does not.
Source: https://docs.cloud.google.com/nat/docs/overview
Practice questions
Which Google Cloud component does a Cloud NAT gateway depend on?
- A Cloud Router in the same region
- A proxy VM in each subnet
- A global external load balancer
- A Cloud VPN tunnel
Show answer
Answer: A. A Cloud Router in the same region
The NAT gateway is configured on a Cloud Router in the same region as the subnets it serves. A load balancer or a bastion VM is not involved.
Which statements about Cloud DNS managed zones are correct?
- A private zone answers only queries from VPC networks authorized for it
- A public zone is created with --visibility=public
- NS and SOA records are created automatically with a new zone
- A public zone is visible only inside the VPC that created it
- Record sets are stored directly in the project, outside any zone
Show answer
Answer: A. A private zone answers only queries from VPC networks authorized for it, B. A public zone is created with --visibility=public, C. NS and SOA records are created automatically with a new zone
Private zones are visible only to the VPC networks you list, and public zones are created with a visibility flag. NS and SOA records are created automatically with the zone. Public zones are not limited to a VPC, and records belong to a zone, not directly to a project.
True or false: with Cloud NAT in place, hosts on the internet can start new connections to your VMs that have no external IP.
Show answer
Answer: False
False. Cloud NAT only translates outbound connections and the replies to them; it does not allow unsolicited inbound connections.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
