Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Cloud Network Engineer practice bank has an additional 2,437 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
Your organization uses a Shared VPC (host-vpc in project net-host) connected to on-premises via Dedicated Interconnect in us-central1. host-vpc already has a DNS server policy bound for private logging. A separate peered VPC (partner-vpc in partner-proj) hosts Private Service Connect endpoints registered in a Service Directory DNS zone (us-central1.p.example.com).
You must meet these requirements within the same organization:
svc-a to own and manage a private zone (orders.gcp.example.com) resolvable from host-vpc and on-premises without creating a VPC in svc-a.us-central1.p.example.com.host-vpc and partner-vpc redirecting *.googleapis.com to restricted.googleapis.com inside a VPC Service Controls perimeter.Which configuration should you implement?
host-vpc DNS server policy to enable inbound forwarding and create a VPC firewall rule allowing TCP/UDP port 53 from on-premises to host-vpc's us-west1 inbound forwarder IP. Create orders.gcp.example.com in net-host with roles/dns.admin granted to svc-a admins, bind a DNS peering zone from partner-vpc to host-vpc for us-central1.p.example.com, and attach a response policy to host-vpc only.This option enables inbound forwarding on host-vpc's existing policy, centralizes orders.gcp.example.com in net-host using roles/dns.admin, creates a DNS peering zone in partner-vpc pointing to host-vpc, adds a VPC firewall rule for a us-west1 forwarder IP, and attaches a response policy solely to host-vpc.
partner-vpc targeting host-vpc lets partner-vpc resolve zones in host-vpc, but does not allow host-vpc (or on-premises queries entering host-vpc) to resolve the us-central1.p.example.com Service Directory zone hosted in partner-vpc.orders.gcp.example.com inside net-host and granting svc-a administrators roles/dns.admin on the host project gives them read-write access to host-project DNS resources instead of isolating zone ownership in svc-a via cross-project binding.host-vpc leaves partner-vpc without the restricted.googleapis.com redirect required by the VPC Service Controls security requirement.us-central1—the same region as the Dedicated Interconnect VLAN attachment—rather than us-west1 to ensure optimal routing and accurate regional query association.orders.gcp.example.com were created in svc-a via cross-project binding, the DNS peering zone were created in host-vpc targeting partner-vpc, the response policy were bound to both VPCs, and on-premises forwarded queries to the us-central1 entry point.net-host bound to both host-vpc and partner-vpc using dns.networks.bindPrivateDNSPolicy, and configure on-premises resolvers to forward us-central1.p.example.com directly to partner-vpc's inbound forwarder IP. Create orders.gcp.example.com in svc-a using cross-project binding to host-vpc, and attach a response policy to both VPCs mapping *.googleapis.com. to restricted.googleapis.com..This approach attempts to deploy a second DNS server policy across net-host and partner-proj while relying on cross-project DNS policy binding (dns.networks.bindPrivateDNSPolicy) so on-premises resolvers can query partner-vpc's inbound forwarder IP directly over VPC Network Peering.
host-vpc already has a DNS server policy attached for private logging, trying to bind a newly created inbound policy to host-vpc results in a configuration error. You must update the existing policy instead.host-vpc to an inbound forwarder IP inside partner-vpc.dns.networks.bindPrivateDNSPolicy allows a single DNS server policy to be bound to VPC networks across different projects, binding a policy to a remote peered VPC does not make that VPC's inbound forwarders routable from on-premises.orders.gcp.example.com and attaching a shared response policy across both VPCs are valid techniques, but they cannot compensate for the broken inbound forwarding path.host-vpc targeting partner-vpc, host-vpc's inbound forwarder has no mechanism to resolve us-central1.p.example.com.host-vpc's existing DNS server policy were updated rather than replaced with a second policy, partner-vpc had its own direct Cloud Interconnect or Cloud VPN connection (or host-vpc used a DNS peering zone targeting partner-vpc), and on-premises queries were directed to host-vpc's us-central1 inbound forwarder IP.host-vpc DNS server policy with inbound forwarding and an alternative name server pointing to on-premises, and bind it to partner-vpc. Configure a DNS peering zone from host-vpc to a new VPC in svc-a for orders.gcp.example.com and to partner-vpc for us-central1.p.example.com. Create a public Cloud DNS zone for googleapis.com in net-host to direct traffic to restricted.googleapis.com..This option combines inbound forwarding with an outbound alternative name server policy across host-vpc and partner-vpc, introduces a new VPC network in svc-a for DNS peering, and attempts to use a public Cloud DNS zone inside a VPC Service Controls perimeter to handle googleapis.com resolution.
orders.gcp.example.com and us-central1.p.example.com from resolving.svc-a: Creating a VPC network in svc-a solely to host a private zone for DNS peering directly violates the requirement to avoid creating a VPC in svc-a and is unnecessary when cross-project binding is available.restricted.googleapis.com (199.36.153.4/30) requires a private Cloud DNS zone or a response policy bound to the VPC networks.svc-a without creating a VPC, and a private zone or response policy were used instead of a public zone.host-vpc to enable inbound forwarding, and forward on-premises queries to its us-central1 entry point. Use cross-project binding (dns.networks.bindPrivateDNSZone on net-host) for orders.gcp.example.com in svc-a, create a DNS peering zone in host-vpc targeting partner-vpc for us-central1.p.example.com, and attach a single response policy across host-vpc and partner-vpc (dns.networks.bindDNSResponsePolicy on each project) mapping *.googleapis.com. to restricted.googleapis.com..This solution combines Cloud DNS cross-project binding, inbound DNS server policies, DNS peering, and Cloud DNS response policies to build a secure, multi-project hybrid DNS topology without duplicating hybrid connectivity or relaxing project boundaries.
orders.gcp.example.com in svc-a and authorizing host-vpc via its network URL separates DNS namespace ownership from network ownership. This requires dns.managedZones.create on svc-a and dns.networks.bindPrivateDNSZone on net-host, eliminating the need for a placeholder VPC in svc-a.host-vpc must be updated to turn on inbound forwarding. Since inbound forwarder IP addresses are not reachable across VPC Network Peering boundaries, host-vpc acts as the DNS consumer and uses a Cloud DNS peering zone (requiring dns.networks.targetWithPeeringZone on partner-proj) targeting partner-vpc for us-central1.p.example.com. On-premises resolvers send queries to an inbound forwarder entry point in us-central1, matching the Dedicated Interconnect VLAN attachment region.host-vpc and partner-vpc (requiring dns.responsePolicies.create and dns.networks.bindDNSResponsePolicy for each project) redirects *.googleapis.com. queries to restricted.googleapis.com. using local CNAME rules, mitigating data exfiltration risks.svc-a administrators manage records independently without gaining permissions in net-host.Every constraint—single server policy per VPC, non-reachability of inbound forwarders across VPC peering, cross-project IAM boundaries, and VPC Service Controls compliance—is satisfied with minimal operational complexity.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated