Google Associate Cloud Engineer Practice Test 16

Question 150

A newly deployed GKE Pod is stuck in ImagePullBackOff. Before changing IAM or image tags, the operator needs the exact image-pull failure events reported for that Pod. What command is most useful?

  1. kubectl get nodes
  2. gcloud compute instances list
  3. kubectl describe pod POD_NAME
  4. kubectl rollout restart deployment NAME

Explanation

Correct Answer

C:

Describing the affected Pod shows its status, image reference and recent events. Those events can distinguish registry authorization, missing tags and network pull errors before remediation.

Incorrect Answers

A:

The nodes command lists node status but does not provide the detailed image-pull events attached to the particular failing Pod.

B:

A Compute Engine instance inventory does not show the Kubernetes event stream describing why one Pod cannot retrieve its container image.

D:

Restarting the deployment can recreate failing Pods without explaining the original ImagePullBackOff cause; inspect Pod events first.

Question 151

A central SRE team wants a single metrics dashboard covering multiple Google Cloud projects. Which monitoring setup is relevant?

  1. Use Personalized Service Health
  2. Use Cloud Monitoring workspace scope
  3. Use an organization log sink
  4. Enable log-based metrics
  5. Use Logs Explorer

Explanation

Correct Answer

B:

Cloud Monitoring metrics scopes can make data from multiple monitored projects accessible in one scoping project; this is relevant because the outcome sought is viewing project metrics across a monitoring scope.

Incorrect Answers

A:

Personalized Service Health surfaces Google Cloud incidents relevant to selected environments and products; it is not the focused action for viewing project metrics across a monitoring scope; its primary use is assessing product incidents affecting an organization.

C:

Aggregated sinks at suitable resource ancestors can route descendant logs subject to sink configuration and permissions; that supports aggregating organization-wide log exports; the problem to solve concerns viewing project metrics across a monitoring scope.

D:

Log-based metrics derive metric values from matching log entries and can support dashboards or alerts; it is relevant when measuring a filtered log event pattern, not when the primary need is viewing project metrics across a monitoring scope.

E:

Logs Explorer supports interactive filtering, viewing and investigating entries in authorized log buckets; it would help with filtering operational log records interactively, but it does not directly implement viewing project metrics across a monitoring scope.

Question 152

Before opening a support case, engineers want to see whether a widespread product issue has been announced. Where should they look?

  1. Use Cloud Trace
  2. Use Cloud Monitoring alert policy
  3. Use Personalized Service Health
  4. Use Cloud Profiler
  5. Use Cloud Service Health public status

Explanation

Correct Answer

E:

Google Cloud's public service health information reports known product incidents and service status; Applied in this case, it delivers inspecting the public service status dashboard.

Incorrect Answers

A:

The alternative would address locating slow segments in distributed calls; Cloud Trace collects and visualizes distributed request traces and span timings; the question instead requires inspecting the public service status dashboard.

B:

Monitoring alerting policies evaluate metrics against configured conditions and can open incidents with notifications; it would help with turning metric thresholds into actionable incidents, but it does not directly implement inspecting the public service status dashboard.

C:

The alternative would address reviewing personalized service incidents; Personalized Service Health surfaces Google Cloud incidents relevant to selected environments and products; the question instead requires inspecting the public service status dashboard.

D:

Cloud Profiler analyzes sampled application profiles to reveal resource-heavy functions and code paths; it concerns finding function-level CPU hot spots, and its normal effect does not provide inspecting the public service status dashboard.

Question 153

A provisioning team requires new VMs to carry cost-center keys so reporting starts at launch. When should metadata be added?

  1. Use a project lien
  2. Use a standalone organization for a new Free Trial account
  3. Use folder creation permissions on parent
  4. Use labels at resource creation
  5. Use IAM inheritance reasoning

Explanation

Correct Answer

D:

Resource labels are supplied on supported resources during creation or update and can be queried for categorization; for the stated workload, the practical result is tagging provisioned resources at deployment time.

Incorrect Answers

A:

A project lien can restrict deletion while the lien remains in place; it concerns protecting a project from accidental removal, and its normal effect does not provide tagging provisioned resources at deployment time.

B:

Standalone organizations are automatically provisioned for eligible new Free Trial accounts with Google email addresses and do not require Cloud Identity; this governs using an eligible standalone organization instead of a domain-linked one, whereas the stated objective is tagging provisioned resources at deployment time.

C:

This alternative focuses on authorizing a new folder beneath its parent; Creating folders depends on permissions on the intended organization or parent folder, not merely project permissions; the stem instead asks for tagging provisioned resources at deployment time.

E:

IAM allow-policy grants at higher resource scopes generally propagate to descendant resources; that applies to explaining inherited access from ancestors; the requested task is tagging provisioned resources at deployment time.

Question 154

An external HTTP endpoint faces bot traffic and the team wants a policy at the load-balancer edge. What service is suitable?

  1. Use firewall rules logging
  2. Use Network Intelligence Center routes analysis
  3. Use Cloud Armor
  4. Use external HTTP load balancer health checks

Explanation

Correct Answer

C:

The requirement is enforcing web security policies before backends; Cloud Armor provides security policies and supported WAF capabilities for eligible load-balanced applications.

Incorrect Answers

A:

Firewall logging produces Cloud Logging records for matching supported firewall rule traffic; the scenario specifies enforcing web security policies before backends, which differs from recording network firewall policy matches.

B:

Network Intelligence Center and route diagnostics expose supported route and connectivity insights; this governs investigating route configuration and reachability, whereas the stated objective is enforcing web security policies before backends.

D:

Load balancer health checks determine backend eligibility based on configured protocol, port and response conditions; it concerns checking application health probe configuration, and its normal effect does not provide enforcing web security policies before backends.

Question 155

A workload identity needs to read objects in a bucket when it calls the storage API. What principal should receive the permissions?

  1. Review IAM role permissions
  2. Grant roles to a service account
  3. Grant roles to a Google group
  4. Use Principal Access Boundary policies

Explanation

Correct Answer

B:

Service accounts are IAM principals that represent applications or compute workloads and can receive roles; this is relevant because the outcome sought is authorizing nonhuman workload API access.

Incorrect Answers

A:

This alternative focuses on checking what actions a role actually grants; Role definitions enumerate included permissions; role names alone do not guarantee a specific API action; the stem instead asks for authorizing nonhuman workload API access.

C:

Google groups can be IAM principals, with access evaluated through applicable group membership; that supports managing many users' access through group membership; the problem to solve concerns authorizing nonhuman workload API access.

D:

Principal Access Boundary policies constrain access to supported resources within defined boundaries under applicable enforcement rules; it is not the focused action for authorizing nonhuman workload API access; its primary use is bounding accessible resources independently of allow roles.

Question 156

An acquired organization's VPC must exchange private routes with another VPC while retaining network ownership. Which integration can help?

  1. Use VPC Network Peering
  2. Use a Shared VPC host project
  3. Use Cloud DNS private zones
  4. Use Cloud Interconnect

Explanation

Correct Answer

A:

VPC Network Peering exchanges supported routes between paired VPC networks without transitive peering; this is relevant because the outcome sought is routing privately between peered VPCs.

Incorrect Answers

B:

Shared VPC allows service projects to use subnets from a host project's shared network under delegated access; Applying it would target centralizing network ownership across projects, leaving the separate need for routing privately between peered VPCs.

C:

Private Cloud DNS zones are authorized for specific networks and resolve within those networks; it concerns hosting internal DNS records restricted to VPCs, and its normal effect does not provide routing privately between peered VPCs.

D:

Cloud Interconnect provides supported private connectivity between on-premises networks and Google Cloud through dedicated or partner arrangements; it is relevant when connecting a private circuit to Google's network, not when the primary need is routing privately between peered VPCs.

Question 157

A migration operator needs a privileged project role for a fixed maintenance period, after which it must not remain effective. Which feature fits?

  1. Use IAM policy version 3 for conditions
  2. Use time-based IAM Condition
  3. Use IAM service-account impersonation roles
  4. Use IAM Recommender

Explanation

Correct Answer

B:

A conditional IAM binding can compare request time with an expiry condition for supported access checks; that behavior is precisely what expiring a temporary IAM grant automatically calls for.

Incorrect Answers

A:

IAM allow policy version 3 supports conditional role bindings and should be requested when managing conditions; it is appropriate for representing conditional policy bindings; here, the deciding requirement is expiring a temporary IAM grant automatically.

C:

Service account impersonation lets authorized principals mint short-lived credentials for an account using supported IAM roles; that mechanism handles allowing time-limited identity impersonation; it does not configure expiring a temporary IAM grant automatically.

D:

IAM Recommender provides eligible role-grant recommendations based on observed access and permission usage; Applying it would target reviewing evidence-based least-privilege suggestions, leaving the separate need for expiring a temporary IAM grant automatically.

Question 158

Two administration environments need different default regions and active accounts on the same workstation. Which CLI feature helps?

  1. Authenticate with gcloud auth login
  2. Use Cloud Shell
  3. Use a gcloud named configuration
  4. Use gcloud auth application-default login

Explanation

Correct Answer

C:

The requirement is switching between distinct CLI contexts; Named gcloud configurations store sets of CLI properties and can be activated as needed.

Incorrect Answers

A:

Gcloud auth login authorizes a user account for gcloud, subject to its IAM permissions; that mechanism handles establishing user credentials for the Cloud SDK; it does not configure switching between distinct CLI contexts.

B:

Cloud Shell provides a browser terminal with Google Cloud CLI tools and user-based authentication integration; that supports using a preconfigured browser terminal; the problem to solve concerns switching between distinct CLI contexts.

D:

For setting up local Application Default Credentials, this could be relevant; Application Default Credentials are discovered by client libraries separately from the CLI's normal active credential store; the actual request concerns switching between distinct CLI contexts.

Question 159

A web application must spread interchangeable VM replicas across zones in one region to withstand a zone outage. Which MIG placement should it use?

  1. Create an instance template
  2. Configure an autoscaler for a MIG
  3. Use a regional managed instance group
  4. Configure MIG autohealing

Explanation

Correct Answer

C:

Regional managed instance groups distribute members across multiple zones in a region for availability; this is relevant because the outcome sought is distributing managed VM replicas among zones.

Incorrect Answers

A:

Instance templates hold immutable machine configuration for managed instance groups and other compatible VM launches; it would help with standardizing newly created VM instances, but it does not directly implement distributing managed VM replicas among zones.

B:

MIG autoscaling changes the target number of instances using configured signals and scale limits; it is relevant when scaling VM replicas to workload signals, not when the primary need is distributing managed VM replicas among zones.

D:

Autohealing uses configured health checks to trigger replacement of unhealthy MIG instances; the decision here is about distributing managed VM replicas among zones, not using health checks for instance repair.

Question 160

A team maintains many resources in one workload project and needs inherited access without folder-wide permission. Where should role assignment be placed?

  1. Use IAM deny policies
  2. Create a custom IAM role
  3. Avoid basic Editor role
  4. Bind IAM role at project scope
  5. Inspect effective IAM allow bindings

Explanation

Correct Answer

D:

Project-level IAM bindings apply role grants across supported resources within that project; that behavior is precisely what scoping role inheritance to a single project calls for.

Incorrect Answers

A:

IAM deny policies can block eligible permissions for matching principals despite otherwise applicable allow grants; that applies to overriding applicable allows with a deny; the requested task is scoping role inheritance to a single project.

B:

Custom roles let eligible administrators define a chosen set of supported IAM permissions; it would help with defining a selected IAM permission list, but it does not directly implement scoping role inheritance to a single project.

C:

Basic Editor is a broad predefined-style basic role that can change many resources beyond a narrow task; that solves problems involving reducing broad write permissions, rather than the scoping role inheritance to a single project requirement.

E:

Effective IAM access can include organization, folder, project and resource-level bindings with inheritance; its operational role is tracing allow policies up the resource hierarchy; the needed capability is scoping role inheritance to a single project.

Associate Cloud Engineer Practice Tests