Google Associate Cloud Engineer Practice Test 29

Question 280

A stateless API has unpredictable bursts and should scale down when unused. Which compute offering best fits?

  1. Choose GKE Autopilot
  2. Choose Compute Engine VMs
  3. Choose Cloud Run services
  4. Use batch jobs on Google Cloud Batch

Explanation

Correct Answer

C:

Cloud Run hosts container services with managed request routing and configurable instance scaling; this is the specific mechanism used for scaling containerized request workloads automatically.

Incorrect Answers

A:

GKE Autopilot automates many cluster and node infrastructure tasks while retaining Kubernetes workload interfaces; it concerns deploying Kubernetes workloads without self-managed node pools, and its normal effect does not provide scaling containerized request workloads automatically.

B:

Compute Engine provides infrastructure virtual machines with guest OS control and configurable attached storage; that supports running a customizable guest operating system; the problem to solve concerns scaling containerized request workloads automatically.

D:

Google Cloud Batch schedules and executes batch workloads on managed Compute Engine resources; Applying it would target orchestrating finite parallel batch jobs, leaving the separate need for scaling containerized request workloads automatically.

Question 281

A team suspects promotional credits are affecting its net bill. Where should it investigate the applied adjustments?

  1. Use billing cost table reports
  2. Use cost anomaly detection
  3. Use Cloud Billing credits view
  4. Assign a budget scope by project

Explanation

Correct Answer

C:

What matters is examining applicable billing credits; Billing reports and exports expose applicable credits alongside costs, subject to report and export settings.

Incorrect Answers

A:

The Cost table provides tabular cost records and invoice-oriented analysis for supported billing accounts; the scenario specifies examining applicable billing credits, which differs from reconciling invoiced charges and credits.

B:

Cloud Billing cost anomaly detection identifies unusual cost changes using billing spending signals; it would help with surfacing anomalous billing behavior, but it does not directly implement examining applicable billing credits.

D:

Billing budgets support project and other eligible filters so thresholds can target a subset of charges; that mechanism handles measuring a selected project against its budget; it does not configure examining applicable billing credits.

Question 282

An authorized engineer needs an interactive shell on a Linux Compute Engine VM. Which command is appropriate?

  1. Schedule disk snapshots
  2. Use gcloud compute ssh
  3. Use gcloud compute instances describe
  4. Resize a persistent disk

Explanation

Correct Answer

B:

Gcloud compute ssh helps establish SSH connectivity to a supported VM using applicable authentication and network paths; this is the specific mechanism used for connecting to a VM's SSH service through gcloud.

Incorrect Answers

A:

Resource policies can schedule eligible persistent disk snapshots and manage their retention; its operational role is automating regular persistent disk snapshots; the needed capability is connecting to a VM's SSH service through gcloud.

C:

The instances describe operation retrieves configuration and status details for a specified VM in its zone; the supported outcome is retrieving one instance's detailed configuration, while the requested result is connecting to a VM's SSH service through gcloud.

D:

Persistent disks can be expanded subject to limits, with guest partition or filesystem growth often still required; that applies to increasing allocated disk capacity; the requested task is connecting to a VM's SSH service through gcloud.

Question 283

One VM needs durable block storage in its existing zone and no cross-zone disk replication requirement. What attachment is appropriate?

  1. Use a Hyperdisk volume
  2. Use a zonal persistent disk
  3. Use VM reservation
  4. Use a local SSD

Explanation

Correct Answer

B:

Zonal Persistent Disk is persistent block storage tied to one zone and attachable to compatible VMs; that matches the requirement for attaching durable zonal block storage.

Incorrect Answers

A:

Hyperdisk offers supported block volume types with configurable performance capabilities subject to type and machine limits; its operational role is provisioning tunable high-performance block storage; the needed capability is attaching durable zonal block storage.

C:

Compute Engine reservations allocate qualifying VM capacity in a zone independently of starting instances; its purpose differs: reserving zonal VM capacity for a deployment is separate from attaching durable zonal block storage.

D:

Local SSD delivers high-speed instance-local storage that is ephemeral and not a durable system of record; it is not the focused action for attaching durable zonal block storage; its primary use is placing recoverable scratch data on instance-local SSD.

Question 284

An administrator needs consistent access revocation for SSH to supported Linux VMs. Which Compute Engine sign-in method is suitable?

  1. Configure OS Login
  2. Use Confidential VM
  3. Use Shielded VM
  4. Use a zonal persistent disk

Explanation

Correct Answer

A:

OS Login integrates Linux instance access with Google identities and IAM role assignments; for the stated workload, the practical result is using IAM-linked OS Login for SSH.

Incorrect Answers

B:

Confidential VM uses hardware confidential-computing capabilities to protect supported workloads during execution; its purpose differs: protecting data in use on supported VMs is separate from using IAM-linked OS Login for SSH.

C:

Shielded VM provides capabilities such as Secure Boot, virtual TPM and integrity monitoring; the decision here is about using IAM-linked OS Login for SSH, not enforcing supported VM boot protections.

D:

Zonal Persistent Disk is persistent block storage tied to one zone and attachable to compatible VMs; Applying it would target attaching durable zonal block storage, leaving the separate need for using IAM-linked OS Login for SSH.

Question 285

A CPU utilization time series exceeds an agreed threshold for five minutes and should open an incident. Which Monitoring alert condition fits?

  1. Configure Ops Agent on a VM
  2. Create a log-based alert
  3. Use Monitoring notification channels
  4. Use log-based counter metric
  5. Create a metric-threshold alert
  6. Use log-based distribution metric

Explanation

Correct Answer

E:

Metric-threshold conditions compare time series with configured values and duration windows; it is the direct control for triggering alerts from metric values.

Incorrect Answers

A:

The Ops Agent gathers supported guest metrics and logs and sends them to Google Cloud Observability; it is relevant when collecting guest metrics and logs on VMs, not when the primary need is triggering alerts from metric values.

B:

Log-based alerting policies trigger incidents from log entries matching configured filters; it would help with alerting when filtered logs appear, but it does not directly implement triggering alerts from metric values.

C:

Notification channels identify targets for messages emitted by Monitoring alerting policies; that mechanism handles routing incident notifications to recipients; it does not configure triggering alerts from metric values.

D:

Counter log-based metrics count matching Cloud Logging entries and can be charted or alerted on; it is not the focused action for triggering alerts from metric values; its primary use is turning filtered log patterns into metrics.

F:

Distribution log-based metrics extract numerical values from log entries to record value distributions; that mechanism handles producing distribution metrics from extracted log values; it does not configure triggering alerts from metric values.

Question 286

An auditor asks why an employee can access an object even though no role is assigned directly on that project. Which tool can investigate?

  1. Use Cloud Asset Inventory
  2. Use IAM policy analyzer
  3. Use resource inventory export to BigQuery
  4. Use organization-level Cloud Asset Inventory search

Explanation

Correct Answer

B:

Policy Analyzer uses Cloud Asset Inventory data to examine which identities can access resources through policy bindings; the decisive property here is tracing inherited or indirect IAM permissions.

Incorrect Answers

A:

Cloud Asset Inventory indexes supported Google Cloud resource and policy metadata for search, analysis and exports; that solves problems involving exporting resource and policy inventory data, rather than the tracing inherited or indirect IAM permissions requirement.

C:

Cloud Asset Inventory supports exporting eligible asset data to BigQuery for structured reporting; it is not the focused action for tracing inherited or indirect IAM permissions; its primary use is exporting centralized asset inventory for analytics.

D:

Cloud Asset Inventory searches can target supported ancestor scopes including organizations and folders; the scenario specifies tracing inherited or indirect IAM permissions, which differs from searching assets across a hierarchy ancestor.

Question 287

An operator needs a command-line inventory of the VMs in the selected project. Which gcloud operation is appropriate?

  1. Diagnose OS Login IAM roles
  2. Create a disk snapshot
  3. Change a VM machine type
  4. Use gcloud compute instances list

Explanation

Correct Answer

D:

The instances list command queries Compute Engine VM metadata and supports filters and output formatting; this corresponds to listing configured Compute Engine instances, not a separate lifecycle action.

Incorrect Answers

A:

OS Login uses IAM roles and identities for VM SSH access, superseding metadata-managed key access when enabled; the scenario specifies listing configured Compute Engine instances, which differs from authorizing OS Login rather than legacy metadata keys.

B:

Persistent disk snapshots preserve block-level disk contents and can be used to create recovery disks; the decision here is about listing configured Compute Engine instances, not protecting attached persistent data with snapshots.

C:

VM machine types control vCPU and memory allocations; changing types commonly requires stopping an eligible VM; this governs resizing VM compute capacity, whereas the stated objective is listing configured Compute Engine instances.

Question 288

An automated VM build should always select the most recent non-deprecated OS image in an approved Compute Engine image family, instead of pinning a dated image version. What should the source image reference use?

  1. A static machine-type name
  2. The image project’s display name alone
  3. A fixed image version with a timestamp
  4. An image-family reference in the appropriate image project

Explanation

Correct Answer

D:

Compute Engine image families resolve to the most recent non-deprecated image in that family, enabling updated VM builds without hardcoding each image version.

Incorrect Answers

A:

Machine types describe CPU and memory resources, not a versioned boot image. Selecting a machine type cannot choose the newest valid image in a family.

B:

The image project identifies where images live but does not specify which OS image or family to choose for the new boot disk.

C:

Pinning a named image version preserves reproducibility but does not automatically advance to the latest non-deprecated image as the requirement specifies.

Question 289

An IAM allow policy must store conditional role bindings using supported expressions. Which policy format capability is relevant?

  1. Use access change audit logs
  2. Use time-based IAM Condition
  3. Use IAM policy version 3 for conditions
  4. Use IAM Conditions
  5. Review IAM role permissions

Explanation

Correct Answer

C:

IAM allow policy version 3 supports conditional role bindings and should be requested when managing conditions; this is the capability needed for representing conditional policy bindings.

Incorrect Answers

A:

Cloud Audit Logs Admin Activity records supported administrative IAM policy changes; the scenario specifies representing conditional policy bindings, which differs from auditing role-binding modifications.

B:

This alternative focuses on limiting role authorization to an approved time window; A conditional IAM binding can compare request time with an expiry condition for supported access checks; the stem instead asks for representing conditional policy bindings.

D:

IAM Conditions attach supported CEL expressions to role bindings to restrict when permissions apply; that supports adding a time-bound conditional role grant; the problem to solve concerns representing conditional policy bindings.

E:

Role definitions enumerate included permissions; role names alone do not guarantee a specific API action; the scenario specifies representing conditional policy bindings, which differs from checking what actions a role actually grants.

Question 290

A PostgreSQL-compatible transactional workload needs a high-performance managed platform and advanced analytics integration. Which Google Cloud database should be evaluated?

  1. Use Cloud SQL point-in-time recovery
  2. Use AlloyDB for PostgreSQL
  3. Use Cloud SQL
  4. Use BigQuery

Explanation

Correct Answer

B:

AlloyDB for PostgreSQL is a managed PostgreSQL-compatible service with a purpose-built storage and compute architecture; its effect directly addresses deploying managed PostgreSQL-compatible high performance.

Incorrect Answers

A:

Point-in-time recovery uses supported transaction log capabilities to restore a Cloud SQL database state near a specified time; that mechanism handles recovering database state at a chosen time; it does not configure deploying managed PostgreSQL-compatible high performance.

C:

Cloud SQL provides managed MySQL, PostgreSQL and SQL Server database instances; it is appropriate for running a managed relational database engine; here, the deciding requirement is deploying managed PostgreSQL-compatible high performance.

D:

BigQuery is a managed analytical data warehouse designed for scalable SQL workloads; this governs querying large analytical datasets, whereas the stated objective is deploying managed PostgreSQL-compatible high performance.

Associate Cloud Engineer Practice Tests