Google Associate Cloud Engineer Practice Test 60

Question 590

A product team asks for narrowly scoped storage read access, and the built-in role is sufficient. Which role category should be preferred?

  1. Use custom role permissions support check
  2. Grant a predefined IAM role
  3. Use the basic Viewer role cautiously
  4. Bind IAM role at folder scope
  5. Bind IAM role at resource level
  6. Avoid basic Editor role

Explanation

Correct Answer

B:

Predefined roles contain Google-managed permission sets tailored to particular products and tasks; it supports assigning built-in least-privilege service permissions at the appropriate resource scope.

Incorrect Answers

A:

Not all IAM permissions can be placed in custom roles, and support levels vary by permission; that supports validating permissions permitted in custom roles; the problem to solve concerns assigning built-in least-privilege service permissions.

C:

Basic Viewer confers broad view access to many resource types rather than only one specific service; it is appropriate for limiting the scope of broad read access; here, the deciding requirement is assigning built-in least-privilege service permissions.

D:

Folder IAM policies can grant inherited permissions to descendant projects and resources; the scenario specifies assigning built-in least-privilege service permissions, which differs from inheriting permissions through one folder subtree.

E:

Resource-level IAM binding limits eligible permissions to that resource and its applicable descendants; that supports minimizing the hierarchy breadth of a role grant; the problem to solve concerns assigning built-in least-privilege service permissions.

F:

Basic Editor is a broad predefined-style basic role that can change many resources beyond a narrow task; that supports removing excessive resource mutation privileges; the problem to solve concerns assigning built-in least-privilege service permissions.

Question 591

Employees authenticate at an external enterprise identity provider and should access Google Cloud without managing separate permanent Google accounts. Which federation model fits?

  1. Use GKE Kubernetes service accounts
  2. Use IAM Credentials API
  3. Use Workforce Identity Federation
  4. Use IAM service-account impersonation roles

Explanation

Correct Answer

C:

What matters is federating workforce identities for cloud administration; Workforce Identity Federation lets external workforce identities access supported Google Cloud resources through configured identity pools and providers.

Incorrect Answers

A:

For distinguishing Pod identities inside Kubernetes, this could be relevant; Kubernetes ServiceAccounts identify workloads to the Kubernetes API and can participate in GKE workload identity integrations; the actual request concerns federating workforce identities for cloud administration.

B:

This alternative focuses on requesting limited-lifetime credentials programmatically; the IAM Credentials API generates supported short-lived service account tokens and signatures for authorized callers; the stem instead asks for federating workforce identities for cloud administration.

D:

Service account impersonation lets authorized principals mint short-lived credentials for an account using supported IAM roles; it is not the focused action for federating workforce identities for cloud administration; its primary use is granting token creation on a target service account.

Question 592

New projects should automatically grant a central compliance principal the same view privileges. Where should that grant reside?

  1. Bind IAM role at organization scope
  2. Use the basic Viewer role cautiously
  3. Use Policy Analyzer
  4. Use IAM Conditions

Explanation

Correct Answer

A:

Organization-level IAM allow bindings generally propagate to eligible child resources; Applied in this case, it delivers inheriting a role throughout the organization tree.

Incorrect Answers

B:

Basic Viewer confers broad view access to many resource types rather than only one specific service; Applying it would target avoiding broad read exposure across services, leaving the separate need for inheriting a role throughout the organization tree.

C:

Policy Analyzer can analyze IAM allow relationships using Cloud Asset Inventory data; that mechanism handles tracing effective role bindings and membership paths; it does not configure inheriting a role throughout the organization tree.

D:

IAM Conditions attach supported CEL expressions to role bindings to restrict when permissions apply; it would help with restricting IAM bindings with expressions, but it does not directly implement inheriting a role throughout the organization tree.

Question 593

An engineer knows a Google Cloud project ID but a downstream API requires its numeric project number. Which gcloud command prints only that number without manually copying it from the Console?

  1. gcloud projects describe PROJECT_ID --format="value(projectNumber)"
  2. gcloud config set project PROJECT_ID
  3. gcloud compute instances list --format="value(name)"
  4. gcloud billing accounts list

Explanation

Correct Answer

A:

The projects describe command retrieves the specified project metadata, and the value(projectNumber) output formatter extracts the server-assigned numeric project number alone.

Incorrect Answers

B:

Setting the default project changes the active CLI target, but it does not output the numeric project number requested by the downstream integration.

C:

Listing VM names reports compute resources, not the numeric identifier assigned to the parent Google Cloud project.

D:

Billing account listing shows payer resources; account IDs are different identifiers and cannot substitute for a project number.

Question 594

A finance workflow should open a ticket when cloud spend crosses a threshold. What output should the budget use?

  1. Assign a budget scope by project
  2. Use cost anomaly detection
  3. Configure budget Pub/Sub notifications
  4. Link a project to a billing account
  5. Use Cloud Billing account budgets by service

Explanation

Correct Answer

C:

Budget notifications can be published through Pub/Sub for downstream automation to process; its effect directly addresses integrating spending notifications with an event consumer.

Incorrect Answers

A:

Billing budgets support project and other eligible filters so thresholds can target a subset of charges; this governs measuring a selected project against its budget, whereas the stated objective is integrating spending notifications with an event consumer.

B:

Cloud Billing cost anomaly detection identifies unusual cost changes using billing spending signals; it concerns detecting atypical spending changes, and its normal effect does not provide integrating spending notifications with an event consumer.

D:

This alternative focuses on associating the project with an active payer; A project must be linked to an active billing account to consume many chargeable services; the stem instead asks for integrating spending notifications with an event consumer.

E:

Billing budgets can scope eligible cost calculations by service in addition to project and other filters; the supported outcome is filtering a budget by cloud product, while the requested result is integrating spending notifications with an event consumer.

Question 595

A Cloud Run service has a fixed maximum-instance setting but each instance can still process more than one request simultaneously. Which separate parameter determines the maximum concurrent HTTP requests per service instance?

  1. The Cloud Storage object retention period
  2. The BigQuery query cache setting
  3. Cloud Run request concurrency
  4. A Cloud NAT IP reservation

Explanation

Correct Answer

C:

Request concurrency controls the number of simultaneous requests one Cloud Run service instance is configured to handle, separate from the service’s instance scaling limits.

Incorrect Answers

A:

Bucket retention controls minimum lifetime of stored objects and cannot set how many HTTP requests a Cloud Run service instance processes simultaneously.

B:

Query caching changes BigQuery query execution behavior; it is independent from per-instance concurrency for a Cloud Run HTTP service.

D:

A NAT address concerns network egress translation; it does not establish per-instance request scheduling in a managed Cloud Run service.

Question 596

A Cloud Build pipeline fails to push container images even though its steps execute successfully. Which identity should gain registry access?

  1. Grant target resource role to service account
  2. Use Cloud Run runtime identity permission checks
  3. Use authenticated Pub/Sub push
  4. Use service account permissions for Cloud Build

Explanation

Correct Answer

D:

Build steps execute under a configured Cloud Build service account that needs IAM rights for target operations; for the stated workload, the practical result is authorizing the build execution identity to publish artifacts.

Incorrect Answers

A:

This alternative focuses on authorizing the account on the target resource; Attaching an account establishes identity but the service account still needs IAM permissions on the resources it accesses; the stem instead asks for authorizing the build execution identity to publish artifacts.

B:

Production API authorization follows the workload's attached service account, not the developer's personal IAM roles; it concerns checking runtime principal privileges rather than developer grants, and its normal effect does not provide authorizing the build execution identity to publish artifacts.

C:

For authenticating push delivery to a webhook, this could be relevant; Authenticated Pub/Sub push uses a configured service account to attach supported OIDC tokens to push requests; the actual request concerns authorizing the build execution identity to publish artifacts.

Question 597

An enterprise needs reference infrastructure modules and guidance for repeatable Google Cloud foundations. Which toolkit helps?

  1. Use a version-controlled IaC repository
  2. Use Terraform for infrastructure provisioning
  3. Use Cloud Foundation Toolkit
  4. Use a declarative desired-state configuration

Explanation

Correct Answer

C:

Cloud Foundation Toolkit provides modules and examples for automated Google Cloud foundation deployments; Applied in this case, it delivers deploying tested cloud foundation patterns.

Incorrect Answers

A:

Version control tracks infrastructure definitions, reviews and history across deployments; this is a distinct control for tracking proposed configuration changes in source control, rather than deploying tested cloud foundation patterns.

B:

Terraform uses provider-managed declarative resources and state to plan and apply infrastructure changes; the scenario specifies deploying tested cloud foundation patterns, which differs from provisioning Google Cloud resources declaratively.

D:

Declarative infrastructure configuration specifies intended resources while tooling computes the necessary changes; it would help with codifying consistent cloud environments declaratively, but it does not directly implement deploying tested cloud foundation patterns.

Question 598

An organization needs longer-term external retention of certain log entries in a bucket rather than only in Cloud Logging. What should it configure?

  1. Configure log exclusions
  2. Use linked BigQuery datasets for logs
  3. Create a log sink to Cloud Storage
  4. Configure a log view

Explanation

Correct Answer

C:

Cloud Logging sinks can route supported records to Cloud Storage buckets for external retention workflows; this is relevant because the outcome sought is archiving matching logs to object storage.

Incorrect Answers

A:

Logging exclusions and sink filters can prevent eligible entries from being routed to selected log buckets; its purpose differs: excluding unwanted log entries from storage routing is separate from archiving matching logs to object storage.

B:

Linked BigQuery datasets can provide query access to supported Log Analytics bucket data; it would help with exposing compatible log storage through BigQuery linkage, but it does not directly implement archiving matching logs to object storage.

D:

Log views expose subsets of log bucket entries with access control through IAM; its operational role is limiting log visibility to selected entries; the needed capability is archiving matching logs to object storage.

Question 599

An IAM role should expire automatically at midnight UTC on 1 January 2027 for a temporary engineer. Which condition expression correctly expresses the cutoff using supported Common Expression Language?

  1. request.time < timestamp("2027-01-01T00:00:00Z")
  2. resource.name == "2027-01-01"
  3. request.ip == 2027-01-01
  4. project.billingDate < 2027

Explanation

Correct Answer

A:

IAM Conditions can evaluate the request timestamp against a CEL timestamp literal. Requests before the specified instant satisfy the expression; later requests do not.

Incorrect Answers

B:

Resource name checks compare a resource identifier to a string; they do not evaluate the current request time or enforce a UTC expiry.

C:

The expression is neither a valid timestamp check nor a suitable request-time attribute comparison and cannot represent a reliable expiry condition.

D:

The invented billingDate attribute is not a supported IAM Conditions request-time property and does not enforce an expiry at the stated UTC instant.

Question 600

A CI gate needs to inspect additions, modifications and deletions proposed by Terraform. What operation should run first?

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

Explanation

Correct Answer

D:

What matters is evaluating Terraform's pending changes; Terraform plan compares configuration and state with remote resource information to produce an execution plan.

Incorrect Answers

A:

Terraform modules encapsulate resource definitions and input/output interfaces for reuse; that solves problems involving standardizing infrastructure through reusable components, rather than the evaluating Terraform's pending changes requirement.

B:

Terraform backends with locking semantics protect supported state operations from concurrent modification; it is relevant when serializing infrastructure state changes, not when the primary need is evaluating Terraform's pending changes.

C:

Terraform apply performs authorized resource changes described by the configuration or saved plan; the scenario specifies evaluating Terraform's pending changes, which differs from applying a Terraform resource plan.

E:

Terraform uses provider-managed declarative resources and state to plan and apply infrastructure changes; this is a distinct control for provisioning Google Cloud resources declaratively, rather than evaluating Terraform's pending changes.

Associate Cloud Engineer Practice Tests