Question 10

Two automation runs might update the same infrastructure state concurrently. Which mechanism should prevent simultaneous writers when supported?

  1. Run terraform apply
  2. Use Terraform state locking
  3. Use a declarative desired-state configuration
  4. Use Terraform modules

Explanation

Correct Answer

B:

Terraform backends with locking semantics protect supported state operations from concurrent modification; it supports serializing infrastructure state changes at the appropriate resource scope.

Incorrect Answers

A:

Terraform apply performs authorized resource changes described by the configuration or saved plan; it is relevant when executing declared infrastructure updates, not when the primary need is serializing infrastructure state changes.

C:

Declarative infrastructure configuration specifies intended resources while tooling computes the necessary changes; it is relevant when describing target infrastructure state rather than click sequences, not when the primary need is serializing infrastructure state changes.

D:

Terraform modules encapsulate resource definitions and input/output interfaces for reuse; its operational role is standardizing infrastructure through reusable components; the needed capability is serializing infrastructure state changes.

Question 11

New employees automatically join an operations group, and the team wants role membership to follow that group. How should IAM be assigned?

  1. Configure group synchronization
  2. Authenticate with gcloud auth login
  3. List enabled project services
  4. Use Cloud Identity administrative console
  5. Use an IAM policy binding to a group

Explanation

Correct Answer

E:

What matters is driving permissions through group-based role assignment; An IAM policy can bind a role to a group principal so members receive its permissions through membership.

Incorrect Answers

A:

Directory synchronization keeps supported Google identities and group records aligned with a source directory; it is relevant when automatically reflecting external directory membership changes, not when the primary need is driving permissions through group-based role assignment.

B:

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 driving permissions through group-based role assignment.

C:

The Service Usage listing and its gcloud services list interface expose enabled and available service states; it would help with listing service enablement state, but it does not directly implement driving permissions through group-based role assignment.

D:

The Google Admin console manages supported Cloud Identity directory users, groups and account settings; that solves problems involving administering directory users and groups, rather than the driving permissions through group-based role assignment requirement.

Question 12

A Cloud Run container performs memory-heavy request handling and slows dramatically when too many requests enter one instance at once. Which serverless setting should be reduced?

  1. Update Cloud Run concurrency setting
  2. Update Cloud Run maximum instances setting
  3. Roll back Cloud Run traffic
  4. Split Cloud Run revision traffic

Explanation

Correct Answer

A:

Cloud Run container concurrency limits the configured simultaneous requests per instance and affects how the platform distributes load and creates instances; this is the specific mechanism used for limiting simultaneous requests processed by each instance.

Incorrect Answers

B:

Cloud Run maximum instances configures an upper scaling limit while documented transient overages can occur and capacity limits are not a substitute for downstream protection; it is appropriate for setting the Cloud Run service maximum instance configuration; here, the deciding requirement is limiting simultaneous requests processed by each instance.

C:

Cloud Run can shift service traffic back to a previous retained revision without requiring another build; it would help with redirecting requests to a prior healthy revision, but it does not directly implement limiting simultaneous requests processed by each instance.

D:

Cloud Run traffic allocation assigns configured percentages to eligible service revisions; its operational role is testing a new revision against a small live traffic share; the needed capability is limiting simultaneous requests processed by each instance.

Question 13

An auditor asks for read-only visibility into one service, not unrelated resources. Which role-selection issue matters?

  1. Grant a predefined IAM role
  2. Avoid basic Owner role
  3. Use the basic Viewer role cautiously
  4. Create a custom IAM role
  5. Avoid basic Editor role

Explanation

Correct Answer

C:

Basic Viewer confers broad view access to many resource types rather than only one specific service; this is the capability needed for limiting the scope of broad read access.

Incorrect Answers

A:

Predefined roles contain Google-managed permission sets tailored to particular products and tasks; the supported outcome is assigning built-in least-privilege service permissions, while the requested result is limiting the scope of broad read access.

B:

Basic Owner grants sweeping project control and is rarely suitable for narrow operational tasks; that mechanism handles preventing excessive project control privileges; it does not configure limiting the scope of broad read access.

D:

Custom roles let eligible administrators define a chosen set of supported IAM permissions; the supported outcome is defining a selected IAM permission list, while the requested result is limiting the scope of broad read access.

E:

Basic Editor is a broad predefined-style basic role that can change many resources beyond a narrow task; that supports reducing broad write permissions; the problem to solve concerns limiting the scope of broad read access.

Question 14

Several Linux compute instances need a managed shared NFS file system with filesystem semantics. Which storage product fits?

  1. Use Filestore
  2. Use Memorystore
  3. Use Google Cloud NetApp Volumes
  4. Use Bigtable

Explanation

Correct Answer

A:

Filestore supplies managed NFS file systems that can be mounted by supported compute clients; that behavior is precisely what mounting managed shared file storage calls for.

Incorrect Answers

B:

Memorystore provides managed in-memory data-store options for caching and similar workloads; this governs operating a low-latency managed cache, whereas the stated objective is mounting managed shared file storage.

C:

Google Cloud NetApp Volumes offers managed enterprise file-storage capabilities and supported NFS or SMB protocols; the scenario specifies mounting managed shared file storage, which differs from deploying managed enterprise file shares.

D:

Bigtable is a managed wide-column database optimized for large key-based workloads and low-latency access; its purpose differs: serving key-oriented analytical or operational data at scale is separate from mounting managed shared file storage.

Question 15

A global limit would break unrelated teams; a specific department must inherit a control. Which policy placement best fits?

  1. Use Resource Manager tags
  2. Move the project to a different folder
  3. Set an organization policy at the folder
  4. Use the organization resource

Explanation

Correct Answer

C:

What matters is scoping an inherited constraint to a selected folder; A policy attached at a folder is inherited by descendants according to constraint rules without affecting unrelated sibling branches.

Incorrect Answers

A:

Resource Manager tags are centrally defined key-value bindings with policy integrations distinct from ordinary labels; its purpose differs: attaching policy-aware governed metadata to resources is separate from scoping an inherited constraint to a selected folder.

B:

Moving a project between eligible folders changes its ancestor path and inherited organization and IAM policies; Applying it would target changing the project's ancestor and inherited controls, leaving the separate need for scoping an inherited constraint to a selected folder.

D:

The organization node is the top governance resource associated with the company's identity domain; its operational role is establishing an organization-wide resource ancestor; the needed capability is scoping an inherited constraint to a selected folder.

Question 16

Versioning is enabled and a report was overwritten. Which resource should an operator retrieve?

  1. Use object holds
  2. Retrieve a noncurrent object generation
  3. Use generation preconditions for object writes
  4. Grant Storage Object Admin

Explanation

Correct Answer

B:

Object generations identify versions of the same object name when versioning retains noncurrent versions; its effect directly addresses accessing a previous object generation.

Incorrect Answers

A:

Object holds block eligible object deletion until the hold condition is cleared; it concerns pausing deletion of selected objects, and its normal effect does not provide accessing a previous object generation.

C:

Cloud Storage generation preconditions condition object mutations on expected generation values; that supports protecting against concurrent object updates; the problem to solve concerns accessing a previous object generation.

D:

Storage Object Admin grants object management permissions without inherently granting all project administration rights; it is relevant when performing full object-level data operations, not when the primary need is accessing a previous object generation.

Question 17

A compliance team wants selected audit log records continuously delivered to BigQuery. Which configuration moves them?

  1. Use uptime checks
  2. Use Logs Explorer
  3. Use a Logs Router sink
  4. Use Cloud Logging setup

Explanation

Correct Answer

C:

Log sinks use inclusion filters and destination permissions to route supported log entries from a configured scope; for the stated workload, the practical result is routing matched log entries to an export destination.

Incorrect Answers

A:

The alternative would address probing endpoint reachability automatically; Uptime checks periodically attempt supported protocol requests from distributed checkers and record availability results; the question instead requires routing matched log entries to an export destination.

B:

Logs Explorer supports interactive filtering, viewing and investigating entries in authorized log buckets; it is relevant when querying log entries with structured filters, not when the primary need is routing matched log entries to an export destination.

D:

Cloud Logging ingests and organizes supported resource and application logs into log buckets and views; this governs making cloud resource log entries queryable, whereas the stated objective is routing matched log entries to an export destination.

Question 18

An SRE wants an alert when a particular log pattern appears repeatedly. What feature bridges logs and Cloud Monitoring?

  1. Use Cloud Monitoring workspace scope
  2. Enable log-based metrics
  3. Use Cloud Logging setup
  4. Use Cloud Error Reporting
  5. Use Cloud Trace

Explanation

Correct Answer

B:

Log-based metrics derive metric values from matching log entries and can support dashboards or alerts; this is relevant because the outcome sought is measuring a filtered log event pattern.

Incorrect Answers

A:

Cloud Monitoring metrics scopes can make data from multiple monitored projects accessible in one scoping project; it concerns establishing multi-project metric visibility, and its normal effect does not provide measuring a filtered log event pattern.

C:

Cloud Logging ingests and organizes supported resource and application logs into log buckets and views; it is not the focused action for measuring a filtered log event pattern; its primary use is making cloud resource log entries queryable.

D:

This alternative focuses on grouping recurring application exceptions; Error Reporting groups recognized application errors and summarizes their frequency and impact; the stem instead asks for measuring a filtered log event pattern.

E:

For locating slow segments in distributed calls, this could be relevant; Cloud Trace collects and visualizes distributed request traces and span timings; the actual request concerns measuring a filtered log event pattern.

Question 19

A team needs SQL-based analysis of structured log data in supported log buckets, without building a separate manual export. Which capability fits?

  1. Use Log Analytics
  2. Use log-based distribution metric
  3. Configure log exclusions
  4. Create a log-based alert

Explanation

Correct Answer

A:

Log Analytics enables supported SQL analysis over eligible Cloud Logging buckets; its effect directly addresses querying supported logs using SQL analysis.

Incorrect Answers

B:

Distribution log-based metrics extract numerical values from log entries to record value distributions; its purpose differs: producing distribution metrics from extracted log values is separate from querying supported logs using SQL analysis.

C:

Logging exclusions and sink filters can prevent eligible entries from being routed to selected log buckets; that solves problems involving excluding unwanted log entries from storage routing, rather than the querying supported logs using SQL analysis requirement.

D:

Log-based alerting policies trigger incidents from log entries matching configured filters; its purpose differs: alerting when filtered logs appear is separate from querying supported logs using SQL analysis.

Question 20

An organization must send selected logs to a Cloud Storage bucket for retention outside the source project. Which logging mechanism fits?

  1. Use Cloud Monitoring workspace scope
  2. Use Logs Explorer
  3. Use a Logs Router sink
  4. Use Cloud Logging setup

Explanation

Correct Answer

C:

Log sinks use inclusion filters and destination permissions to route supported log entries from a configured scope; this is the specific mechanism used for exporting filtered log streams to a destination.

Incorrect Answers

A:

Cloud Monitoring metrics scopes can make data from multiple monitored projects accessible in one scoping project; it concerns establishing multi-project metric visibility, and its normal effect does not provide exporting filtered log streams to a destination.

B:

Logs Explorer supports interactive filtering, viewing and investigating entries in authorized log buckets; it is not the focused action for exporting filtered log streams to a destination; its primary use is filtering operational log records interactively.

D:

Cloud Logging ingests and organizes supported resource and application logs into log buckets and views; that supports centralizing and querying operational logs; the problem to solve concerns exporting filtered log streams to a destination.

Associate Cloud Engineer Practice Tests