Courseiva

Google Professional Cloud Network Engineer (PCNE) — Questions 376450

961 questions total · 13pages · All types, answers revealed

Page 5

Page 6 of 13

Page 7
376
MCQhard

A company uses Shared VPC with a host project and several service projects. They want to allow only a specific team to create subnets in the host project, and another team to use those subnets in their service projects. Which IAM roles should be assigned?

A.Compute Network Admin on host project for both teams.
B.Compute Network Admin on host project for subnet creators; Compute Network User on host project for subnet users.
C.Compute Shared VPC Admin on host project for subnet creators; Compute Network User on host project for subnet users.
D.Compute Network User on host project for subnet creators; Compute Network Admin on service projects for subnet users.
AnswerB

Network Admin allows creating subnets; Network User allows using them.

Why this answer

To create subnets, a user needs the Compute Network Admin role on the host project. To use subnets, a user needs the Compute Network User role on the host project or specific subnets.

377
MCQeasy

A company has two VPCs in the same project: VPC-A (10.0.0.0/16) and VPC-B (10.1.0.0/16). They want to allow SSH from VPC-A to instances in VPC-B. The network admin creates a firewall rule with source range 10.0.0.0/16 and protocol tcp:22, but connectivity fails. What is the most likely cause?

A.The rule is created in VPC-A instead of VPC-B.
B.The source range should be 10.0.0.0/8.
C.The target tag is not specified.
D.The source tag is missing.
AnswerA

Firewall rules apply to the VPC they are created in. An ingress rule for VPC-B must be created in VPC-B.

Why this answer

Firewall rules in Google Cloud are applied at the network level, not the instance level. To allow inbound SSH traffic from VPC-A to instances in VPC-B, the firewall rule must be created in VPC-B (the destination network) with the source range set to 10.0.0.0/16. Creating the rule in VPC-A would only affect traffic destined for instances in VPC-A, not VPC-B.

Exam trap

Google Cloud often tests the misconception that firewall rules are applied at the source network or that rules are global across VPCs, when in fact each VPC has its own independent set of firewall rules and ingress rules must be in the destination VPC.

How to eliminate wrong answers

Option B is wrong because using 10.0.0.0/8 would unnecessarily broaden the source range to include other RFC 1918 addresses, which is not the cause of the failure and could introduce security risks. Option C is wrong because target tags are optional; if no target tags are specified, the rule applies to all instances in the VPC, so missing tags would not prevent connectivity. Option D is wrong because source tags are not used in this scenario; source filtering is done via source ranges (CIDR blocks), not tags, and omitting a source tag does not affect the rule's operation.

378
MCQhard

Refer to the exhibit. A request arrives with User-Agent 'GoodBot' and path '/admin'. What action does Cloud Armor take?

A.Deny the request because the rule with priority 300 has a higher priority number but matches path.
B.Allow the request because of the default rule at priority 1000.
C.Deny the request because both rules match and deny takes precedence.
D.Allow the request because the rule with priority 200 matches and allows it.
AnswerD

Priority 200 is evaluated before 300 and matches.

Why this answer

Cloud Armor evaluates rules in order of priority (lowest number = highest priority). The rule with priority 200 matches the request (User-Agent 'GoodBot' and path '/admin') and explicitly allows it. Once a matching allow rule is found, evaluation stops, and the request is allowed, overriding any lower-priority rules.

Exam trap

Google Cloud often tests the misconception that deny rules always override allow rules, but in Cloud Armor, the first matching rule (by priority) determines the action, regardless of whether it is allow or deny.

How to eliminate wrong answers

Option A is wrong because priority 300 is a higher number (lower priority) than 200, and Cloud Armor evaluates rules from lowest to highest priority number; the rule at priority 200 matches first and allows the request, so the rule at priority 300 is never reached. Option B is wrong because the default rule at priority 1000 only applies if no higher-priority rule matches; here, priority 200 matches and allows the request, so the default rule is not invoked. Option C is wrong because deny does not automatically take precedence; Cloud Armor uses first-match semantics based on priority, and the first matching rule (priority 200) allows the request, so no deny action occurs.

379
MCQmedium

An organization has a global web application deployed behind an External HTTPS Load Balancer. They want to reduce egress costs for users in Europe who are served from the same region. The application is already using Cloud CDN. Which additional action will MOST effectively reduce egress costs for these users?

A.Use Cloud Armor to block non-European traffic
B.Nothing; Cloud CDN already minimizes egress costs
C.Deploy a regional load balancer in Europe
D.Enable Private Google Access
AnswerB

Cloud CDN serves from edge locations, reducing egress for all users, including those in Europe.

Why this answer

Cloud CDN caches content at edge locations closer to users, reducing egress costs by serving cached responses from the edge. For users in Europe, if the origin is in the US, Cloud CDN will serve from European caches after the first request, minimizing cross-region egress.

380
MCQmedium

A company has deployed a Global External Application Load Balancer with Premium Tier and enables Cloud CDN. Users in Europe report high latency, while users in the US have good performance. The backend is a regional NEG in us-west1. What is the most likely cause?

A.The load balancer is using Premium Tier, which routes to the nearest backend; the backend is only in us-west1.
B.Cloud CDN is not enabled on the load balancer.
C.The load balancer is using Standard Tier, which does not support global anycast.
D.The origin server is sending 'Cache-Control: private' headers, preventing Cloud CDN from caching.
AnswerD

Cloud CDN respects origin cache headers; private or no-store headers prevent caching, so all requests hit the backend.

Why this answer

Cloud CDN cannot cache responses that include a 'Cache-Control: private' header. This header instructs intermediate caches (including CDN nodes) not to store the response, forcing all requests to go to the origin server in us-west1. Users in Europe experience high latency because their requests must traverse the long distance to the US origin, while US users benefit from shorter paths.

Enabling Cloud CDN alone does not guarantee caching; the origin must also allow caching by omitting 'private' or setting appropriate 'Cache-Control: public' and 'max-age' directives.

Exam trap

Google Cloud often tests the misconception that enabling Cloud CDN automatically caches all content, when in reality the origin's cache-control headers dictate cacheability, and 'Cache-Control: private' is a common reason for CDN bypass.

How to eliminate wrong answers

Option A is wrong because Premium Tier uses Google's global anycast network to route traffic to the nearest frontend IP address, not to the nearest backend; the backend location does not affect routing to the load balancer's global IP. Option B is wrong because the question states Cloud CDN is enabled on the load balancer, so the issue is not that CDN is disabled. Option C is wrong because the question explicitly states Premium Tier is used, not Standard Tier; Standard Tier would route traffic regionally and could cause high latency for European users, but that is not the case here.

381
MCQhard

Refer to the exhibit. A Cloud VPN tunnel is configured between an on-premises router and Google Cloud. The BGP session is not established. The on-premises router shows 'Connection refused'. What is the most likely cause?

A.The Cloud VPN tunnel is not established.
B.The on-premises router's BGP configuration has the wrong ASN.
C.The BGP MD5 password is mismatched between the two peers.
D.The Cloud Router is not configured to accept BGP connections from this on-premises peer.
AnswerD

'Connection refused' indicates the Cloud Router TCP port 179 is not accepting the connection, likely because the BGP peer is not defined on the Cloud Router or the interface is down.

Why this answer

The 'Connection refused' error on the on-premises router indicates that the Cloud Router is actively rejecting the TCP connection attempt for the BGP session. This typically occurs when the Cloud Router does not have a BGP peer configured with the on-premises router's IP address, or the peer is in an 'inactive' state. Since the Cloud VPN tunnel itself can be established (option A is not necessarily true), the most likely cause is that the Cloud Router is not configured to accept BGP connections from this specific on-premises peer.

Exam trap

Google Cloud often tests the distinction between TCP-level errors (like 'Connection refused') and BGP-level errors (like ASN mismatch or MD5 failure), leading candidates to incorrectly choose B or C when they see a BGP-related symptom without analyzing the specific error message.

How to eliminate wrong answers

Option A is wrong because a 'Connection refused' error occurs at the TCP layer, which requires the underlying IP connectivity to be working; if the Cloud VPN tunnel were not established, the on-premises router would likely see 'No route to host' or a timeout, not a TCP reset. Option B is wrong because a mismatched ASN would cause the BGP session to be rejected after the TCP connection is established, resulting in a 'BGP Notification' or 'Open message error', not a 'Connection refused' at the TCP handshake stage. Option C is wrong because an MD5 password mismatch would still allow the TCP three-way handshake to complete; the BGP session would then fail with an authentication error (e.g., 'MD5 mismatch' or 'BGP Notification sent' after the OPEN message), not a 'Connection refused'.

382
Multi-Selecthard

A company has a VPC that is connected to an on-premises network via a Cloud VPN tunnel using dynamic routing (BGP). They have set up a Cloud Router with an advertised IP range of 10.0.0.0/8. The on-premises network advertises 172.16.0.0/12. They also have a custom static route in the VPC for 10.0.0.0/8 that points to a next-hop VPN tunnel (the same tunnel) with priority 100. Recently, they added a new subnet 10.1.0.0/24 in the VPC. Traffic from on-premises to 10.1.0.0/24 is not working. Which THREE steps should they take to troubleshoot and resolve the issue? (Choose 3.)

Select 3 answers
A.Change the static route priority to 1000 to match dynamic routes.
B.Verify that the Cloud Router is advertising the 10.1.0.0/24 subnet to on-premises.
C.Verify that the new subnet's range is allowed in the on-premises firewall and route tables.
D.Delete the static route for 10.0.0.0/8 and rely solely on dynamic routing.
E.Check the BGP session status between the Cloud Router and the on-premises router.
AnswersB, C, E

The Cloud Router may not automatically advertise new subnets unless configured to do so via custom advertisements.

Why this answer

The issue is that traffic from on-premises to the new subnet 10.1.0.0/24 is not working. Since the VPC already has a Cloud VPN tunnel with dynamic routing (BGP) and a Cloud Router advertising 10.0.0.0/8, the new subnet 10.1.0.0/24 is more specific. Static routes with priority 100 for 10.0.0.0/8 do not override more specific dynamically learned routes; the most specific prefix wins.

Therefore, the most likely causes are: the Cloud Router is not advertising the new subnet to on-premises (B), the on-premises firewall or route tables do not allow 10.1.0.0/24 (C), or the BGP session between Cloud Router and on-premises router is down (E). Checking BGP session status (E) is a fundamental step. Deleting the static route (D) is unnecessary, and changing priority (A) is not relevant because dynamic routes already have higher priority and more specific routes are preferred regardless.

Thus, the correct steps are B, C, and E.

383
MCQmedium

A company has a GKE cluster with pods and services that need IP addresses. They want to plan IP address space to avoid overlapping with on-premises networks. Which GCP feature allows reserving separate IP ranges for GKE pods and services?

A.VPC peering
B.Alias IP ranges
C.Secondary IP ranges
D.Shared VPC
AnswerC

GKE uses secondary ranges for pods and services.

Why this answer

Secondary IP ranges on a subnet can be designated for GKE pods and services. These ranges are separate from the primary subnet range.

384
MCQeasy

Refer to the exhibit. Instances in subnet-b cannot access the internet through Cloud NAT. What is the most likely reason?

A.The firewall rules in subnet-b block egress.
B.The NAT IP address pool is exhausted.
C.Subnet-b has overlapping subnets.
D.Subnet-b is not included in the Cloud NAT configuration.
AnswerD

The exhibit shows only subnet-a in the NAT, so subnet-b has no NAT.

Why this answer

The Cloud NAT configuration only includes subnet-a, so subnet-b is not NATed.

385
MCQmedium

A company needs to connect multiple on-premises sites and multiple GCP VPCs in a hub-and-spoke topology using Google Cloud. Which service provides a centralized hub for managing such connectivity?

A.Network Connectivity Center
B.VPC Peering
C.Shared VPC
D.Cloud Router
AnswerA

NCC provides a hub-and-spoke model for connecting on-premises and VPC networks.

Why this answer

Network Connectivity Center (NCC) is the correct choice because it provides a centralized hub-and-spoke topology for connecting multiple on-premises sites (via VPN, Interconnect, or third-party SD-WAN appliances) and multiple GCP VPCs. It manages routing and policy distribution across spokes, eliminating the need for individual peering or complex route tables, and supports both intra- and cross-region connectivity.

Exam trap

The trap here is that candidates confuse VPC Peering or Shared VPC as a hub-and-spoke solution, but neither provides centralized management or transitive routing across multiple VPCs and on-premises sites, which is the key requirement of the question.

How to eliminate wrong answers

Option B is wrong because VPC Peering creates direct, point-to-point connections between two VPCs and does not support a hub-and-spoke model with centralized management; each peering must be configured individually and transitive routing is not supported. Option C is wrong because Shared VPC allows multiple projects to use a common VPC host network but does not connect on-premises sites or provide a hub for multiple separate VPCs; it is a project-level resource sharing mechanism, not a connectivity hub. Option D is wrong because Cloud Router is a dynamic routing component used for BGP sessions with on-premises networks via VPN or Interconnect, but it does not serve as a centralized hub for managing multiple VPCs and sites; it is a per-connection router, not a topology manager.

386
MCQeasy

An engineer creates a Cloud NAT configuration as shown in the exhibit. The test-instance is created without an external IP address. However, the instance cannot reach the internet. What is the most likely cause?

A.The subnet subnet-a is in a region different from us-central1
B.The Cloud Router is not in the same zone as the instance
C.A firewall rule is blocking outbound traffic from the instance
D.Logging is enabled but not configured to send logs to Cloud Logging
AnswerA

Cloud NAT covers only subnets in the same region as the NAT router. If subnet-a is in another region, it is not covered.

Why this answer

Cloud NAT is a regional resource that applies to all instances within a given region. The exhibit shows subnet-a is in a different region than us-central1, so the NAT gateway cannot route traffic from instances in that subnet. Even though the instance is in us-central1, the subnet's region mismatch means the NAT configuration does not apply, leaving the instance without internet access.

Exam trap

Google Cloud often tests the misconception that Cloud NAT is zonal or that Cloud Router must be in the same zone as the instance, but the key trap here is that candidates overlook the regional scope of Cloud NAT and assume subnet location is irrelevant.

How to eliminate wrong answers

Option B is wrong because Cloud Router is a regional resource, not zonal, and does not need to be in the same zone as the instance; it only needs to be in the same region. Option C is wrong because the question states the instance cannot reach the internet, but no firewall rule is mentioned or implied; by default, VPC firewall rules allow outbound traffic, and the issue is specifically about NAT configuration. Option D is wrong because enabling logging is optional and does not affect the ability to reach the internet; it only controls whether NAT connection logs are sent to Cloud Logging.

387
MCQmedium

A company has a GKE cluster with pods and services that need to communicate with on-premises resources over a VPN. The on-premises firewall requires the source IP of the pods to be from a specific range. Which secondary IP ranges should be configured on the VPC subnet?

A.Primary IP range and secondary pod range
B.Only the secondary service range
C.Secondary pod range and secondary service range
D.Primary IP range and secondary service range
AnswerC

GKE uses secondary pod range for pod IPs and service range for ClusterIPs. Pods use pod range as source.

Why this answer

In GKE, pods are assigned IP addresses from the secondary pod range, and services (of type ClusterIP) are assigned IPs from the secondary service range. For on-premises resources to allow traffic from pods via a VPN, the firewall must see the pod IPs (not node IPs), so the secondary pod range must be configured on the VPC subnet. The secondary service range is also required for service discovery and proper routing, but the source IP seen by on-premises will be the pod IP from the secondary pod range.

Exam trap

The trap here is that candidates often confuse the primary IP range (used for nodes) with the pod IP range, or assume that only the pod range is needed, forgetting that the secondary service range is mandatory for GKE cluster creation and service IP allocation.

How to eliminate wrong answers

Option A is wrong because the primary IP range is used for nodes, not pods; configuring only the primary range and secondary pod range would omit the secondary service range, which is needed for Kubernetes services to function correctly (e.g., kube-dns, service IP allocation). Option B is wrong because configuring only the secondary service range would provide IPs for services but not for pods; the on-premises firewall expects pod source IPs, which come from the secondary pod range, not the service range. Option D is wrong because the primary IP range is for nodes, not pods, and the secondary service range alone does not provide pod IPs; the on-premises firewall would see node IPs (from the primary range) instead of pod IPs, breaking the required source IP restriction.

388
MCQhard

Your company has a Dedicated Interconnect between on-premises and Google Cloud. After a maintenance window, some routes are missing from the on-premises side. On the Cloud Router, you see that the BGP session status is 'ESTABLISHED'. However, the route table on the on-premises router does not contain any of the VPC subnets. What is the most likely cause?

A.The Cloud Router is not configured to advertise any custom routes
B.MD5 authentication is enabled but passwords differ
C.The Cloud Router has an empty 'Advertised IP ranges' list
D.BGP configuration mismatch on the on-premises router
AnswerC

If the list is empty, no prefixes are advertised.

Why this answer

The BGP session is 'ESTABLISHED', confirming that the TCP connection and BGP peering are working correctly. However, the on-premises router is not receiving any VPC subnet routes because the Cloud Router's 'Advertised IP ranges' list is empty, meaning it is not advertising any routes to the peer. This is a common misconfiguration where the Cloud Router is configured to use custom route advertisements but the list of prefixes to advertise is left blank.

Exam trap

Google Cloud often tests the misconception that an 'ESTABLISHED' BGP session guarantees that routes are being exchanged, but in reality, the session can be up while no prefixes are advertised due to missing or empty route advertisement configurations.

How to eliminate wrong answers

Option A is wrong because the Cloud Router can be configured to advertise custom routes, but the issue is that the 'Advertised IP ranges' list is empty, not that custom routes are disabled entirely. Option B is wrong because if MD5 authentication passwords differed, the BGP session would not reach the 'ESTABLISHED' state; it would remain in 'ACTIVE' or 'IDLE'. Option D is wrong because a BGP configuration mismatch on the on-premises router would typically prevent the session from establishing, but the session is 'ESTABLISHED', indicating the BGP parameters (ASN, neighbor IP, etc.) match.

389
MCQhard

A multinational company has a Shared VPC environment with multiple service projects. They need to allow a specific service project to use its own Cloud DNS private zone that resolves to internal IPs in the Shared VPC. Which configuration ensures this without exposing the zone to other projects?

A.Create a private zone in the service project and use an inbound server policy.
B.Use VPC peering and allow the service project to manage DNS records.
C.Grant the service project access to the Shared VPC's private zone via IAM roles.
D.Create a DNS response policy in the Shared VPC host project and associate it with the service project's VPC.
AnswerD

Response policies enable selective DNS resolution for specific VPC networks.

Why this answer

DNS response policies allow you to control DNS resolution per VPC in a Shared VPC environment. By creating a response policy in the host project and associating it with the service project's VPC, you enable that service project to use its own private zone without exposing it to other projects. Option A is incorrect because an inbound server policy is used for on-premises DNS resolution, not for granting private zone access to a service project.

Option B is incorrect because VPC peering would allow the service project to manage DNS records, but it does not restrict access to the zone; moreover, peering is not the correct approach for selective DNS resolution in a Shared VPC. Option C is incorrect because granting IAM roles alone does not associate the private zone with a specific VPC; it would allow the service project to view or manage the zone, but the zone would still be visible to other projects with access.

390
MCQhard

A company is deploying a global HTTP load balancer with a backend service that spans multiple regions. The backend instances are in a managed instance group. They want to use Cloud CDN to cache content. What is the minimal set of configurations required on the backend bucket or instance group to enable Cloud CDN?

A.Configure Identity-Aware Proxy (IAP) on the backend service to allow cache
B.Use the gcloud compute backend-services update command with the --enable-cdn flag on the load balancer itself
C.Enable Cloud CDN on the backend service and ensure that the load balancer's frontend uses HTTP or HTTPS protocol
D.Create a Cloud Storage bucket with public access and set it as the backend
AnswerC

Cloud CDN is enabled at the backend service level; protocol must be HTTP(S).

Why this answer

Cloud CDN must be enabled on the backend service of the HTTP(S) load balancer, and the frontend must use HTTP or HTTPS because Cloud CDN only supports HTTP(S) protocols. This is the minimal configuration; no changes to the backend bucket or instance group are required beyond ensuring the backend service is correctly associated with the load balancer.

Exam trap

Google Cloud often tests the misconception that Cloud CDN requires a Cloud Storage bucket or that it can be enabled on the load balancer itself rather than on the backend service, leading candidates to select options that involve bucket creation or incorrect command syntax.

How to eliminate wrong answers

Option A is wrong because Identity-Aware Proxy (IAP) is an authentication and authorization layer that does not affect caching; enabling IAP does not allow or enable Cloud CDN. Option B is wrong because the --enable-cdn flag is applied to the backend service, not directly to the load balancer itself; the command syntax is gcloud compute backend-services update BACKEND_SERVICE_NAME --enable-cdn. Option D is wrong because creating a Cloud Storage bucket with public access is not required; Cloud CDN can be enabled on a backend service that uses a managed instance group as its backend, and the bucket is only one possible backend type.

391
MCQhard

A network engineer needs to create a private Google Kubernetes Engine (GKE) cluster with a secondary IP range for pods and another for services. They must ensure the pod CIDR does not conflict with any VPC subnets or on-premises ranges. Which step is essential during cluster creation?

A.Create the cluster in a Shared VPC with automatic subnet creation
B.Specify the pod and service secondary IP ranges using the --cluster-secondary-range-name and --service-secondary-range-name flags
C.Use VPC-native GKE without secondary ranges
D.Use the default pod and service ranges provided by GKE
AnswerB

Explicitly specifying ranges ensures they are from a non-conflicting CIDR block.

Why this answer

GKE clusters can specify secondary IP ranges for pods and services during creation. To avoid conflicts, the engineer must explicitly define these ranges using the --cluster-secondary-range-name and --service-secondary-range-name flags.

392
Matchingmedium

Match each network pricing model to its description.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Data leaving Google Cloud to the internet

Data entering Google Cloud (typically free)

Data transferred between regions within Google Cloud

Global network with consistent performance, higher cost

Lower cost, uses ISP networks for some hops

Why these pairings

Correct matches: Egress charges for outbound data; Ingress is free; Cloud Interconnect charges by bandwidth; VPN charges hourly plus egress. Common confusions include swapping egress/ingress definitions and confusing Interconnect with VPN.

393
Multi-Selectmedium

A company is designing a network architecture with multiple VPCs and on-premises connectivity via Cloud VPN. They want to avoid IP address conflicts and ensure secure communication. Which three best practices should they follow? (Choose three.)

Select 3 answers
A.Use Cloud NAT for all outbound internet traffic from private VMs.
B.Use unique RFC 1918 IP address ranges for each VPC.
C.Enable VPC Network Peering between all VPCs to enable direct communication.
D.Set up firewall rules to allow only required traffic between VPCs and on-premises.
E.Configure Cloud Router with BGP to advertise on-premises prefixes to Cloud VPN.
AnswersB, D, E

Prevents IP overlap and routing issues.

Why this answer

Using unique RFC 1918 IP address ranges for each VPC prevents overlapping IP spaces, which is critical when connecting multiple VPCs and on-premises networks via Cloud VPN. Overlapping ranges would cause routing conflicts and make it impossible for Cloud Router and BGP to establish proper path selection, leading to dropped or misrouted traffic.

Exam trap

Google Cloud often tests the misconception that VPC Network Peering alone solves IP conflicts, but in reality, peering requires non-overlapping IP ranges to function correctly, and overlapping ranges will cause peering to fail or produce unpredictable routing behavior.

394
MCQmedium

A company wants to connect two VPCs in different GCP projects so that they can communicate using internal IP addresses. The VPCs have overlapping IP ranges. Which approach allows connectivity without changing existing IP addresses?

A.VPC Network Peering
B.Cloud VPN with dynamic routing
C.None of these
D.Shared VPC
AnswerC

GCP does not support direct connectivity between VPCs with overlapping IP ranges. You would need to re-IP one VPC or use NAT/translation.

Why this answer

VPC Network Peering requires non-overlapping subnets. Shared VPC is for multiple projects using a common VPC. Cloud VPN or Interconnect are hybrid connectivity options but also require non-overlapping IP ranges.

None of the options allow overlapping IPs.

395
MCQmedium

An engineer is deploying a network appliance (e.g., a firewall) in a VPC. The appliance needs to handle traffic between different subnets. How many network interfaces should the appliance VM have, and why?

A.Zero NICs: use an internal load balancer
B.One NIC, with IP forwarding enabled
C.Two NICs: one for management, one for data traffic
D.Three NICs: one for each subnet it routes between
AnswerC

Multiple NICs allow separation of management and data traffic. The management NIC can be used for SSH/API access, while data NICs handle forwarded traffic.

Why this answer

Network appliances often use multiple NICs for traffic segregation: one for management, others for data traffic. Each NIC can be in a different subnet. NIC0 is the primary and must be connected.

Up to 8 NICs are supported.

396
MCQmedium

A network engineer is troubleshooting a Cloud VPN gateway that is not establishing a VPN tunnel with an on-premises device. The engineer checks the Cloud VPN gateway logs and sees the error 'IKE SA negotiation failed due to mismatched authentication method'. What is the most likely cause?

A.The pre-shared keys on both ends do not match.
B.The authentication method is set to 'pre-shared key' on one side and 'certificate' on the other.
C.The VPN gateway is using the wrong external IP address.
D.The IKE version configured on the on-premises device is IKEv1 while Cloud VPN only supports IKEv2.
AnswerB

This mismatch directly causes the 'IKE SA negotiation failed due to mismatched authentication method' error.

Why this answer

The error indicates a mismatch between the authentication methods configured on both ends, such as pre-shared key vs certificate, or different authentication types.

397
Multi-Selectmedium

A company uses Cloud NAT for outbound internet access. They want to ensure that all connections from their VMs use a predictable public IP address for whitelisting with third-party services. Which TWO configurations should be applied? (Choose two.)

Select 1 answer
A.Assign external IPs to each VM and disable Cloud NAT
B.Use dynamic NAT IP addresses assigned automatically by Cloud NAT
C.Enable Cloud NAT logging to monitor traffic
D.Reserve and assign static external IP addresses to the Cloud NAT gateway
E.Use Private Google Access instead of Cloud NAT
AnswersD

Static IPs are predictable and can be whitelisted.

Why this answer

To ensure a predictable public IP address for whitelisting, you must manually reserve static external IP addresses and assign them to the Cloud NAT gateway. This guarantees that all outbound traffic uses those specific IPs. Option C (logging) does not affect the IP address used; it only provides visibility, so it does not help ensure predictability.

Therefore, the correct answer is D only.

398
MCQmedium

A security team wants to block traffic from specific geographic regions (e.g., Country A) to their HTTP(S) load balancer. Which Google Cloud service should they use?

A.Firewall rules
B.VPC Service Controls
C.Cloud Armor
D.Cloud CDN
AnswerC

Cloud Armor provides geo-based access control using geographic location (GeoIP) matching.

Why this answer

Cloud Armor security policies can be attached to HTTP(S) load balancers. They support geo-based access control (allow/deny by country) using preconfigured or custom rules.

399
MCQmedium

An organization has Compute Engine instances in a VPC without external IP addresses. They need to allow these instances to access Google Cloud Storage buckets but not the internet. What should they configure?

A.Enable Private Google Access on the subnets where the instances reside.
B.Set up Cloud NAT and configure a firewall rule to allow egress to Google Cloud Storage IP ranges.
C.Peer the VPC with the Google Cloud Storage service VPC.
D.Create an egress firewall rule allowing traffic to 0.0.0.0/0 and a route to the default internet gateway.
AnswerA

Allows instances to reach Google APIs and services using internal IPs.

Why this answer

Private Google Access allows Compute Engine instances without external IP addresses to reach Google APIs and services, including Cloud Storage, through the VPC network's default route to the internet gateway, but only to Google's published IP ranges. This is the correct solution because it provides the required access without exposing the instances to the general internet.

Exam trap

Google Cloud often tests the misconception that Cloud NAT is required for outbound access to Google APIs, but Private Google Access is the correct mechanism for instances without external IPs to access Google services while blocking general internet traffic.

How to eliminate wrong answers

Option B is wrong because Cloud NAT would provide outbound connectivity to the internet, which is explicitly not allowed, and it would also require a default route to the internet gateway, defeating the restriction. Option C is wrong because Google Cloud Storage does not expose a VPC that can be peered; it is a global service accessed via API endpoints, not through VPC peering. Option D is wrong because allowing traffic to 0.0.0.0/0 with a route to the default internet gateway would grant full internet access, which violates the requirement to block internet access.

400
MCQmedium

An organization has multiple VPCs in different regions that need to connect to a single on-premises data center via Dedicated Interconnect. They want to minimize cost and complexity. What is the recommended architecture?

A.Use a single VPC and then use VPC Peering to connect to the other VPCs.
B.Use Cloud VPN for the additional VPCs to avoid additional interconnect costs.
C.Create a separate interconnect connection for each VPC.
D.Create a single interconnect connection and use multiple VLAN attachments, one per VPC.
AnswerD

One physical connection can support multiple VLAN attachments, each assigned to a different VPC.

Why this answer

A single Dedicated Interconnect connection can support multiple VLAN attachments (each with a unique VLAN ID) to connect multiple VPCs in different regions to the same on-premises data center. This minimizes cost by using one physical connection and reduces complexity by avoiding separate interconnects or VPNs for each VPC.

Exam trap

The trap here is that candidates often assume each VPC requires its own physical interconnect, but the Google Professional Cloud Network Engineer exam tests the understanding that a single Dedicated Interconnect can be partitioned into multiple VLAN attachments to serve multiple VPCs, reducing cost and complexity.

How to eliminate wrong answers

Option A is wrong because VPC Peering does not provide connectivity to an on-premises data center; it only connects VPCs within Google Cloud, and a single VPC cannot span multiple regions for Dedicated Interconnect attachments. Option B is wrong because Cloud VPN introduces additional latency and bandwidth limitations compared to Dedicated Interconnect, and it does not eliminate the need for interconnect costs if you already have a Dedicated Interconnect for the primary VPC. Option C is wrong because creating a separate interconnect connection for each VPC significantly increases cost and operational complexity, as each connection requires its own physical circuit and Google Cloud charges per connection.

401
MCQhard

A network engineer configures a Global external HTTP(S) Load Balancer with a serverless NEG backend pointing to Cloud Run. The load balancer returns 502 Bad Gateway errors. What is the most likely cause?

A.The URL map is misconfigured
B.The SSL certificate is expired
C.The serverless NEG is not supported for Cloud Run
D.The Cloud Run service has ingress set to 'internal'
AnswerD

If ingress is set to internal, the load balancer (external) cannot reach the service. It must be set to 'all' or use a VPC connector.

Why this answer

Serverless NEG for Cloud Run requires that the Cloud Run service is publicly accessible or that the ingress is set to allow all traffic. Additionally, the load balancer's health checks must pass. A common cause is that the Cloud Run service has ingress restricted to internal traffic only.

402
MCQmedium

A company is migrating its on-premises data center to Google Cloud. They currently have a Cloud VPN tunnel with dynamic routing (BGP) connecting their on-premises router (ASN 65001) to a Cloud Router in us-central1 (ASN 64512). The on-premises network uses IP range 10.0.0.0/8, and the Google Cloud VPC uses 172.16.0.0/12. After migration, they notice intermittent connectivity issues: traffic from on-premises to a new VM (172.16.1.2) is sometimes dropped, while other VMs in the same subnet work fine. The VM 172.16.1.2 is fine when accessed from other Google Cloud VMs. The team suspects asymmetric routing. Investigation shows that the on-premises router receives two routes for 172.16.1.2/32: one with next-hop as the Cloud VPN tunnel and another with next-hop as the internet (default route). No custom route advertisements are configured on the Cloud Router. The VPC has a default route (0.0.0.0/0) pointing to the internet gateway. What should the network engineer do to resolve the issue without breaking other connectivity?

A.Configure an inbound route filter on the Cloud Router to reject the BGP route 0.0.0.0/0 from the on-premises router.
B.Enable global routing on the VPC and create a more specific static route for 172.16.1.2/32 with next-hop as the VPN tunnel.
C.Create a second Cloud VPN tunnel from a different region and establish a new BGP session to load balance traffic.
D.Change the Cloud Router's BGP advertise-mode to 'custom' and advertise only the subnets that contain migrated VMs.
AnswerA

This prevents the on-premises router from injecting a default route, eliminating the asymmetric routing issue.

Why this answer

The intermittent connectivity to 172.16.1.2 is caused by asymmetric routing: on-premises traffic uses the BGP-learned /32 route (via VPN) to reach the VM, but return traffic from the VM follows the VPC's default route (0.0.0.0/0) to the internet gateway, which drops the packet because the source IP is from the on-premises range. By configuring an inbound route filter on the Cloud Router to reject the BGP route 0.0.0.0/0 from the on-premises router, the on-premises router will no longer have a default route pointing to the VPN tunnel, forcing it to use the more specific /32 route for 172.16.1.2 and eliminating the asymmetric path.

Exam trap

The trap here is that candidates focus on the on-premises router's routing table (the /32 route) and assume the issue is on-premises, but the real problem is the VPC's default route causing asymmetric return traffic, which is resolved by filtering the BGP advertisement of 0.0.0.0/0 from the Cloud Router to the on-premises router.

How to eliminate wrong answers

Option B is wrong because enabling global routing does not affect route selection for a single VM, and creating a static route for 172.16.1.2/32 with next-hop as the VPN tunnel would not fix the root cause—the on-premises router already has a more specific /32 route via BGP, and the issue is the default route on the VPC side causing asymmetric return traffic. Option C is wrong because adding a second VPN tunnel from a different region does not address the asymmetric routing problem; it would only provide additional paths without resolving the conflicting default route. Option D is wrong because changing the Cloud Router's advertise-mode to 'custom' and advertising only subnets would not prevent the on-premises router from receiving the default route (0.0.0.0/0) from the VPC, which is the source of the asymmetric routing; the issue is inbound filtering on the Cloud Router, not outbound advertisement.

403
MCQmedium

Refer to the exhibit. A BGP session between a Cloud Router and an on-premises router is not establishing. The Cloud Router logs show 'BGP_OPEN_MSG_ERROR: unsupported capability'. What is the most likely issue?

A.The on-premises router cannot reach the Cloud Router's BGP IP.
B.The BGP session is stuck in the Connect state due to firewall blocking TCP port 179.
C.The BGP ASN configured on the Cloud Router doesn't match the peer.
D.The on-premises router is attempting to negotiate a BGP capability that Cloud Router does not support, such as 4-byte ASNs or IPv6 unicast.
AnswerD

Cloud Router supports only basic BGP; advanced capabilities like 4-byte ASN or IPv6 may cause this error.

Why this answer

The error message 'BGP_OPEN_MSG_ERROR: unsupported capability' indicates that during the BGP OPEN message exchange, the on-premises router advertised a BGP capability (such as 4-byte ASN support or IPv6 unicast address family) that the Cloud Router does not support. This causes the Cloud Router to reject the OPEN message and reset the session. Option D correctly identifies this mismatch in negotiated capabilities.

Exam trap

Google Cloud often tests the distinction between BGP session failures caused by TCP-level issues (firewall, reachability) versus BGP protocol-level errors (OPEN message parameters), and the trap here is that candidates confuse a generic 'BGP session not establishing' with connectivity or ASN problems, ignoring the specific error message that points to capability negotiation.

How to eliminate wrong answers

Option A is wrong because reachability issues would manifest as a TCP connection failure (session stuck in Idle or Active state), not a BGP OPEN message error. Option B is wrong because firewall blocking TCP port 179 would prevent the TCP three-way handshake entirely, resulting in a Connect or Active state, not an OPEN message error after the TCP session is established. Option C is wrong because an ASN mismatch triggers a 'BGP_OPEN_MSG_ERROR: bad peer AS' or 'BGP Notification: OPEN Message Error/2 (bad peer AS)', not an 'unsupported capability' error.

404
MCQmedium

A company has a Shared VPC setup with a host project and several service projects. They want to grant a service project's network admin the ability to create VM instances using a specific subnet from the host project. Which IAM role should they assign at the subnet level?

A.Project Owner on the host project
B.Compute Instance Admin (roles/compute.instanceAdmin) on the service project
C.Compute Network User (roles/compute.networkUser) on the specific subnet
D.Compute Network Admin (roles/compute.networkAdmin) on the host project
AnswerC

This role grants permission to use the subnet for creating resources, which is the recommended approach.

Why this answer

Shared VPC allows granting IAM roles on individual subnets. The Compute Network User role (roles/compute.networkUser) allows a principal to use a subnet to create resources, without giving them broader network management permissions.

405
MCQhard

A network engineer is investigating packet loss between two GCP regions using the Performance Dashboard. The dashboard shows high packet loss but no corresponding latency increase. What is the most likely cause of this packet loss?

A.Normal network behavior; small packet loss is expected
B.A misconfigured firewall rule blocking ICMP
C.A BGP session flap on Cloud Router
D.Cloud Armor blocking traffic
AnswerA

The Performance Dashboard shows actual network conditions; some packet loss is normal.

Why this answer

The Performance Dashboard measures packet loss and latency between regions. Packet loss without latency increase often indicates transient congestion or minor issues that cause drops but not queuing delay. It is normal to see some loss; the dashboard shows real measurements.

406
Multi-Selecthard

A company uses VPC Network Peering between VPC-A (project X) and VPC-B (project Y). They want resources in VPC-A to reach resources in VPC-B, but also need VPC-A to reach an on-premises network connected to VPC-B via Dedicated Interconnect. Which two steps must be configured?

Select 2 answers
A.Create a separate VPN tunnel between VPC-A and the on-premises network
B.Enable global routing mode in both VPCs
C.Configure VPC-A to import custom routes from VPC-B
D.Configure VPC-B to export custom routes to VPC-A
E.Configure VPC-A to advertise its subnets to VPC-B
AnswersC, D

Importing custom routes from VPC-B allows VPC-A to use those routes to reach on-premises.

Why this answer

By default, VPC peering is non-transitive, so VPC-A cannot reach on-premises through VPC-B. To enable this, VPC-B must export custom routes to VPC-A, and the on-premises network's routes must be learned via BGP on Cloud Router in VPC-B.

407
Multi-Selectmedium

A company is implementing VPC Service Controls to protect a managed project containing BigQuery datasets. They want to allow access from a specific service account in a different project. Which two configurations are required? (Choose TWO.)

Select 2 answers
A.Add the project containing the service account to the VPC Service Controls perimeter
B.Create a firewall rule in the client VPC allowing egress to the BigQuery API
C.Configure an IAM condition on the service account's roles to restrict access to the perimeter
D.Grant the appropriate IAM roles (e.g., BigQuery Data Viewer) to the service account on the BigQuery dataset
E.Enable Private Google Access on the subnet where the service account's VMs are located
AnswersA, D

Accessible resources are limited to perimeters that include the client project.

Why this answer

VPC Service Controls use a perimeter to restrict access to managed services like BigQuery. Adding the project containing the service account to the perimeter allows that service account to access the protected BigQuery datasets, as the perimeter explicitly includes the project as an allowed member.

Exam trap

Google Cloud often tests the misconception that network-level controls (firewall rules, Private Google Access) can bypass VPC Service Controls, but the perimeter operates at the API layer and requires explicit project inclusion and IAM permissions.

408
MCQmedium

Your company uses Cloud DNS with a managed zone for example.com. You need to override DNS responses for a specific domain (e.g., internal.example.com) to point to an internal IP address. Which Cloud DNS feature should you use?

A.DNS forwarding zones
B.Response policies (RPZ)
C.Peering zones
D.Managed zones with private visibility
AnswerB

Response policies allow you to override DNS responses based on rules.

Why this answer

Cloud DNS response policies (RPZ) allow you to override DNS responses for domains within a VPC. You can create a response policy with rules that modify DNS responses for specified domains.

409
Multi-Selectmedium

Which THREE of the following are benefits of using hierarchical firewall policies? (Select 3)

Select 3 answers
A.They can be used to restrict access to specific Google APIs
B.They can be applied at the organization, folder, or project level
C.They are automatically inherited by all resources below the attachment point
D.They override network firewall rules with the same priority
E.They support both allow and deny rules
AnswersB, C, E

Hierarchical policies can be attached at any level in the hierarchy.

Why this answer

Hierarchical firewall policies provide centralized management, inherit down the resource hierarchy, and can apply at the organization level. They support both allow and deny rules, and can be used to enforce baseline security.

410
MCQeasy

You are troubleshooting an HA VPN connection between Google Cloud and on-premises. The tunnels appear as 'UP' but no routes are exchanged. The Cloud Router logs show 'BGP session state: IDLE'. What is the most likely cause?

A.The BGP keepalive timer is set too high on the on-premises router
B.BGP is not enabled on the Cloud Router
C.Firewall rules are blocking UDP port 179
D.The on-premises BGP peer is configured with a different next-hop IP
AnswerB

Without BGP, session remains IDLE.

Why this answer

B is correct because the BGP session state IDLE indicates that BGP is not configured or enabled on the Cloud Router. Even though the IPsec tunnels are UP, no BGP routes can be exchanged if the BGP process itself is not running. In Google Cloud, you must explicitly enable BGP on the Cloud Router for each VPN tunnel; otherwise, the BGP session cannot transition from IDLE to any other state.

Exam trap

Google Cloud often tests the misconception that a BGP session stuck in IDLE is always a firewall or reachability issue, but in Google Cloud HA VPN, the most common cause is that BGP was never enabled on the Cloud Router, especially when the IPsec tunnels are UP and the candidate assumes BGP is automatically active.

How to eliminate wrong answers

Option A is wrong because a high BGP keepalive timer would cause the session to flap or time out (transition to IDLE after the hold timer expires), but the session would initially establish and show an ACTIVE or CONNECT state, not remain persistently IDLE. Option C is wrong because firewall rules blocking UDP port 179 would prevent the TCP connection for BGP (port 179 is TCP, not UDP), and the session would show CONNECT or ACTIVE, not IDLE. Option D is wrong because a different next-hop IP on the on-premises peer would affect route propagation or next-hop reachability, not the BGP session state; the session would still establish and show ESTABLISHED if the TCP connection and BGP open messages succeed.

411
Multi-Selectmedium

An organization wants to publish an internal web service running on Compute Engine to consumers in different VPCs. The service must be accessible via private IPs without VPC peering. Which THREE components are required to set this up using Private Service Connect?

Select 3 answers
A.VPC peering between producer and consumer VPCs
B.A Cloud NAT gateway in the producer VPC
C.A service attachment in the producer VPC that points to a load balancer
D.An internal TCP/UDP load balancer in the producer VPC
E.A Private Service Connect endpoint in the consumer VPC
AnswersC, D, E

The service attachment is the published service endpoint.

Why this answer

Private Service Connect requires a service producer to create a service attachment (which uses a load balancer as the backend), and consumers to create Private Service Connect endpoints. The producer must also enable Private Service Connect on the subnet where the load balancer resides.

412
Multi-Selecteasy

Which TWO of the following load balancer types can distribute traffic to backends in multiple regions?

Select 2 answers
A.Internal HTTP(S) Load Balancer
B.External HTTP(S) Load Balancer
C.Internal TCP/UDP Load Balancer
D.External TCP/UDP Load Balancer
E.External SSL Proxy Load Balancer
AnswersB, E

This global LB can route traffic to backends in various regions based on location.

Why this answer

The External HTTP(S) Load Balancer is a global load balancer that can distribute traffic to backends in multiple regions using anycast IP addresses and Google's global network. It supports cross-regional backend services, making it suitable for global applications.

Exam trap

Google Cloud often tests the misconception that all external load balancers are global, but the External TCP/UDP Load Balancer is regional unless explicitly configured as a global proxy load balancer, which is a separate type (SSL Proxy or TCP Proxy).

413
MCQhard

A financial company requires encrypted traffic between on-premise and GCP. They have strict compliance requiring that encryption keys are managed on-premise and rotated every 30 days. Which connectivity solution should they use?

A.Cloud VPN with certificate-based authentication using on-prem CA
B.Cloud Interconnect with MACsec
C.Cloud VPN with IKEv2 and pre-shared keys
D.Cloud Interconnect with VLAN attachments
E.Partner Interconnect with a service provider that supports MACsec
AnswerB

MACsec provides encryption with customer-managed keys, easily rotated.

Why this answer

B is correct because MACsec (IEEE 802.1AE) provides encryption at Layer 2, which is required for Cloud Interconnect to secure traffic between on-premise and GCP. Unlike VPN solutions, MACsec allows the customer to manage encryption keys on-premise and rotate them every 30 days, meeting strict compliance requirements. Cloud Interconnect with MACsec ensures low-latency, high-bandwidth connectivity while keeping key management under the customer's control.

Exam trap

Google Cloud often tests the distinction between Layer 2 encryption (MACsec) and Layer 3 encryption (IPsec), and the trap here is that candidates assume Cloud VPN with IKEv2 or certificate-based authentication can satisfy on-premise key management, but GCP manages the IPsec keys, not the customer.

How to eliminate wrong answers

Option A is wrong because Cloud VPN with certificate-based authentication uses TLS/IPsec encryption, which is managed by GCP and does not allow the customer to control key rotation on-premise. Option C is wrong because Cloud VPN with IKEv2 and pre-shared keys uses IPsec encryption where keys are managed by GCP, not on-premise, and pre-shared keys are not rotated every 30 days by default. Option D is wrong because Cloud Interconnect with VLAN attachments provides Layer 2 connectivity but does not include encryption; it relies on the customer to implement encryption separately, which does not meet the requirement for encrypted traffic.

Option E is wrong because Partner Interconnect with a service provider that supports MACsec still requires the service provider to manage the MACsec keys, violating the compliance requirement that keys be managed on-premise.

414
Drag & Dropmedium

Drag and drop the steps to configure Cloud Router with BGP for on-premises connectivity into the correct order.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4

Why this order

Cloud Router requires a router first, then a tunnel, followed by BGP configuration. Custom advertisements and verification complete the setup.

415
MCQeasy

A company wants to connect on-premise to GCP via Cloud VPN with dynamic routing. They have two on-prem routers for redundancy. Which configuration ensures automatic failover?

A.Create two VPN tunnels each with static routes pointing to the other router
B.Create one VPN tunnel with BGP and two interfaces
C.Create two VPN tunnels using Cloud Router with BGP and the same ASN
D.Create two VPN tunnels with BGP but different ASNs on each tunnel
AnswerC

This allows BGP to automatically fail over traffic if one peer goes down.

Why this answer

Creating two VPN tunnels with Cloud Router using BGP and the same ASN on both on-prem routers enables dynamic routing and automatic failover. Cloud Router establishes BGP sessions with each on-prem router, and when both tunnels advertise the same routes with the same ASN, Cloud Router can detect a BGP session failure and automatically route traffic through the remaining healthy tunnel. This setup ensures seamless failover without manual intervention.

Exam trap

The trap here is that candidates often think different ASNs provide better redundancy, but in GCP Cloud Router, the same ASN is required for proper ECMP and automatic failover, as different ASNs can cause routing loops or incomplete failover.

How to eliminate wrong answers

Option A is wrong because static routes do not support dynamic failover; if one tunnel goes down, traffic continues to be sent to the failed tunnel until the static route is manually updated or a separate health-check mechanism is implemented. Option B is wrong because a single VPN tunnel with two interfaces does not provide redundancy; if the tunnel itself fails, both interfaces become unavailable, offering no failover. Option D is wrong because using different ASNs on each tunnel would cause the on-prem routers to be treated as separate BGP peers, preventing proper route advertisement and failover; Cloud Router expects the same ASN for redundant paths to correctly handle route selection and failover.

416
MCQmedium

A company wants to analyze VPC Flow Logs to identify the top talkers (source IPs) generating the most traffic to their web servers. They have enabled VPC Flow Logs on the subnet. Where should they export the logs for cost-effective querying and analysis?

A.BigQuery
B.Cloud Monitoring (Stackdriver)
C.Cloud Pub/Sub
D.Cloud Storage
AnswerA

BigQuery enables SQL analysis of flow logs efficiently.

Why this answer

BigQuery is the best choice for querying large volumes of VPC Flow Logs with SQL, enabling cost-effective analysis of top talkers. Stackdriver (Cloud Monitoring) is for metrics, not log analysis; Cloud Storage is for archival; Pub/Sub for streaming.

417
MCQmedium

An organization has multiple projects and wants to apply a consistent set of firewall rules across all VPC networks in the organization. Which approach should they use?

A.Create a network firewall policy and attach it to each VPC
B.Create a hierarchical firewall policy at the organization level
C.Use VPC peering to share rules
D.Apply firewall rules using tags in each project
AnswerB

Hierarchical policies can be applied to the organization, folder, or project for consistent enforcement.

Why this answer

Hierarchical firewall policies can be applied at the organization level and are inherited by all folders and projects, ensuring consistent rules across the entire hierarchy.

418
MCQmedium

A company needs to resolve DNS queries for a private zone (e.g., corp.example.com) from multiple GCP projects that are not in the same organization. Which Cloud DNS feature should they use?

A.Private DNS zones
B.DNS forwarding
C.Shared VPC
D.DNS peering
AnswerD

DNS peering enables cross-project DNS resolution.

Why this answer

DNS peering allows you to resolve DNS queries across different GCP projects, even if they are not in the same organization, by establishing a peering relationship between two VPC networks. This enables the private zone (corp.example.com) in one project to be queried from instances in another project without exposing the zone to the internet or requiring shared VPC.

Exam trap

A common misconception is that Shared VPC is required for cross-project DNS resolution, but the trap here is that DNS peering works across organizations without the organizational hierarchy constraint of Shared VPC.

How to eliminate wrong answers

Option A is wrong because Private DNS zones are scoped to a single VPC network within a project and cannot be directly accessed from projects outside the same organization without additional configuration like peering. Option B is wrong because DNS forwarding is used to send queries to an external DNS server (e.g., on-premises) from a VPC, not to resolve private zones across different projects. Option C is wrong because Shared VPC requires projects to be in the same organization and ties networking to a host project, which does not apply when projects are in different organizations.

419
Multi-Selecthard

You are troubleshooting a failing HA VPN tunnel between GCP and on-premises. The tunnel status shows 'Tunnel is down' in Cloud Console. Which TWO steps should you take to diagnose the issue? (Choose two.)

Select 2 answers
A.Confirm that the GCP VPC has a firewall rule allowing inbound IPsec traffic
B.Verify that the Cloud Router BGP session is established
C.Check the on-premises firewall rules to ensure UDP ports 500 and 4500 are allowed
D.Review Cloud VPN gateway logs for IKE negotiation errors
E.Ensure that the on-premises VPN gateway has a static route to the GCP VPC
AnswersC, D

IPsec uses UDP 500 for IKE and UDP 4500 for NAT traversal. Blocked ports prevent tunnel establishment.

Why this answer

Checking Cloud VPN gateway logs for IKE errors helps identify authentication or configuration mismatch. Verifying that the on-premises firewall allows UDP 500 and 4500 for IPsec is necessary because many failures are due to firewall blocking.

420
Multi-Selecteasy

A company is designing a hybrid network with Cloud VPN. Which TWO best practices should they follow? (Choose TWO.)

Select 2 answers
A.Use a VPN tunnel per subnet.
B.Use static routes for simplicity.
C.Use pre-shared keys for authentication.
D.Use BGP with Cloud Router for dynamic routing.
E.Use a single VPN tunnel for all traffic.
AnswersC, D

Pre-shared keys are the default authentication method for Cloud VPN.

Why this answer

Pre-shared keys (PSKs) are a valid and commonly used authentication method for IPsec VPN tunnels in Google Cloud. They provide a simple, symmetric key-based mechanism to authenticate the VPN peers without requiring a PKI infrastructure, making them a best practice for straightforward deployments.

Exam trap

The trap here is that candidates often assume static routes are simpler and therefore better for hybrid networks, but the PCNE exam emphasizes dynamic routing (BGP) for reliability and scalability, and they may also overlook the need for multiple tunnels for redundancy.

421
MCQhard

A company has two VPC networks connected via VPC peering. They notice asymmetric routing: traffic from Network A to Network B follows one path, but return traffic from B to A takes a different path. This is causing connectivity issues for stateful firewalls. What is the likely cause?

A.The peering connection is in an inactive state
B.The firewall rules in Network A are more permissive than in Network B
C.There is a Cloud NAT configured in Network A but not in Network B
D.Both VPCs have a default route (0.0.0.0/0) pointing to different next hops
AnswerD

Different default routes can cause traffic to exit via different gateways, breaking symmetry.

Why this answer

VPC peering does not enforce symmetric routing by default. If both networks have subnet CIDRs that overlap, or if one network has a route that sends traffic to the other via a different next hop (e.g., VPN or NAT), asymmetric routing can occur. The most common cause is when both VPCs have a default route pointing to different next hops (e.g., one to the internet, one to a VPN), causing different paths.

422
Multi-Selectmedium

A company needs to design a split-horizon DNS solution where internal queries resolve to private IPs and external queries resolve to public IPs for the same domain. Which TWO services or configurations should they use?

Select 2 answers
A.Shared VPC
B.DNS peering
C.Cloud DNS public managed zone
D.DNS forwarding
E.Cloud DNS private managed zone
AnswersC, E

Correct. The public zone handles external queries.

Why this answer

Split-horizon DNS is achieved by having a public zone for external resolution and a private zone for internal resolution within the same domain.

423
MCQmedium

A company plans to connect an on-premises network to Google Cloud using HA VPN with dynamic routing (BGP). The on-premises side supports BGP and has two independent routers for redundancy. The company wants to ensure failover within seconds if one tunnel goes down. Which configuration meets this requirement?

A.Create two Cloud VPN gateways in different regions, each with a tunnel to a different on-premises router, and configure a separate Cloud Router on each gateway with BGP.
B.Create two VPN tunnels from one Cloud VPN gateway to both on-premises routers, and configure one Cloud Router with active/passive BGP.
C.Create two Cloud VPN gateways in the same region, each with a tunnel to a different on-premises router, and use static routing with route metrics for failover.
D.Create two VPN tunnels from one Cloud VPN gateway to both on-premises routers, and configure a single Cloud Router with BGP.
AnswerA

Regional redundancy plus independent BGP sessions enable fast failover via BGP route withdrawals and advertisements.

Why this answer

Deploying two Cloud VPN gateways in different regions with separate Cloud Routers ensures true regional redundancy. If one gateway or its tunnel fails, BGP sessions on the other gateway remain active, and Google Cloud's network can immediately route traffic via the surviving path. This architecture meets the sub-second failover requirement by avoiding a single point of failure at the gateway level and leveraging BGP's fast convergence.

Exam trap

The trap here is that candidates assume multiple tunnels from a single gateway provide sufficient redundancy, overlooking that the gateway itself is a single point of failure; Google Cloud's HA VPN gateway is regional, not zonal, so a regional outage can bring down all tunnels on that gateway.

How to eliminate wrong answers

Option B is wrong because using a single Cloud VPN gateway creates a single point of failure; if the gateway fails, both tunnels fail, violating the failover requirement. Option C is wrong because static routing with route metrics does not provide dynamic failover within seconds; BGP is required for fast convergence, and static routes rely on manual intervention or slow timer-based failover. Option D is wrong because a single Cloud Router with two tunnels to the same gateway still has a single point of failure at the gateway; if the gateway goes down, both tunnels are lost, and BGP sessions cannot failover.

424
MCQeasy

A company wants to connect their VPC to an on-premises network using Cloud VPN. They need to ensure that traffic from Google Cloud to on-premises uses a specific route only when the primary path is available, and otherwise fails over to a backup path. Which configuration should they use?

A.Configure Cloud NAT to route traffic through the backup path
B.Configure BGP on Cloud Router and advertise custom routes with appropriate metrics
C.Use static routes with a higher priority for the primary path
D.Create firewall rules to allow failover traffic
AnswerB

BGP allows dynamic failover and route selection based on metrics.

Why this answer

Cloud VPN with dynamic routing (BGP) allows you to control path selection by advertising custom routes with different metrics (MED values) for the primary and backup paths. When the primary path is available, the lower metric route is preferred; if the BGP session fails, the route is withdrawn and traffic automatically fails over to the backup path with a higher metric. This meets the requirement for active/passive failover without manual intervention.

Exam trap

The trap here is that candidates confuse static route priority with dynamic BGP metric-based failover, assuming that a higher-priority static route will automatically fail over when the tunnel is down, but Google Cloud static routes do not have health-check awareness and will continue to forward traffic into a dead tunnel unless the route is removed.

How to eliminate wrong answers

Option A is wrong because Cloud NAT is used for outbound internet access from private instances, not for controlling routing between a VPC and on-premises over VPN; it does not influence path selection or failover. Option C is wrong because static routes in Google Cloud have a fixed priority (lower number = higher priority), but they do not support dynamic failover based on path availability; if the primary static route is still present in the routing table, traffic will continue to use it even if the VPN tunnel is down, unless you manually remove it. Option D is wrong because firewall rules control which traffic is allowed or denied, not how traffic is routed; they cannot trigger failover or change the forwarding path.

425
MCQhard

A company is designing a network for a critical application that requires sub-millisecond latency between two Compute Engine instances. The instances are located in different zones within the same region. Which VPC configuration will provide the lowest latency?

A.Use VPC Network Peering between two different VPCs.
B.Place instances in different VPCs and use a VPN between them.
C.Place both instances in the same VPC, using internal IP addresses.
D.Assign external IP addresses to both instances and communicate over the internet.
AnswerC

Internal IPs stay within Google's network, providing lowest latency.

Why this answer

Placing both Compute Engine instances in the same VPC and using internal IP addresses ensures traffic stays within Google's private network backbone, bypassing any external gateways or internet hops. This configuration leverages Google's internal routing with sub-millisecond latency between zones in the same region, as traffic is forwarded at the hypervisor level without encapsulation or additional network hops.

Exam trap

Google Cloud often tests the misconception that VPC Network Peering provides equivalent latency to a single VPC, but the trap here is that peering adds a logical routing boundary and potential latency overhead, making a single VPC with internal IPs the only option for guaranteed sub-millisecond performance.

How to eliminate wrong answers

Option A is wrong because VPC Network Peering connects two separate VPCs, introducing an additional routing hop and potential latency from peering gateway processing, which cannot match the direct internal path within a single VPC. Option B is wrong because using a VPN between different VPCs adds encapsulation overhead (IPsec) and encryption processing, significantly increasing latency beyond sub-millisecond requirements. Option D is wrong because communicating over the internet via external IP addresses forces traffic through Google's external edge routers and the public internet, adding unpredictable latency and jitter, and is fundamentally slower than internal VPC routing.

426
Multi-Selectmedium

Which TWO statements are true about VPC Network Peering? (Choose 2)

Select 2 answers
A.You can export custom routes to a peered VPC.
B.Peering is non-transitive.
C.Peering supports global routing mode.
D.Peering is transitive by default.
E.Peered VPCs can have overlapping IP ranges.
AnswersA, B

Custom route export is supported.

Why this answer

VPC Network Peering allows you to export custom routes (including static and dynamically learned routes) to a peered VPC by enabling the 'Export custom routes' option on the peering connection. Option B is correct because peering is non-transitive: traffic cannot flow through an intermediate VPC to reach a third VPC; each peering connection is direct and isolated. Options C, D, and E are incorrect: global routing mode is a VPC-level setting, not a peering property; peering is never transitive by default; and peered VPCs must have non-overlapping IP ranges to avoid conflicts.

Exam trap

The trap here is that candidates often assume VPC Network Peering is transitive (like in traditional networking) or that overlapping IP ranges are allowed, but GCP enforces non-transitivity and requires unique IP ranges to prevent routing conflicts.

427
MCQeasy

A Compute Engine instance has multiple network interfaces. Which interface is considered the primary (NIC0)?

A.The interface with the lowest index number (nic0).
B.The interface configured first in the instance creation.
C.The interface with the highest index number.
D.All interfaces are primary.
AnswerA

nic0 is the primary interface.

Why this answer

By default, the first interface attached (nic0) is the primary interface and used for default routes and internal DNS.

428
MCQmedium

An organization has a Dedicated Interconnect with one VLAN attachment. They want to add a second VLAN attachment on the same interconnect circuit for additional capacity. What is the correct approach?

A.Order a second physical cross-connect
B.Upgrade the existing VLAN attachment to increase bandwidth
C.Create a second VLAN attachment with a different VLAN ID
D.Create a new Cloud Router and associate it with the existing VLAN attachment
AnswerC

Multiple VLAN attachments can coexist on the same interconnect.

Why this answer

A single Dedicated Interconnect circuit can have multiple VLAN attachments (up to 8 for 10 Gbps, up to 64 for 100 Gbps). You simply create another VLAN attachment on the same interconnect, using a different VLAN ID and a different Cloud Router if desired.

429
MCQmedium

A network engineer is configuring a Cloud VPN tunnel with route-based VPN and BGP. The tunnel is established, but the Cloud Router does not learn any routes from the on-premises peer. What is the most likely cause?

A.Firewall rules on the on-prem router block UDP port 179.
B.The BGP session is not configured on the VPN tunnel.
C.All of the above are possible causes.
D.The Cloud Router does not have an ASN configured.
AnswerB

The BGP session must be configured on the VPN tunnel interface. Without this configuration, the Cloud Router cannot exchange routes with the on-premises peer, making this the most likely cause.

Why this answer

The most likely cause because the BGP session must be explicitly configured on the VPN tunnel interface for route exchange. Option A is incorrect because BGP uses TCP port 179, not UDP. Option D is incorrect because a Cloud Router without an ASN would not establish a BGP session, but this is not a given in the scenario; however, the question asks for the most likely cause, and the tunnel being established suggests the VPN is up, but BGP configuration is missing.

Option C is incorrect because not all options are possible causes (A and D are not valid).

Exam trap

Google Cloud often tests the misconception that BGP uses UDP port 179 (it uses TCP), and that a VPN tunnel being 'established' automatically implies BGP is configured, when in fact BGP configuration is a separate step required for route exchange.

How to eliminate wrong answers

Option A is wrong because it is a possible cause—UDP port 179 is used by BGP for session establishment, and if blocked by on-premises firewall rules, the BGP session cannot form, so routes would not be learned. Option B is wrong because it is also a possible cause—if the BGP session is not explicitly configured on the VPN tunnel interface (e.g., using 'neighbor <peer-ip> remote-as <asn>' under the tunnel interface or BGP process), the session will not establish, and no routes will be exchanged. Option D is wrong because the Cloud Router must have an ASN configured to participate in BGP; without it, the BGP process cannot start, but this is a less likely cause in practice as Cloud Router ASN is typically set during deployment.

430
MCQmedium

You have a Cloud NAT gateway configured in a region with 256 available ports. You allocate static NAT ports to a specific VM for outbound connections. What is the minimum number of ports you should allocate to ensure the VM can handle 500 concurrent connections?

A.128
B.256
C.512
D.64
AnswerC

512 ports can handle 500 concurrent connections with margin.

Why this answer

Cloud NAT uses ports for source NAT. A single connection uses one port. To support 500 concurrent connections, you need at least 500 ports.

However, Cloud NAT allows port sharing for the same destination IP and port, but static port allocation per VM typically reserves ports exclusively. To be safe, allocate at least 500 ports.

431
MCQhard

A company is using Cloud NAT for outbound traffic. They want to log when a connection fails due to resource exhaustion. Which logging feature should be enabled?

A.Cloud NAT logging with filter for errors
B.Firewall Rules logging
C.VPC Flow Logs on the subnet
D.Cloud Armor request logs
AnswerA

Cloud NAT logging captures connection and allocation failures.

432
MCQhard

An organization wants to implement a hub-and-spoke network topology in Google Cloud using VPC Network Peering. The hub VPC hosts shared services and the spoke VPCs host application workloads. They need to ensure that spokes can communicate with each other through the hub. Which additional configuration is required?

A.Configure a managed VPN between the hub and each spoke, and enable dynamic routing
B.Enable 'Export custom routes' on the hub VPC and 'Import custom routes' on the spoke VPCs
C.Use a shared VPC instead of VPC Network Peering
D.Create a peering connection between each pair of spokes
AnswerA

Using a managed VPN with dynamic routing (e.g., Cloud Router with BGP) allows the hub to advertise routes between spokes.

Why this answer

VPC Network Peering does not support transitive routing by default. To enable spoke-to-spoke communication through the hub, you must configure a managed VPN (Cloud VPN) between the hub and each spoke with dynamic routing (BGP). This creates a routed overlay that allows the hub to forward traffic between spokes, effectively achieving transitive routing.

Exam trap

The trap here is that candidates assume exporting/importing custom routes (Option B) can enable transitive routing, but VPC Network Peering explicitly forbids transitive routing regardless of route propagation settings.

How to eliminate wrong answers

Option B is wrong because exporting and importing custom routes only propagates static or dynamically learned routes between directly peered VPCs; it does not enable transitive routing through the hub because VPC Network Peering explicitly prohibits forwarding traffic from one peering connection to another. Option C is wrong because Shared VPC does not solve the transitive routing requirement; it centralizes subnet management but still uses VPC peering for cross-project connectivity, which lacks transitive routing. Option D is wrong because creating a peering connection between each pair of spokes creates a full mesh, not a hub-and-spoke topology, and does not satisfy the requirement of routing through the hub; it also increases management complexity and does not leverage the hub for centralized inspection or policy enforcement.

433
MCQhard

A company uses Cloud NAT to allow private VMs to access the internet. They notice that some VMs are unable to reach a specific set of external IP addresses, but other VMs can. The firewall rules are correctly configured. What is the most likely cause?

A.The default route (0.0.0.0/0) is missing for the VPC.
B.The VPC firewall rules have a deny rule for the source IP range of the affected VMs.
C.The Cloud NAT gateway uses a static IP address that is not allowed by the external service's firewall.
D.The VMs have a tag that overrides the Cloud NAT routing.
AnswerC

If the external service restricts access by IP, only VMs using that NAT IP can connect.

Why this answer

Cloud NAT uses a source IP address (either a static IP you assign or an ephemeral IP from the NAT gateway's IP range) when translating outbound traffic from private VMs. If the external service's firewall only allows traffic from specific IP addresses, and the Cloud NAT gateway is using a static IP that is not on that allowlist, the affected VMs' traffic will be blocked. Other VMs might reach the service if they use a different NAT gateway or if the service's firewall permits their translated IP.

Exam trap

Google Cloud often tests the misconception that firewall rules within the VPC are the only cause of connectivity failures, when in reality external service firewalls or IP allowlists can block traffic after NAT translation.

How to eliminate wrong answers

Option A is wrong because the default route (0.0.0.0/0) is required for internet-bound traffic to be sent to the Cloud NAT gateway; if it were missing, no VM could reach the internet, not just a specific set of external IPs. Option B is wrong because the question states firewall rules are correctly configured, and a deny rule for the source IP range of the affected VMs would block all outbound traffic from those VMs, not just to a specific set of external IPs. Option D is wrong because VM tags do not override Cloud NAT routing; tags are used for firewall rule targeting or network tags, but Cloud NAT routing is determined by the VPC network and the NAT gateway's configuration, not by VM tags.

434
MCQeasy

A company is designing a VPC network to support multiple projects that require isolation but also need to communicate with a shared services project. Which approach should the company use to minimize administrative overhead while ensuring isolation?

A.Assign all projects to a single VPC with separate subnets for each project.
B.Implement a Shared VPC in the host project and attach all service projects to it.
C.Use dedicated VPCs for each project and connect via Cloud VPN tunnels.
D.Create a separate VPC for each project and peer them with the shared services VPC.
AnswerB

Centralizes network management and enforces isolation through subnets and firewall rules.

Why this answer

A Shared VPC (XPN) allows an organization to connect resources from multiple service projects to a common host project's VPC network, enabling isolated projects to communicate with shared services while centralizing network administration. This minimizes administrative overhead because network policies, firewall rules, and routing are managed in one place, and service projects do not need to manage their own VPC infrastructure.

Exam trap

The trap here is that candidates often confuse VPC peering with Shared VPC, assuming that peering provides the same centralized management, but peering requires per-connection configuration and does not allow a single host project to centrally administer subnets and firewall rules across all projects.

How to eliminate wrong answers

Option A is wrong because using a single VPC with separate subnets does not provide true project-level isolation; all projects would share the same VPC and IAM boundaries are blurred, increasing the risk of unintended access and complicating resource management. Option C is wrong because using dedicated VPCs connected via Cloud VPN tunnels introduces significant administrative overhead for tunnel configuration, routing, and maintenance, and does not scale efficiently for multiple projects. Option D is wrong because peering each project's VPC with a shared services VPC requires managing multiple peering connections, each with its own routing and firewall rules, which increases complexity and administrative burden compared to a single Shared VPC.

435
Multi-Selecthard

A company is planning to migrate to Google Cloud and needs to design a VPC network for a multi-tier application (web, app, database). Which THREE best practices should they follow? (Choose THREE.)

Select 3 answers
A.Use one subnet for all tiers to simplify routing.
B.Use instance-level firewalls instead of VPC firewall rules.
C.Create separate subnets for each tier and use firewall rules to control traffic between them.
D.Use Cloud Armor to protect the web tier.
E.Use Private Google Access for instances to reach Google APIs privately.
AnswersC, D, E

Segmentation improves security and manageability.

Why this answer

Separating each application tier into its own subnet allows you to apply VPC firewall rules to control ingress and egress traffic between tiers based on source and destination CIDR ranges or service accounts. This follows the principle of least privilege, ensuring that only necessary traffic (e.g., web-to-app on TCP port 8080, app-to-database on TCP port 3306) is permitted, while all other traffic is denied by default.

Exam trap

Google Cloud often tests the misconception that instance-level firewalls are a best practice for multi-tier security in GCP, but the correct approach is to use VPC firewall rules with subnet segmentation and service account or tag-based controls for centralized, scalable traffic management.

436
MCQmedium

A company wants to use AS path prepending to influence traffic from Google Cloud to their on-premises network to prefer one Dedicated Interconnect connection over another. How should they configure AS path prepending?

A.Configure AS path prepending on the Cloud Router for the routes advertised to on-premises
B.Configure AS path prepending on the on-premises router for the routes advertised to Google Cloud
C.Configure AS path prepending on both sides equally
D.Use MED instead of AS path prepending
AnswerB

This makes the AS path longer for that connection, making it less preferred for traffic from Google Cloud.

Why this answer

AS path prepending is done on the on-premises router by adding the on-premises AS number multiple times in the BGP updates sent to Google Cloud. Google Cloud Router will then prefer the path with the shorter AS path length (fewer prepends). To make one connection less preferred, the on-premises router should prepend AS numbers on the BGP updates sent over that connection.

437
MCQmedium

A company wants to use Cloud CDN to cache content from a backend bucket. They need to cache all objects, including those with cookies, to maximize performance. Which cache mode should they select?

A.CACHE_ALL_STATIC
B.USE_ORIGIN_HEADERS
C.CACHE_ALL
D.FORCE_CACHE_ALL
AnswerD

This mode forces caching of all responses, overriding any no-cache directives.

Why this answer

Cloud CDN cache modes: CACHE_ALL_STATIC caches static content based on cache directives, USE_ORIGIN_HEADERS respects origin headers, FORCE_CACHE_ALL forces caching for all responses regardless of headers. FORCE_CACHE_ALL is used to override origin headers and cache everything.

438
MCQeasy

An engineer is configuring a Compute Engine instance with multiple network interfaces for use as a network appliance. Which interface is considered the primary interface for default routes and instance metadata?

A.Any interface with an external IP
B.The interface with the lowest subnet CIDR
C.The interface attached to the default VPC
D.NIC0
AnswerD

Correct. NIC0 is the primary interface.

Why this answer

NIC0 is the primary interface; default routes and instance metadata are tied to it. Adding extra interfaces (NIC1, NIC2, etc.) is for specific networking scenarios like network appliances.

439
MCQeasy

A company wants to expose a web application running on Compute Engine behind a global HTTPS load balancer with Cloud CDN enabled. They need to ensure that only authenticated users can access certain content. Which approach should they use?

A.Generate signed URLs or signed cookies for Cloud CDN.
B.Use Cloud Armor to restrict access by IP address.
C.Use Cloud IAP to authenticate users at the load balancer.
D.Configure the backend bucket with a custom header for authentication.
AnswerA

Signed URLs and signed cookies are the correct way to restrict access to private content served via Cloud CDN.

Why this answer

Cloud CDN supports signed URLs and signed cookies to restrict access to content. Signed URLs are used for individual files, while signed cookies work for multiple files. IAP is for access control at the load balancer level but not specifically for CDN content.

440
Multi-Selecteasy

Which THREE components are required to set up a Partner Interconnect connection?

Select 3 answers
A.A Dedicated Interconnect connection
B.A VLAN attachment
C.A Cloud Router
D.A Cloud VPN gateway
E.The partner's network
AnswersB, C, E

The VLAN attachment is the logical connection to the partner.

Why this answer

A VLAN attachment (option B) is required because it defines the connection between your VPC and the partner's network over a Partner Interconnect, specifying the VLAN ID and IP addressing for the BGP session. Without a VLAN attachment, the Layer 2 and Layer 3 parameters for the interconnect cannot be established.

Exam trap

Google Cloud often tests the distinction between Dedicated Interconnect and Partner Interconnect, where candidates mistakenly think a Dedicated Interconnect connection is a prerequisite for Partner Interconnect, but they are mutually exclusive options for private connectivity.

441
MCQhard

A company has Compute Engine instances in a VPC that only have internal IP addresses. They need to access Google Cloud services like Cloud Storage and BigQuery. They also have on-premises servers that need to access the same instances via a Cloud VPN tunnel. What must be enabled for the instances to access Google APIs without public IPs?

A.Private Google Access
B.Cloud Router
C.VPC peering
D.Cloud NAT
AnswerA

Private Google Access enables access to Google APIs from internal IPs without public IPs.

Why this answer

Private Google Access enables Compute Engine instances that have only internal IP addresses (no external IPs) to reach Google APIs and services such as Cloud Storage and BigQuery. It works by routing traffic destined for Google API IP ranges through the default internet gateway, using the VPC's internal DNS resolution to map the API hostnames to Google's internal IP addresses, without requiring a public IP on the instance.

Exam trap

Google Cloud often tests the distinction between Cloud NAT (for general internet outbound) and Private Google Access (specifically for Google APIs), leading candidates to mistakenly choose Cloud NAT when the question explicitly requires access to Google services without public IPs.

How to eliminate wrong answers

Option B is wrong because Cloud Router is used for dynamic routing (BGP) between a VPC and an on-premises network over Cloud VPN or Dedicated Interconnect, not for enabling internal-only instances to reach Google APIs. Option C is wrong because VPC peering connects two VPC networks to exchange traffic, but it does not provide access to Google APIs for instances without public IPs; that requires Private Google Access on the subnet. Option D is wrong because Cloud NAT provides outbound internet connectivity for instances without public IPs, but it is designed for general internet access, not specifically for reaching Google APIs and services; Private Google Access is the correct feature for that purpose.

442
MCQeasy

A developer wants to enable VPC Flow Logs on a subnet to capture metadata about IP traffic. They want to reduce costs by logging only a sample of traffic. What is the default sampling rate for VPC Flow Logs?

A.50%
B.10%
C.100%
D.25%
AnswerA

Default is 50% sampling.

Why this answer

The default sampling rate for VPC Flow Logs is 50%. This can be adjusted to reduce costs but may miss some flows.

443
MCQmedium

You want to distribute traffic across multiple GKE clusters in different regions with automatic failover if a region becomes unhealthy. Which Cloud DNS routing policy should you use?

A.Failover
B.Simple (no policy)
C.Weighted round robin
D.Geolocation
AnswerA

Correct: failover routing policy automatically switches to healthy targets.

Why this answer

Failover routing policy allows you to set primary and secondary targets; DNS automatically responds with the secondary if the primary is unhealthy.

444
MCQhard

You have a Cloud Router with the configuration shown. The on-premises network (ASN 65002) is not receiving any routes from Google Cloud. What is the most likely cause?

A.The BGP keepalive interval is set too low
B.The BGP session is not established
C.The router is in custom advertise mode but does not advertise the VPC subnets
D.The on-premises subnet 10.0.1.0/24 is not advertised
AnswerC

Custom mode overrides default; must explicitly advertise VPC subnets.

Why this answer

When a Cloud Router is configured in custom advertise mode, it only advertises the routes explicitly specified in the custom advertisement list. If the VPC subnets are not included in that list, the on-premises network will not receive any routes from Google Cloud, even if the BGP session is established. This is the most likely cause because the question states the on-premises network is not receiving any routes, which aligns with a missing custom advertisement rather than a session or timer issue.

Exam trap

Google Cloud often tests the misconception that a BGP session being 'Established' guarantees route exchange, but in Google Cloud's custom advertise mode, the session can be up while no routes are advertised due to missing custom advertisement configuration.

How to eliminate wrong answers

Option A is wrong because a low BGP keepalive interval (e.g., 10 seconds) would cause the session to flap or reset, not silently prevent route advertisement; the session would still exchange routes when up. Option B is wrong because if the BGP session were not established, the Cloud Router would show a state other than 'Established' (e.g., Idle, Active), and the question implies the session is up but no routes are received. Option D is wrong because the on-premises subnet 10.0.1.0/24 is a route that the on-premises router advertises to Google Cloud, not a route that Google Cloud advertises to on-premises; the issue is about routes from Google Cloud not being received, not about missing on-premises advertisements.

445
MCQeasy

A company is using Cloud NAT to allow private VMs to access the internet. They want to troubleshoot connectivity failures and analyze connection attempts that were dropped due to NAT resource exhaustion. What should they enable?

A.VPC Flow Logs on the subnet
B.Cloud NAT logging
C.Firewall rule logging
D.Packet Mirroring
AnswerB

Cloud NAT logs record connection and allocation failures, including resource exhaustion.

Why this answer

Cloud NAT logging captures connection and allocation failures, which helps troubleshoot NAT resource exhaustion and other issues.

446
MCQmedium

A company is migrating its on-premises infrastructure to Google Cloud. They need to connect their VPC to a third-party SaaS provider that only supports IPsec VPN. The company requires high availability and automatic failover. Which solution should they implement?

A.Deploy two Cloud VPN tunnels from two Cloud Routers with BGP sessions to the peer VPN device.
B.Use Dedicated Interconnect with VLAN attachments to the SaaS provider.
C.Deploy a Classic VPN tunnel with policy-based routing.
D.Deploy a single Cloud VPN tunnel and use static routing.
AnswerA

This provides HA with automatic failover via BGP; Cloud Routers enable dynamic routing and fast convergence.

Why this answer

Deploying two Cloud VPN tunnels from two Cloud Routers with BGP sessions provides high availability and automatic failover. The two Cloud Routers in different zones ensure redundancy, and BGP (Border Gateway Protocol) dynamically advertises routes and detects tunnel failures, allowing traffic to automatically switch to the healthy tunnel without manual intervention. This meets the requirement for an IPsec VPN connection to a third-party SaaS provider that only supports IPsec VPN.

Exam trap

The trap here is that candidates often assume Dedicated Interconnect is always superior for high availability, but the question explicitly requires IPsec VPN, and Interconnect does not support IPsec VPN, making it an invalid choice despite its high availability features.

How to eliminate wrong answers

Option B is wrong because Dedicated Interconnect is a direct physical connection to Google Cloud, not an IPsec VPN, and the SaaS provider only supports IPsec VPN, making this incompatible. Option C is wrong because Classic VPN with policy-based routing does not support BGP and cannot provide automatic failover; it relies on static routing and manual intervention for failover, which does not meet the high availability requirement. Option D is wrong because a single Cloud VPN tunnel with static routing lacks redundancy and automatic failover; if the tunnel fails, traffic is dropped until manual recovery, violating the high availability requirement.

447
MCQhard

A company has two Dedicated Interconnect circuits in different metro areas to meet the 99.99% SLA. They have configured active-active mode. During a test, they intentionally bring down one circuit. They expect traffic to continue using the other circuit, but they notice packet loss during the failover. What could be the cause?

A.The VLAN attachments are not configured with the same Cloud Router.
B.The BGP timers are set too high, causing slow convergence.
C.The on-premises router is not configured with equal-cost multipath (ECMP).
D.The remaining circuit does not have sufficient bandwidth to handle the combined traffic load.
AnswerD

Active-active mode may use both circuits for load balancing; if one fails, all traffic goes to the other, potentially exceeding its capacity.

Why this answer

In active-active mode, both circuits are used simultaneously. When one fails, traffic is re-routed to the remaining one. If there is insufficient bandwidth on the remaining circuit, packet loss may occur due to congestion.

448
MCQmedium

A company uses Traffic Director with Envoy sidecars for service mesh. They want to gradually shift traffic from version 1 to version 2 of a service, starting with 10% traffic to version 2. Which Traffic Director feature should they use?

A.Traffic splitting
B.Circuit breakers
C.Fault injection
D.mTLS authentication
AnswerA

Traffic splitting allows you to assign weights to different backends for gradual rollout.

Why this answer

Traffic Director supports traffic splitting via the service routing API (TrafficDirectorService). You can define weighted destinations in the routing rule to split traffic between versions.

449
MCQhard

A company wants to use Cloud CDN to serve content from a custom origin that is not hosted on Google Cloud. They have enabled Cloud CDN with a backend bucket pointing to an external origin URL. However, content is not being cached. What is a likely reason?

A.The custom origin does not support HTTPS.
B.The origin is not configured in the backend bucket as an internet NEG.
C.The load balancer is a Global TCP Proxy, not HTTP.
D.The origin does not return Cache-Control or Expires headers.
AnswerD

Without caching headers, Cloud CDN will not cache unless FORCE_CACHE_ALL mode is enabled.

Why this answer

Cloud CDN with an external origin requires the origin to return explicit cache headers (Cache-Control or Expires) to enable caching. If the origin does not return caching headers, Cloud CDN will not cache the content. Force cache all mode can override this, but if not set, caching may not occur.

450
MCQmedium

An engineer manages a global application using Global external HTTP(S) Load Balancer with URL map routing to multiple backend services. They want to enable Cloud CDN for the /images/* path. What is the correct way to enable CDN for that specific path?

A.Enable CDN on the backend service that serves /images/*
B.Use the gcloud compute url-maps add-path-matcher command with --cache-mode
C.Set a cache key header for /images/* in the URL map
D.Enable Cloud CDN at the load balancer level
AnswerA

Create a separate backend service for images with CDN enabled, and route /images/* to it via URL map.

Why this answer

To enable CDN for a specific path, you must create a backend bucket (or backend service with CDN enabled) and configure a URL map rule that routes the path /images/* to that backend. Enabling CDN on the backend service itself will apply to all paths served by that backend.

Page 5

Page 6 of 13

Page 7