All Google Cloud exams
Free Professional Cloud Network Engineer practice test: 30 questions with answers
30 original questions for Professional Cloud Network Engineer, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.
- Free questions
- 30
- Full bank
- 112 questions
- Real exam
- 120 min
Professional Cloud Network Engineer exam guide: topics, cost and format
All 30 Professional Cloud Network Engineer questions with answers
The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.
Configure managed network services (6 questions)
Question 1
A web application needs an external HTTPS load balancer that routes each request to the nearest healthy backend across two regions. Which load balancer type fits?
- ARegional internal Application Load Balancer, which serves only clients inside the VPC network in one region
- BExternal passthrough Network Load Balancer, which forwards TCP and UDP traffic without terminating HTTP sessions
- CInternal passthrough Network Load Balancer, which balances traffic among VMs inside one region of the network
- DGlobal external Application Load Balancer, which terminates HTTPS and routes regionally
Show answer and explanationHide answer
Correct answer: DThe global external Application Load Balancer terminates HTTPS and routes each request to the closest healthy backend across regions. The regional internal, passthrough and internal options do not provide global external HTTPS routing.
Question 2
Which Cloud DNS feature lets resources in a VPC resolve private names, such as internal.example.com, that are not visible on the public internet?
- AA Cloud Armor rule that filters DNS requests by source IP before they reach the managed zones in Cloud DNS
- BA public managed zone with DNSSEC enabled, which publishes records to the internet for public resolution
- CA DNS forwarding policy that sends all public queries to the on-premises resolver without any zone
- DA private managed zone bound to the VPC network, which answers queries only from resources in that network
Show answer and explanationHide answer
Correct answer: DA private managed zone bound to the VPC resolves names only for resources in the bound networks, which keeps internal names private. Public zones publish records externally, forwarding policies route queries rather than hold zones, and Cloud Armor does not filter DNS resolution.
Question 3
Instances without external IP addresses must download operating system updates from the internet. Which managed service allows this outbound-only access?
- ACloud Load Balancing, which accepts inbound requests and forwards them to instances that have external addresses
- BPrivate Google Access on the subnet, which is designed to provide general access to all internet destinations
- CCloud NAT, which gives instances without external IPs outbound internet access
- DCloud VPN, which connects the VPC to on-premises networks and does not provide internet access itself
Show answer and explanationHide answer
Correct answer: CCloud NAT provides outbound internet access to instances without external IPs, through a NAT gateway configured with a Cloud Router. Load balancing is for inbound traffic, Cloud VPN is for hybrid connectivity, and Private Google Access only reaches Google APIs and services.
Question 4
Which option lets VMs without external IP addresses reach Google APIs, such as Cloud Storage, over Google's network?
- AA public load balancer in front of Cloud Storage, which forwards each request to the bucket on behalf of the VM
- BPrivate Google Access, which lets those VMs reach Google APIs without external IPs
- CCloud NAT with a static external address, which hides the VM addresses behind a single public IP for all services
- DTurning off the default internet gateway route, which forces the VMs to use the Google APIs directly on their own
Show answer and explanationHide answer
Correct answer: BPrivate Google Access on a subnet allows VMs without external IPs to reach Google APIs and services over Google's network. Cloud NAT uses public addressing, load balancers are not used for API access, and removing the default internet route does not provide API reachability.
Question 5
Which record type lists the mail exchangers that accept email for a domain?
- ACNAME record, which maps a name to another name rather than directly to an address
- BA record, which maps a hostname to an IPv4 address
- CAAAA record, which maps a hostname to an IPv6 address for the same host
- DMX record, which lists the mail exchangers that accept email for the domain
Show answer and explanationHide answer
Correct answer: DMX records name the mail exchangers for a domain and their preference order. A and AAAA map hostnames to addresses, and CNAME maps one name to another.
Question 6
Which load balancer serves clients inside one VPC region and routes HTTP requests at Layer 7 to backends in that region?
- AGlobal external Application Load Balancer, which serves clients on the internet across several regions at the edge
- BRegional internal Application Load Balancer, which serves VPC clients in one region
- CInternal passthrough Network Load Balancer, which forwards TCP and UDP traffic inside a region without HTTP routing
- DExternal passthrough Network Load Balancer, which forwards packets to backends without proxying the HTTP sessions
Show answer and explanationHide answer
Correct answer: BThe regional internal Application Load Balancer provides Layer 7 routing for clients inside the VPC in one region. The global external option serves internet clients, and the passthrough options forward packets without HTTP routing.
Configure and implement hybrid and multi-cloud network interconnectivity (6 questions)
Question 7
Which Cloud Router capability exchanges routes dynamically between the VPC and on-premises networks over Cloud VPN or Cloud Interconnect?
- AStatic routes entered manually for every on-premises prefix on each VM instance in the VPC network
- BFirewall policies that match the on-premises addresses and allow the traffic to pass the boundary
- CLoad balancer health checks that tell the Cloud Router which backends are reachable on the peer network
- DDynamic routing with BGP sessions, which exchange route advertisements between the Cloud Router and the peer
Show answer and explanationHide answer
Correct answer: DCloud Router uses BGP to exchange routes dynamically with on-premises peers, which keeps routes current as networks change. Static routes do not adapt, firewall policies do not exchange routes, and health checks are used by load balancers rather than for route exchange.
Question 8
A company needs a private, high-bandwidth connection from its data center to Google Cloud, with consistent latency and an SLA, and the traffic must not traverse the public internet. Which service fits?
- ACloud VPN over the public internet with a single tunnel, which encrypts traffic but depends on public paths
- BA public Cloud Load Balancer that the data center calls over HTTPS, which carries traffic through the public internet
- CDedicated or Partner Interconnect, which provide private, high-bandwidth connectivity
- DCloud NAT from the data center subnet to Google Cloud, which gives outbound internet access to the cloud workloads
Show answer and explanationHide answer
Correct answer: CDedicated and Partner Interconnect provide private, high-bandwidth connections with SLA-backed options and do not depend on public internet paths. Cloud VPN over the internet, Cloud NAT and public load balancers all use public connectivity, which the requirement forbids.
Question 9
A team wants encrypted connectivity between an on-premises network and a VPC over the internet, with two tunnels for redundancy and dynamic routing. Which option meets this?
- AHA VPN with two tunnels, using a Cloud Router and BGP for dynamic route exchange
- BClassic VPN with a single static tunnel and manually entered routes for each on-premises prefix
- CVPC Network Peering to an on-premises network, which connects the networks using encrypted peering links
- DCloud NAT with a second gateway on the on-premises side, which makes the networks reachable through each other
Show answer and explanationHide answer
Correct answer: AHA VPN provides redundant tunnels, and Cloud Router with BGP exchanges routes dynamically. Classic VPN with one static tunnel lacks redundancy, while peering connects VPC networks and NAT does not connect networks in this way.
Question 10
Which Cloud Router feature advertises a custom route range to a BGP peer, in addition to the subnets the router advertises by default?
- ACustom route learning, which lets the router learn routes from the VPC without advertising any prefixes to peers
- BRoute policies on the firewall, which allow the router to advertise any prefix when a rule matches the traffic
- CCustom route advertisements, which are configured on the Cloud Router to advertise additional prefixes to peers
- DLoad balancer forwarding rules, which advertise the IP ranges of the backends to all peers on the network
Show answer and explanationHide answer
Correct answer: CCustom route advertisements let a Cloud Router advertise additional prefixes to BGP peers beyond the default subnet advertisements. Learning routes is the opposite direction, firewall rules do not advertise routes, and forwarding rules are not route advertisements.
Question 11
A data center cannot reach a Google Cloud colocation facility directly, but it works with a supported service provider. Which interconnect option fits?
- AVPC Network Peering, which connects VPC networks that belong to the same organization inside Google Cloud
- BDedicated Interconnect, which needs a physical cross-connect in a colocation facility with the company's own router
- CPartner Interconnect, which connects through a supported service provider when a direct connection is not possible
- DClassic Cloud VPN, which uses a single static tunnel over the public internet to a gateway device
Show answer and explanationHide answer
Correct answer: CPartner Interconnect connects through a supported service provider, which suits sites that cannot reach a colocation facility directly. Dedicated Interconnect requires a direct physical connection, peering connects VPCs, and classic VPN uses the public internet.
Question 12
Which Cloud VPN resource describes the on-premises side of a tunnel, including the public address of the peer device?
- APeer VPN gateway or external VPN gateway, which describes the on-premises device and its address
- BVPC Network Peering group, which lists the peered networks and their route exchange settings
- CCloud NAT gateway, which gives outbound internet access to instances without external addresses
- DShared VPC host project, which owns the network and subnets used by the service projects
Show answer and explanationHide answer
Correct answer: AAn external or peer VPN gateway resource describes the on-premises device so that the tunnel can be configured against it. Peering groups, NAT gateways and host projects are other resources with different purposes.
Manage, monitor, and troubleshoot network operations (6 questions)
Question 13
A team needs to know which rule allowed or denied a connection from a VM, and it needs flow records for the traffic. Which tools provide this?
- AVPC Flow Logs and firewall rule logging, which record flows and show which rule allowed or denied them
- BCloud Audit Logs data access logs, which record each API call to the Compute Engine service in the project
- CCloud Monitoring uptime checks, which report whether a URL responds but not the packets that were dropped
- DCloud Trace spans, which record latency for each request between services but not the network packets involved
Show answer and explanationHide answer
Correct answer: AVPC Flow Logs record network flows for VM traffic, and firewall rule logging shows which rule allowed or denied a connection. Audit logs record API calls, uptime checks test URLs and Cloud Trace measures request latency, so none of them explain packet decisions.
Question 14
Which Google Cloud tool analyzes the configuration to show whether a path exists between two endpoints and where traffic is blocked?
- ACloud Profiler, which samples the CPU usage of the application code running on the VM to find hot functions
- BCloud Armor, which filters HTTP requests at the edge based on rules that the team defines for each application
- CConnectivity Tests, which analyze the configuration to show whether a path exists and where traffic is blocked
- DError Reporting, which groups application exceptions and shows their stack traces over time for the team
Show answer and explanationHide answer
Correct answer: CConnectivity Tests analyze configurations to determine whether traffic can reach its destination and where it is stopped. Profiler, Error Reporting and Cloud Armor address code performance, errors and HTTP filtering, which are not connectivity diagnostics.
Question 15
A dashboard shows a sudden drop in throughput over a Cloud VPN tunnel. Which metrics should the engineer check first to see whether the tunnel itself is failing?
- AThe number of VMs in the instance group behind the load balancer that receives traffic from the tunnel
- BThe tunnel status and the BGP session state, along with the tunnel's byte counts over time
- CThe average CPU utilization of the application servers in the region that the tunnel connects to
- DThe count of log entries written by the application to Cloud Logging during the same time window
Show answer and explanationHide answer
Correct answer: BTunnel status, BGP session state and byte counts show whether the VPN is up and carrying traffic, which points to the cause quickly. The backend VM count, application CPU and log counts are downstream and do not show tunnel health.
Question 16
Which two actions help reduce the cost of Cloud Interconnect or VPN traffic for a hybrid design? (Choose two.)
- AKeeping chatty traffic between on-premises and the VPC to the minimum needed, and caching data where it is used
- BSending all traffic, including bulk data, through the VPN tunnel instead of a Google Cloud service with a lower cost
- CCopying the same dataset across the hybrid link every hour when a daily refresh is sufficient for the workload
- DDeploying the workload in a region far from the on-premises data center to take advantage of lower prices there
- EChoosing Cloud Storage or regional services close to the data source, so that bulk transfers stay in the same region
Show answer and explanationHide answer
Correct answer: A, EMinimizing chatty traffic across the link and keeping bulk data near its source both reduce transfer volume and cost. Sending bulk data over the VPN, repeated copies and distant regions each increase cross-boundary traffic and charges.
Question 17
Which two statements about VPC Flow Logs are correct? (Choose two.)
- AFlow logs record every packet payload in full for every connection that crosses the subnet
- BFlow logs record samples of network flows for VM traffic, and the sampling rate can be configured
- CFlow logs are enabled by default on every subnet in every project without any configuration by the team
- DFlow logs can be sent to Cloud Logging and exported to BigQuery for analysis of the network traffic
- EFlow logs are the only way to see which firewall rule allowed a connection in the VPC network
Show answer and explanationHide answer
Correct answer: B, DFlow logs sample flows, and the sampling can be configured, and they can be exported to Cloud Logging and BigQuery. Flow logs do not capture payloads, they are not enabled by default on every subnet, and firewall rule logging is a separate source.
Question 18
Which Network Intelligence Center tool shows the latency and packet loss between Google Cloud regions and provides the performance view for the network?
- ANetwork Topology, which draws the network's resources and the connections between them as a map
- BFirewall Insights, which reports on firewall rule usage, shadowed rules and overly permissive configurations
- CPerformance Dashboard, which shows packet loss and latency between regions and zones over time
- DConnectivity Tests, which check whether two endpoints can reach each other through the configured path
Show answer and explanationHide answer
Correct answer: CPerformance Dashboard shows latency and packet loss over time between regions and zones. Firewall Insights, Network Topology and Connectivity Tests provide other views of the same network.
Implement a Google Cloud VPC network (6 questions)
Question 19
Two VPC networks in different projects must exchange traffic on private IP addresses, without using the public internet and without transitive routing through either network. Which option fits?
- ACloud NAT on each network so that the networks reach each other through public addresses on the internet
- BA public load balancer in front of one network that forwards the other network's traffic to its backends
- CVPC Network Peering between the two networks, which exchanges subnet routes privately without transit
- DExternal IP addresses on every VM in both networks, with firewall rules that allow traffic between them
Show answer and explanationHide answer
Correct answer: CVPC Network Peering exchanges private routes between two networks without going over the internet, and it is not transitive. Cloud NAT, public load balancers and external IPs all send traffic through public addressing, which the requirement forbids.
Question 20
In a Shared VPC design, service project teams deploy VMs into subnets owned by the central network team. Which role should they receive on the subnets they use?
- ACompute Network Admin, which lets them change firewall rules and routes across the host project network
- BCompute Network User, which lets them use the subnet's network for their instances in the service project
- CProject Owner on the host project, which is needed to attach their VMs to a subnet in the shared network
- DCompute Viewer, which lets them list networks but not create instances in the subnets they are given
Show answer and explanationHide answer
Correct answer: BCompute Network User on a subnet allows service project users to create resources that use it, which is the least-privilege grant for consumption. Network Admin is broader than needed, Viewer cannot create instances, and Owner on the host project is far more than required.
Question 21
Which statement about Shared VPC is correct?
- AEach service project owns its own copy of the VPC network, and the host project only stores the firewall logs
- BThe host project owns the VPC network and subnets, which service projects use
- CShared VPC works only within a single region, so it cannot provide subnets to service projects in other regions
- DService projects can create their own subnets in the shared VPC without any permission from the network administrators
Show answer and explanationHide answer
Correct answer: BIn Shared VPC the host project owns the network and subnets, and service projects use them while retaining their own billing and IAM for compute resources. The other statements invert ownership or limit the scope of the sharing in ways that do not match the product.
Question 22
A subnet needs to grow from a /24 to a /23 range without downtime. Which action is supported for an existing subnet?
- AAdding a second VPC network with the larger range and moving all VMs into it one by one afterwards
- BDeleting the subnet and recreating it with the larger range, which keeps all VM IP addresses unchanged
- CChanging the subnet's region, which automatically enlarges the range to the maximum size allowed by Google
- DExpanding the primary IP range of the subnet to a larger prefix that still contains the existing range
Show answer and explanationHide answer
Correct answer: DGoogle Cloud supports expanding a subnet's primary IP range to a larger prefix that contains the original range, without recreating it. Deleting the subnet changes addresses, moving VMs to another network is disruptive, and changing region is not how expansion works.
Question 23
Which firewall rule priority is evaluated first when several rules match the same traffic?
- A0, the lowest numeric value, which is evaluated first and therefore has the highest priority
- B1000, the default priority for most user-defined rules created by administrators in the project
- C100, a value used only for deny rules, which are always evaluated after allow rules
- D65535, the default priority of the implied rules that Google Cloud applies to every network
Show answer and explanationHide answer
Correct answer: AFirewall rules are evaluated from the lowest priority number to the highest, so 0 is evaluated first. The implied rules use the largest value, and the other numbers are ordinary defaults that are evaluated later.
Question 24
Which two statements about firewall rules in a VPC network are correct? (Choose two.)
- AFirewall rules allow all traffic by default in every VPC network, so an explicit allow is never needed
- BFirewall rules are stateful, so return traffic for an allowed connection is permitted automatically
- CFirewall rules apply only to legacy networks, and custom mode networks cannot use them at all
- DFirewall rules can target instances using network tags or service accounts
- EFirewall rules are evaluated in random order, so priorities have no effect on the result
Show answer and explanationHide answer
Correct answer: B, DVPC firewall rules are stateful, and they can target instances by network tags or service accounts. Ingress is denied by default rather than allowed, custom mode networks use firewall rules, and priorities do determine evaluation order.
Design and plan a Google Cloud VPC network (6 questions)
Question 25
A company needs one VPC network that spans several regions, with subnets in each region and no per-region network to manage. Which network property meets this requirement?
- AGlobal VPC network with regional subnets, which spans all regions without separate networks per region
- BRegional VPC networks in each region connected with a full mesh of VPN tunnels
- CLegacy networks with an auto-assigned range that spans all regions in the project automatically
- DShared VPC with one host project per region, so that each region's subnets belong to a different network
Show answer and explanationHide answer
Correct answer: AGoogle Cloud VPC networks are global, and their subnets are regional, so one network can cover several regions. Regional meshes of tunnels, legacy networks and per-region host projects add complexity that the requirement avoids.
Question 26
A team plans subnet ranges for three regions and expects heavy growth in each one. Which planning practice is most important to avoid later readdressing?
- AReserve non-overlapping RFC 1918 ranges per region, with room to grow and no overlap with on-premises networks
- BUse the smallest possible ranges, such as /29, so that no address space is ever wasted
- CPick addresses from public ranges that the organization owns, so that no private addresses are used
- DUse the same range in every region, since subnets in different regions can share routes without conflict
Show answer and explanationHide answer
Correct answer: ANon-overlapping private ranges with room for growth, which also do not clash with on-premises networks, prevent costly readdressing later. Tiny ranges run out, identical ranges conflict when networks are connected, and public ranges are not the usual design for private subnets.
Question 27
Which subnet mode creates a subnet in each region automatically and can later be converted to custom mode?
- ALegacy mode, which is the only mode that supports Cloud Router and dynamic routing with BGP today
- BAuto mode, which creates one subnet in each region automatically and can later be converted to custom mode
- CCustom mode, which creates no subnets until they are added and cannot be changed afterward
- DHybrid mode, which mixes auto and custom subnets permanently with no option to convert the network
Show answer and explanationHide answer
Correct answer: BAuto mode creates a subnet per region with predefined ranges, and it can be converted to custom mode when the team needs control over ranges. Custom mode starts empty, legacy networks are deprecated, and hybrid is not a VPC subnet mode.
Question 28
Which two factors should be considered when choosing between a global and a regional design for a VPC? (Choose two.)
- AWhether the network needs to be shared with other projects through Shared VPC or peering
- BWhether the team prefers a particular color scheme for the network diagrams used in design reviews
- CWhether workloads need subnets in several regions under a single network with common routing and policies
- DWhether the company's logo appears on the Cloud Console banner for the project
- EWhether VM names follow the naming standards that the operations team has documented
Show answer and explanationHide answer
Correct answer: A, CVPC networks are global, so workload distribution across regions and the sharing model shape the design choice. Diagram colors, console banners and VM names do not affect network architecture decisions.
Question 29
Two business units need separate administration of their firewall rules, but both must use one set of subnets managed by the network team. Which design fits best?
- ASeparate VPC networks for each unit, connected with VPC Network Peering and administered by each unit separately
- BLegacy networks for each unit, since legacy networks allow firewall rules to be managed independently by unit
- CA single project for both units with each unit granted Owner so that they can edit firewall rules directly
- DShared VPC with the network in a host project, plus hierarchical firewall policies assigned at folder level for each unit
Show answer and explanationHide answer
Correct answer: DShared VPC keeps the subnets centrally managed, while hierarchical firewall policies at folder level let each unit govern rules within its scope. Separate networks break the central subnet model, a shared project gives Owner too broadly, and legacy networks are deprecated.
Question 30
An organization must keep a VPC and its resources from being reached from outside a defined perimeter, even by authorized users using stolen credentials. Which control addresses this?
- AIAM Conditions on each role binding that restrict access to requests from specific IP address ranges
- BCloud Armor security policy attached to the external load balancers, filtering requests by IP address and country
- CFirewall rules that allow only the corporate IP ranges to connect to the VMs in each subnet of the network
- DVPC Service Controls perimeter around the projects, restricting API access from outside the perimeter
Show answer and explanationHide answer
Correct answer: DVPC Service Controls creates a perimeter that blocks access to protected services from outside the perimeter, even with valid credentials. Cloud Armor and firewall rules filter network traffic to workloads, and IAM Conditions do not stop access to APIs from outside.