Courseiva

Google Professional Cloud Network Engineer (PCNE) — Questions 301375

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

Page 4

Page 5 of 13

Page 6
301
MCQmedium

An organization has a Shared VPC with several service projects. They want to restrict which service projects can create firewall rules in the host project. What should they do?

A.Use IAM roles with compute.firewalls.create permission at the host project level.
B.Use VPC Service Controls.
C.Use hierarchical firewall policies.
D.Use organization policies to deny firewall rule creation.
AnswerA

IAM allows fine-grained control over who can create firewall rules in the host project.

Why this answer

IAM roles with the `compute.firewalls.create` permission at the host project level allow you to precisely control which service projects can create firewall rules in the Shared VPC host project. By assigning a custom or predefined role (e.g., Compute Security Admin) that includes this permission to specific service project identities, you can restrict firewall rule creation to only authorized service projects while preventing others from doing so.

Exam trap

The trap here is that candidates confuse VPC Service Controls or hierarchical firewall policies with IAM-based permission control, mistakenly thinking these features can restrict which service projects can create firewall rules, when they actually serve different purposes (data exfiltration prevention and rule enforcement, respectively).

How to eliminate wrong answers

Option B is wrong because VPC Service Controls are designed to protect data exfiltration by controlling access to Google Cloud APIs from outside a service perimeter, not to manage IAM permissions for creating firewall rules within a Shared VPC. Option C is wrong because hierarchical firewall policies are used to enforce consistent firewall rules across an organization hierarchy (folders, projects) and do not control which service projects can create rules; they apply rules, not permissions. Option D is wrong because organization policies can deny firewall rule creation globally (e.g., using a constraint like `compute.disableFirewallCreation`), but they cannot selectively allow or deny specific service projects; they are a blunt instrument that would block all firewall rule creation in the host project, including for authorized service projects.

302
MCQmedium

A company wants to publish a custom internal service running in their VPC so that consumers in other VPCs can access it using private IP addresses. Which service should they use?

A.Cloud Load Balancing
B.Private Service Connect
C.VPC Peering
D.Cloud VPN
AnswerB

Correct. Private Service Connect enables publishing and consuming services privately.

Why this answer

Private Service Connect allows publishing internal services via private endpoints in your VPC and enabling consumption from other VPCs using private IPs.

303
MCQeasy

An engineer needs to set up DNS resolution for on-premises resources from Google Cloud. They want to resolve a custom domain (e.g., corp.example.com) using on-premises DNS servers. Which Cloud DNS feature should they use?

A.DNS forwarding zone
B.Cloud DNS peering
C.Outbound DNS forwarding
D.Inbound DNS policy
AnswerA

A forwarding zone in Cloud DNS forwards queries for a specific domain to specified DNS servers.

Why this answer

DNS forwarding zones in Cloud DNS allow you to forward queries for a specific domain to a set of on-premises DNS server IPs. This is achieved by creating a forwarding zone with the target name servers pointing to the on-premises DNS servers.

304
MCQeasy

A company wants to restrict access to Google Cloud APIs from a specific VPC network so that only the Google APIs listed in the VPC Service Controls perimeter can be accessed. Which configuration should be used?

A.VPC Service Controls with VPC accessible services
B.Private Service Connect
C.Private Google Access
D.Cloud NAT with a firewall rule
AnswerA

VPC Service Controls perimeters can include VPC accessible services to restrict access to specific Google APIs from a VPC network.

Why this answer

VPC Service Controls allow you to define perimeters around Google Cloud resources, restricting access to Google APIs based on the perimeter's configuration. VPC accessible services is a feature within VPC Service Controls that limits access to only the APIs listed in the perimeter.

305
MCQhard

An organization configures a Global external HTTP(S) Load Balancer with Cloud CDN. They notice that some users are getting stale content even after they have invalidated the cache for specific objects. What is the most likely reason?

A.The URL map is routing to the wrong backend
B.Invalidation requests are queued and take time to propagate globally
C.The objects were cached with a very long TTL
D.Cloud CDN does not support invalidation for backend buckets
AnswerB

Cache invalidation can take minutes to propagate to all edge locations.

Why this answer

Cache invalidation removes objects from cache but does not prevent new requests from being served stale content if the origin returns a 304 Not Modified or if there is a propagation delay. However, the most common cause is that the invalidation has not propagated to all edge caches yet.

306
MCQmedium

A security team wants to allow traffic from a specific set of VMs with service account 'web-sa@project.iam.gserviceaccount.com' to access a database VM with tag 'db'. The VMs are in the same VPC. Which firewall rule configuration achieves this?

A.Ingress rule: allow tcp:3306, source IP range 10.0.0.0/8, target tags 'db'
B.Ingress rule: allow tcp:3306, source tags 'web', target service account 'db-sa'
C.Egress rule: allow tcp:3306, source service account 'web-sa', target tags 'db'
D.Ingress rule: allow tcp:3306, source service account 'web-sa', target tags 'db'
AnswerD

This rule only allows traffic from VMs with the specified service account to the tagged database VMs.

Why this answer

It defines an ingress firewall rule that allows TCP traffic on port 3306 (MySQL) from VMs using the service account 'web-sa@project.iam.gserviceaccount.com' as the source, targeting VMs with the network tag 'db'. In GCP VPC firewall rules, source service accounts can be used to filter traffic based on the identity of the source VM, while target tags apply the rule to destination VMs that have the specified tag, enabling identity-based access control without relying on IP addresses.

Exam trap

Google Cloud often tests the distinction between ingress and egress rules in the context of service account filtering, and the trap here is that candidates may confuse the direction of traffic (thinking an egress rule on the web VMs is needed) or incorrectly mix source/target tags with service accounts, leading them to pick options that use IP ranges or mismatched attributes.

How to eliminate wrong answers

Option A is wrong because it uses a broad source IP range (10.0.0.0/8) instead of the specific service account, which would allow traffic from any VM in that IP range, not just those with the 'web-sa' service account, violating the principle of least privilege. Option B is wrong because it incorrectly uses source tags 'web' (which filter by network tag, not service account) and target service account 'db-sa' (which would apply the rule to VMs with that service account, not the database VM with tag 'db'), and it also specifies an ingress rule but the direction is correct; the main issue is the mismatch in filtering attributes. Option C is wrong because it defines an egress rule, but the requirement is to allow traffic from the web VMs to the database VM, which is an inbound connection to the database; egress rules control outbound traffic from the source, not inbound access to the target.

307
MCQhard

You are using Cloud CDN with a backend bucket and want to cache all responses regardless of Cache-Control headers. Which cache mode should you set?

A.CACHE_ALL_STATIC
B.FORCE_CACHE_ALL
C.USE_ORIGIN_HEADERS
D.DISABLED
AnswerB

FORCE_CACHE_ALL caches all responses regardless of Cache-Control headers.

Why this answer

FORCE_CACHE_ALL overrides origin Cache-Control headers and caches all responses. CACHE_ALL_STATIC attempts to cache static content but respects Cache-Control. USE_ORIGIN_HEADERS respects origin headers.

308
MCQeasy

A company wants to use HA VPN with route-based VPN. Which VPN configuration option must be enabled?

A.IKEv1 with pre-shared keys.
B.Route-based VPN by selecting Dynamic Routing (BGP) or using static routes.
C.Using certificates instead of pre-shared keys.
D.Policy-based VPN with multiple policies for each subnet.
AnswerB

Route-based VPN relies on routing for traffic direction.

Why this answer

Route-based VPN uses routing (BGP or static routes) to determine which traffic goes through the tunnel, as opposed to policy-based which uses security policies.

309
Multi-Selecteasy

Which THREE of the following are required to use Private Google Access for on-premises hosts through a Cloud VPN or Interconnect? (Choose THREE)

Select 3 answers
A.Firewall rules allowing traffic from on-premises to the restricted VIP IP range.
B.VPC Flow Logs enabled on the VPC.
C.Configuring DNS on-premises to resolve Google API hostnames to the restricted Google APIs IP address (199.36.153.4/30).
D.A Cloud VPN tunnel or Dedicated Interconnect connection to Google Cloud.
E.Cloud NAT configured for the on-premises subnet.
AnswersA, C, D

Traffic must be allowed to reach the VIP.

Why this answer

Private Google Access for on-premises hosts requires firewall rules that allow traffic from on-premises to the restricted VIP IP range (199.36.153.4/30). This is necessary because on-premises hosts must be able to reach the restricted Google APIs VIP over the VPN or Interconnect, and firewall rules control which source IPs can access that VIP. Without these rules, traffic from on-premises would be blocked at the Google Cloud perimeter.

Exam trap

Google Cloud often tests the misconception that Cloud NAT is required for on-premises traffic, but Cloud NAT is only for Google Cloud VMs without external IPs, not for on-premises hosts using Private Google Access.

310
Multi-Selectmedium

Which THREE components are required to set up a Cloud VPN with dynamic routing (BGP) between an on-premises network and Google Cloud?

Select 3 answers
A.Cloud VPN gateway
B.Cloud Router
C.Cloud NAT
D.BGP peer on the on-premises router
E.Static routes for the remote network
AnswersA, B, D

The VPN gateway terminates the VPN tunnel on the Google Cloud side.

Why this answer

A Cloud VPN gateway is required because it acts as the Google Cloud-side endpoint for the VPN tunnel, handling the encryption and encapsulation of traffic. Without a VPN gateway, there is no secure tunnel termination point in GCP, making it impossible to establish the VPN connection.

Exam trap

The trap here is that candidates often confuse Cloud NAT as a required component for VPN connectivity, but Cloud NAT is unrelated to VPN tunnel establishment or BGP routing.

311
MCQeasy

An organization wants to migrate legacy on-premises applications to Google Cloud but must maintain low-latency connectivity for real-time data synchronization. The on-premises data center is in a colocation facility that is not directly served by Google Cloud. Which hybrid connectivity option is most cost-effective while meeting the latency requirement?

A.Direct Peering
B.Cloud VPN with dynamic routing
C.Partner Interconnect
D.Dedicated Interconnect
AnswerC

Uses a service provider to connect to Google Cloud, cost-effective and low latency.

Why this answer

Partner Interconnect is the most cost-effective option because it provides a dedicated, low-latency connection through a supported service provider that can extend connectivity from the colocation facility to a Google Cloud region. Unlike Dedicated Interconnect, it does not require physical cross-connects in a Google Cloud colocation facility, making it ideal when the on-premises site is not directly served by Google Cloud. It meets the real-time synchronization latency requirement by offering a reliable, high-bandwidth connection with SLA-backed uptime.

Exam trap

Google Cloud often tests the misconception that Direct Peering or Cloud VPN can meet low-latency requirements, but the trap here is that only Partner Interconnect or Dedicated Interconnect provide SLA-backed, low-latency connectivity, and Partner Interconnect is the correct choice when the on-premises site is not in a Google Cloud colocation facility.

How to eliminate wrong answers

Option A is wrong because Direct Peering is not a Google Cloud connectivity product; it is a BGP-based peering arrangement at an IXP that does not provide SLA-backed connectivity or guaranteed bandwidth, and it is not designed for hybrid cloud connectivity to Google Cloud. Option B is wrong because Cloud VPN with dynamic routing uses the public internet, which introduces variable latency and jitter that cannot guarantee the low-latency requirement for real-time data synchronization. Option D is wrong because Dedicated Interconnect requires a physical cross-connect in a Google Cloud colocation facility, and the on-premises data center is in a colocation facility not directly served by Google Cloud, making it impractical and more expensive to implement.

312
MCQeasy

A customer wants to use Cloud VPN to connect a small branch office to Google Cloud. The branch office has a dynamic public IP address. Which Cloud VPN type should they use?

A.Classic VPN with a static IP on the peer
B.A custom SSL VPN appliance on Compute Engine
C.HA VPN with a single VPN gateway and a dynamic peer IP
D.HA VPN with two VPN gateways and static peer IPs
AnswerC

HA VPN supports dynamic peer IP addresses, making it suitable for branches with dynamic IPs.

Why this answer

HA VPN supports dynamic peer IP addresses through its use of IKEv2 and route-based VPN tunnels. When the branch office has a dynamic public IP, HA VPN can establish tunnels using the peer's current IP address, which is discovered during IKE negotiation. Classic VPN (option A) requires a static peer IP, and option D requires two static peer IPs, making them unsuitable for a dynamic IP scenario.

Exam trap

The trap here is that candidates often assume HA VPN always requires static peer IPs, but the Google Cloud PCNE exam tests the nuance that HA VPN with a single gateway (and dynamic peer IP support) is the correct choice when the remote peer has a dynamic public IP, not the dual-gateway HA configuration.

How to eliminate wrong answers

Option A is wrong because Classic VPN with a static IP on the peer requires the branch office to have a static public IP address, which contradicts the given dynamic IP condition. Option B is wrong because a custom SSL VPN appliance on Compute Engine is not a native Cloud VPN service; it introduces additional complexity, licensing, and management overhead, and is not the recommended or simplest solution for site-to-site IPsec VPN connectivity. Option D is wrong because HA VPN with two VPN gateways and static peer IPs requires both peer IPs to be static, which is not possible when the branch office has a single dynamic public IP.

313
MCQhard

You are configuring an HA VPN tunnel between GCP and on-premises. The on-premises VPN device only supports IKEv1 and static routing. Which of the following is true regarding this setup?

A.Partner Interconnect can be used instead
B.Classic VPN must be used
C.HA VPN can be used with static routing if you disable BGP
D.HA VPN can be configured with IKEv1 and static routes
AnswerB

Classic VPN supports IKEv1 and static routing.

Why this answer

HA VPN requires IKEv2 and dynamic routing (BGP). Classic VPN supports IKEv1 and static routing.

314
MCQmedium

An engineer is troubleshooting high latency between a Compute Engine instance in us-central1 and an instance in europe-west1. Which tool can show per-region latency and packet loss?

A.Connectivity Tests
B.Performance Dashboard
C.Network Topology
D.Firewall Insights
AnswerB

Performance Dashboard shows latency and packet loss between GCP regions.

315
MCQmedium

A customer has established a Dedicated Interconnect, but traffic from on-premises to Google Cloud is still using the internet path instead of the interconnect. What is the most likely cause?

A.The on-premises firewall blocks BGP traffic.
B.The Google Cloud Router has not learned any routes.
C.The VLAN attachment is in a different region.
D.The BGP routes from on-premises have a lower priority than the default route via internet.
AnswerD

Route priority (e.g., weight, MED) determines which path is used; lower priority routes are less preferred.

Why this answer

Google Cloud uses route priority to determine which route is used when multiple routes match a destination. The default route (0.0.0.0/0) is a system route with priority 0 (highest priority). BGP routes learned via Dedicated Interconnect have a priority of 200 (lower priority).

When both exist, the route with the lower priority number (higher priority) wins, so the default route via the internet takes precedence over the BGP routes from the interconnect. This causes traffic to use the internet path instead of the interconnect.

Exam trap

Google Cloud often tests the misconception that BGP routes are always preferred over system routes, but the trap here is that the default system route has higher priority (lower numerical value) than BGP routes, causing the internet path to be used.

How to eliminate wrong answers

Option A is wrong because if the on-premises firewall blocks BGP traffic, the BGP session would not establish at all, resulting in no routes learned via the interconnect, not a scenario where traffic still uses the internet path while BGP is up. Option B is wrong because if the Google Cloud Router has not learned any routes, there would be no path via the interconnect, and traffic would default to the internet; however, the question states the interconnect is established, implying BGP sessions are up and routes are exchanged, so this is not the most likely cause. Option C is wrong because the VLAN attachment must be in the same region as the Cloud Router for the interconnect to function; if it were in a different region, the interconnect would not be operational, and the customer would not have a working Dedicated Interconnect.

316
MCQeasy

A startup wants to minimize costs for their development VPC. They have a few VMs that need occasional internet access for updates. What is the most cost-effective approach?

A.Use Private Google Access
B.Use Cloud NAT with a static IP
C.Use a VPN to an on-prem network for internet
D.Assign external IPs to each VM
AnswerB

Cloud NAT allows private VMs to access the internet using one or more static IPs, minimizing costs.

Why this answer

Cloud NAT with a static IP is the most cost-effective approach because it allows multiple VMs to share a single static IP address for outbound internet access, eliminating the need for individual external IPs. This reduces costs since external IP addresses incur charges, and Cloud NAT provides managed, scalable outbound connectivity without requiring a VPN or dedicated gateway.

Exam trap

Google Cloud often tests the misconception that Private Google Access (option A) provides general internet access, but it only covers Google APIs and services, not arbitrary internet destinations like update servers.

How to eliminate wrong answers

Option A is wrong because Private Google Access only enables VMs without external IPs to reach Google APIs and services, not the general internet for updates. Option C is wrong because using a VPN to an on-prem network for internet access introduces additional latency, complexity, and costs (VPN gateway, traffic egress) without benefit if the on-prem network is not already used. Option D is wrong because assigning external IPs to each VM incurs per-IP charges and increases the attack surface, making it less cost-effective than a shared NAT solution.

317
MCQmedium

You need to create a load balancer that distributes traffic across Compute Engine instances in multiple regions for a TCP application without SSL offload. The clients should connect to a single anycast IP. Which load balancer should you use?

A.External TCP/UDP Network Load Balancer
B.Global external TCP Proxy Load Balancer
C.Global external SSL Proxy Load Balancer
D.Internal TCP/UDP Load Balancer
AnswerB

Provides a single anycast IP for TCP traffic, supports multiple regions, and can be used without SSL offload.

Why this answer

Global external TCP Proxy Load Balancer provides a single anycast IP and handles TCP traffic without SSL offload (though it supports SSL offload optionally). It is the only global TCP load balancer that does not require SSL termination.

318
MCQhard

A company uses Cloud DNS private zones for their internal network. They have multiple projects and want to resolve DNS names from one project's private zone in another project. Which feature should they use?

A.DNS peering
B.DNS forwarding
C.Shared VPC
D.VPC peering
AnswerA

Correct. DNS peering allows one project's private zone to be visible to another project's VPC.

Why this answer

DNS peering allows you to set up cross-project DNS resolution by peering a private zone in one project to a VPC in another project.

319
MCQmedium

A network engineer notices asymmetric routing between two VPCs connected via VPC peering. Traffic from VPC A to VPC B flows correctly, but return traffic from VPC B to VPC A drops. What is the most likely cause?

A.MTU mismatch between VPCs
B.BGP session flaps on Cloud Router
C.Overlapping CIDR ranges in the peered VPCs
D.Firewall rules blocking ICMP
AnswerC

Overlapping CIDRs can cause asymmetric routing because a more specific route may not be present, leading to different paths.

Why this answer

Asymmetric routing in VPC peering often occurs when VPCs have overlapping CIDR ranges or when one VPC has a default route that points to another peering, causing the return traffic to take a different path that may be blocked by firewall rules or not have a route.

320
Multi-Selectmedium

An organization wants to enforce that only instances with specific service accounts can be accessed via SSH (TCP 22) from the internet. Which two attributes should be used in the firewall rule to achieve this? (Choose two.)

Select 2 answers
A.--source-service-accounts
B.--source-ranges 0.0.0.0/0
C.--target-tags
D.--destination-ranges
E.--target-service-accounts
AnswersB, E

Correct. Allows traffic from any source (internet).

Why this answer

To target instances based on service account, use --target-service-accounts. To specify the source from internet, use --source-ranges with 0.0.0.0/0.

321
MCQmedium

A company is designing a hybrid network architecture to connect their on-premises data center to Google Cloud. They need high availability and bandwidth up to 10 Gbps. Which connectivity option should they choose?

A.VPN with Cloud Router
B.Direct Peering
C.Dedicated Interconnect with a single connection
D.Partner Interconnect with redundant connections
AnswerD

Partner Interconnect supports up to 10 Gbps and can be deployed with redundant connections for high availability.

Why this answer

The requirement for high availability (redundancy) and bandwidth up to 10 Gbps is best met by Partner Interconnect with redundant connections. Partner Interconnect supports bandwidths from 50 Mbps to 10 Gbps and allows you to connect through a supported service provider, while redundant connections ensure failover and meet the high-availability requirement. Dedicated Interconnect offers up to 10 Gbps per circuit but requires two separate connections for high availability, not a single connection.

Exam trap

The trap here is that candidates often confuse 'Dedicated Interconnect with a single connection' as sufficient for high availability, but a single physical circuit is a single point of failure. High availability requires at least two redundant connections, which is explicitly supported by Partner Interconnect with redundant connections as the correct choice.

How to eliminate wrong answers

Option A is wrong because VPN with Cloud Router typically provides up to ~3 Gbps per tunnel (with IPsec overhead) and does not guarantee 10 Gbps bandwidth, nor does it offer the same latency or reliability as a dedicated physical connection. Option B is wrong because Direct Peering is a direct connection between your on-premises network and Google at an edge exchange location, but it does not offer SLA-backed bandwidth or support for 10 Gbps; it is intended for exchanging traffic with Google services, not for dedicated hybrid connectivity. Option C is wrong because Dedicated Interconnect with a single connection provides up to 10 Gbps per circuit, but a single connection is a single point of failure and does not meet the high-availability requirement; Google recommends at least two redundant connections for HA.

322
MCQhard

An engineer is troubleshooting a VPC Network Peering connection between two VPCs. The peering is established, but traffic from VPC A to VPC B is not reaching a specific subnet. Both VPCs have custom routes. What is the most likely cause?

A.The subnet has overlapping IP with VPC A
B.The subnet in VPC B is in a different region
C.Export custom routes is not enabled on the VPC A side
D.Export custom routes is not enabled on the VPC B side
AnswerD

VPC B must export custom routes to VPC A for VPC A to see the subnet route.

Why this answer

A common issue is that the subnet's custom routes are not exported. VPC peering allows exporting custom routes, but this must be explicitly enabled. If not, only system-generated routes (subnet routes) are exchanged.

323
MCQmedium

A financial services company needs to audit all VPC firewall rule changes in real time. They want to receive notifications whenever a rule is created, modified, or deleted. What is the most efficient way to achieve this?

A.Enable VPC Flow Logs and export them to BigQuery for analysis.
B.Use Cloud Logging with a filter on firewall rule updates and create a logs-based metric with an alert.
C.Enable VPC Firewall Rules Logging and send logs to Pub/Sub with a Cloud Function trigger.
D.Store Cloud Audit Logs in a Cloud Storage bucket and periodically check for changes.
AnswerB

Cloud Logging captures Admin Activity audit logs for firewall changes; a logs-based metric with alert policy provides real-time notification.

Why this answer

Cloud Logging can capture Admin Activity audit logs for firewall rule changes, and a logs-based metric with an alert provides real-time notifications. Option A is incorrect because VPC Flow Logs capture network traffic, not firewall rule changes. Option C is incorrect because VPC Firewall Rules Logging logs traffic hits, not rule configuration changes.

Option D is incorrect because storing Cloud Audit Logs in a bucket requires manual or periodic checking, which is not real-time.

324
MCQhard

An organization has a VPC with multiple subnets and Cloud NAT configured for outbound internet access. They need to analyze which instances are using the most egress bandwidth to optimize costs. Which approach is most effective?

A.Enable Cloud NAT logging and analyze logs in Cloud Logging
B.Export VPC Flow Logs to BigQuery and query by source instance
C.Use Firewall Insights to identify high-traffic instances
D.Use the Performance Dashboard to see bandwidth usage per region
AnswerB

Correct: VPC Flow Logs contain instance metadata and can be aggregated in BigQuery to compute egress per instance.

Why this answer

VPC Flow Logs exported to BigQuery allow detailed analysis of traffic patterns, including source IP, destination, and bytes transferred, enabling cost attribution.

325
Multi-Selecthard

A network engineer is troubleshooting a BGP session between an on-premises router and a Cloud Router. The BGP session state is 'CONNECT' and never transitions to 'ESTABLISHED'. The engineer has verified that the Cloud Router and on-premises router have the same BGP ASN, and that the peer IP addresses are correctly configured. Which two additional steps should the engineer take to resolve this issue? (Choose TWO.)

Select 2 answers
A.Change the BGP ASN on the Cloud Router to a different number
B.Ensure the on-premises router has a route to the Cloud Router's BGP peer IP address
C.Increase the BGP hold timer on the Cloud Router
D.Change the BGP keepalive interval to 10 seconds
E.Verify the Cloud VPN tunnel is established and passing traffic
AnswersB, E

Without a return route, BGP packets cannot reach the Cloud Router.

Why this answer

When the BGP session state is stuck in 'CONNECT', it indicates that the router is actively trying to initiate a TCP connection to the peer but is not receiving a response. For BGP to establish a TCP session (port 179), the on-premises router must have a valid IP route to the Cloud Router's BGP peer IP address. Without this route, TCP SYN packets are dropped, preventing the session from transitioning to 'ESTABLISHED'.

Exam trap

Google Cloud often tests the misconception that BGP session issues in the 'CONNECT' state are caused by BGP timer or ASN misconfigurations, when the real root cause is almost always a lack of IP reachability (missing route or tunnel failure) preventing the TCP connection from forming.

326
Multi-Selectmedium

A company needs to load balance TCP traffic without SSL termination for a gaming application where client IP preservation is critical. The backend is a group of Compute Engine instances. Which load balancer types meet these requirements? (Choose TWO.)

Select 2 answers
A.Regional External TCP/UDP Network Load Balancer
B.Global TCP Proxy Load Balancer
C.Regional Internal TCP/UDP Load Balancer
D.Global SSL Proxy Load Balancer
E.Global HTTPS Load Balancer
AnswersA, B

It is pass-through and preserves client IP by default.

Why this answer

Global TCP Proxy Load Balancer terminates SSL? Actually, TCP Proxy LB does not terminate SSL; it forwards TCP traffic but does not preserve client IP by default (uses Proxy Protocol). Regional External TCP/UDP Network Load Balancer is pass-through and preserves client IP. The Internal TCP/UDP LB is pass-through but internal.

For external TCP without SSL termination and client IP preservation, the best options are the Regional External TCP/UDP NLB (pass-through) and a Global TCP Proxy with Proxy Protocol enabled (which can preserve IP via Proxy Protocol).

327
MCQmedium

A company wants to expose a globally distributed application using Cloud Run via a single anycast IP address, with SSL termination and content-based routing to different backend services. Which load balancer should they use?

A.Global External HTTPS Load Balancer
B.Global External SSL Proxy Load Balancer
C.Regional External HTTP(S) Load Balancer
D.Global External TCP Proxy Load Balancer
AnswerA

Correct: provides global anycast IP, SSL termination, URL map for content-based routing, and can use serverless NEGs for Cloud Run.

Why this answer

The Global External HTTPS Load Balancer provides a single anycast IP, SSL termination, and content-based routing via URL maps to backends like serverless NEGs pointing to Cloud Run.

328
Matchingmedium

Match each Google Cloud Armor feature to its description.

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

Concepts
Matches

Pre-configured rules to block common web attacks

Limits requests per client to prevent abuse

Allows or denies traffic from specific IPs

ML-based detection of DDoS and application attacks

Rules attached to backend services or load balancers

Why these pairings

Cloud Armor features include Security Policies (rule-based traffic filtering), WAF Rules (web vulnerability protection), and DDoS Protection (edge mitigation). Common confusions mix WAF with IP lists or rate limiting.

329
MCQeasy

What is the default MTU for Compute Engine instances on Google Cloud?

A.1460
B.9000
C.1400
D.1500
AnswerA

GCP uses 1460 as default MTU.

Why this answer

The default MTU for Google Cloud VMs is 1460 bytes to accommodate encapsulation overhead.

330
Drag & Dropmedium

Drag and drop the steps to configure a Cloud NAT for private instances to access the internet 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 NAT requires a Cloud Router first. Then create NAT, assign IPs, and apply to subnets. Testing confirms internet access.

331
MCQeasy

Which Network Intelligence Center tool provides a visual representation of your VPC network, including instances, subnets, firewall rules, and routes?

A.Connectivity Tests
B.Firewall Insights
C.Network Topology
D.Performance Dashboard
AnswerC

Network Topology visualizes the entire VPC topology.

332
MCQmedium

A company has a VPC with a subnet in us-central1. They launched a Compute Engine instance named "app-server" in that subnet without an external IP. They need the instance to be able to download updates from the internet. Which two steps must be taken?

A.Configure Private Google Access on the subnet.
B.Create a VPC firewall rule to allow egress to 0.0.0.0/0.
C.Create a Cloud NAT gateway and a Cloud Router in us-central1.
D.Assign a static external IP to the instance.
AnswerC

Cloud NAT requires a Cloud Router in the same region to provide outbound connectivity.

Why this answer

The instance needs outbound internet access via Cloud NAT, which requires a Cloud Router in the region.

333
MCQhard

A company has deployed an external HTTPS load balancer with a Cloud CDN backend. The load balancer uses a managed SSL certificate. Recently, the company updated their DNS record to point to a different IP address of a new load balancer. After the change, some users are still being served from the old load balancer's cache. The network engineer has confirmed that the DNS TTL has expired. What is the most likely cause of this issue?

A.Cloud CDN cached responses from the old load balancer may still be served until their cache TTL expires.
B.The old load balancer's SSL certificate is still cached by clients.
C.The DNS change has not propagated globally despite the TTL expiring.
D.The old load balancer's IP address is still being served by Google's edge network due to anycast.
AnswerA

Cloud CDN caches content at edge locations; if the cache TTL has not expired, users may receive the old content even after DNS changes.

Why this answer

Cloud CDN caches content at Google's edge caches based on the cache-control headers or default cache TTL. When the DNS record is updated to point to a new load balancer, the old load balancer's cached responses may still be served from edge caches until their cache TTL expires, even after the DNS TTL has expired. This is because Cloud CDN caches are independent of DNS resolution and are governed by HTTP caching rules.

Exam trap

Google Cloud often tests the distinction between DNS TTL (which controls how long DNS records are cached by resolvers) and HTTP cache TTL (which controls how long content is cached by CDN edge nodes), leading candidates to incorrectly attribute the issue to DNS propagation rather than CDN cache expiration.

How to eliminate wrong answers

Option B is wrong because SSL certificates are not cached by clients in a way that would cause them to be served content from the old load balancer; certificate caching affects TLS handshake validation, not content delivery. Option C is wrong because the question explicitly states that the DNS TTL has expired, meaning the DNS change has propagated globally; the issue is not DNS propagation. Option D is wrong because Google's edge network uses anycast to route traffic to the nearest healthy load balancer IP, but the old load balancer's IP is no longer advertised once the DNS points to a new IP; anycast does not serve stale IPs.

334
MCQmedium

A company has an on-premises data center connected to GCP via Cloud VPN with dynamic routing (BGP). Recently, connectivity to a specific subnet (10.1.0.0/16) in GCP became intermittent. The VPN tunnel is up, and BGP sessions are established. What is the most likely cause?

A.The shared secret is misconfigured.
B.The VPN tunnel is flapping due to packet loss.
C.A firewall rule is blocking traffic from on-premises.
D.The Cloud Router is not advertising the correct subnet range to the on-premises router.
AnswerD

If the subnet is not advertised, on-premises traffic may not be routed correctly.

Why this answer

Since the VPN tunnel is up and BGP sessions are established, the issue is not with the tunnel or BGP peering itself. Intermittent connectivity to a specific subnet (10.1.0.0/16) while other subnets remain reachable strongly indicates a route advertisement problem. The Cloud Router must be configured to advertise the correct subnet range to the on-premises router via BGP; if it is not, the on-premises router will lack a route for that subnet, causing intermittent or no connectivity.

Exam trap

Google Cloud often tests the misconception that if the VPN tunnel and BGP session are up, all subnets must be reachable, but the trap is that route advertisement misconfiguration can cause selective subnet unreachability even when the control plane is healthy.

How to eliminate wrong answers

Option A is wrong because a misconfigured shared secret would prevent the VPN tunnel from establishing or cause it to fail authentication, but the tunnel is up and BGP sessions are established. Option B is wrong because tunnel flapping due to packet loss would cause the entire tunnel to go up and down, affecting all traffic, not just a specific subnet, and BGP sessions would also flap. Option C is wrong because a firewall rule blocking traffic from on-premises would cause consistent failure for all traffic from that source, not intermittent connectivity to a single subnet, and the tunnel and BGP being up suggests no such block at the network layer.

335
Multi-Selectmedium

A company wants to resolve DNS queries from their on-premises network for a privately hosted zone in Google Cloud (e.g., example.internal). They also want on-premises DNS servers to resolve GCP internal VM hostnames. Which two Cloud DNS features should they implement? (Choose TWO.)

Select 2 answers
A.Public zone delegation
B.DNS peering
C.DNS forwarding (outbound)
D.Split-horizon DNS
E.DNS forwarding (inbound)
AnswersB, E

DNS peering allows DNS resolution across networks, including on-prem to GCP private zones.

Why this answer

DNS peering allows on-premises to query GCP private zones, and DNS forwarding (inbound) allows GCP to forward queries to on-premises DNS servers.

336
Multi-Selectmedium

A company is designing a hybrid network with Partner Interconnect. They need to ensure high availability and meet a 99.99% SLA. Which TWO actions should they take?

Select 2 answers
A.Provision two Partner Interconnects from different providers or locations
B.Create two VLAN attachments, each on a different Interconnect
C.Enable VPN as a backup to the Interconnect
D.Create a single VLAN attachment with multiple BGP sessions
E.Provision a single Partner Interconnect with two VLAN attachments
AnswersA, B

Redundant Interconnects are required for high availability.

Why this answer

To meet a 99.99% SLA, the design must eliminate single points of failure at both the physical interconnect and the logical attachment level. Provisioning two Partner Interconnects from different providers or locations ensures physical diversity, while creating two VLAN attachments (each on a different Interconnect) provides logical redundancy, allowing traffic to fail over if one attachment or interconnect fails.

Exam trap

Google Cloud often tests the misconception that multiple BGP sessions on a single attachment or a single interconnect provide sufficient redundancy, but the trap here is that the 99.99% SLA requires both physical and logical diversity, so candidates must recognize that a single interconnect (even with two VLAN attachments) is a single point of failure.

337
MCQmedium

A company has a VPC with subnets in us-east1 and us-west1. They have established a Cloud VPN tunnel to their on-premises network through a Cloud Router in us-east1. They want to ensure that traffic from on-premises to resources in us-west1 uses the VPN tunnel and not the public internet. What must be configured?

A.Configure a custom dynamic route on the Cloud Router for us-west1 subnets
B.Create a separate VPN tunnel from on-premises to a Cloud Router in us-west1
C.Add a route on the on-premises router for us-west1 subnets with next hop pointing to the VPN tunnel
D.Configure VPC firewall rules to allow traffic from on-premises to us-west1
AnswerC

The on-premises router must have a route for the remote subnets pointing to the VPN tunnel to forward traffic through it.

Why this answer

The on-premises router must have a route for the us-west1 subnets with the VPN tunnel as the next hop. Without this, the on-premises router will use its default route (typically the public internet) to reach us-west1, bypassing the VPN tunnel. The Cloud Router in us-east1 advertises the us-west1 subnets via BGP over the VPN tunnel, but the on-premises router must be explicitly configured to forward traffic for those subnets into the tunnel.

Exam trap

The trap here is that candidates assume the Cloud Router automatically directs traffic to the correct region, but the on-premises router must have an explicit route for the remote subnets pointing to the VPN tunnel, as the Cloud Router only advertises routes and does not control the on-premises forwarding table.

How to eliminate wrong answers

Option A is wrong because the Cloud Router already advertises the us-west1 subnets via BGP if they are in the same VPC; configuring a custom dynamic route on the Cloud Router is unnecessary and does not control the on-premises router's forwarding decision. Option B is wrong because a separate VPN tunnel to us-west1 is not required; the existing VPN tunnel in us-east1 can carry traffic to us-west1 as long as the on-premises router has a route pointing to it, and Cloud Router can advertise the us-west1 prefixes over the existing BGP session. Option D is wrong because VPC firewall rules control traffic within Google Cloud, not routing decisions on the on-premises side; they do not force traffic to use the VPN tunnel.

338
MCQmedium

A company wants to use Cloud DNS to distribute traffic across multiple regional endpoints with failover: primary in us-central1, secondary in us-west1. If the primary health check fails, traffic should go to secondary. Which routing policy should they use?

A.Geolocation routing policy
B.Weighted round robin routing policy
C.Failover routing policy
D.Simple routing policy (A record)
AnswerC

Correct. Failover routing policy supports primary/backup with health checks.

Why this answer

Failover routing policy allows specifying primary and secondary targets with health checks. Geolocation and weighted round robin do not provide failover behavior.

339
MCQmedium

An organization has a Cloud NAT configured for a VPC network to allow outbound internet access for private instances. They notice that some instances are failing to connect to a specific external API that requires a static source IP. What should they do to resolve this?

A.Use Private Google Access instead of Cloud NAT.
B.Assign a static external IP to the instances and use Cloud NAT with static IPs.
C.Configure Cloud NAT with a static NAT IP address and ensure all traffic uses that IP.
D.Use a VPN tunnel to the API provider's network.
AnswerC

This provides a consistent source IP for all outbound traffic, meeting the API's requirement.

Why this answer

Cloud NAT with a static NAT IP address ensures that all outbound traffic from private instances uses a consistent, predictable source IP. This satisfies the external API's requirement for a static source IP without needing to assign public IPs directly to instances. Option C correctly configures Cloud NAT to use a static IP, which is the intended solution for this scenario.

Exam trap

Google Cloud often tests the misconception that assigning static external IPs to instances is necessary for static source IP requirements, when in fact Cloud NAT with a static IP achieves the same goal without compromising the private nature of the instances.

How to eliminate wrong answers

Option A is wrong because Private Google Access only enables access to Google APIs and services, not to external third-party APIs, and does not provide a static source IP. Option B is wrong because assigning a static external IP to instances defeats the purpose of using private instances and Cloud NAT; Cloud NAT with static IPs is designed to handle this without exposing instances directly. Option D is wrong because a VPN tunnel provides encrypted connectivity to a specific network but does not inherently provide a static source IP for outbound internet traffic to an external API; it would require additional NAT configuration.

340
MCQhard

An organization is migrating a legacy application to GCP. The application requires static routing and does not support BGP. Which VPN option should they use?

A.Classic VPN
B.Dedicated Interconnect
C.Partner Interconnect
D.HA VPN
AnswerA

Classic VPN supports static routing without BGP.

Why this answer

Classic VPN supports static routing (policy-based or route-based) without BGP. Cloud VPN (HA VPN) and Partner Interconnect require BGP, and Dedicated Interconnect uses BGP for VLAN attachments.

341
Multi-Selecthard

Which THREE of the following are valid use cases for VPC Service Controls?

Select 3 answers
A.Controlling access to a Cloud SQL database from a specific VPC.
B.Preventing data exfiltration from Google Cloud Storage.
C.Allowing access to a managed instance group from the internet.
D.Enabling private access to Cloud APIs from on-premises.
E.Restricting access to BigQuery from outside a perimeter.
AnswersA, B, E

VPC SC can restrict Cloud SQL access to authorized VPC networks.

Why this answer

VPC Service Controls allow you to define a service perimeter that restricts access to a Cloud SQL database (or other Google Cloud services) to requests originating from a specific VPC network. This is achieved by configuring an access level that references the VPC network, ensuring that only traffic from that VPC can reach the database, even if the database is exposed via private IP.

Exam trap

Google Cloud often tests the misconception that VPC Service Controls are a general-purpose network access control tool (like firewall rules or VPN), when in fact they are specifically for creating a data exfiltration prevention perimeter around Google Cloud services, not for allowing inbound internet access or extending access to on-premises networks.

342
MCQhard

A company is experiencing asymmetric routing between their VPC and on-premises network over two Cloud VPN tunnels with different BGP sessions. Some traffic from GCP to on-premises is dropped by firewall stateful inspection on-premises. What is the most likely cause?

A.BGP keepalive timers are set too low, causing session flapping.
B.The MTU is mismatched between the tunnels.
C.The on-premises router is not receiving the VPC routes via BGP.
D.Traffic is taking one tunnel for outbound and the other for return, causing stateful firewall to drop packets.
AnswerD

Asymmetric paths break stateful firewalls that expect return traffic on same interface.

Why this answer

The most likely cause is asymmetric routing, where outbound traffic from GCP to on-premises takes one VPN tunnel while return traffic takes the other. Stateful firewalls track connection state based on the first packet seen; if return packets arrive via a different tunnel (and thus a different source IP or interface), the firewall does not recognize them as part of an existing session and drops them. This is a classic symptom of asymmetric routing with multiple BGP sessions over separate tunnels.

Exam trap

The trap here is that candidates often confuse asymmetric routing with route propagation failures or MTU issues, but the key clue is 'stateful firewall inspection' dropping traffic, which directly points to a session state mismatch caused by different paths for forward and return traffic.

How to eliminate wrong answers

Option A is wrong because BGP keepalive timers set too low would cause session flapping, not asymmetric routing; flapping would result in intermittent connectivity, not a consistent one-way drop. Option B is wrong because MTU mismatch typically causes fragmentation issues or packet loss, not stateful firewall drops due to asymmetric paths; it would manifest as connectivity failures for large packets, not a directional traffic drop. Option C is wrong because if the on-premises router were not receiving VPC routes via BGP, traffic from on-premises to GCP would fail entirely, not just be dropped by the firewall on return; the question states traffic is dropped by firewall inspection, implying routes are present.

343
MCQmedium

A company wants to enable mTLS between microservices in a service mesh managed by Traffic Director. They have deployed Envoy sidecars. What must be configured to enforce mTLS?

A.An SSL policy on the load balancer
B.A VPC Service Controls perimeter
C.A Cloud Armor security policy
D.The mTLS mode in Traffic Director's mesh configuration
AnswerD

Correct: setting mTLS mode to strict enforces mTLS.

Why this answer

Traffic Director uses the mTLS mode in the Envoy configuration. The correct way is to set the tls_mode to STRICT in the TrafficDirector's mesh configuration.

344
MCQmedium

A company has a VPC with subnets in us-central1 and europe-west1. They want to deploy a Cloud NAT to allow VMs in both regions to access the internet. How many Cloud NAT gateways are needed?

A.None; Cloud NAT is not required for internet access.
B.One Cloud NAT gateway per subnet.
C.Two Cloud NAT gateways, one per region.
D.One Cloud NAT gateway covering both regions.
AnswerC

Correct. One Cloud NAT gateway is needed per region (us-central1 and europe-west1), so two gateways are required.

Why this answer

Cloud NAT is a regional resource; each region requires its own Cloud NAT gateway. A single gateway cannot cover multiple regions because Cloud NAT does not support global scope. For VMs in us-central1 and europe-west1 to access the internet, you need one Cloud NAT gateway per region, totaling two.

Therefore, option C is correct. Option A is incorrect because Cloud NAT is necessary for private VMs to reach the internet without external IP addresses. Option B is incorrect because Cloud NAT operates at the region level, not per subnet; a regional gateway serves all subnets in that region.

Option D is incorrect because Cloud NAT is regional, not global.

Exam trap

Candidates often mistakenly believe Cloud NAT is global or per-subnet. Remember: Cloud NAT is regional and one gateway covers all subnets in a region.

345
Multi-Selecteasy

An organization is experiencing high latency on their Partner Interconnect connection. Which TWO tools or features can they use to diagnose the issue from within Google Cloud? (Choose two.)

Select 2 answers
A.Network Intelligence Center performance dashboard
B.Cloud Router logs
C.Cloud Load Balancing logs
D.VPC Flow Logs
E.Cloud Interconnect monitoring metrics
AnswersD, E

Flow logs can show RTT and help pinpoint which traffic is experiencing latency.

Why this answer

VPC Flow Logs capture metadata about network traffic flowing to and from VPC instances, including latency-related metrics such as packet loss and retransmissions. By analyzing these logs, you can identify if high latency is caused by dropped packets or congestion on the Partner Interconnect link. This makes VPC Flow Logs a direct diagnostic tool for latency issues from within Google Cloud.

Exam trap

Google Cloud often tests the misconception that Cloud Router logs or Load Balancing logs can diagnose network latency, when in fact they are designed for BGP routing events and application-layer metrics, respectively, not for interconnect-level packet loss or latency.

346
MCQeasy

A company needs to connect multiple VPCs in different projects and regions to a common hub VPC for centralized inspection. They want to avoid complex mesh peering configurations. Which service should they use?

A.VPC Network Peering
B.Shared VPC
C.Network Connectivity Center
D.Cloud VPN
AnswerC

NCC enables hub-and-spoke topology for VPCs and on-prem.

Why this answer

Network Connectivity Center (NCC) is the correct choice because it provides a hub-and-spoke topology that connects multiple VPCs across projects and regions to a central hub VPC for centralized inspection, without requiring complex mesh peering. NCC uses a software-defined networking (SDN) controller to manage inter-VPC connectivity and routing, enabling traffic to flow through the hub VPC for inspection appliances like firewalls or IDS/IPS.

Exam trap

Candidates often confuse VPC Network Peering with hub-and-spoke capabilities, but Google Cloud VPC Network Peering does not natively support transitive routing or centralized inspection without complex custom routes and additional appliances.

How to eliminate wrong answers

Option A is wrong because VPC Network Peering creates direct, point-to-point connections between VPCs, requiring a full mesh of peering links for multiple VPCs, which does not support centralized inspection through a single hub without additional routing complexity. Option B is wrong because Shared VPC allows multiple projects to share a single VPC network, but it does not connect VPCs in different regions or projects to a separate hub VPC; it centralizes resources within one VPC, not inter-VPC inspection. Option D is wrong because Cloud VPN establishes encrypted tunnels over the internet for hybrid connectivity (on-premises to GCP), not for connecting multiple VPCs within GCP, and it lacks the centralized routing and inspection capabilities of NCC.

347
MCQmedium

A company has a VPC with subnets in us-east1 and europe-west1. They need low-latency communication between instances in these regions using private IPs only. Which solution should they use?

A.Use Cloud VPN to connect the regions.
B.Use Cloud Interconnect to connect the regions.
C.Use VPC Network Peering between the two regional subnets.
D.Use a Global VPC (default VPC mode).
AnswerD

Global VPC provides automatic cross-region routing.

Why this answer

A Global VPC (default VPC mode) allows subnets in multiple regions to communicate using private IPs natively, without any additional VPN or peering configuration. This is because a Global VPC spans all regions, and instances within the same VPC can reach each other via internal IPs using Google's global network, providing low-latency communication.

Exam trap

The trap here is that candidates often confuse VPC Network Peering (which connects separate VPCs) with the native inter-region communication within a single Global VPC, leading them to select option C instead of recognizing that a Global VPC already provides private IP connectivity across regions.

How to eliminate wrong answers

Option A is wrong because Cloud VPN creates encrypted tunnels over the public internet, which adds latency and does not use private IPs natively; it is designed for hybrid connectivity, not for inter-region VPC communication. Option B is wrong because Cloud Interconnect provides dedicated on-premises to GCP connectivity, not connectivity between GCP regions; it is used for hybrid cloud, not for VPC-to-VPC within GCP. Option C is wrong because VPC Network Peering connects two separate VPCs, not subnets within the same VPC; it requires explicit peering setup and does not apply to subnets in the same VPC, which already communicate via the global VPC.

348
MCQeasy

Based on the exhibit, what is the purpose of Cloud Router's BGP configuration?

A.To advertise the VPC's IP range to the on-premises network.
B.To load balance traffic across multiple VPN tunnels.
C.To receive a default route from the on-premises network.
D.To advertise a default route to the on-premises network.
AnswerA

Cloud Router advertises 10.0.0.0/16 to on-premises.

Why this answer

Cloud Router uses BGP to dynamically exchange routes between a VPC network and an on-premises network over a VPN tunnel or Dedicated Interconnect. In this configuration, the purpose is to advertise the VPC's IP range (the custom or auto-mode subnet CIDR) to the on-premises router, enabling on-premises hosts to route traffic back to the VPC. This is achieved by configuring the Cloud Router with a BGP session and setting the advertised route for the VPC's IP range.

Exam trap

Google Cloud often tests the misconception that Cloud Router's primary function is to load balance traffic or receive default routes, but the core purpose is to dynamically advertise and learn specific IP prefixes via BGP for hybrid connectivity.

How to eliminate wrong answers

Option B is wrong because Cloud Router does not perform load balancing across VPN tunnels; load balancing is handled by Cloud VPN with dynamic routing, which uses multiple tunnels and BGP to distribute traffic, but the Cloud Router itself only manages BGP sessions and route advertisements. Option C is wrong because Cloud Router can be configured to receive custom routes from the on-premises network, but receiving a default route is not the purpose shown in the exhibit; the exhibit focuses on advertising the VPC's IP range, not receiving routes. Option D is wrong because while Cloud Router can advertise a default route (0.0.0.0/0) to the on-premises network if explicitly configured, the exhibit's purpose is to advertise the VPC's specific IP range, not a default route.

349
Multi-Selecthard

A company uses Traffic Director with Envoy sidecars. They want to implement traffic splitting to gradually migrate traffic from version v1 to v2 of a service. Which TWO resources must be configured? (Select two.)

Select 2 answers
A.Health check
B.Firewall rule
C.Cloud CDN cache key
D.TrafficDirectorRoute with traffic splitting rules
E.Backend service with weighted backends
AnswersD, E

Correct: the route rule specifies the percentage distribution.

Why this answer

Traffic splitting in Traffic Director is configured via routing rules (TrafficDirectorRoute) and backend services (or weighted backends).

350
MCQhard

Refer to the exhibit. A network engineer configured a Cloud Router to advertise the on-premises subnet 10.0.0.0/8 to the VPC. However, traffic from VPC instances to 10.0.0.0/8 is being dropped. What is the most likely issue?

A.The advertised route has a priority that is too low.
B.The Cloud Router's ASN is private, causing routes to be rejected.
C.The subnet 10.0.0.0/8 overlaps with the VPC's auto-allocated IP range.
D.The on-premises router is not configured to accept the advertised route.
AnswerC

Overlap causes VPC to prefer local routes, dropping traffic destined for on-premises.

Why this answer

Cloud Router uses custom route advertisements, and if the on-premises subnet 10.0.0.0/8 overlaps with the VPC's auto-allocated IP range (e.g., the default or custom subnet ranges within the VPC), Google Cloud will not install or will drop traffic for that route due to a conflict. Overlapping routes cause the VPC to prefer its own local routes, resulting in dropped traffic to the on-premises subnet.

Exam trap

Google Cloud often tests the misconception that route priority or BGP ASN issues cause traffic drops, but the trap here is that overlapping IP ranges between on-premises and VPC subnets silently cause traffic to be dropped due to VPC local route precedence, not because of BGP configuration errors.

How to eliminate wrong answers

Option A is wrong because route priority (preference) in Cloud Router is used for route selection among multiple paths, but a low priority does not cause traffic to be dropped; it would simply make the route less preferred, not block it entirely. Option B is wrong because Cloud Router supports private ASNs (e.g., 64512-65534) by default, and BGP does not reject routes based solely on ASN being private; the on-premises router must be configured to accept private ASNs if needed, but this is not the cause of traffic being dropped within the VPC. Option D is wrong because the on-premises router not accepting the advertised route would prevent the route from being learned on-premises, but the question states traffic from VPC instances to 10.0.0.0/8 is being dropped, which is a VPC-side issue, not an on-premises acceptance problem.

351
MCQeasy

A company wants to connect their on-premises data center to Google Cloud using Dedicated Interconnect. They have ordered a 10 Gbps connection and plan to use a single VLAN attachment. How many Cloud Router interfaces are required for a single VLAN attachment with active/active BGP?

A.4 interfaces (two for each BGP session)
B.2 interfaces (one for each VLAN)
C.1 interface
D.2 interfaces (one for each BGP session)
AnswerC

A single VLAN attachment corresponds to one Cloud Router interface; you configure two BGP sessions on that same interface.

Why this answer

For a single VLAN attachment using Dedicated Interconnect with active/active BGP, only one Cloud Router interface is required. The Cloud Router interface represents the VLAN attachment itself, and BGP sessions are configured as sub-interfaces under that single interface. Active/active BGP does not require multiple interfaces; it uses two BGP sessions (one for each router in the pair) but both sessions share the same VLAN attachment and Cloud Router interface.

Exam trap

Google Cloud often tests the misconception that each BGP session requires its own interface, leading candidates to choose option D, but the correct behavior is that both sessions share the same single Cloud Router interface for a given VLAN attachment.

How to eliminate wrong answers

Option A is wrong because it incorrectly assumes that each BGP session requires two interfaces (one per session), but in reality, both BGP sessions are established over the same single VLAN attachment and Cloud Router interface. Option B is wrong because it suggests one interface per VLAN, but a single VLAN attachment uses exactly one VLAN, so only one interface is needed, not two. Option D is wrong because it claims one interface per BGP session, but both BGP sessions (active/active) share the same single Cloud Router interface; they are not separate interfaces.

352
MCQeasy

A team is using Traffic Director with Envoy sidecars. They want to enforce mutual TLS (mTLS) between services. Which configuration must be enabled?

A.Configure SSL certificates on each Envoy sidecar manually
B.Use Cloud NAT to hide internal IPs
C.Enable mTLS in the Traffic Director mesh configuration
D.Enable Cloud Armor on the service
AnswerC

Correct. Mesh TLS settings in Traffic Director enforce mTLS.

Why this answer

Traffic Director supports mTLS through the Mesh TLS configuration, which enforces TLS mutual authentication between sidecars.

353
MCQmedium

An organization is designing IP address planning for hybrid connectivity. They have three VPCs (Prod, Dev, Test) that will be peered with each other and also connected to an on-premises network via Cloud VPN. Which practice should they follow to avoid IP address overlap?

A.Use overlapping IP ranges but rely on NAT to resolve conflicts
B.Use carrier-grade NAT (CGNAT) ranges for all VPCs to avoid private IP conflicts
C.Use the same /16 range for all VPCs to simplify route summarization
D.Allocate unique, non-overlapping IP ranges for each VPC and on-premises network
AnswerD

Unique ranges prevent overlap and ensure proper routing across hybrid connections.

Why this answer

To avoid routing conflicts, each VPC and the on-premises network should use unique, non-overlapping RFC 1918 CIDR blocks. Overlap would cause routing issues and potential traffic blackholing.

354
MCQhard

A company has a VPC with multiple subnets and uses Cloud VPN tunnels to connect to on-premises. They want to ensure that only traffic destined for on-premises is sent through the VPN tunnels; all other traffic should use the internet. Which route configuration should they implement?

A.Add a static route for 0.0.0.0/0 with next hop VPN gateway, and set a lower priority than the internet default route.
B.Use Cloud Router with BGP to exchange specific routes with on-premises, and keep the default internet route for other traffic.
C.Configure the Cloud VPN to advertise a default route to on-premises, and rely on local preference.
D.Use VPC Network Peering with the on-premises network and configure custom route exchange.
AnswerB

BGP-learned specific routes will override the default route for those destinations.

Why this answer

Using Cloud Router with BGP allows the VPC to dynamically learn specific routes from the on-premises network via the VPN tunnels. The default route (0.0.0.0/0) remains pointing to the internet gateway, so only traffic destined for the learned on-premises prefixes is sent through the VPN, while all other traffic uses the internet. This provides precise control without overriding the default route.

Exam trap

Google Cloud often tests the misconception that a default route (0.0.0.0/0) must be manipulated to direct traffic to on-premises, when in fact the correct approach is to use more specific routes learned via BGP to selectively direct only on-premises-destined traffic through the VPN.

How to eliminate wrong answers

Option A is wrong because adding a static route for 0.0.0.0/0 with next hop VPN gateway would send all traffic (including internet-bound) through the VPN, contradicting the requirement; setting a lower priority does not help because the VPN route would still be more specific than the default internet route only if it has a higher priority, but the question states 'lower priority' which would make it less preferred, but the real issue is that a 0.0.0.0/0 route to VPN would capture all traffic. Option C is wrong because configuring the Cloud VPN to advertise a default route to on-premises would cause on-premises to send all its traffic to the cloud, not the other way around, and does not control which cloud traffic uses the VPN. Option D is wrong because VPC Network Peering is used for connecting VPCs within Google Cloud, not for connecting to on-premises networks; it does not support VPN tunnels or on-premises connectivity.

355
MCQeasy

A network engineer needs to design a VPC network for a global application that will have Compute Engine instances in multiple regions. The instances need to communicate with each other using internal IP addresses. What is the simplest way to enable this communication?

A.Use Dedicated Interconnect to connect regions.
B.Use Cloud VPN to connect the instances.
C.Create a single VPC network with subnets in each region.
D.Create separate VPC networks per region and peer them.
AnswerC

A global VPC network inherently provides internal connectivity across regions.

Why this answer

A single VPC network is global and can contain subnets in any region. By placing subnets in each required region within the same VPC, instances can communicate using internal IP addresses (RFC 1918) without any additional connectivity services. This is the simplest and most scalable approach because VPCs inherently provide global routing between subnets.

Exam trap

The trap here is that candidates may overcomplicate the solution by thinking inter-region communication requires explicit connectivity services like VPN or peering, when in fact a single global VPC network provides this natively.

How to eliminate wrong answers

Option A is wrong because Dedicated Interconnect is a hybrid connectivity service for connecting on-premises networks to GCP, not for enabling inter-region communication within GCP. Option B is wrong because Cloud VPN is also a hybrid connectivity solution for connecting external networks to GCP; using it to connect instances within the same cloud would add unnecessary complexity and latency. Option D is wrong because peering separate VPC networks per region would require explicit peering configurations and does not provide the automatic, global routing that a single VPC offers, making it more complex and less efficient.

356
MCQhard

You are deploying a third-party network appliance (e.g., firewall) in a GCP VPC. The appliance requires multiple network interfaces for traffic isolation. You create a VM with three NICs in different subnets. What is a key consideration for routing traffic through the appliance?

A.Custom routes must be created to direct traffic to a specific NIC using the VM's IP as next hop.
B.The VM must have an external IP on each NIC.
C.The VM must have IP forwarding disabled.
D.All NICs must be in the same subnet.
AnswerA

This allows traffic to be forwarded to the appliance for inspection.

Why this answer

Each NIC in a multi-NIC VM is assigned to a different subnet. By default, the VM only sends traffic out of the NIC that matches the destination subnet's route. To route traffic through a specific NIC, custom routes with next hop set to the VM's IP on that NIC are required.

357
MCQmedium

An organization has two Dedicated Interconnect connections in an active-passive configuration. They want to make the passive connection active for maintenance. What should they do to fail over traffic?

A.Configure as-path prepending on the active Cloud Router BGP session to make it less preferred
B.Shut down the Cloud Router on the active connection
C.Set the MED metric to 0 on the active connection
D.Delete the VLAN attachment on the active connection
AnswerA

As-path prepending adds extra AS numbers to the path, making it less preferred in BGP path selection, causing failover to the passive connection.

Why this answer

To fail over traffic, the engineer can use as-path prepending on the active connection to make it less preferred, or adjust MED, or use local preference on the on-premises side. The question implies a GCP-side action: using as-path prepending via Cloud Router BGP configuration.

358
MCQeasy

A network engineer is setting up a HA VPN between GCP and an on-premises network. They want to use route-based VPN with dynamic routing. Which two resources must be created together to form a functional HA VPN tunnel?

A.Two VPN tunnels, each with a BGP session on the same Cloud Router
B.One VPN tunnel with two BGP sessions
C.Two VPN tunnels without BGP sessions
D.Two VPN gateways, each with one tunnel and one BGP session
AnswerA

Each HA VPN interface requires its own tunnel and BGP session, sharing the same Cloud Router.

Why this answer

An HA VPN gateway has two interfaces, each with its own external IP. For each interface, you create a VPN tunnel and attach it to a Cloud Router with a BGP session. The tunnel and BGP session are paired for each interface.

359
MCQmedium

A customer is configuring a route-based IPsec VPN tunnel to Google Cloud. On their on-premises router, they must specify traffic selectors (proxy IDs). What should they set the local and remote traffic selectors to?

A.Configure IKE version to match.
B.Set local to on-prem subnet and remote to VPC subnet.
C.Use policy-based VPN instead.
D.Set both local and remote traffic selectors to 0.0.0.0/0.
AnswerD

Route-based tunnels use wildcard selectors; routing decisions are based on routes, not selectors.

Why this answer

For route-based VPN, traffic selectors (proxy IDs) should be set to 0.0.0.0/0 (any) because route-based tunnels use routing tables to determine which traffic is sent through the tunnel, rather than policy-based selectors. Option A is incorrect because IKE version does not affect traffic selectors. Option B is incorrect because specifying local and remote subnets is used for policy-based VPN, not route-based.

Option C is incorrect because the question specifies route-based VPN; using policy-based VPN is unnecessary and not the correct action.

360
MCQeasy

A company wants to connect two VPCs in different GCP projects so that they can exchange traffic using internal IP addresses. They do not need centralized management or transitive routing between the VPCs. Which GCP networking feature should they use?

A.Network Connectivity Center
B.Cloud VPN
C.Shared VPC
D.VPC Network Peering
AnswerD

VPC Network Peering directly connects two VPCs using internal IPs without transitive routing.

Why this answer

VPC Network Peering allows direct connectivity between two VPCs using internal IPs, with no transitive routing. It is a simple, decentralized option for connecting two VPCs.

361
MCQhard

A company uses Cloud NAT with a static NAT IP address. They notice that connections from their instances are failing after a few minutes. What is the most likely cause?

A.The instance's external IP is conflicting with the NAT IP
B.The NAT IP address is not whitelisted on the target
C.The Cloud NAT gateway is using dynamic port allocation and running out of ports
D.The VPC network has a firewall rule blocking egress
AnswerC

With many connections, ports can be exhausted, causing failures.

Why this answer

Cloud NAT by default uses dynamic port allocation and releases ports after a timeout. With static NAT IP, if port exhaustion occurs or if the connection idle timeout is too low, connections may drop.

362
MCQhard

A global company has multiple on-premises data centers connected to Google Cloud via separate Dedicated Interconnects. Each on-premises site advertises the same IP prefix for a critical application. They want to ensure that traffic from Google Cloud to that prefix is load-balanced across the two interconnects and also provide automatic failover. Which configuration on Cloud Router meets this requirement?

A.Configure Cloud Router with the same MED value for both paths
B.Use BGP multipath on Cloud Router with 'maximum-paths' set to 2
C.Ensure on-premises routers advertise the prefix with the same AS_PATH length and MED
D.Enable 'set-community' on the on-premises routers to mark routes equally
AnswerC

ECMP requires equal BGP path attributes including AS_PATH length and MED.

Why this answer

To load-balance and provide failover, you need equal-cost multi-path (ECMP) routing. Cloud Router supports ECMP only when the routes have the same MED and AS_PATH length. Setting both on-premises routers to advertise with the same attributes allows ECMP.

363
Multi-Selectmedium

A company wants to establish a VPC peering connection between two VPCs in different projects. Which two steps are mandatory to create the peering connection?

Select 2 answers
A.Assign a public IP to the VMs in both VPCs.
B.Ensure the VPCs have non-overlapping subnet IP address ranges.
C.Create a peering connection from each project's VPC to the other.
D.Create a firewall rule allowing all traffic between the VPCs.
E.Configure a Cloud Router with BGP sessions.
AnswersB, C

Overlapping ranges cause routing conflicts and are not allowed in VPC peering.

Why this answer

VPC peering relies on private IP routing between the two VPCs. If the IP address ranges overlap, the VPC route tables cannot distinguish which VPC a packet belongs to, causing routing conflicts and preventing the peering connection from being established. Google Cloud requires that the VPCs have non-overlapping subnet CIDR blocks for successful peering.

Exam trap

Google Cloud often tests the misconception that firewall rules are mandatory for creating a VPC peering connection, but in reality, the peering is a network-layer connectivity setup that can exist without any firewall rules, which are only needed to allow traffic after the peering is active.

364
Multi-Selectmedium

An organization needs to connect three GCP VPCs (VPC-A, VPC-B, VPC-C) so that all VPCs can communicate with each other. They want a solution that is transitive and does not require full mesh peering. Which TWO approaches meet these requirements?

Select 2 answers
A.Use Cloud VPN with HA VPN to connect all VPCs
B.Use Network Connectivity Center with all VPCs as spokes
C.Use a single shared VPC with subnets for all three networks
D.Establish VPC peering between each pair of VPCs (full mesh)
E.Deploy a VPN appliance in one VPC and create VPN tunnels to the other two VPCs
AnswersB, E

NCC hub-and-spoke provides transitive connectivity between spokes.

Why this answer

Network Connectivity Center hub-and-spoke and a VPN appliance in a shared VPC can provide transitive routing. VPC peering is non-transitive and would require full mesh.

365
Multi-Selectmedium

A company is setting up HA VPN to connect an on-premises network to a single GCP region. They want to achieve 99.99% SLA. Which three steps are required? (Choose THREE.)

Select 3 answers
A.Create two Cloud VPN gateways, each with one external IP address.
B.Ensure that the VPN gateways are in different regions.
C.Configure static routes on the on-premises VPN device.
D.Create four VPN tunnels (two per gateway) and four Cloud Router BGP sessions.
E.Use IKEv2 for the VPN tunnels.
AnswersA, D, E

HA VPN uses two gateways with separate external IPs.

Why this answer

HA VPN requires two VPN gateways (each with one external IP), two tunnels per gateway (total four tunnels), and BGP sessions on each tunnel for dynamic routing.

366
MCQeasy

An organization has a project with multiple VPCs. They need to know the maximum number of firewall rules allowed per VPC. Where should they look?

A.Cloud Logging
B.Network Topology
C.Firewall Insights
D.IAM & Admin Quotas page
AnswerD

Correct: The Quotas page lists VPC resource limits per project.

Why this answer

VPC quotas are documented in the Quotas page under VPC Network, showing limits per VPC such as firewall rules, routes, etc.

367
MCQmedium

A company has deployed a web application behind an External HTTP(S) Load Balancer with Cloud Armor. They want to restrict access to a specific URL path /admin to only users from a specific IP range (198.51.100.0/24). The engineer creates a Cloud Armor security policy with two rules: Rule 1 (priority 1000) with match expression "request.path == '/admin' && inIpRange(source.ip, '198.51.100.0/24')" and action "allow". Rule 2 (priority 2147483647) with match "request.path == '/admin'" and action "deny". After testing, users from the allowed IP range receive a 403 error when accessing /admin. The Cloud Armor logs show that the request was denied. The engineer confirms that the policy is attached to the backend service and that the source IP in the logs matches the allowed range. What is the most likely cause of the denial?

A.The allow rule is missing a condition to also check the request path because the path condition is not supported in Cloud Armor.
B.The allow rule's condition is incorrect because it should use "origin.ip" instead of "source.ip".
C.The user's source IP is being translated by a NAT or proxy, so it doesn't match the allowed range.
D.The allow rule's priority is 1000, which is lower than the deny rule, but the deny rule still overrides.
AnswerC

This is the most likely cause; the actual source IP seen by the load balancer is different.

Why this answer

The most likely cause is that the user's source IP is being translated by a NAT or proxy before reaching the load balancer. Cloud Armor evaluates the source IP as seen by the load balancer, which may differ from the original client IP if traffic passes through an intermediate device. The logs confirm the source IP matches the allowed range, but if the request arrives via a proxy, the actual source IP in the packet could be the proxy's IP, not the user's, causing the deny rule to match.

Exam trap

Google Cloud often tests the misconception that the source IP in Cloud Armor logs is always the original client IP, when in reality it is the IP of the last hop before the load balancer, which can be a NAT or proxy.

How to eliminate wrong answers

Option A is wrong because Cloud Armor fully supports the request.path condition in match expressions; the path condition is valid and commonly used. Option B is wrong because Cloud Armor uses 'source.ip' (not 'origin.ip') to refer to the client IP address in match expressions; 'origin.ip' is not a valid attribute. Option D is wrong because the priority system works as intended: lower numeric priority (1000) is evaluated before higher priority (2147483647), so the allow rule should take precedence; the deny rule only applies if the allow rule does not match, but here the allow rule should match based on the IP range.

368
MCQhard

Refer to the exhibit. A Cloud Armor security policy with the shown rules is applied to an HTTPS load balancer. Users from IP 10.0.1.1 are reporting they cannot access the website. What is the issue?

A.The load balancer is not configured to use the security policy.
B.The allow rule with priority 2000 does not apply because the deny rule is evaluated first.
C.The deny rule has higher priority and blocks traffic from 10.0.0.0/8.
D.The IP range in the deny rule is too broad.
AnswerC

The deny rule with priority 1000 matches 10.0.1.1 and blocks it.

Why this answer

Cloud Armor security policies evaluate rules in priority order, with lower numbers having higher priority. The deny rule at priority 1000 matches the source IP range 10.0.0.0/8, which includes the user's IP 10.0.1.1, and is evaluated before the allow rule at priority 2000. Since the deny rule is matched first, the request is blocked, preventing access to the HTTPS load balancer.

Exam trap

Google Cloud often tests the misconception that deny rules are always evaluated before allow rules, but the trap here is that Cloud Armor uses numeric priority to determine evaluation order, not rule type.

How to eliminate wrong answers

Option A is wrong because the exhibit explicitly states the security policy is applied to the HTTPS load balancer, so the load balancer is configured to use it. Option B is wrong because Cloud Armor does not evaluate rules in a 'deny-first' order; it uses numeric priority, and the deny rule at priority 1000 is evaluated before the allow rule at priority 2000, not because it is a deny rule but because it has higher priority. Option D is wrong because the IP range 10.0.0.0/8 is not too broad for the intended purpose; the issue is that the deny rule's priority causes it to block the user's IP, not that the range is excessively wide.

369
Multi-Selectmedium

A network engineer needs to design a DNS architecture for a hybrid cloud environment. The requirements: on-premises hosts must resolve GCP private zone names, and GCP instances must resolve on-premises DNS names. Which TWO Cloud DNS features should they use?

Select 2 answers
A.Outbound DNS server policy
B.Split-horizon DNS
C.Inbound DNS server policy
D.DNS managed zone with forwarding
E.DNS peering
AnswersA, C

Enables GCP to on-premises DNS resolution.

Why this answer

Inbound DNS server policy allows on-premises to forward queries to Cloud DNS. Outbound DNS server policy allows GCP to forward queries to on-premises DNS.

370
MCQeasy

A startup wants to create a VPC with a subnet that can grow automatically as they add more VM instances. Which subnet type should they use?

A.Custom mode subnet
B.Dynamic subnet
C.Legacy network
D.Auto mode subnet
AnswerD

Auto mode subnets automatically allocate IP ranges and expand as needed.

Why this answer

An auto mode subnet automatically creates subnets in each region and assigns IP address ranges from a predefined pool that can expand as you add more VM instances. This allows the subnet to grow without manual intervention, making it ideal for startups that need dynamic scaling.

Exam trap

Google Cloud often tests the distinction between auto mode and custom mode subnets, where candidates mistakenly think 'dynamic subnet' is a real option or assume custom mode can auto-expand, but only auto mode provides automatic regional subnet creation and growth.

How to eliminate wrong answers

Option A is wrong because a custom mode subnet requires manual IP range configuration and does not automatically expand; you must explicitly add new subnets or modify CIDR blocks. Option B is wrong because 'Dynamic subnet' is not a valid VPC subnet type in Google Cloud; the correct terms are auto mode and custom mode. Option C is wrong because a legacy network is a deprecated, flat network model that lacks VPC features like subnets, routing, and firewall rules, and cannot automatically grow with VM instances.

371
Multi-Selectmedium

Which TWO of the following are valid methods to reduce latency between users in Europe and a GCP-hosted application?

Select 2 answers
A.Establish a Cloud VPN tunnel to the user's ISP.
B.Use Cloud CDN to cache content at edge locations.
C.Use Premium Tier networking instead of Standard Tier.
D.Use Cloud NAT for outbound traffic.
E.Deploy Compute Engine instances in a European region.
AnswersB, E

Brings content closer to users.

Why this answer

Cloud CDN uses Google's globally distributed edge caches to serve content from locations closer to users, reducing round-trip time and latency. For users in Europe, cached static or dynamic content is delivered from a nearby edge PoP, bypassing the need to fetch from the origin server in a potentially distant region.

Exam trap

Google Cloud often tests the misconception that Premium Tier networking alone reduces latency for end users, but the real latency reduction comes from deploying resources in the same continent as the users (Option E) or using CDN edge caching (Option B), not just the network tier.

372
Multi-Selecthard

You are designing a global web application that uses Cloud Run for the backend and Cloud Storage for static assets. You need to serve content securely over HTTPS with a custom domain, using Cloud CDN for caching. Which resources must be created or configured? (Choose three.)

Select 3 answers
A.Zonal NEG for Cloud Run
B.SSL certificate resource
C.URL map
D.Identity-Aware Proxy (IAP)
E.Global external HTTP(S) load balancer
AnswersB, C, E

SSL certificate is required for HTTPS.

Why this answer

Global HTTPS LB with backend bucket (for GCS) and serverless NEG (for Cloud Run) is the architecture. SSL certificate is needed for HTTPS. IAP is for authentication, not required.

URL map is required for routing. Zonal NEG is not needed for Cloud Run.

373
MCQhard

A company has two HA VPN tunnels between GCP and on-premises. They want to use both tunnels simultaneously for load balancing traffic. Which BGP feature should they configure on the Cloud Router to achieve equal-cost multipath (ECMP)?

A.Use AS path prepending on one tunnel.
B.Set different MED values on each tunnel to prefer one.
C.Enable policy-based VPN instead of route-based.
D.Advertise identical routes with equal BGP metrics (AS path length, MED, etc.) from both tunnels.
AnswerD

ECMP requires equal metric values.

Why this answer

ECMP is achieved by having multiple BGP paths with equal MED and AS path length. The Cloud Router automatically load balances if routes have equal metrics.

374
MCQmedium

An organization has multiple VPCs in the same project. They want to apply consistent firewall rules to all VPCs at the project level. What is the most efficient way to achieve this?

A.Use hierarchical firewall policies at the project level
B.Create a network firewall policy and attach it to each VPC
C.Create a firewall rules template using Deployment Manager
D.Use VPC Service Controls to enforce rules
AnswerA

Correct. Hierarchical policies can be applied at the project level and apply to all VPCs within the project.

Why this answer

Hierarchical firewall policies can be applied at the organization, folder, or project level and apply to all VPCs in the resource hierarchy. VPC-level firewall rules are per VPC and require duplication.

375
Multi-Selecthard

A company wants to prevent data exfiltration from a Google Cloud Storage bucket that contains sensitive data. They plan to use VPC Service Controls. Which two steps are necessary to implement this? (Choose two.)

Select 2 answers
A.Add the storage bucket to a VPC Service Controls perimeter and restrict access to only trusted VPC networks.
B.Enable VPC Service Controls on the project and define ingress and egress rules.
C.Set up an Organization Policy to deny all public access to storage buckets.
D.Configure the service perimeter to allow access only from authorized IP ranges.
E.Create a service perimeter that includes the storage bucket and the VPC network.
AnswersA, B

The bucket (via its project) is added to the perimeter, and ingress rules restrict access from trusted VPCs.

Why this answer

VPC Service Controls allows you to define a service perimeter that includes a Cloud Storage bucket, and within that perimeter you can restrict access to only trusted VPC networks. This prevents data exfiltration by ensuring that only resources within the specified VPC networks can access the bucket, blocking any access from outside the perimeter, including the public internet or other networks.

Exam trap

Google Cloud often tests the misconception that VPC Service Controls uses IP-based allowlisting (like firewall rules) or that you can add individual resources (like a bucket) directly to a perimeter, when in reality perimeters are project-based and rely on network context rather than IP addresses.

Page 4

Page 5 of 13

Page 6