Google Associate Cloud Engineer Practice Test 51

Question 500

A workload uses a network tag-based next-hop route design and needs to verify target applicability. What is the best next step?

  1. Reserve a suitable static internal address for its forwarding rule
  2. Evaluate longest-prefix matching and relevant route priorities
  3. Inspect the route's network tags and instance tag membership where supported
  4. Add an eligible custom static route with the required destination and next hop
  5. Use Cloud Router dynamic BGP route exchange with supported connectivity

Explanation

Correct Answer

C:

Tagged routes restrict which eligible VMs receive the route. A missing matching tag can explain why one VM selects a different path.

Incorrect Answers

A:

An operator would use this action to assign a stable private load balancer IP, chiefly when trying to preserve an internal service address; The current requirement is to diagnose route applicability by tags, which remains unresolved by that operation.

B:

This setting would choose effective VPC routing paths. That behavior does not establish the requested ability to diagnose route applicability by tags; it addresses an adjacent concern instead.

D:

Its purpose is to route a custom destination through a next hop. That distinction matters: the scenario calls for an action to diagnose route applicability by tags, not this separate configuration task.

E:

While this can learn hybrid prefixes through BGP, the present task requires an action to diagnose route applicability by tags. This operation does not supply the behavior described in the requirements.

Question 501

A VM without an external address needs internet access to fetch patches. What should the administrator do?

  1. Enable appropriate Private Google Access or private service access mechanism
  2. Configure Cloud NAT for the relevant subnet and route
  3. Review Cloud NAT logging and configuration as supported
  4. Expand the subnet primary IPv4 range to a supported larger CIDR
  5. Inspect Cloud NAT port allocation and scale addresses or tuning as appropriate

Explanation

Correct Answer

B:

Cloud NAT translates outbound connections for supported private resources. It permits response traffic but is not a general inbound gateway.

Incorrect Answers

A:

Select this when the goal is to reach Google APIs privately. Here the decisive requirement is to enable patch downloads without public IPs, and that outcome is not achieved by this action.

C:

It can audit Cloud NAT translations; however, it does not provide the specific operation to enable patch downloads without public IPs. The two controls serve different purposes.

D:

The result of this choice would be to expand a subnet's primary IPv4 capacity. The requested outcome, to enable patch downloads without public IPs, is handled at a different layer or through another operation.

E:

This mechanism is intended to resolve Cloud NAT translation-port exhaustion. It does not implement the required action to enable patch downloads without public IPs, even though both are relevant to the same general service.

Question 502

Outbound connections fail under load because a NAT configuration exhausts available ports. Which choice provides the required behavior?

  1. Review Cloud NAT logging and configuration as supported
  2. Enable appropriate Private Google Access or private service access mechanism
  3. Configure Cloud NAT for the relevant subnet and route
  4. Inspect Cloud NAT port allocation and scale addresses or tuning as appropriate

Explanation

Correct Answer

D:

NAT allocates source ports for translated connections. Port exhaustion can occur even if the VM's CPU and network link are healthy.

Incorrect Answers

A:

This approach can audit Cloud NAT translations. The requirement is to restore high-volume private egress, so it controls a different part of the workflow and leaves that result unaddressed.

B:

This setting would reach Google APIs privately. That behavior does not establish the requested ability to restore high-volume private egress; it addresses an adjacent concern instead.

C:

Using this action would give private VMs outbound internet access, not restore high-volume private egress. Its function is different from the specific change described in the scenario.

Question 503

Several private Compute Engine VMs egress through Cloud NAT to a vendor API that requires allowlisting a stable public source address. How should the administrator prevent the source IP from changing unexpectedly?

  1. Assign a different ephemeral external IP to each private VM
  2. Reserve eligible regional static external IP addresses and configure manual address allocation on the Cloud NAT gateway
  3. Choose a Cloud Storage multi-region bucket location to control egress NAT addresses
  4. Configure only Private Google Access and ask the third-party vendor to allowlist Google's public API ranges

Explanation

Correct Answer

B:

Cloud NAT can be configured to use explicitly reserved static external addresses for translated outbound sessions. The vendor can allowlist those addresses, subject to NAT capacity and gateway configuration.

Incorrect Answers

A:

Adding ephemeral external addresses changes the private egress design and does not ensure a stable allowlisted NAT source address.

C:

Cloud Storage bucket location controls data placement and residency properties for stored objects. It has no effect on which public address Cloud NAT selects for translated outbound VPC connections.

D:

Private Google Access serves supported Google APIs, not arbitrary vendor endpoints. It does not pin the translated source IP for a third-party service.

Question 504

A security team needs to inspect whether private VMs are using translated egress addresses. Which method addresses the task?

  1. Inspect the route's network tags and instance tag membership where supported
  2. Configure Cloud NAT for the relevant subnet and route
  3. Review Cloud NAT logging and configuration as supported
  4. Enable appropriate Private Google Access or private service access mechanism
  5. Inspect Cloud NAT port allocation and scale addresses or tuning as appropriate

Explanation

Correct Answer

C:

NAT logging can provide visibility into translation events. A DNS record lookup alone cannot demonstrate NAT mapping activity.

Incorrect Answers

A:

For the stated need to inspect private egress behavior, this would instead scope an eligible custom route to tagged VMs; it supports the separate task to diagnose route applicability by tags, not the required configuration.

B:

The tool can give private VMs outbound internet access, but it cannot be substituted for the capability needed to inspect private egress behavior. Its operational effect is not equivalent.

D:

Using this action would reach Google APIs privately, not inspect private egress behavior. Its function is different from the specific change described in the scenario.

E:

It can resolve Cloud NAT translation-port exhaustion; however, it does not provide the specific operation to inspect private egress behavior. The two controls serve different purposes.

Question 505

A private Cloud DNS zone in one project must be resolvable by clients in a different VPC network. The clients can reach the relevant internal workloads, but name resolution fails. Which TWO steps should the DNS administrator evaluate? (Choose TWO.)

  1. Publish internal instance records in an unrestricted public zone as the mandatory resolution method
  2. Check the effective DNS resolution path and any configured forwarding or peering zones
  3. Reassign every VM an external IP address because private DNS requires public addressing
  4. Authorize the intended VPC network to use the private managed zone where the configuration supports it

Explanation

Correct Answers

B:

Clients may use private zones, forwarding, or DNS peering depending on topology. The resolution path must direct queries to a zone that knows the desired private records.

D:

Private Cloud DNS visibility depends on the VPC networks authorized for a zone. Having IP routing to workloads does not by itself make their private DNS names resolvable.

Incorrect Answers

A:

Public DNS is not required for private hostnames and may reveal internal naming data. Private zones and supported DNS routing are the appropriate controls for this goal.

C:

Private Cloud DNS resolves hostnames for private resources without each VM having a public address. External IP assignment does not authorize a VPC to see a private zone.

Question 506

A customer-facing website's authoritative DNS records should be hosted by Google Cloud. What should the administrator do?

  1. Create a Cloud DNS public managed zone and delegate the domain at its registrar
  2. Configure a Cloud DNS forwarding zone and appropriate connectivity
  3. Create a Cloud DNS private managed zone authorized for those networks
  4. Use separate appropriate private and public DNS zone configurations

Explanation

Correct Answer

A:

Public zones serve internet-reachable authoritative DNS data. Delegating the domain points resolvers to the designated nameservers.

Incorrect Answers

B:

This mechanism is intended to forward DNS for a private domain. It does not implement the required action to host a company's domain records, even though both are relevant to the same general service.

C:

The tool can serve private records in a VPC, but it cannot be substituted for the capability needed to host a company's domain records. Its operational effect is not equivalent.

D:

Select this when the goal is to implement internal and external DNS views. Here the decisive requirement is to host a company's domain records, and that outcome is not achieved by this action.

Question 507

An internal name must resolve differently from a public name through split-horizon DNS. Which choice provides the required behavior?

  1. Use separate appropriate private and public DNS zone configurations
  2. Create a Cloud DNS public managed zone and delegate the domain at its registrar
  3. Configure a Cloud DNS forwarding zone and appropriate connectivity
  4. Create a Cloud DNS private managed zone authorized for those networks
  5. Inspect Cloud NAT port allocation and scale addresses or tuning as appropriate

Explanation

Correct Answer

A:

Split-horizon DNS allows internal clients to receive a private record set while internet clients see public records. Zone visibility and routing control the answer.

Incorrect Answers

B:

Using this action would publish authoritative public DNS records, not provide different answers by network. Its function is different from the specific change described in the scenario.

C:

This setting would forward DNS for a private domain. That behavior does not establish the requested ability to provide different answers by network; it addresses an adjacent concern instead.

D:

Its purpose is to serve private records in a VPC. That distinction matters: the scenario calls for an action to provide different answers by network, not this separate configuration task.

E:

For the stated need to provide different answers by network, this would instead resolve Cloud NAT translation-port exhaustion; it supports the separate task to restore high-volume private egress, not the required configuration.

Question 508

A workload needs internal DNS queries forwarded to an on-premises resolver for a specific domain. Which approach should be selected?

  1. Create a Cloud DNS private managed zone authorized for those networks
  2. Use separate appropriate private and public DNS zone configurations
  3. Create a Cloud DNS public managed zone and delegate the domain at its registrar
  4. Review Cloud NAT logging and configuration as supported
  5. Configure a Cloud DNS forwarding zone and appropriate connectivity

Explanation

Correct Answer

E:

Forwarding zones send matching DNS queries to configured resolver targets. Network paths and firewall policy must support the DNS traffic.

Incorrect Answers

A:

The result of this choice would be to serve private records in a VPC. The requested outcome, to resolve on-premises hostnames from a VPC, is handled at a different layer or through another operation.

B:

This mechanism is intended to implement internal and external DNS views. It does not implement the required action to resolve on-premises hostnames from a VPC, even though both are relevant to the same general service.

C:

Select this when the goal is to publish authoritative public DNS records. Here the decisive requirement is to resolve on-premises hostnames from a VPC, and that outcome is not achieved by this action.

D:

In a workflow for cloud nat administration, it can audit Cloud NAT translations; This question instead asks how to resolve on-premises hostnames from a VPC; substituting the former action would leave that distinct technical requirement unmet.

Question 509

An application port was closed by a recent policy change and the engineer needs the effective firewall decision. What is the most direct solution?

  1. Inspect applicable VPC firewall rules, Cloud NGFW policies, and priority ordering
  2. Update a targeted ingress rule with the right source ranges
  3. Associate an appropriate hierarchical Cloud NGFW policy at the folder
  4. Verify the rule's target service account or tag and the VM's actual identity

Explanation

Correct Answer

A:

Firewall evaluation can include several policy layers and target selectors. The nearest visible VPC rule is not necessarily the decisive one.

Incorrect Answers

B:

Using this action would restrict SSH ingress to selected sources, not identify why application packets are denied. Its function is different from the specific change described in the scenario.

C:

It can enforce centralized descendant firewall policy; however, it does not provide the specific operation to identify why application packets are denied. The two controls serve different purposes.

D:

This choice is useful to diagnose firewall target matching. The stated task is to identify why application packets are denied, which requires a different mechanism or permission scope.

Question 510

A team needs to change a single VM's allowed SSH sources without modifying other workloads. Which implementation matches this requirement?

  1. Inspect applicable VPC firewall rules, Cloud NGFW policies, and priority ordering
  2. Expand the subnet primary IPv4 range to a supported larger CIDR
  3. Associate an appropriate hierarchical Cloud NGFW policy at the folder
  4. Update a targeted ingress rule with the right source ranges
  5. Verify the rule's target service account or tag and the VM's actual identity

Explanation

Correct Answer

D:

An ingress rule filters traffic by source and VM target. Restricting source ranges and matching only the intended instance avoids broad VPC-wide SSH exposure.

Incorrect Answers

A:

This mechanism is intended to troubleshoot effective network firewall policy. It does not implement the required action to tighten one workload's admin exposure, even though both are relevant to the same general service.

B:

The result of this choice would be to expand a subnet's primary IPv4 capacity. The requested outcome, to tighten one workload's admin exposure, is handled at a different layer or through another operation.

C:

While this can enforce centralized descendant firewall policy, the present task requires an action to tighten one workload's admin exposure. This operation does not supply the behavior described in the requirements.

E:

Administrators use it to diagnose firewall target matching, rather than to tighten one workload's admin exposure. Applying it would change the wrong component of this deployment.

Associate Cloud Engineer Practice Tests