Google Associate Cloud Engineer Practice Test 22

Question 210

A CI pipeline applies Terraform and must not inherit broad personal administrator credentials. What identity model fits?

  1. Use a protected service account for IaC
  2. Import an existing resource into Terraform state
  3. Run terraform apply
  4. Use a version-controlled IaC repository

Explanation

Correct Answer

A:

A dedicated automation service account with narrowly scoped IAM permissions can execute approved IaC changes; this is the capability needed for executing infrastructure automation with scoped machine permissions.

Incorrect Answers

B:

Terraform import associates eligible existing remote objects with resource addresses in state, with configuration alignment still required; that mechanism handles linking Terraform configuration to existing resource identity; it does not configure executing infrastructure automation with scoped machine permissions.

C:

Terraform apply performs authorized resource changes described by the configuration or saved plan; this is a distinct control for executing declared infrastructure updates, rather than executing infrastructure automation with scoped machine permissions.

D:

Version control tracks infrastructure definitions, reviews and history across deployments; Applying it would target managing cloud configuration through versioned files, leaving the separate need for executing infrastructure automation with scoped machine permissions.

Question 211

An automation job must retrieve supported rightsizing suggestions programmatically rather than through the console. Which interface helps?

  1. Use Cloud Audit Logs Data Access
  2. Use Recommender API
  3. Use Cloud Profiler profiles
  4. Use Active Assist recommendations
  5. Use Personalized Service Health

Explanation

Correct Answer

B:

The Recommender API exposes supported resource recommendations and insights programmatically; that matches the requirement for fetching machine-readable optimization advice.

Incorrect Answers

A:

Data Access audit logs capture supported data reads and writes and may require explicit enablement depending on service and category; its purpose differs: auditing supported data-plane access events is separate from fetching machine-readable optimization advice.

C:

Cloud Profiler collects supported statistical application profiles that highlight code resource consumption; that supports identifying CPU-intensive code paths; the problem to solve concerns fetching machine-readable optimization advice.

D:

Active Assist produces eligible recommendations and insights about efficiency, reliability, security and cost; this governs reviewing rightsizing and efficiency recommendations, whereas the stated objective is fetching machine-readable optimization advice.

E:

Personalized Service Health surfaces supported provider events relevant to particular resources and projects; that applies to checking provider incidents relevant to selected projects; the requested task is fetching machine-readable optimization advice.

Question 212

A nightly render job checkpoints progress and can be interrupted without customer impact. What compute purchasing option can reduce cost?

  1. Use committed use discounts
  2. Use billing account IAM roles
  3. Use project billing permissions to link the payer
  4. Assign a budget scope by project
  5. Use Spot VMs for interruption-tolerant batch

Explanation

Correct Answer

E:

The scenario depends on running interruptible batch compute economically; Spot VMs are discounted and can be reclaimed by Google Cloud, so applications must tolerate interruption.

Incorrect Answers

A:

Committed use discounts reduce eligible on-demand cost in exchange for a qualifying commitment; it would help with discounting predictable eligible usage through commitment, but it does not directly implement running interruptible batch compute economically.

B:

Billing-account IAM permissions control access to financial data and payer operations separately from project IAM; it is appropriate for authorizing access to billing account information; here, the deciding requirement is running interruptible batch compute economically.

C:

Managing project billing associations requires the appropriate project and billing account permissions; the decision here is about running interruptible batch compute economically, not authorizing a project-to-billing relationship.

D:

Billing budgets support project and other eligible filters so thresholds can target a subset of charges; its purpose differs: measuring a selected project against its budget is separate from running interruptible batch compute economically.

Question 213

A pipeline needs to impersonate a deployment identity through the IAM Credentials API. What authorization on the target account is relevant?

  1. Use service account delegation chain
  2. Avoid exporting service account keys
  3. Grant service account token creator
  4. Use service-account-level IAM policy

Explanation

Correct Answer

C:

Service Account Token Creator enables supported token or signature operations for a target service account; its effect directly addresses authorizing ephemeral impersonation credentials.

Incorrect Answers

A:

IAM Credentials supports delegated impersonation chains when each principal has required token creation permissions; its operational role is performing authorized chained service-account impersonation; the needed capability is authorizing ephemeral impersonation credentials.

B:

Managed service-account credentials are generally safer than downloadable private keys because the platform supplies short-lived tokens; the decision here is about authorizing ephemeral impersonation credentials, not avoiding unnecessary long-lived private keys.

D:

This alternative focuses on delegating access to exactly one service account; A service account is an IAM resource with its own allow policy for controlling who can use or manage it; the stem instead asks for authorizing ephemeral impersonation credentials.

Question 214

A PostgreSQL-backed application reports sporadic slow database queries and the engineer needs query-level timing statistics. Which Cloud SQL diagnostic capability is suitable?

  1. Use Firestore scheduled backups
  2. Promote a Cloud SQL read replica
  3. Use Cloud SQL Query Insights
  4. Use Cloud SQL import from Cloud Storage

Explanation

Correct Answer

C:

Cloud SQL Query Insights provides query-centric performance analysis and workload metrics for supported database instances and configurations; this is the capability needed for investigating high-latency database queries with Query Insights.

Incorrect Answers

A:

Firestore scheduled backups support daily or weekly database snapshots and restoration to a new database while retaining configurable backup copies; the scenario specifies investigating high-latency database queries with Query Insights, which differs from creating scheduled recovery snapshots for Firestore.

B:

Promoting a Cloud SQL read replica ends replication and makes the eligible replica an independent writable instance; Applying it would target promoting an eligible database replica, leaving the separate need for investigating high-latency database queries with Query Insights.

D:

The alternative would address loading external data files into Cloud SQL; Cloud SQL import operations ingest supported SQL and CSV files from authorized Cloud Storage paths; the question instead requires investigating high-latency database queries with Query Insights.

Question 215

A large bucket has changing read patterns and manual object class tuning is impractical. What bucket feature can manage this?

  1. Use Cloud Storage versioning
  2. Configure Cloud Storage Autoclass
  3. Choose Cloud Storage Archive
  4. Use dual-region Cloud Storage

Explanation

Correct Answer

B:

Autoclass automatically manages eligible object storage classes based on access patterns and policy rules; this corresponds to adapting object class based on observed access, not a separate lifecycle action.

Incorrect Answers

A:

Object Versioning retains noncurrent object generations until explicitly removed or lifecycle-managed; that mechanism handles recovering overwritten object versions; it does not configure adapting object class based on observed access.

C:

The alternative would address optimizing object storage for long-term retention; Archive is the coldest Cloud Storage class with retrieval charges and minimum storage duration but online object availability; the question instead requires adapting object class based on observed access.

D:

Dual-region buckets provide supported object placement and redundancy across two selected regions; its operational role is placing object data across a pair of regions; the needed capability is adapting object class based on observed access.

Question 216

An automation uses a Google Cloud service for the first time and receives a service-disabled error. Which setup step is missing?

  1. Enable a service API for the project
  2. Configure group synchronization
  3. Pass a per-command --project flag
  4. Authenticate with gcloud auth login
  5. Grant IAM role at folder scope

Explanation

Correct Answer

A:

Service Usage controls API enablement for each project; authorization and billing are separate requirements; it supports allowing that service's API in the project at the appropriate resource scope.

Incorrect Answers

B:

Directory synchronization keeps supported Google identities and group records aligned with a source directory; that mechanism handles keeping cloud groups aligned with an authoritative directory; it does not configure allowing that service's API in the project.

C:

For pinning project context at invocation time, this could be relevant; A --project argument overrides the configured project for supported gcloud commands for that invocation; the actual request concerns allowing that service's API in the project.

D:

Gcloud auth login authorizes a user account for gcloud, subject to its IAM permissions; it is appropriate for authorizing gcloud commands as a human user; here, the deciding requirement is allowing that service's API in the project.

E:

A folder IAM policy passes applicable role grants to descendant resources and projects; the scenario specifies allowing that service's API in the project, which differs from delegating access to a hierarchy branch.

Question 217

A platform preflight must discover whether a new service's API is currently enabled, whether resource quotas are sufficient, and whether the planned region supports the service. Choose THREE checks.

  1. Check a quota in Quotas & System Limits
  2. Select a compatible zone for zonal resources
  3. List enabled project services
  4. Request an adjustable quota increase
  5. Use gcloud services enable
  6. Choose a supported region

Explanation

Correct Answers

A:

Quotas and System Limits surfaces supported quota consumption, values and adjustable limits; within the multi-part workflow of verifying API state, quota headroom and regional product availability, this provides diagnosing a project-level quota limit.

C:

The Service Usage listing and its gcloud services list interface expose enabled and available service states; within the multi-part workflow of verifying API state, quota headroom and regional product availability, this provides inspecting a project's enabled API inventory.

F:

Google Cloud services have distinct regional and global availability; not every SKU exists in each location; within the multi-part workflow of verifying API state, quota headroom and regional product availability, this provides validating service availability and data location.

Incorrect Answers

B:

Zonal compute and zonal disks must be placed in compatible zones to attach directly; the mechanism concerns matching VM and disk zones and does not directly supply verifying API state, quota headroom and regional product availability.

D:

Eligible service quotas can be increased through quota adjustment subject to approval and actual resource availability, which supports raising an adjustable compute quota; the needed outcome is verifying API state, quota headroom and regional product availability.

E:

The gcloud services enable command activates named Service Usage APIs in the selected project; its focus is enabling a service through the command line, rather than verifying API state, quota headroom and regional product availability.

Question 218

An operator accidentally deletes a Cloud Storage object and needs recovery within a configured retention window. What feature addresses this?

  1. Use a multi-region Cloud Storage bucket
  2. Choose Cloud Storage Standard
  3. Use dual-region Cloud Storage
  4. Choose Cloud Storage Coldline
  5. Use Cloud Storage soft delete

Explanation

Correct Answer

E:

Soft delete retains eligible deleted object data for a configurable period to allow restoration; this is the capability needed for recovering recently deleted cloud objects.

Incorrect Answers

A:

Cloud Storage multi-region locations store object data using Google's supported multi-region placement and redundancy model; it is relevant when storing objects across a multi-region location, not when the primary need is recovering recently deleted cloud objects.

B:

Standard is designed for frequently accessed Cloud Storage objects without a minimum storage-duration charge; it would help with choosing hot-tier object storage, but it does not directly implement recovering recently deleted cloud objects.

C:

Dual-region buckets provide supported object placement and redundancy across two selected regions; its operational role is placing object data across a pair of regions; the needed capability is recovering recently deleted cloud objects.

D:

Coldline is for very infrequently accessed objects with retrieval charges and longer minimum duration; it is appropriate for choosing a colder online object tier; here, the deciding requirement is recovering recently deleted cloud objects.

Question 219

A temporary partner team should be removed from several role grants with one membership change. Which directory pattern supports this?

  1. Use access change audit logs
  2. Use Cloud Identity groups for external collaborators
  3. Use domain restricted sharing organization policy
  4. Use IAM Credentials API

Explanation

Correct Answer

B:

Supported Google groups can aggregate external collaborators and be bound to appropriate resource roles; this is the capability needed for centralizing external users' resource access.

Incorrect Answers

A:

Cloud Audit Logs Admin Activity records supported administrative IAM policy changes; that supports attributing access-policy updates to callers; the problem to solve concerns centralizing external users' resource access.

C:

Domain-restricted sharing policy constraints limit eligible principals in supported IAM policies; the scenario specifies centralizing external users' resource access, which differs from preventing unauthorized external principal grants.

D:

The IAM Credentials API generates supported short-lived service account tokens and signatures for authorized callers; the supported outcome is generating ephemeral service-account credentials, while the requested result is centralizing external users' resource access.

Question 220

A department lead is tasked with adding a new subfolder, but has only role permissions within a child project. Where must the create authority exist?

  1. Use a standalone organization for a new Free Trial account
  2. Use folder creation permissions on parent
  3. Create a folder in the resource hierarchy
  4. Move the project to a different folder

Explanation

Correct Answer

B:

Creating folders depends on permissions on the intended organization or parent folder, not merely project permissions; its effect directly addresses authorizing a new folder beneath its parent.

Incorrect Answers

A:

For using automatic organization creation for a new free trial account, this could be relevant; Standalone organizations are automatically provisioned for eligible new Free Trial accounts with Google email addresses and do not require Cloud Identity; the actual request concerns authorizing a new folder beneath its parent.

C:

Folders provide hierarchical grouping below an organization and above projects, inheriting policies down the tree; that mechanism handles grouping related projects under inherited governance; it does not configure authorizing a new folder beneath its parent.

D:

Moving a project between eligible folders changes its ancestor path and inherited organization and IAM policies; it is not the focused action for authorizing a new folder beneath its parent; its primary use is placing a project beneath the correct departmental folder.

Associate Cloud Engineer Practice Tests