Professional Cloud Security Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An enterprise organization operates a hub-and-spoke topology across multiple Google Cloud projects. The hub project hosts private managed DNS zones for centralized internal microservices. The security team has defined the following requirements for all spoke VPC networks:
Which combination of Cloud DNS security and architecture controls should the security engineer deploy?
Create duplicate private managed zones in each spoke VPC containing identical A and CNAME records; create VPC firewall egress rules matching malicious domain names; and grant the roles/dns.reader role to the spoke service identities on the hub project.
Create Cloud DNS Peering Zones in the spoke VPC networks targeting the hub VPC network as the DNS producer network; configure Cloud DNS Response Policies associated with the spoke VPC networks that define local data sinkhole records and bypassResponsePolicy behavior rules; and grant the roles/dns.peer role to the spoke service identities on the hub project.
Configure VPC Network Peering with custom route export between all spoke VPCs and the hub VPC; deploy Cloud DNS Outbound Server Policies with Type 2 alternative name servers to filter malicious queries; and grant the roles/dns.admin role to the spoke service identities on the hub project.
Deploy Cloud DNS Forwarding Zones in each spoke VPC targeting the Cloud DNS metadata address 169.254.169.254; attach Cloud Armor security policies to intercept malicious DNS domain queries; and grant the roles/compute.networkAdmin role to the spoke service identities.
Create duplicate private managed zones in each spoke VPC containing identical A and CNAME records; create VPC firewall egress rules matching malicious domain names; and grant the roles/dns.reader role to the spoke service identities on the hub project.
Create Cloud DNS Peering Zones in the spoke VPC networks targeting the hub VPC network as the DNS producer network; configure Cloud DNS Response Policies associated with the spoke VPC networks that define local data sinkhole records and bypassResponsePolicy behavior rules; and grant the roles/dns.peer role to the spoke service identities on the hub project.
Cloud DNS Peering Zones, DNS Response Policies (RPZ), and the DNS Peer role (roles/dns.peer) provide a secure, scalable framework for centralized name resolution, granular traffic redirection, and least-privilege administrative access across multi-project Google Cloud environments.
A Cloud DNS peering zone is a private zone configured in a consumer network (the spoke VPC) that forwards DNS queries for a given namespace to a producer network (the hub VPC). This allows instances in spoke VPCs to query private records hosted centrally in the hub network without needing VPC network peering at the data plane or duplicating zone records across spoke projects.
Cloud DNS Response Policies act as a response policy zone (RPZ) mechanism applied directly to VPC networks. They evaluate DNS queries before standard resolution paths:
localData, queries matching malicious or unauthorized domains are intercepted and resolved to an internal sinkhole IP address (or NXDOMAIN).--behavior=bypassResponsePolicy attribute, trusted domain lookups bypass policy matching and resolve normally through authoritative zones or upstream resolvers.The predefined roles/dns.peer (DNS Peer) role allows an identity to establish a DNS peering link pointing to a VPC network in the target project without granting permissions to view, alter, or delete individual resource record sets or private managed zones in that target project.
roles/dns.admin) segregated from network peering binding (roles/dns.peer).Configure VPC Network Peering with custom route export between all spoke VPCs and the hub VPC; deploy Cloud DNS Outbound Server Policies with Type 2 alternative name servers to filter malicious queries; and grant the roles/dns.admin role to the spoke service identities on the hub project.
Deploy Cloud DNS Forwarding Zones in each spoke VPC targeting the Cloud DNS metadata address 169.254.169.254; attach Cloud Armor security policies to intercept malicious DNS domain queries; and grant the roles/compute.networkAdmin role to the spoke service identities.