Google Associate Cloud Engineer Practice Test 48

Question 470

Operators need to know when a new type of production exception appears across many instances. What Observability capability fits?

  1. Use Cloud Service Health public status
  2. Use Cloud Trace
  3. Use Cloud Profiler
  4. Use Cloud Error Reporting

Explanation

Correct Answer

D:

Error Reporting groups recognized application errors and summarizes their frequency and impact; Applied in this case, it delivers tracking application error occurrences by group.

Incorrect Answers

A:

Google Cloud's public service health information reports known product incidents and service status; Applying it would target inspecting the public service status dashboard, leaving the separate need for tracking application error occurrences by group.

B:

Cloud Trace collects and visualizes distributed request traces and span timings; its purpose differs: analyzing latency along a request trace is separate from tracking application error occurrences by group.

C:

Cloud Profiler analyzes sampled application profiles to reveal resource-heavy functions and code paths; its purpose differs: identifying application code hotspots from profiles is separate from tracking application error occurrences by group.

Question 471

A security automation must use the IAM Credentials API to sign a JWT as a designated service account. The caller is not allowed to download the private key. Which role on that service account includes the signing capability?

  1. Service Account Token Creator
  2. Service Account Viewer
  3. Cloud Run Invoker
  4. Billing Account Costs Manager

Explanation

Correct Answer

A:

The Service Account Token Creator role includes supported IAM Credentials signing permissions such as signJwt, allowing the API to produce a signature without handing out the service-account private key.

Incorrect Answers

B:

Viewer permissions help inspect the account's metadata and configuration but do not authorize signing a JWT in the service account's name.

C:

Cloud Run Invoker is for invoking eligible Cloud Run endpoints and does not confer service-account token generation or JWT signing authority.

D:

Billing cost permissions affect spending analysis and allocation rather than signing identities or creating cryptographic credentials.

Question 472

A new VM fleet must distribute replicas across zones, scale as CPU changes, and replace instances that fail application health probes. Choose THREE configurations that directly supply those behaviors.

  1. Configure an autoscaler for a MIG
  2. Use a local SSD
  3. Choose a Spot VM
  4. Configure MIG autohealing
  5. Use a regional managed instance group
  6. Use VM reservation

Explanation

Correct Answers

A:

MIG autoscaling changes the target number of instances using configured signals and scale limits; within the multi-part workflow of creating a zone-resilient fleet with autoscaling and health-based recovery, this provides dynamically sizing managed VM fleets.

D:

Autohealing uses configured health checks to trigger replacement of unhealthy MIG instances; within the multi-part workflow of creating a zone-resilient fleet with autoscaling and health-based recovery, this provides recreating unhealthy managed instances.

E:

Regional managed instance groups distribute members across multiple zones in a region for availability; within the multi-part workflow of creating a zone-resilient fleet with autoscaling and health-based recovery, this provides distributing managed VM replicas among zones.

Incorrect Answers

B:

Local SSD delivers high-speed instance-local storage that is ephemeral and not a durable system of record; its focus is using low-latency ephemeral instance storage, rather than creating a zone-resilient fleet with autoscaling and health-based recovery.

C:

Spot VMs have lower eligible prices but no guaranteed continuous availability or fixed lifetime; it is designed for running fault-tolerant workloads on reclaimable capacity, rather than the needed creating a zone-resilient fleet with autoscaling and health-based recovery.

F:

Compute Engine reservations allocate qualifying VM capacity in a zone independently of starting instances; the question is specifically about creating a zone-resilient fleet with autoscaling and health-based recovery, rather than reserving zonal VM capacity for a deployment.

Question 473

A Cloud Storage bucket keeps noncurrent generations for recovery, but old generations accumulate indefinitely. Security wants to delete only noncurrent generations after a specified number of days in that state. Which configuration meets the requirement?

  1. Object Lifecycle Management rule with noncurrent-state and age-since-noncurrent conditions
  2. Disable Object Versioning immediately
  3. Create a bucket retention policy for all live objects
  4. Copy every object to a different storage class

Explanation

Correct Answer

A:

A lifecycle Delete rule can target noncurrent object generations using conditions such as isLive=false and daysSinceNoncurrentTime. It limits obsolete versions without routinely deleting the current live version.

Incorrect Answers

B:

Disabling versioning stops accumulation of future noncurrent versions but does not automatically remove versions that are already stored.

C:

Retention policies establish minimum retention requirements, potentially preventing deletion. They are not targeted cleanup rules for old noncurrent generations.

D:

Changing storage classes does not express a time-based rule to delete only the superseded generations of versioned objects.

Question 474

An identity audit reveals a nonhuman account with no approved owner that should be temporarily prevented from use. Which action is appropriate?

  1. Grant target resource role to service account
  2. Avoid exporting service account keys
  3. Grant service account token creator
  4. Disable unused service account

Explanation

Correct Answer

D:

What matters is disabling an unneeded service account; Disabling a service account blocks its use without immediately deleting the identity and associated metadata.

Incorrect Answers

A:

Attaching an account establishes identity but the service account still needs IAM permissions on the resources it accesses; the scenario specifies disabling an unneeded service account, which differs from granting the workload identity the required API permissions.

B:

Managed service-account credentials are generally safer than downloadable private keys because the platform supplies short-lived tokens; it would help with avoiding unnecessary long-lived private keys, but it does not directly implement disabling an unneeded service account.

C:

Service Account Token Creator enables supported token or signature operations for a target service account; the scenario specifies disabling an unneeded service account, which differs from authorizing ephemeral impersonation credentials.

Question 475

Hundreds of VMs must launch quickly with identical tested guest packages rather than install all packages at boot. Which artifact should be distributed?

  1. Use a custom VM image
  2. Use VM startup scripts
  3. Configure OS Login
  4. Use a local SSD

Explanation

Correct Answer

A:

The scenario depends on reusing a prepared boot image across instances; Custom images capture disk contents for compatible boot or data disk creation.

Incorrect Answers

B:

Compute Engine startup scripts execute configured initialization commands in supported guest environments; Applying it would target running setup commands at VM startup, leaving the separate need for reusing a prepared boot image across instances.

C:

OS Login integrates Linux instance access with Google identities and IAM role assignments; this governs using IAM-linked OS Login for SSH, whereas the stated objective is reusing a prepared boot image across instances.

D:

Local SSD delivers high-speed instance-local storage that is ephemeral and not a durable system of record; that solves problems involving using low-latency ephemeral instance storage, rather than the reusing a prepared boot image across instances requirement.

Question 476

A new Kubernetes Deployment release causes errors and the team wants to revert to its prior revision. What operation applies?

  1. Grant Artifact Registry read access to GKE
  2. Configure Vertical Pod Autoscaler
  3. Use kubectl rollout undo
  4. Use kubectl get pods

Explanation

Correct Answer

C:

The requested administrative outcome is rolling back a Deployment release; Kubectl rollout undo can revert supported Deployment rollouts to a previous revision.

Incorrect Answers

A:

The identity used for image pulls needs appropriate Artifact Registry read permissions on the repository; it would help with allowing Kubernetes image pulls from a private registry, but it does not directly implement rolling back a Deployment release.

B:

Vertical Pod Autoscaler recommends or manages CPU and memory requests according to its configured mode; the scenario specifies rolling back a Deployment release, which differs from optimizing workload resource requests vertically.

D:

Kubectl get pods lists Pod resources and their summarized readiness and lifecycle information; it is appropriate for listing current Kubernetes Pod status; here, the deciding requirement is rolling back a Deployment release.

Question 477

An appliance must handle traffic for a known private network and dynamic BGP routing is not used. What control can direct the traffic?

  1. Reserve a static internal address
  2. Add a subnet to a custom VPC
  3. Create a custom static route
  4. Use Network Intelligence Center routes analysis

Explanation

Correct Answer

C:

Custom static routes define destination CIDRs and supported next hops in a VPC; this is the specific mechanism used for adding explicit destination-based network routing.

Incorrect Answers

A:

Internal static IP reservations reserve eligible private addresses at the appropriate regional or global scope; this is a distinct control for reserving an internal address for a frontend, rather than adding explicit destination-based network routing.

B:

Subnets are regional resources associated with a VPC and have nonoverlapping ranges as required; that solves problems involving adding regional network segmentation, rather than the adding explicit destination-based network routing requirement.

D:

Network Intelligence Center and route diagnostics expose supported route and connectivity insights; its operational role is investigating route configuration and reachability; the needed capability is adding explicit destination-based network routing.

Question 478

A cross-region read replica must become independently writable in a planned migration or failure-recovery workflow. What action is relevant?

  1. Promote a Cloud SQL read replica
  2. Use Cloud SQL import from Cloud Storage
  3. Check Cloud SQL connection limits
  4. Use Cloud SQL Query Insights

Explanation

Correct Answer

A:

Promoting a Cloud SQL read replica ends replication and makes the eligible replica an independent writable instance; its effect directly addresses converting a replica into an independent primary.

Incorrect Answers

B:

This alternative focuses on loading external data files into Cloud SQL; Cloud SQL import operations ingest supported SQL and CSV files from authorized Cloud Storage paths; the stem instead asks for converting a replica into an independent primary.

C:

Cloud SQL and underlying database engines have connection capacity considerations requiring pooling and appropriate instance sizing; the scenario specifies converting a replica into an independent primary, which differs from diagnosing exhaustion of database connections.

D:

Cloud SQL Query Insights provides query-centric performance analysis and workload metrics for supported database instances and configurations; that mechanism handles observing database query performance at query level; it does not configure converting a replica into an independent primary.

Question 479

A GKE application needs to reach a Google Cloud API with workload-level credentials rather than embedded keys. The solution must establish Kubernetes workload identity, use GKE federation, and authorize that workload on the API's resource. Choose THREE activities.

  1. Bind GKE workload identity to IAM
  2. Grant Artifact Registry reader to node identity
  3. Disable service account key creation by policy
  4. Use GKE Kubernetes service accounts
  5. Attach a service account to a VM
  6. Grant target resource role to service account

Explanation

Correct Answers

A:

Workload Identity Federation for GKE establishes workload identities that receive supported IAM access without embedded private keys; within the multi-part workflow of binding a Kubernetes workload identity to cloud resource permissions, this provides granting Pod-scoped Google Cloud resource access.

D:

Kubernetes ServiceAccounts identify workloads to the Kubernetes API and can participate in GKE workload identity integrations; within the multi-part workflow of binding a Kubernetes workload identity to cloud resource permissions, this provides distinguishing Pod identities inside Kubernetes.

F:

Attaching an account establishes identity but the service account still needs IAM permissions on the resources it accesses; within the multi-part workflow of binding a Kubernetes workload identity to cloud resource permissions, this provides authorizing the account on the target resource.

Incorrect Answers

B:

GKE image pulls use eligible node or configured credential identities that need Artifact Registry read permissions; it is designed for authorizing image retrieval during Pod startup, rather than the needed binding a Kubernetes workload identity to cloud resource permissions.

C:

Organization Policy Service includes supported constraints controlling user-managed service account key creation, which serves preventing generation of long-lived key credentials instead of binding a Kubernetes workload identity to cloud resource permissions.

E:

VMs can run as attached service accounts, with tokens available through the metadata server subject to access settings; the question is specifically about binding a Kubernetes workload identity to cloud resource permissions, rather than assigning workload identity to a compute instance.

Question 480

A Terraform CI pipeline must preview proposed resource changes for review, then perform an authorized deployment of the approved configuration. Choose TWO commands.

  1. Run terraform plan
  2. Run terraform apply
  3. Use Terraform modules
  4. Use Terraform for infrastructure provisioning
  5. Use Terraform outputs

Explanation

Correct Answers

A:

Terraform plan compares configuration and state with remote resource information to produce an execution plan; within the multi-part workflow of previewing Terraform changes before applying an approved plan, this provides reviewing a proposed infrastructure diff.

B:

Terraform apply performs authorized resource changes described by the configuration or saved plan; within the multi-part workflow of previewing Terraform changes before applying an approved plan, this provides executing declared infrastructure updates.

Incorrect Answers

C:

Terraform modules encapsulate resource definitions and input/output interfaces for reuse; the mechanism concerns packaging reusable resource configurations and does not directly supply previewing Terraform changes before applying an approved plan.

D:

Terraform uses provider-managed declarative resources and state to plan and apply infrastructure changes; the question is specifically about previewing Terraform changes before applying an approved plan, rather than managing reproducible cloud resources as code.

E:

Terraform outputs publish selected values from a configuration or module for downstream use, which supports passing provisioned resource identifiers to consumers; the needed outcome is previewing Terraform changes before applying an approved plan.

Associate Cloud Engineer Practice Tests