πŸ”

PCNE β€” questions

Page 3 of 13 Β· 255 total questions.

Topic 1 Β· Question 41

You want to configure load balancing for an internet-facing, standard voice-over-IP (VOIP) application. Which type of load balancer should you use?

  • AHTTP(S) load balancer
  • BNetwork load balancer (correct answer)
  • CInternal TCP/UDP load balancer
  • DTCP/SSL proxy load balancer
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Network load balancer

Explanation

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

Topic 1 Β· Question 42

You want to configure a NAT to perform address translation between your on-premises network blocks and GCP. Which NAT solution should you use?

  • ACloud NAT (correct answer)
  • BAn instance with IP forwarding enabled
  • CAn instance configured with iptables DNAT rules
  • DAn instance configured with iptables SNAT rules
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Cloud NAT

Explanation

Cloud NAT lets private instances reach the internet for outbound traffic without external IPs.

Topic 1 Β· Question 43

You need to ensure your personal SSH key works on every instance in your project. You want to accomplish this as efficiently as possible. What should you do?

  • AUpload your public ssh key to the project Metadata. (correct answer)
  • BUpload your public ssh key to each instance Metadata.
  • CCreate a custom Google Compute Engine image with your public ssh key embedded.
  • DUse gcloud compute ssh to automatically copy your public ssh key to the instance.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Upload your public ssh key to the project Metadata.

Topic 1 Β· Question 44

In order to provide subnet level isolation, you want to force instance-A in one subnet to route through a security appliance, called instance-B, in another subnet. What should you do?

  • ACreate a more specific route than the system-generated subnet route, pointing the next hop to instance-B with no tag.
  • BCreate a more specific route than the system-generated subnet route, pointing the next hop to instance-B with a tag applied to instance-A. (correct answer)
  • CDelete the system-generated subnet route and create a specific route to instance-B with a tag applied to instance-A.
  • DMove instance-B to another VPC and, using multi-NIC, connect instance-B's interface to instance-A's network. Configure the appropriate routes to force traffic through to instance-A.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Create a more specific route than the system-generated subnet route, pointing the next hop to instance-B with a tag applied to instance-A.

Topic 1 Β· Question 45

You create a Google Kubernetes Engine private cluster and want to use kubectl to get the status of the pods. In one of your instances you notice the master is not responding, even though the cluster is up and running. What should you do to solve the problem?

  • AAssign a public IP address to the instance.
  • BCreate a route to reach the Master, pointing to the default internet gateway.
  • CCreate the appropriate firewall policy in the VPC to allow traffic from Master node IP address to the instance.
  • DCreate the appropriate master authorized network entries to allow the instance to communicate to the master. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create the appropriate master authorized network entries to allow the instance to communicate to the master.

Topic 1 Β· Question 46

Your company has a security team that manages firewalls and SSL certificates. It also has a networking team that manages the networking resources. The networking team needs to be able to read firewall rules, but should not be able to create, modify, or delete them. How should you set up permissions for the networking team?

  • AAssign members of the networking team the compute.networkUser role.
  • BAssign members of the networking team the compute.networkAdmin role. (correct answer)
  • CAssign members of the networking team a custom role with only the compute.networks.* and the compute.firewalls.list permissions.
  • DAssign members of the networking team the compute.networkViewer role, and add the compute.networks.use permission.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Assign members of the networking team the compute.networkAdmin role.

Topic 1 Β· Question 47

You have created an HTTP(S) load balanced service. You need to verify that your backend instances are responding properly. How should you configure the health check?

  • ASet request-path to a specific URL used for health checking, and set proxy-header to PROXY_V1.
  • BSet request-path to a specific URL used for health checking, and set host to include a custom host header that identifies the health check.
  • CSet request-path to a specific URL used for health checking, and set response to a string that the backend service will always return in the response body. (correct answer)
  • DSet proxy-header to the default value, and set host to include a custom host header that identifies the health check.
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: Set request-path to a specific URL used for health checking, and set response to a string that the backend service will always return in the response body.

Topic 1 Β· Question 48

You need to give each member of your network operations team least-privilege access to create, modify, and delete Cloud Interconnect VLAN attachments. What should you do?

  • AAssign each user the editor role.
  • BAssign each user the compute.networkAdmin role. (correct answer)
  • CGive each user the following permissions only: compute.interconnectAttachments.create, compute.interconnectAttachments.get.
  • DGive each user the following permissions only: compute.interconnectAttachments.create, compute.interconnectAttachments.get, compute.routers.create, compute.routers.get, compute.routers.update.
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: Assign each user the compute.networkAdmin role.

Topic 1 Β· Question 49

You have an application that is running in a managed instance group. Your development team has released an updated instance template which contains a new feature which was not heavily tested. You want to minimize impact to users if there is a bug in the new template. How should you update your instances?

  • AManually patch some of the instances, and then perform a rolling restart on the instance group.
  • BUsing the new instance template, perform a rolling update across all instances in the instance group. Verify the new feature once the rollout completes.
  • CDeploy a new instance group and canary the updated template in that group. Verify the new feature in the new canary instance group, and then update the original instance group.
  • DPerform a canary update by starting a rolling update and specifying a target size for your instances to receive the new template. Verify the new feature on the canary instances, and then roll forward to the rest of the instances. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Perform a canary update by starting a rolling update and specifying a target size for your instances to receive the new template. Verify the new feature on the canary instances, and then roll forward to the rest of th...

Topic 1 Β· Question 50

You have deployed a proof-of-concept application by manually placing instances in a single Compute Engine zone. You are now moving the application to production, so you need to increase your application availability and ensure it can autoscale. How should you provision your instances?

  • ACreate a single managed instance group, specify the desired region, and select Multiple zones for the location. (correct answer)
  • BCreate a managed instance group for each region, select Single zone for the location, and manually distribute instances across the zones in that region.
  • CCreate an unmanaged instance group in a single zone, and then create an HTTP load balancer for the instance group.
  • DCreate an unmanaged instance group for each zone, and manually distribute the instances across the desired zones.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a single managed instance group, specify the desired region, and select Multiple zones for the location.

Explanation

A managed instance group provides autoscaling, autohealing, and rolling updates for VMs.

Topic 1 Β· Question 51

You have a storage bucket that contains two objects. Cloud CDN is enabled on the bucket, and both objects have been successfully cached. Now you want to make sure that one of the two objects will not be cached anymore, and will always be served to the internet directly from the origin. What should you do?

  • AEnsure that the object you don't want to be cached anymore is not shared publicly.
  • BCreate a new storage bucket, and move the object you don't want to be checked anymore inside it. Then edit the bucket setting and enable the private attribute.
  • CAdd an appropriate lifecycle rule on the storage bucket containing the two objects.
  • DAdd a Cache-Control entry with value private to the metadata of the object you don't want to be cached anymore. Invalidate all the previously cached copies. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Add a Cache-Control entry with value private to the metadata of the object you don't want to be cached anymore. Invalidate all the previously cached copies.

Topic 1 Β· Question 52

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 have recently engaged a traffic-scrubbing service and want to restrict your origin to allow connections only from the traffic-scrubbing service. What should you do?

  • ACreate a Cloud Armor Security Policy that blocks all traffic except for the traffic-scrubbing service. (correct answer)
  • BCreate a VPC Firewall rule that blocks all traffic except for the traffic-scrubbing service.
  • CCreate a VPC Service Control Perimeter that blocks all traffic except for the traffic-scrubbing service.
  • DCreate IPTables firewall rules that block all traffic except for the traffic-scrubbing service.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Create a Cloud Armor Security Policy that blocks all traffic except for the traffic-scrubbing service.

Explanation

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

Topic 1 Β· Question 53

Your software team is developing an on-premises web application that requires direct connectivity to Compute Engine Instances in GCP using the RFC 1918 address space. You want to choose a connectivity solution from your on-premises environment to GCP, given these specifications: β€’ Your ISP is a Google Partner Interconnect provider. β€’ Your on-premises VPN device's internet uplink and downlink speeds are 10 Gbps. β€’ A test VPN connection between your on-premises gateway and GCP is performing at a maximum speed of 500 Mbps due to packet losses. β€’ Most of the data transfer will be from GCP to the on-premises environment. β€’ The application can burst up to 1.5 Gbps during peak transfers over the Interconnect. β€’ Cost and the complexity of the solution should be minimal. How should you provision the connectivity solution?

  • AProvision a Partner Interconnect through your ISP. (correct answer)
  • BProvision a Dedicated Interconnect instead of a VPN.
  • CCreate multiple VPN tunnels to account for the packet losses, and increase bandwidth using ECMP.
  • DUse network compression over your VPN to increase the amount of data you can send over your VPN.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Provision a Partner Interconnect through your ISP.

Explanation

Partner Interconnect provides private connectivity to Google Cloud through a service provider.

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

Your company has just launched a new critical revenue-generating web application. You deployed the application for scalability using managed instance groups, autoscaling, and a network load balancer as frontend. One day, you notice severe bursty traffic that the caused autoscaling to reach the maximum number of instances, and users of your application cannot complete transactions. After an investigation, you think it as a DDOS attack. You want to quickly restore user access to your application and allow successful transactions while minimizing cost. Which two steps should you take? (Choose two.)

  • AUse Cloud Armor to blacklist the attacker's IP addresses. (correct answer)
  • BIncrease the maximum autoscaling backend to accommodate the severe bursty traffic.
  • CCreate a global HTTP(s) load balancer and move your application backend to this load balancer. (correct answer)
  • DShut down the entire application in GCP for a few hours. The attack will stop when the application is offline.
  • ESSH into the backend compute engine instances, and view the auth logs and syslogs to further understand the nature of the attack.
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Use Cloud Armor to blacklist the attacker's IP addresses. Option C: Create a global HTTP(s) load balancer and move your application backend to this load balancer.

Explanation

A load balancer distributes traffic across healthy backends in multiple zones for availability and scale. Cloud Armor protects applications from DDoS and common web attacks with WAF rules.

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

You are creating a new application and require access to Cloud SQL from VPC instances without public IP addresses. Which two actions should you take? (Choose two.)

  • AActivate the Service Networking API in your project. (correct answer)
  • BActivate the Cloud Datastore API in your project.
  • CCreate a private connection to a service producer. (correct answer)
  • DCreate a custom static route to allow the traffic to reach the Cloud SQL API.
  • EEnable Private Google Access.
Reveal answer & explanation
Correct answer: A, C

The correct answer is A, C. Option A: Activate the Service Networking API in your project. Option C: Create a private connection to a service producer.

Topic 1 Β· Question 56

You want to use Cloud Interconnect to connect your on-premises network to a GCP VPC. You cannot meet Google at one of its point-of-presence (POP) locations, and your on-premises router cannot run a Border Gateway Protocol (BGP) configuration. Which connectivity model should you use?

  • ADirect Peering
  • BDedicated Interconnect
  • CPartner Interconnect with a layer 2 partner
  • DPartner Interconnect with a layer 3 partner (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Partner Interconnect with a layer 3 partner

Explanation

Partner Interconnect provides private connectivity to Google Cloud through a service provider.

Topic 1 Β· Question 57

You have configured a Compute Engine virtual machine instance as a NAT gateway. You execute the following command: gcloud compute routes create no-ip-internet-route \ --network custom-network1 \ --destination-range 0.0.0.0/0 \ --next-hop instance nat-gateway \ --next-hop instance-zone us-central1-a \ --tags no-ip --priority 800 You want existing instances to use the new NAT gateway. Which command should you execute?

  • Asudo sysctl -w net.ipv4.ip_forward=1
  • Bgcloud compute instances add-tags [existing-instance] --tags no-ip (correct answer)
  • Cgcloud builds submit --config=cloudbuild.waml --substitutions=TAG_NAME=no-ip
  • Dgcloud compute instances create example-instance --network custom-network1 \ --subnet subnet-us-central \ --no-address \ --zone us-central1-a \ --image-family debian-9 \ --image-project debian-cloud \ --tags no-ip
Reveal answer & explanation
Correct answer: B

The correct answer is B. Option B: gcloud compute instances add-tags [existing-instance] --tags no-ip.

Topic 1 Β· Question 58

You need to configure a static route to an on-premises resource behind a Cloud VPN gateway that is configured for policy-based routing using the gcloud command. Which next hop should you choose?

  • AThe default internet gateway
  • BThe IP address of the Cloud VPN gateway
  • CThe name and region of the Cloud VPN tunnel (correct answer)
  • DThe IP address of the instance on the remote side of the VPN tunnel
Reveal answer & explanation
Correct answer: C

The correct answer is C. Option C: The name and region of the Cloud VPN tunnel

Explanation

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

Topic 1 Β· Question 59

You need to enable Cloud CDN for all the objects inside a storage bucket. You want to ensure that all the object in the storage bucket can be served by the CDN. What should you do in the GCP Console?

  • ACreate a new cloud storage bucket, and then enable Cloud CDN on it.
  • BCreate a new TCP load balancer, select the storage bucket as a backend, and then enable Cloud CDN on the backend.
  • CCreate a new SSL proxy load balancer, select the storage bucket as a backend, and then enable Cloud CDN on the backend.
  • DCreate a new HTTP load balancer, select the storage bucket as a backend, enable Cloud CDN on the backend, and make sure each object inside the storage bucket is shared publicly. (correct answer)
Reveal answer & explanation
Correct answer: D

The correct answer is D. Option D: Create a new HTTP load balancer, select the storage bucket as a backend, enable Cloud CDN on the backend, and make sure each object inside the storage bucket is shared publicly.

Explanation

Cloud CDN caches content at Google edge locations to reduce latency and offload origins. A load balancer distributes traffic across healthy backends in multiple zones for availability and scale.

Topic 1 Β· Question 60

Your company's Google Cloud-deployed, streaming application supports multiple languages. The application development team has asked you how they should support splitting audio and video traffic to different backend Google Cloud storage buckets. They want to use URL maps and minimize operational overhead. They are currently using the following directory structure: /fr/video /en/video /es/video /../video /fr/audio /en/audio /es/audio /../audio Which solution should you recommend?

  • ARearrange the directory structure, create a URL map and leverage a path rule such as /video/* and /audio/*. (correct answer)
  • BRearrange the directory structure, create DNS hostname entries for video and audio and leverage a path rule such as /video/* and /audio/*.
  • CLeave the directory structure as-is, create a URL map and leverage a path rule such as \/[a-z]{2}\/video and \/[a-z]{2}\/audio.
  • DLeave the directory structure as-is, create a URL map and leverage a path rule such as /*/video and /*/audio.
Reveal answer & explanation
Correct answer: A

The correct answer is A. Option A: Rearrange the directory structure, create a URL map and leverage a path rule such as /video/* and /audio/*.

Showing questions 41–60 of 255 Β· Page 3 of 13