Google Associate Cloud Engineer Practice Test 61

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.

Question 601

An application has business transactions per minute that native CPU and memory metrics do not capture. What should it publish?

  1. Use Monitoring notification channels
  2. Use log-based distribution metric
  3. Use linked BigQuery datasets for logs
  4. Configure Cloud Monitoring custom metrics

Explanation

Correct Answer

D:

Custom Cloud Monitoring metrics let applications write supported time-series values representing domain-specific behavior; this is relevant because the outcome sought is tracking application-specific numeric signals.

Incorrect Answers

A:

Notification channels identify targets for messages emitted by Monitoring alerting policies; that applies to routing incident notifications to recipients; the requested task is tracking application-specific numeric signals.

B:

Distribution log-based metrics extract numerical values from log entries to record value distributions; that supports producing distribution metrics from extracted log values; the problem to solve concerns tracking application-specific numeric signals.

C:

Linked BigQuery datasets can provide query access to supported Log Analytics bucket data; the decision here is about tracking application-specific numeric signals, not analyzing log bucket content from BigQuery.

Question 602

A security pipeline needs to receive matching audit entries from projects across the organization. At what routing level should it be configured?

  1. Use Cloud Error Reporting
  2. Use Cloud Trace
  3. Use Cloud Audit Logs
  4. Use an organization log sink
  5. Use an alerting notification channel

Explanation

Correct Answer

D:

Aggregated sinks at suitable resource ancestors can route descendant logs subject to sink configuration and permissions; this is the specific mechanism used for aggregating organization-wide log exports.

Incorrect Answers

A:

Error Reporting groups recognized application errors and summarizes their frequency and impact; it would help with grouping recurring application exceptions, but it does not directly implement aggregating organization-wide log exports.

B:

Cloud Trace collects and visualizes distributed request traces and span timings; that mechanism handles locating slow segments in distributed calls; it does not configure aggregating organization-wide log exports.

C:

Cloud Audit Logs records supported administrative and access activity with audit-log type distinctions; Applying it would target attributing administrative resource changes, leaving the separate need for aggregating organization-wide log exports.

E:

Notification channels specify supported endpoints to which alerting policies send incident notifications; the supported outcome is routing alert notifications to responders, while the requested result is aggregating organization-wide log exports.

Question 603

A BigQuery table is already partitioned by event_date. Analysts repeatedly submit unrestricted scans; the owner now wants queries without a usable filter on the partition column to fail. Which table option should be enabled?

  1. Automatic schema detection
  2. Clustering by event_date
  3. Require partition filter
  4. A larger query result cache

Explanation

Correct Answer

C:

When this flag is enabled, queries must contain a predicate usable to eliminate partitions. BigQuery rejects scans that omit the required partition filter.

Incorrect Answers

A:

Schema detection infers column definitions during supported ingestion. It does not require that analysts constrain reads to selected table partitions.

B:

Clustering can improve data organization within partitions but does not force every query to include an eligible partition-elimination predicate.

D:

The result cache may reuse eligible previous results, but it cannot enforce the presence of a partition-filter predicate in new SQL statements.

Question 604

A deployment altered a configuration file, and engineers need the prior bytes rather than the live generation. What object identifier matters?

  1. Configure Cloud Storage lifecycle deletion
  2. Configure Cloud Storage lifecycle class transition
  3. Retrieve a noncurrent object generation
  4. Enable bucket IAM with uniform access
  5. Use generation preconditions for object writes

Explanation

Correct Answer

C:

The requirement is selecting a saved historical object version; Object generations identify versions of the same object name when versioning retains noncurrent versions.

Incorrect Answers

A:

Cloud Storage lifecycle rules can remove objects when configured age or other conditions are satisfied; it is relevant when implementing age-based object cleanup, not when the primary need is selecting a saved historical object version.

B:

Lifecycle management can change eligible object storage class when matching conditions are met; the scenario specifies selecting a saved historical object version, which differs from transitioning aged objects to colder storage classes.

D:

Uniform bucket-level access disables object ACL enforcement in favor of IAM evaluation; this is a distinct control for enforcing centralized IAM control of bucket objects, rather than selecting a saved historical object version.

E:

Cloud Storage generation preconditions condition object mutations on expected generation values; that solves problems involving enforcing optimistic write concurrency, rather than the selecting a saved historical object version requirement.

Question 605

A central security auditor requires a supported role across every project of the organization. Which binding scope fits?

  1. Use Principal Access Boundary policies
  2. Bind IAM role at organization scope
  3. Use IAM deny policies
  4. Use the basic Viewer role cautiously

Explanation

Correct Answer

B:

Organization-level IAM allow bindings generally propagate to eligible child resources; that behavior is precisely what granting organization-wide audit access calls for.

Incorrect Answers

A:

Principal Access Boundary policies constrain access to supported resources within defined boundaries under applicable enforcement rules; the scenario specifies granting organization-wide audit access, which differs from constraining the resource scope available to principals.

C:

IAM deny policies can block eligible permissions for matching principals despite otherwise applicable allow grants; the supported outcome is enforcing an explicit permission denial, while the requested result is granting organization-wide audit access.

D:

Basic Viewer confers broad view access to many resource types rather than only one specific service; its operational role is limiting the scope of broad read access; the needed capability is granting organization-wide audit access.

Question 606

A traffic spike requires four application replicas instead of two, and autoscaling is not enabled. What should be modified?

  1. Add a GKE node pool
  2. Scale a Kubernetes Deployment replica count
  3. Use kubectl rollout undo
  4. Use Kubernetes StatefulSet

Explanation

Correct Answer

B:

What matters is adjusting the workload replica target; the Deployment replicas setting controls desired Pod replicas managed through ReplicaSets.

Incorrect Answers

A:

This alternative focuses on creating a workload-specific node pool; GKE Standard node pools group nodes with common machine and node configuration settings; the stem instead asks for adjusting the workload replica target.

C:

Kubectl rollout undo can revert supported Deployment rollouts to a previous revision; the decision here is about adjusting the workload replica target, not reversing a faulty Kubernetes rollout.

D:

StatefulSets provide stable Pod identities and ordered management suitable for stateful applications; it would help with operating stateful Kubernetes Pods, but it does not directly implement adjusting the workload replica target.

Question 607

A security administrator wants to discover which principals have access to a particular resource across complex inherited grants. Which analysis capability helps?

  1. Use resource inventory export to BigQuery
  2. Use IAM policy analyzer
  3. Use organization-level Cloud Asset Inventory search
  4. Use IAM inheritance reasoning
  5. Use the immutable project number

Explanation

Correct Answer

B:

Policy Analyzer uses Cloud Asset Inventory data to examine which identities can access resources through policy bindings; this is the specific mechanism used for analyzing effective IAM access paths.

Incorrect Answers

A:

Cloud Asset Inventory supports exporting eligible asset data to BigQuery for structured reporting; it would help with making asset metadata available to SQL analysis, but it does not directly implement analyzing effective IAM access paths.

C:

The alternative would address searching assets across a hierarchy ancestor; Cloud Asset Inventory searches can target supported ancestor scopes including organizations and folders; the question instead requires analyzing effective IAM access paths.

D:

IAM allow-policy grants at higher resource scopes generally propagate to descendant resources; its operational role is recognizing IAM role inheritance through hierarchy; the needed capability is analyzing effective IAM access paths.

E:

The project number is a Google-assigned numeric identifier distinct from a user-selected project ID; that solves problems involving identifying a project by its numeric number, rather than the analyzing effective IAM access paths requirement.

Question 608

An enterprise maintains staff groups in an external identity directory; those synchronized members must inherit cloud project permissions through one principal. Choose TWO pieces of setup.

  1. Use an IAM policy binding to a group
  2. Use Cloud Identity administrative console
  3. Grant IAM role on the project
  4. Configure group synchronization
  5. Use the least-privilege predefined IAM role

Explanation

Correct Answers

A:

An IAM policy can bind a role to a group principal so members receive its permissions through membership; within the multi-part workflow of synchronizing external group members and granting group-based access, this provides granting access to a group principal.

D:

Directory synchronization keeps supported Google identities and group records aligned with a source directory; within the multi-part workflow of synchronizing external group members and granting group-based access, this provides keeping cloud groups aligned with an authoritative directory.

Incorrect Answers

B:

The Google Admin console manages supported Cloud Identity directory users, groups and account settings; the question is specifically about synchronizing external group members and granting group-based access, rather than administering directory users and groups.

C:

Project-level IAM bindings authorize principals in that project and can inherit from ancestors, which supports limiting a role binding to one project; the needed outcome is synchronizing external group members and granting group-based access.

E:

Predefined service roles offer narrower permission sets than broad basic roles when suitable; it is designed for granting only the service-specific read permissions required, rather than the needed synchronizing external group members and granting group-based access.

Question 609

A golden machine's OS state must seed new VM creation in several projects where shared access is configured. What image operation helps?

  1. Create a custom image from a disk
  2. Change a VM machine type
  3. Create a disk snapshot
  4. Diagnose OS Login IAM roles

Explanation

Correct Answer

A:

Custom Compute Engine images provide reusable disk source content for new boot disks; this is relevant because the outcome sought is turning an approved disk state into a reusable image.

Incorrect Answers

B:

VM machine types control vCPU and memory allocations; changing types commonly requires stopping an eligible VM; that mechanism handles resizing VM compute capacity; it does not configure turning an approved disk state into a reusable image.

C:

This alternative focuses on protecting attached persistent data with snapshots; Persistent disk snapshots preserve block-level disk contents and can be used to create recovery disks; the stem instead asks for turning an approved disk state into a reusable image.

D:

OS Login uses IAM roles and identities for VM SSH access, superseding metadata-managed key access when enabled; its operational role is authorizing OS Login rather than legacy metadata keys; the needed capability is turning an approved disk state into a reusable image.

Question 610

An application must issue temporary object download links to external users without granting bucket IAM roles to each visitor. What authorization pattern helps?

  1. Use service account IAM on target bucket
  2. Grant service account token creator
  3. Use signed URL delegation with service account
  4. Use service account organization policy enforcement

Explanation

Correct Answer

C:

Authorized service account signing can generate Cloud Storage signed URLs for temporary operation-specific access; that matches the requirement for delegating bounded object download access.

Incorrect Answers

A:

Bucket-level role binding can grant object permissions to a workload without broad project-wide storage access; the supported outcome is restricting a workload principal to one data resource, while the requested result is delegating bounded object download access.

B:

Service Account Token Creator enables supported token or signature operations for a target service account; that applies to authorizing ephemeral impersonation credentials; the requested task is delegating bounded object download access.

D:

Organization policy constraints can restrict supported service-account key operations across hierarchy scopes; it is relevant when using inherited organization policy for credential creation, not when the primary need is delegating bounded object download access.

Associate Cloud Engineer Practice Tests