Google Associate Cloud Engineer Practice Test 51

Question 500

An old application has retired, but its privileged service account still exists and must not authenticate. What administrative action helps?

  1. Use service-account-level IAM policy
  2. Grant service account user role for attachment
  3. Avoid exporting service account keys
  4. Disable unused service account

Explanation

Correct Answer

D:

The requested administrative outcome is blocking authentication by an abandoned workload identity; Disabling a service account blocks its use without immediately deleting the identity and associated metadata.

Incorrect Answers

A:

A service account is an IAM resource with its own allow policy for controlling who can use or manage it; this is a distinct control for delegating access to exactly one service account, rather than blocking authentication by an abandoned workload identity.

B:

Service Account User includes the iam.serviceAccounts.actAs permission used for attaching a service account to supported resources; that solves problems involving granting actAs rights for a target service account, rather than the blocking authentication by an abandoned workload identity requirement.

C:

Managed service-account credentials are generally safer than downloadable private keys because the platform supplies short-lived tokens; it is relevant when avoiding unnecessary long-lived private keys, not when the primary need is blocking authentication by an abandoned workload identity.

Question 501

An engineer's direct IAM role was removed from a project, but the engineer still retains access through membership in a Google group. What is the appropriate remediation if no other work requires that group membership?

  1. Remove the engineer from the privileged group
  2. Disable the affected Google Cloud API
  3. Change the project display name
  4. Delete the project's billing account

Explanation

Correct Answer

A:

IAM permissions can arrive through Google group membership as well as direct principal bindings. Removing the user from the privileged group eliminates that group-derived grant path, subject to propagation.

Incorrect Answers

B:

Disabling a product API affects the whole workload and does not address an unnecessary IAM grant derived from a group membership.

C:

Renaming a project label does not alter the identities, groups, or policies that Google Cloud evaluates for access to its resources.

D:

Billing configuration is a separate control plane and is not the correct way to revoke a person's membership-derived IAM permissions.

Question 502

A log archive should transition eligible objects to colder storage as they age. What policy mechanism fits?

  1. Configure Cloud Storage lifecycle rules
  2. Choose Cloud Storage Coldline
  3. Use Cloud Storage soft delete
  4. Use Cloud Storage versioning

Explanation

Correct Answer

A:

Object lifecycle management evaluates configured conditions and applies supported storage class transitions or deletions; this is the specific mechanism used for applying time-driven object lifecycle actions.

Incorrect Answers

B:

Coldline is for very infrequently accessed objects with retrieval charges and longer minimum duration; this is a distinct control for economically storing quarterly accessed data, rather than applying time-driven object lifecycle actions.

C:

Soft delete retains eligible deleted object data for a configurable period to allow restoration; Applying it would target temporarily retaining deleted object data, leaving the separate need for applying time-driven object lifecycle actions.

D:

Object Versioning retains noncurrent object generations until explicitly removed or lifecycle-managed; that solves problems involving retaining earlier object generations, rather than the applying time-driven object lifecycle actions requirement.

Question 503

An application currently reports only aggregate CPU metrics, but developers need repeated sampled CPU profiles from its own runtime to inspect function-level hotspots. What instrumentation step may be necessary for a supported application environment?

  1. Create a Cloud Billing budget alert
  2. Add a Logs Router exclusion filter
  3. Integrate the supported Cloud Profiler agent or client library
  4. Change the Compute Engine machine name

Explanation

Correct Answer

C:

Cloud Profiler collects sampling profiles from supported workloads through the relevant runtime agent or instrumentation. The collected profiles reveal function-level CPU or memory behavior beyond aggregate resource charts.

Incorrect Answers

A:

A budget alert observes spending thresholds and does not capture application call stacks or CPU profiling samples from an instrumented runtime.

B:

Filtering unwanted log entries changes log routing and retention, not the collection of sampling profiler data from code execution.

D:

Machine naming is administrative metadata and does not instrument application functions to emit profiling samples.

Question 504

A scheduled nightly batch should import eligible CSV or Parquet objects into analytics storage. What ingestion approach applies?

  1. Use Pub/Sub dead-letter topics
  2. Use BigQuery load job from Cloud Storage
  3. Use a multi-region Cloud Storage bucket
  4. Use BigQuery dataset location
  5. Use Memorystore

Explanation

Correct Answer

B:

The scenario depends on ingesting object files through warehouse load jobs; BigQuery load jobs read supported source objects and create or append data in destination tables.

Incorrect Answers

A:

Pub/Sub subscriptions can use dead-letter policies to forward messages after configured delivery attempts; that solves problems involving routing repeatedly unacknowledged messages to a dead-letter destination, rather than the ingesting object files through warehouse load jobs requirement.

C:

Cloud Storage multi-region locations store object data using Google's supported multi-region placement and redundancy model; it is relevant when selecting multi-region object storage, not when the primary need is ingesting object files through warehouse load jobs.

D:

BigQuery datasets have assigned locations that constrain storage and many job operations; its operational role is aligning location requirements for analytics jobs; the needed capability is ingesting object files through warehouse load jobs.

E:

Memorystore provides managed in-memory data-store options for caching and similar workloads; that applies to operating a low-latency managed cache; the requested task is ingesting object files through warehouse load jobs.

Question 505

A proposal compares two prospective deployment footprints without any actual usage data yet. What calculation approach is suitable?

  1. Use cost anomaly detection
  2. Use committed use discounts
  3. Use the Google Cloud pricing calculator
  4. Configure billing export of pricing data

Explanation

Correct Answer

C:

The pricing calculator estimates charges from specified product usage assumptions and published price structures; it supports forecasting pricing from planned resource choices at the appropriate resource scope.

Incorrect Answers

A:

Cloud Billing cost anomaly detection identifies unusual cost changes using billing spending signals; Applying it would target surfacing anomalous billing behavior, leaving the separate need for forecasting pricing from planned resource choices.

B:

Committed use discounts reduce eligible on-demand cost in exchange for a qualifying commitment; this is a distinct control for discounting predictable eligible usage through commitment, rather than forecasting pricing from planned resource choices.

D:

The alternative would address retrieving price-list data programmatically; Pricing exports provide pricing-related records to BigQuery separately from detailed usage cost exports; the question instead requires forecasting pricing from planned resource choices.

Question 506

A Pub/Sub dead-letter topic exists, but poison messages continue retrying on the main subscription. The engineer must determine how many delivery attempts to allow before forwarding. Where should this maximum-attempt policy be configured?

  1. On the original Pub/Sub topic
  2. On each individual publisher client
  3. On the Pub/Sub subscription dead-letter policy
  4. On the subscription's BigQuery export table

Explanation

Correct Answer

C:

Dead-letter forwarding is a subscription property. Its maximum-delivery-attempts setting specifies the approximate retry threshold before forwarding an unacknowledged message to the configured topic.

Incorrect Answers

A:

The publishing topic accepts messages from producers, but delivery-attempt tracking and dead-letter forwarding are controlled by the receiving subscription.

B:

Publishers supply the original message; they do not control the subscriber's acknowledgment failures or its dead-letter delivery-attempt threshold.

D:

A BigQuery export table is a storage destination, not the Pub/Sub setting that determines when delivery attempts trigger dead-letter forwarding.

Question 507

A VM must attach a zonal persistent disk already created in a specific zone. Which placement consideration is essential?

  1. Check a quota in Quotas & System Limits
  2. Use a support case for quota constraints
  3. Use service quotas proactively
  4. Select a compatible zone for zonal resources

Explanation

Correct Answer

D:

Zonal compute and zonal disks must be placed in compatible zones to attach directly; its effect directly addresses matching VM and disk zones.

Incorrect Answers

A:

The alternative would address diagnosing a project-level quota limit; Quotas and System Limits surfaces supported quota consumption, values and adjustable limits; the question instead requires matching VM and disk zones.

B:

Google Cloud support can clarify policy and capacity options, although some system limits are not adjustable; the scenario specifies matching VM and disk zones, which differs from requesting provider clarification on non-adjustable limits.

C:

Service quotas impose consumption limits that may need review or adjustment before substantial growth; its operational role is checking whether planned load exceeds project limits; the needed capability is matching VM and disk zones.

Question 508

A decommissioned integration has no remaining workload dependency and its identity should be removed from the environment. Which action fits?

  1. Grant target resource role to service account
  2. Delete obsolete service account
  3. Use service account impersonation with gcloud
  4. Rotate compromised service account key

Explanation

Correct Answer

B:

Deleting a service account removes its identity; accidental deletion may have limited recovery options and affect dependencies; that matches the requirement for removing a retired nonhuman identity.

Incorrect Answers

A:

Attaching an account establishes identity but the service account still needs IAM permissions on the resources it accesses; that applies to authorizing the account on the target resource; the requested task is removing a retired nonhuman identity.

C:

Gcloud supports service-account impersonation flags to request short-lived credentials when authorized; the supported outcome is temporarily running a command under service-account identity, while the requested result is removing a retired nonhuman identity.

D:

Deleting or disabling compromised user-managed service-account keys prevents further authentication with those keys; it is not the focused action for removing a retired nonhuman identity; its primary use is revoking a compromised service-account key.

Question 509

One VM in a managed instance group becomes unhealthy and should be replaced automatically based on a health check. What should be configured?

  1. Use VM reservation
  2. Choose a managed instance group
  3. Use a regional managed instance group
  4. Configure MIG autohealing

Explanation

Correct Answer

D:

What matters is recreating unhealthy managed instances; Autohealing uses configured health checks to trigger replacement of unhealthy MIG instances.

Incorrect Answers

A:

The alternative would address reserving zonal VM capacity for a deployment; Compute Engine reservations allocate qualifying VM capacity in a zone independently of starting instances; the question instead requires recreating unhealthy managed instances.

B:

Managed instance groups create and maintain VM replicas using instance templates and optional autoscaling and autohealing; the supported outcome is maintaining desired replicas from a shared template, while the requested result is recreating unhealthy managed instances.

C:

Regional managed instance groups distribute members across multiple zones in a region for availability; the supported outcome is distributing managed VM replicas among zones, while the requested result is recreating unhealthy managed instances.

Question 510

An audit script can list Cloud Storage objects in a bucket but receives a permission error when downloading their bytes. Its custom role includes storage.objects.list only. Which permission must be added to permit downloads without granting object modification?

  1. storage.objects.delete
  2. storage.objects.get
  3. storage.buckets.create
  4. storage.objects.create

Explanation

Correct Answer

B:

The storage.objects.get permission permits reading an object’s content and metadata. Paired with storage.objects.list, it supports discovery and download without object write or delete privileges.

Incorrect Answers

A:

Delete authorizes removing objects and is not required for downloading object bytes. Adding it unnecessarily expands the audit script’s destructive capabilities.

C:

Creating new buckets is an administrative action unrelated to fetching the content of an object already present in an authorized bucket.

D:

Object creation allows writing new objects; it does not grant reading the bytes of an existing object and would violate the requested read-only security boundary.

Associate Cloud Engineer Practice Tests