Question 50

A team has a Knative serving application on a Kubernetes cluster and wants it on fully managed Cloud Run. Which approach addresses the API and configuration differences?

  1. Use Cloud Run ingress settings
  2. Use a Cloud Run service account
  3. Migrate a Knative serving service to Cloud Run
  4. Use Cloud Run jobs

Explanation

Correct Answer

C:

The migration path requires adapting the Knative serving YAML for Cloud Run APIs and replacing unsupported Kubernetes-specific features before deployment; that matches the requirement for exporting and adapting a Knative service manifest for managed Cloud Run.

Incorrect Answers

A:

Cloud Run ingress settings control eligible network sources and front ends allowed to reach a service; that supports constraining Cloud Run network ingress; the problem to solve concerns exporting and adapting a Knative service manifest for managed Cloud Run.

B:

Cloud Run services can run as a configured service account with IAM-granted permissions; the supported outcome is separating runtime permissions from deployer access, while the requested result is exporting and adapting a Knative service manifest for managed Cloud Run.

D:

Cloud Run jobs run tasks to completion without exposing a request-serving service endpoint; that applies to running task-oriented serverless containers; the requested task is exporting and adapting a Knative service manifest for managed Cloud Run.

Question 51

A deployment template works in one region but rejects a product in another. Which preflight check is most relevant?

  1. Distinguish quota from physical capacity
  2. Use a support case for quota constraints
  3. Check a quota in Quotas & System Limits
  4. Choose a supported region

Explanation

Correct Answer

D:

Google Cloud services have distinct regional and global availability; not every SKU exists in each location; it supports confirming regional product support for the deployment at the appropriate resource scope.

Incorrect Answers

A:

Quota determines allowed resource consumption; regional or zonal hardware capacity is a separate constraint; it is appropriate for checking actual location capacity and availability; here, the deciding requirement is confirming regional product support for the deployment.

B:

Google Cloud support can clarify policy and capacity options, although some system limits are not adjustable; that mechanism handles escalating a quota constraint through support; it does not configure confirming regional product support for the deployment.

C:

Quotas and System Limits surfaces supported quota consumption, values and adjustable limits; its purpose differs: reviewing quota utilization before provisioning is separate from confirming regional product support for the deployment.

Question 52

A setup script needs to activate multiple Google Cloud APIs without opening the console. What CLI capability should it use?

  1. Authenticate with gcloud auth login
  2. List enabled project services
  3. Use gcloud services enable
  4. Pass a per-command --project flag

Explanation

Correct Answer

C:

The gcloud services enable command activates named Service Usage APIs in the selected project; this is relevant because the outcome sought is automating project service activation.

Incorrect Answers

A:

This alternative focuses on establishing user credentials for the Cloud SDK; Gcloud auth login authorizes a user account for gcloud, subject to its IAM permissions; the stem instead asks for automating project service activation.

B:

The Service Usage listing and its gcloud services list interface expose enabled and available service states; Applying it would target inspecting a project's enabled API inventory, leaving the separate need for automating project service activation.

D:

A --project argument overrides the configured project for supported gcloud commands for that invocation; the decision here is about automating project service activation, not overriding a default project for one command.

Question 53

A workforce identity must not reach any resources outside an approved group even if an allow role is mistakenly granted. What restriction type helps?

  1. Use Principal Access Boundary policies
  2. Bind IAM role at resource level
  3. Use Workforce Identity Federation
  4. Use IAM deny policies

Explanation

Correct Answer

A:

Principal Access Boundary policies constrain access to supported resources within defined boundaries under applicable enforcement rules; that behavior is precisely what bounding accessible resources independently of allow roles calls for.

Incorrect Answers

B:

Resource-level IAM binding limits eligible permissions to that resource and its applicable descendants; that supports scoping permissions to one supported resource; the problem to solve concerns bounding accessible resources independently of allow roles.

C:

Workforce Identity Federation lets external workforce identities access supported Google Cloud resources through configured identity pools and providers; the supported outcome is authorizing human users through external identity federation, while the requested result is bounding accessible resources independently of allow roles.

D:

IAM deny policies can block eligible permissions for matching principals despite otherwise applicable allow grants; that mechanism handles enforcing an explicit permission denial; it does not configure bounding accessible resources independently of allow roles.

Question 54

An application is expanding to another region and wants a compatible subnet rather than a separate VPC. What resource should be provisioned?

  1. Inspect effective VPC routes
  2. Use Connectivity Tests
  3. Reserve a static external address
  4. Add a subnet to a custom VPC

Explanation

Correct Answer

D:

Subnets are regional resources associated with a VPC and have nonoverlapping ranges as required; Applied in this case, it delivers creating a new regional subnet in an existing network.

Incorrect Answers

A:

Effective route information shows applicable VPC paths and helps diagnose destination selection; the supported outcome is checking route precedence and applicability, while the requested result is creating a new regional subnet in an existing network.

B:

Network Intelligence Center Connectivity Tests analyzes supported connectivity paths and identifies potential configuration blocks; that solves problems involving analyzing possible network paths and blockers, rather than the creating a new regional subnet in an existing network requirement.

C:

Static external IP reservations avoid losing an address when ephemeral assignment would otherwise change; its operational role is holding a long-lived public IP allocation; the needed capability is creating a new regional subnet in an existing network.

Question 55

A directory administrator needs to add and suspend workforce users rather than adjust Compute Engine resources. Which management interface is appropriate?

  1. Use Cloud Shell
  2. Use the least-privilege predefined IAM role
  3. Create a Cloud Identity group
  4. Use Cloud Identity administrative console

Explanation

Correct Answer

D:

The Google Admin console manages supported Cloud Identity directory users, groups and account settings; this is relevant because the outcome sought is administering directory users and groups.

Incorrect Answers

A:

Cloud Shell provides a browser terminal with Google Cloud CLI tools and user-based authentication integration; it would help with using a preconfigured browser terminal, but it does not directly implement administering directory users and groups.

B:

Predefined service roles offer narrower permission sets than broad basic roles when suitable; Applying it would target avoiding broad privileges when narrow predefined access exists, leaving the separate need for administering directory users and groups.

C:

Cloud Identity groups can represent users and be referenced as principals in supported IAM policies; it is appropriate for controlling memberships as a shared identity group; here, the deciding requirement is administering directory users and groups.

Question 56

Both the stable and candidate Cloud Run revisions already exist. The team must canary ten percent of live requests and quickly reverse traffic if the candidate fails. Choose TWO actions.

  1. Deploy a new Cloud Run revision
  2. Check Cloud Run revision logs
  3. Roll back Cloud Run traffic
  4. Configure Cloud Run request timeout
  5. Split Cloud Run revision traffic

Explanation

Correct Answers

C:

Cloud Run can shift service traffic back to a previous retained revision without requiring another build; within the multi-part workflow of canary routing to a candidate revision and reverting traffic on failure, this provides redirecting requests to a prior healthy revision.

E:

Cloud Run traffic allocation assigns configured percentages to eligible service revisions; within the multi-part workflow of canary routing to a candidate revision and reverting traffic on failure, this provides gradually shifting traffic between Cloud Run revisions.

Incorrect Answers

A:

Deploying changes to a Cloud Run service creates a revision representing its immutable code and configuration; the mechanism concerns publishing a new immutable service revision and does not directly supply canary routing to a candidate revision and reverting traffic on failure.

B:

Cloud Run integrates request and container logs with Cloud Logging for revision-focused diagnosis; the question is specifically about canary routing to a candidate revision and reverting traffic on failure, rather than examining logs attached to a Cloud Run revision.

D:

Cloud Run's request timeout bounds each service request and can be increased within supported limits; its focus is allowing longer supported Cloud Run HTTP processing, rather than canary routing to a candidate revision and reverting traffic on failure.

Question 57

Investigators want source and destination addresses, ports and byte counts for supported VPC traffic. Which logging source fits?

  1. Use Cloud NGFW secure tags
  2. Use firewall logging
  3. Use VPC firewall egress deny
  4. Use VPC Flow Logs

Explanation

Correct Answer

D:

VPC Flow Logs records sampled network flow information for eligible subnet traffic; this is the specific mechanism used for collecting sampled connection-flow telemetry.

Incorrect Answers

A:

Secure Tags are resource-manager tags usable in supported Cloud NGFW policy targeting; it is not the focused action for collecting sampled connection-flow telemetry; its primary use is applying tag-aware firewall enforcement.

B:

Firewall Rules Logging produces supported connection records for traffic matching enabled rules; this governs recording firewall rule match activity, whereas the stated objective is collecting sampled connection-flow telemetry.

C:

Egress deny rules block matching traffic initiated by selected resources to the configured destinations; the decision here is about collecting sampled connection-flow telemetry, not restricting egress network flows.

Question 58

Investigators need a time-relevant inventory of resources and IAM policies across a resource hierarchy. Which product helps?

  1. Use Gemini Cloud Assist for resource analysis
  2. Use Cloud Asset Inventory
  3. Apply an organization policy constraint
  4. Use Resource Manager tags

Explanation

Correct Answer

B:

Cloud Asset Inventory indexes supported Google Cloud resource and policy metadata for search, analysis and exports; its effect directly addresses searching a centralized cloud asset inventory.

Incorrect Answers

A:

Gemini Cloud Assist offers context-aware assistance for supported Google Cloud operational and configuration tasks; it is appropriate for obtaining contextual AI help about cloud resources; here, the deciding requirement is searching a centralized cloud asset inventory.

C:

Organization Policy Service evaluates supported constraints along the resource hierarchy independently of ordinary IAM grants; that solves problems involving enforcing an organization-level resource restriction, rather than the searching a centralized cloud asset inventory requirement.

D:

Resource Manager tags are centrally defined key-value bindings with policy integrations distinct from ordinary labels; that applies to attaching policy-aware governed metadata to resources; the requested task is searching a centralized cloud asset inventory.

Question 59

Licensing rules require workloads to run on dedicated physical hosts not shared with other customers. Which Compute Engine placement fits?

  1. Use Shielded VM
  2. Use VM reservation
  3. Use a custom VM image
  4. Use Sole-Tenant Nodes

Explanation

Correct Answer

D:

What matters is reserving isolated physical host tenancy; Sole-tenant nodes provide dedicated physical servers for a customer's eligible VM workloads.

Incorrect Answers

A:

Shielded VM provides capabilities such as Secure Boot, virtual TPM and integrity monitoring; it is appropriate for hardening virtual machine boot integrity; here, the deciding requirement is reserving isolated physical host tenancy.

B:

For securing eligible compute capacity before demand, this could be relevant; Compute Engine reservations allocate qualifying VM capacity in a zone independently of starting instances; the actual request concerns reserving isolated physical host tenancy.

C:

Custom images capture disk contents for compatible boot or data disk creation; it concerns baking standardized boot disk contents, and its normal effect does not provide reserving isolated physical host tenancy.

Question 60

A daily export bucket must automatically remove temporary objects after 30 days. What policy should be applied?

  1. Grant Storage Object Admin
  2. Grant Storage Object Creator
  3. Use object holds
  4. Use gcloud storage cp
  5. Configure Cloud Storage lifecycle deletion

Explanation

Correct Answer

E:

Cloud Storage lifecycle rules can remove objects when configured age or other conditions are satisfied; that behavior is precisely what expiring old objects automatically calls for.

Incorrect Answers

A:

Storage Object Admin grants object management permissions without inherently granting all project administration rights; Applying it would target administering object data within a bucket, leaving the separate need for expiring old objects automatically.

B:

Storage Object Creator supports creating objects without granting general read or delete permissions; it concerns granting create-only object access, and its normal effect does not provide expiring old objects automatically.

C:

Object holds block eligible object deletion until the hold condition is cleared; the scenario specifies expiring old objects automatically, which differs from pausing deletion of selected objects.

D:

Gcloud storage cp copies files and supported objects between local storage and Cloud Storage paths; its operational role is transferring files into object storage; the needed capability is expiring old objects automatically.

Associate Cloud Engineer Practice Tests