ExamMini
πŸ”

PCNE β€” all questions

255 practice questions with answers and explanations.

Topic 1 Β· Question 1

You need to restrict access to your Google Cloud load-balanced application so that only specific IP addresses can connect. What should you do?

  • ACreate a secure perimeter using the Access Context Manager feature of VPC Service Controls and restrict access to the source IP range of the allowed clients and Google health check IP ranges.
  • BCreate a secure perimeter using VPC Service Controls, and mark the load balancer as a service restricted to the source IP range of the allowed clients and Google health check IP ranges.
  • CTag the backend instances "application," and create a firewall rule with target tag "application" and the source IP range of the allowed clients and Google health check IP ranges. (correct answer)
  • DLabel the backend instances "application," and create a firewall rule with the target label "application" and the source IP range of the allowed clients and Google health check IP ranges.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Tag the backend instances "application," and create a firewall rule with target tag "application" and the source IP range of the allowed clients and Google health check IP ranges.

Topic 1 Β· Question 2

Your end users are located in close proximity to us-east1 and europe-west1. Their workloads need to communicate with each other. You want to minimize cost and increase network efficiency. How should you design this topology?

  • ACreate 2 VPCs, each with their own regions and individual subnets. Create 2 VPN gateways to establish connectivity between these regions.
  • BCreate 2 VPCs, each with their own region and individual subnets. Use external IP addresses on the instances to establish connectivity between these regions.
  • CCreate 1 VPC with 2 regional subnets. Create a global load balancer to establish connectivity between the regions.
  • DCreate 1 VPC with 2 regional subnets. Deploy workloads in these subnets and have them communicate using private RFC1918 IP addresses. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create 1 VPC with 2 regional subnets. Deploy workloads in these subnets and have them communicate using private RFC1918 IP addresses.

Explanation

A VPC provides a global, software-defined private network for your Google Cloud resources. This option delivers the requirement at the lowest cost.

Topic 1 Β· Question 3

Your organization is deploying a single project for 3 separate departments. Two of these departments require network connectivity between each other, but the third department should remain in isolation. Your design should create separate network administrative domains between these departments. You want to minimize operational overhead. How should you design the topology?

  • ACreate a Shared VPC Host Project and the respective Service Projects for each of the 3 separate departments.
  • BCreate 3 separate VPCs, and use Cloud VPN to establish connectivity between the two appropriate VPCs.
  • CCreate 3 separate VPCs, and use VPC peering to establish connectivity between the two appropriate VPCs. (correct answer)
  • DCreate a single project, and deploy specific firewall rules. Use network tags to isolate access between the departments.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Create 3 separate VPCs, and use VPC peering to establish connectivity between the two appropriate VPCs.

Explanation

VPC Network Peering privately connects two VPC networks without a gateway. A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 Β· Question 4

You are migrating to Cloud DNS and want to import your BIND zone file. Which command should you use?

  • Agcloud dns record-sets import ZONE_FILE --zone MANAGED_ZONE
  • Bgcloud dns record-sets import ZONE_FILE --replace-origin-ns --zone MANAGED_ZONE
  • Cgcloud dns record-sets import ZONE_FILE --zone-file-format --zone MANAGED_ZONE (correct answer)
  • Dgcloud dns record-sets import ZONE_FILE --delete-all-existing --zone MANAGED ZONE
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: gcloud dns record-sets import ZONE_FILE --zone-file-format --zone MANAGED_ZONE

Explanation

Cloud DNS provides scalable, authoritative DNS with health checks and routing policies.

Topic 1 Β· Question 5

You created a VPC network named Retail in auto mode. You want to create a VPC network named Distribution and peer it with the Retail VPC. How should you configure the Distribution VPC?

  • ACreate the Distribution VPC in auto mode. Peer both the VPCs via network peering.
  • BCreate the Distribution VPC in custom mode. Use the CIDR range 10.0.0.0/9. Create the necessary subnets, and then peer them via network peering. (correct answer)
  • CCreate the Distribution VPC in custom mode. Use the CIDR range 10.128.0.0/9. Create the necessary subnets, and then peer them via network peering.
  • DRename the default VPC as "Distribution" and peer it via network peering.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create the Distribution VPC in custom mode. Use the CIDR range 10.0.0.0/9. Create the necessary subnets, and then peer them via network peering.

Explanation

A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 Β· Question 6 Β· Select all that apply

You are using a third-party next-generation firewall to inspect traffic. You created a custom route of 0.0.0.0/0 to route egress traffic to the firewall. You want to allow your VPC instances without public IP addresses to access the BigQuery and Cloud Pub/Sub APIs, without sending the traffic through the firewall. Which two actions should you take? (Choose two.)

  • ATurn on Private Google Access at the subnet level. (correct answer)
  • BTurn on Private Google Access at the VPC level.
  • CTurn on Private Services Access at the VPC level.
  • DCreate a set of custom static routes to send traffic to the external IP addresses of Google APIs and services via the default internet gateway. (correct answer)
  • ECreate a set of custom static routes to send traffic to the internal IP addresses of Google APIs and services via the default internet gateway.
Reveal answer & explanation
Correct answer: A, D

The correct answer is A, D. Option A: Turn on Private Google Access at the subnet level. Option D: Create a set of custom static routes to send traffic to the external IP addresses of Google APIs and services via the default internet gateway.

Explanation

Private Google Access lets internal instances reach Google APIs without external IPs.

Topic 1 Β· Question 7

All the instances in your project are configured with the custom metadata enable-oslogin value set to FALSE and to block project-wide SSH keys. None of the instances are set with any SSH key, and no project-wide SSH keys have been configured. Firewall rules are set up to allow SSH sessions from any IP address range. You want to SSH into one instance. What should you do?

  • AOpen the Cloud Shell SSH into the instance using gcloud compute ssh. (correct answer)
  • BSet the custom metadata enable-oslogin to TRUE, and SSH into the instance using a third-party tool like putty or ssh.
  • CGenerate a new SSH key pair. Verify the format of the private key and add it to the instance. SSH into the instance using a third-party tool like putty or ssh.
  • DGenerate a new SSH key pair. Verify the format of the public key and add it to the project. SSH into the instance using a third-party tool like putty or ssh.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Open the Cloud Shell SSH into the instance using gcloud compute ssh.

Topic 1 Β· Question 8

You work for a university that is migrating to GCP. These are the cloud requirements: "Β’ On-premises connectivity with 10 Gbps "Β’ Lowest latency access to the cloud "Β’ Centralized Networking Administration Team New departments are asking for on-premises connectivity to their projects. You want to deploy the most cost-efficient interconnect solution for connecting the campus to Google Cloud. What should you do?

  • AUse Shared VPC, and deploy the VLAN attachments and Interconnect in the host project. (correct answer)
  • BUse Shared VPC, and deploy the VLAN attachments in the service projects. Connect the VLAN attachment to the Shared VPC's host project.
  • CUse standalone projects, and deploy the VLAN attachments in the individual projects. Connect the VLAN attachment to the standalone projects' Interconnects.
  • DUse standalone projects and deploy the VLAN attachments and Interconnects in each of the individual projects.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Use Shared VPC, and deploy the VLAN attachments and Interconnect in the host project.

Explanation

Shared VPC centralizes network administration by sharing one VPC across multiple projects. A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 Β· Question 9

You have deployed a new internal application that provides HTTP and TFTP services to on-premises hosts. You want to be able to distribute traffic across multiple Compute Engine instances, but need to ensure that clients are sticky to a particular instance across both services. Which session affinity should you choose?

  • ANone
  • BClient IP (correct answer)
  • CClient IP and protocol
  • DClient IP, port and protocol
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Client IP.

Topic 1 Β· Question 10

You created a new VPC network named Dev with a single subnet. You added a firewall rule for the network Dev to allow HTTP traffic only and enabled logging. When you try to log in to an instance in the subnet via Remote Desktop Protocol, the login fails. You look for the Firewall rules logs in Stackdriver Logging, but you do not see any entries for blocked traffic. You want to see the logs for blocked traffic. What should you do?

  • ACheck the VPC flow logs for the instance.
  • BTry connecting to the instance via SSH, and check the logs.
  • CCreate a new firewall rule to allow traffic from port 22, and enable logs.
  • DCreate a new firewall rule with priority 65500 to deny all traffic, and enable logs. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a new firewall rule with priority 65500 to deny all traffic, and enable logs.

Topic 1 Β· Question 11

You are trying to update firewall rules in a shared VPC for which you have been assigned only Network Admin permissions. You cannot modify the firewall rules. Your organization requires using the least privilege necessary. Which level of permissions should you request?

  • ASecurity Admin privileges from the Shared VPC Admin. (correct answer)
  • BService Project Admin privileges from the Shared VPC Admin.
  • CShared VPC Admin privileges from the Organization Admin.
  • DOrganization Admin privileges from the Organization Admin.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Security Admin privileges from the Shared VPC Admin.

Explanation

Shared VPC centralizes network administration by sharing one VPC across multiple projects. A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 Β· Question 12

You want to create a service in GCP using IPv6. What should you do?

  • ACreate the instance with the designated IPv6 address.
  • BConfigure a TCP Proxy with the designated IPv6 address.
  • CConfigure a global load balancer with the designated IPv6 address. (correct answer)
  • DConfigure an internal load balancer with the designated IPv6 address.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Configure a global load balancer with the designated IPv6 address.

Explanation

A load balancer distributes traffic across healthy backends in multiple zones for availability and scale.

Topic 1 Β· Question 13

You want to deploy a VPN Gateway to connect your on-premises network to GCP. You are using a non BGP-capable on-premises VPN device. You want to minimize downtime and operational overhead when your network grows. The device supports only IKEv2, and you want to follow Google-recommended practices. What should you do?

  • A"Β’ Create a Cloud VPN instance. "Β’ Create a policy-based VPN tunnel per subnet. "Β’ Configure the appropriate local and remote traffic selectors to match your local and remote networks. "Β’ Create the appropriate static routes.
  • B"Β’ Create a Cloud VPN instance. "Β’ Create a policy-based VPN tunnel. "Β’ Configure the appropriate local and remote traffic selectors to match your local and remote networks. "Β’ Configure the appropriate static routes.
  • C"Β’ Create a Cloud VPN instance. "Β’ Create a route-based VPN tunnel. "Β’ Configure the appropriate local and remote traffic selectors to match your local and remote networks. "Β’ Configure the appropriate static routes.
  • D"Β’ Create a Cloud VPN instance. "Β’ Create a route-based VPN tunnel. "Β’ Configure the appropriate local and remote traffic selectors to 0.0.0.0/0. "Β’ Configure the appropriate static routes. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: "Β’ Create a Cloud VPN instance. "Β’ Create a route-based VPN tunnel. "Β’ Configure the appropriate local and remote traffic selectors to 0.0.0.0/0. "Β’ Configure the appropriate static routes.

Explanation

Cloud VPN provides encrypted IPsec connectivity between on premises and a VPC.

Topic 1 Β· Question 14 Β· Select all that apply

Your company just completed the acquisition of Altostrat (a current GCP customer). Each company has a separate organization in GCP and has implemented a custom DNS solution. Each organization will retain its current domain and host names until after a full transition and architectural review is done in one year. These are the assumptions for both GCP environments. "Β’ Each organization has enabled full connectivity between all of its projects by using Shared VPC. "Β’ Both organizations strictly use the 10.0.0.0/8 address space for their instances, except for bastion hosts (for accessing the instances) and load balancers for serving web traffic. "Β’ There are no prefix overlaps between the two organizations. "Β’ Both organizations already have firewall rules that allow all inbound and outbound traffic from the 10.0.0.0/8 address space. "Β’ Neither organization has Interconnects to their on-premises environment. You want to integrate networking and DNS infrastructure of both organizations as quickly as possible and with minimal downtime. Which two steps should you take? (Choose two.)

  • AProvision Cloud Interconnect to connect both organizations together.
  • BSet up some variant of DNS forwarding and zone transfers in each organization. (correct answer)
  • CConnect VPCs in both organizations using Cloud VPN together with Cloud Router. (correct answer)
  • DUse Cloud DNS to create A records of all VMs and resources across all projects in both organizations.
  • ECreate a third organization with a new host project, and attach all projects from your company and Altostrat to it using shared VPC.
Reveal answer & explanation
Correct answer: B, C

The correct answer is B, C. Option B: Set up some variant of DNS forwarding and zone transfers in each organization. Option C: Connect VPCs in both organizations using Cloud VPN together with Cloud Router.

Explanation

Cloud VPN provides encrypted IPsec connectivity between on premises and a VPC. A VPC provides a global, software-defined private network for your Google Cloud resources.

Topic 1 Β· Question 15

Your on-premises data center has 2 routers connected to your Google Cloud environment through a VPN on each router. All applications are working correctly; however, all of the traffic is passing across a single VPN instead of being load-balanced across the 2 connections as desired. During troubleshooting you find: "Β’ Each on-premises router is configured with a unique ASN. "Β’ Each on-premises router is configured with the same routes and priorities. "Β’ Both on-premises routers are configured with a VPN connected to a single Cloud Router. "Β’ BGP sessions are established between both on-premises routers and the Cloud Router. "Β’ Only 1 of the on-premises router's routes are being added to the routing table. What is the most likely cause of this problem?

  • AThe on-premises routers are configured with the same routes.
  • BA firewall is blocking the traffic across the second VPN connection.
  • CYou do not have a load balancer to load-balance the network traffic.
  • DThe ASNs being used on the on-premises routers are different. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: The ASNs being used on the on-premises routers are different.

Topic 1 Β· Question 16 Β· Select all that apply

You have ordered Dedicated Interconnect in the GCP Console and need to give the Letter of Authorization/Connecting Facility Assignment (LOA-CFA) to your cross-connect provider to complete the physical connection. Which two actions can accomplish this? (Choose two.)

  • AOpen a Cloud Support ticket under the Cloud Interconnect category.
  • BDownload the LOA-CFA from the Hybrid Connectivity section of the GCP Console. (correct answer)
  • CRun gcloud compute interconnects describe .
  • DCheck the email for the account of the NOC contact that you specified during the ordering process. (correct answer)
  • EContact your cross-connect provider and inform them that Google automatically sent the LOA/CFA to them via email, and to complete the connection.
Reveal answer & explanation
Correct answer: B, D

The correct answer is B, D. Option B: Download the LOA-CFA from the Hybrid Connectivity section of the GCP Console. Option D: Check the email for the account of the NOC contact that you specified during the ordering process.

Topic 1 Β· Question 17

Your company offers a popular gaming service. Your instances are deployed with private IP addresses, and external access is granted through a global load balancer. You believe you have identified a potential malicious actor, but aren't certain you have the correct client IP address. You want to identify this actor while minimizing disruption to your legitimate users. What should you do?

  • ACreate a Cloud Armor Policy rule that denies traffic and review necessary logs.
  • BCreate a Cloud Armor Policy rule that denies traffic, enable preview mode, and review necessary logs. (correct answer)
  • CCreate a VPC Firewall rule that denies traffic, enable logging and set enforcement to disabled, and review necessary logs.
  • DCreate a VPC Firewall rule that denies traffic, enable logging and set enforcement to enabled, and review necessary logs.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a Cloud Armor Policy rule that denies traffic, enable preview mode, and review necessary logs.

Explanation

Cloud Armor protects applications from DDoS and common web attacks with WAF rules.

Topic 1 Β· Question 18

Your company's web server administrator is migrating on-premises backend servers for an application to GCP. Libraries and configurations differ significantly across these backend servers. The migration to GCP will be lift-and-shift, and all requests to the servers will be served by a single network load balancer frontend. You want to use a GCP-native solution when possible. How should you deploy this service in GCP?

  • ACreate a managed instance group from one of the images of the on-premises servers, and link this instance group to a target pool behind your load balancer.
  • BCreate a target pool, add all backend instances to this target pool, and deploy the target pool behind your load balancer. (correct answer)
  • CDeploy a third-party virtual appliance as frontend to these servers that will accommodate the significant differences between these backend servers.
  • DUse GCP's ECMP capability to load-balance traffic to the backend servers by installing multiple equal-priority static routes to the backend servers.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a target pool, add all backend instances to this target pool, and deploy the target pool behind your load balancer.

Explanation

A load balancer distributes traffic across healthy backends in multiple zones for availability and scale.

Topic 1 Β· Question 19

You decide to set up Cloud NAT. After completing the configuration, you find that one of your instances is not using the Cloud NAT for outbound NAT. What is the most likely cause of this problem?

  • AThe instance has been configured with multiple interfaces.
  • BAn external IP address has been configured on the instance. (correct answer)
  • CYou have created static routes that use RFC1918 ranges.
  • DThe instance is accessible by a load balancer external IP address.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: An external IP address has been configured on the instance.

Topic 1 Β· Question 20

You want to set up two Cloud Routers so that one has an active Border Gateway Protocol (BGP) session, and the other one acts as a standby. Which BGP attribute should you use on your on-premises router?

  • AAS-Path
  • BCommunity
  • CLocal Preference
  • DMulti-exit Discriminator (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Multi-exit Discriminator.

Showing questions 1–20 of 255 Β· Page 1 of 13