Google Professional Cloud Network Engineer Exam Practice Questions (P. 3)
- Full Access (317 questions)
- One Year of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #21
You are increasing your usage of Cloud VPN between on-premises and GCP, and you want to support more traffic than a single tunnel can handle. You want to increase the available bandwidth using Cloud VPN.
What should you do?
What should you do?
- ADouble the MTU on your on-premises VPN gateway from 1460 bytes to 2920 bytes.
- BCreate two VPN tunnels on the same Cloud VPN gateway that point to the same destination VPN gateway IP address.
- CAdd a second on-premises VPN gateway with a different public IP address. Create a second tunnel on the existing Cloud VPN gateway that forwards the same IP range, but points at the new on-premises gateway IP.Most Voted
- DAdd a second Cloud VPN gateway in a different region than the existing VPN gateway. Create a new tunnel on the second Cloud VPN gateway that forwards the same IP range, but points to the existing on-premises VPN gateway IP address.
Correct Answer:
C
C
GPT
To effectively scale your Cloud VPN for higher throughput, the best practice is to deploy a second on-premises VPN gateway with a distinct public IP. Then, establish an additional VPN tunnel from your existing Cloud VPN gateway to this new gateway. This setup doesn't just provide redundancy but also enhances overall bandwidth capabilities by leveraging multiple tunnels concurrently, each routed through separate gateways. This approach is supported by Google's recommended VPN topologies for achieving higher throughput and load balancing. Ensure both gateways and tunnels are correctly configured to handle the specified IP ranges for seamless connectivity and optimal performance.
send
light_mode
delete
Question #22
You are disabling DNSSEC for one of your Cloud DNS-managed zones. You removed the DS records from your zone file, waited for them to expire from the cache, and disabled DNSSEC for the zone. You receive reports that DNSSEC validating resolves are unable to resolve names in your zone.
What should you do?
What should you do?
- AUpdate the TTL for the zone.
- BSet the zone to the TRANSFER state.
- CDisable DNSSEC at your domain registrar.Most Voted
- DTransfer ownership of the domain to a new registrar.
Correct Answer:
C
Before disabling DNSSEC for a managed zone you want to use, you must deactivate DNSSEC at your domain registrar to ensure that DNSSEC-validating resolvers can still resolve names in the zone.
Reference:
https://cloud.google.com/dns/docs/dnssec-config
C
Before disabling DNSSEC for a managed zone you want to use, you must deactivate DNSSEC at your domain registrar to ensure that DNSSEC-validating resolvers can still resolve names in the zone.
Reference:
https://cloud.google.com/dns/docs/dnssec-config
send
light_mode
delete
Question #23
You have an application hosted on a Compute Engine virtual machine instance that cannot communicate with a resource outside of its subnet. When you review the flow and firewall logs, you do not see any denied traffic listed.
During troubleshooting you find:
"¢ Flow logs are enabled for the VPC subnet, and all firewall rules are set to log.
"¢ The subnetwork logs are not excluded from Stackdriver.
"¢ The instance that is hosting the application can communicate outside the subnet.
"¢ Other instances within the subnet can communicate outside the subnet.
"¢ The external resource initiates communication.
What is the most likely cause of the missing log lines?
During troubleshooting you find:
"¢ Flow logs are enabled for the VPC subnet, and all firewall rules are set to log.
"¢ The subnetwork logs are not excluded from Stackdriver.
"¢ The instance that is hosting the application can communicate outside the subnet.
"¢ Other instances within the subnet can communicate outside the subnet.
"¢ The external resource initiates communication.
What is the most likely cause of the missing log lines?
- AThe traffic is matching the expected ingress rule.
- BThe traffic is matching the expected egress rule.
- CThe traffic is not matching the expected ingress rule.Most Voted
- DThe traffic is not matching the expected egress rule.
Correct Answer:
C
C
GPT
The correct analysis indicates that the traffic from the external resource is indeed incoming (ingress), which means it tries to match on ingress rules in your firewall settings. When no appropriate allow rule matches this incoming traffic, it is blocked by the default implicit deny rule, which by design does not log such traffic. This scenario leads to a lack of logged entries as observed because standard ingress deny rules, including implicit deny, do not initiate log captures for blocked traffic in Google Cloud environments. It's important to ensure correct ingress rules are explicitly defined for all intended communications.
send
light_mode
delete
Question #24
You have configured Cloud CDN using HTTP(S) load balancing as the origin for cacheable content. Compression is configured on the web servers, but responses served by Cloud CDN are not compressed.
What is the most likely cause of the problem?
What is the most likely cause of the problem?
- AYou have not configured compression in Cloud CDN.
- BYou have configured the web servers and Cloud CDN with different compression types.
- CThe web servers behind the load balancer are configured with different compression types.
- DYou have to configure the web servers to compress responses even if the request has a Via header.Most Voted
Correct Answer:
D
If responses served by Cloud CDN are not compressed but should be, check that the web server software running on your instances is configured to compress responses. By default, some web server software will automatically disable compression for requests that include a Via header. The presence of a Via header indicates the request was forwarded by a proxy. HTTP proxies such as HTTP(S) load balancing add a Via header to each request as required by the HTTP specification. To enable compression, you may have to override your web server's default configuration to tell it to compress responses even if the request had a
Via header.
Reference:
https://cloud.google.com/cdn/docs/troubleshooting-steps
D
If responses served by Cloud CDN are not compressed but should be, check that the web server software running on your instances is configured to compress responses. By default, some web server software will automatically disable compression for requests that include a Via header. The presence of a Via header indicates the request was forwarded by a proxy. HTTP proxies such as HTTP(S) load balancing add a Via header to each request as required by the HTTP specification. To enable compression, you may have to override your web server's default configuration to tell it to compress responses even if the request had a
Via header.
Reference:
https://cloud.google.com/cdn/docs/troubleshooting-steps
send
light_mode
delete
Question #25
You have a web application that is currently hosted in the us-central1 region. Users experience high latency when traveling in Asia. You've configured a network load balancer, but users have not experienced a performance improvement. You want to decrease the latency.
What should you do?
What should you do?
- AConfigure a policy-based route rule to prioritize the traffic.
- BConfigure an HTTP load balancer, and direct the traffic to it.Most Voted
- CConfigure Dynamic Routing for the subnet hosting the application.
- DConfigure the TTL for the DNS zone to decrease the time between updates.
Correct Answer:
B
Reference:
https://cloud.google.com/load-balancing/docs/tutorials/optimize-app-latency
B
Reference:
https://cloud.google.com/load-balancing/docs/tutorials/optimize-app-latency
send
light_mode
delete
Question #26
You have an application running on Compute Engine that uses BigQuery to generate some results that are stored in Cloud Storage. You want to ensure that none of the application instances have external IP addresses.
Which two methods can you use to accomplish this? (Choose two.)
Which two methods can you use to accomplish this? (Choose two.)
- AEnable Private Google Access on all the subnets.Most Voted
- BEnable Private Google Access on the VPC.
- CEnable Private Services Access on the VPC.
- DCreate network peering between your VPC and BigQuery.
- ECreate a Cloud NAT, and route the application traffic via NAT gateway.Most Voted
Correct Answer:
AE
GPT
Option E is indeed correct as using Cloud NAT allows instances without external IP addresses to connect to the internet and interact with Google Cloud services like BigQuery and Cloud Storage. However, the confusion around enabling Private Google Access (PGA) typically roots from its application at different levels. While PGA is generally enabled at the subnet level, indicating option A might seem correct, the question seems to focus on broader VPC settings. It’s also crucial to note that BigQuery integration does not leverage Private Services Access, affirming that options involving PGA at the VPC or subnet level need a detailed review in the context of this specific networking setup.
send
light_mode
delete
Question #27
You are designing a shared VPC architecture. Your network and security team has strict controls over which routes are exposed between departments. Your
Production and Staging departments can communicate with each other, but only via specific networks. You want to follow Google-recommended practices.
How should you design this topology?
Production and Staging departments can communicate with each other, but only via specific networks. You want to follow Google-recommended practices.
How should you design this topology?
- ACreate 2 shared VPCs within the shared VPC Host Project, and enable VPC peering between them. Use firewall rules to filter access between the specific networks.Most Voted
- BCreate 2 shared VPCs within the shared VPC Host Project, and create a Cloud VPN/Cloud Router between them. Use Flexible Route Advertisement (FRA) to filter access between the specific networks.
- CCreate 2 shared VPCs within the shared VPC Service Project, and create a Cloud VPN/Cloud Router between them. Use Flexible Route Advertisement (FRA) to filter access between the specific networks.
- DCreate 1 VPC within the shared VPC Host Project, and share individual subnets with the Service Projects to filter access between the specific networks.
Correct Answer:
D
Reference:
https://cloud.google.com/vpc/docs/shared-vpc
D
Reference:
https://cloud.google.com/vpc/docs/shared-vpc
send
light_mode
delete
Question #28
You are adding steps to a working automation that uses a service account to authenticate. You need to drive the automation the ability to retrieve files from a
Cloud Storage bucket. Your organization requires using the least privilege possible.
What should you do?
Cloud Storage bucket. Your organization requires using the least privilege possible.
What should you do?
- AGrant the compute.instanceAdmin to your user account.
- BGrant the iam.serviceAccountUser to your user account.
- CGrant the read-only privilege to the service account for the Cloud Storage bucket.Most Voted
- DGrant the cloud-platform privilege to the service account for the Cloud Storage bucket.
Correct Answer:
C
send
light_mode
delete
Question #29
You converted an auto mode VPC network to custom mode. Since the conversion, some of your Cloud Deployment Manager templates are no longer working.
You want to resolve the problem.
What should you do?
You want to resolve the problem.
What should you do?
- AApply an additional IAM role to the Google API's service account to allow custom mode networks.
- BUpdate the VPC firewall to allow the Cloud Deployment Manager to access the custom mode networks.
- CExplicitly reference the custom mode networks in the Cloud Armor whitelist.
- DExplicitly reference the custom mode networks in the Deployment Manager templates.Most Voted
Correct Answer:
D
D
GPT
When you switch from an auto mode VPC network to a custom mode, it disrupts how resources like subnets are referenced by default. Originally, Cloud Deployment Manager templates could implicitly rely on certain default settings. However, once the network is in custom mode, these settings no longer apply directly. Therefore, it is important to update your templates so that they explicitly specify the subnetworks being utilized. This ensures that deployments remain functional and accurately configured under the new custom mode settings.
send
light_mode
delete
Question #30
You have recently been put in charge of managing identity and access management for your organization. You have several projects and want to use scripting and automation wherever possible. You want to grant the editor role to a project member.
Which two methods can you use to accomplish this? (Choose two.)
Which two methods can you use to accomplish this? (Choose two.)
- AGetIamPolicy() via REST API
- BsetIamPolicy() via REST APIMost Voted
- Cgcloud pubsub add-iam-policy-binding Sprojectname --member user:Susername --role roles/editor
- Dgcloud projects add-iam-policy-binding Sprojectname --member user:Susername --role roles/editorMost Voted
- EEnter an email address in the Add members field, and select the desired role from the drop-down menu in the GCP Console.
Correct Answer:
BD
send
light_mode
delete
All Pages
