Google Associate Cloud Engineer Practice Test 52

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.

Question 511

A shared dataset publisher wants downstream consumers to pay eligible access and egress-related charges rather than the bucket owner. What setting helps?

  1. Use Storage Transfer Service agents
  2. Use Cloud Storage versioning
  3. Use a Cloud Storage retention policy
  4. Use Cloud Storage requester pays

Explanation

Correct Answer

D:

Requester Pays assigns specified access and network charges to the requester-supplied billing project; this is the specific mechanism used for charging eligible data access costs to requesters.

Incorrect Answers

A:

Storage Transfer Service agents can read supported on-premises file systems for transfer jobs; the supported outcome is connecting file-system sources to managed transfers, while the requested result is charging eligible data access costs to requesters.

B:

Object Versioning retains noncurrent object generations until explicitly removed or lifecycle-managed; that mechanism handles recovering overwritten object versions; it does not configure charging eligible data access costs to requesters.

C:

Bucket retention policies enforce minimum retention periods for supported objects and can be locked for stronger controls; that applies to enforcing minimum retention for objects; the requested task is charging eligible data access costs to requesters.

Question 512

An SRE needs a time series counting occurrences of a particular application log signature. Which logging construct fits?

  1. Create a Logs Router sink to BigQuery
  2. Create a metric-threshold alert
  3. Create a log-based alert
  4. Use log-based counter metric

Explanation

Correct Answer

D:

Counter log-based metrics count matching Cloud Logging entries and can be charted or alerted on; the decisive property here is counting matched log records over time.

Incorrect Answers

A:

Logs Router sinks select entries using filters and export to authorized supported destinations; its purpose differs: streaming matching log records to analytics storage is separate from counting matched log records over time.

B:

Metric-threshold conditions compare time series with configured values and duration windows; the scenario specifies counting matched log records over time, which differs from detecting sustained monitoring metric breaches.

C:

Log-based alerting policies trigger incidents from log entries matching configured filters; it is not the focused action for counting matched log records over time; its primary use is generating incidents from matching log events.

Question 513

A persistent disk's content was corrupted and a known-good point-in-time snapshot is available. What recovery action is appropriate?

  1. Create a custom image from a disk
  2. Restore a new disk from a snapshot
  3. Schedule disk snapshots
  4. Resize a persistent disk

Explanation

Correct Answer

B:

A snapshot can be the source for creating a new compatible disk, enabling recovery workflows; Applied in this case, it delivers recovering persistent data onto a replacement disk.

Incorrect Answers

A:

Custom Compute Engine images provide reusable disk source content for new boot disks; that supports preparing reusable VM boot images; the problem to solve concerns recovering persistent data onto a replacement disk.

C:

Resource policies can schedule eligible persistent disk snapshots and manage their retention; it is not the focused action for recovering persistent data onto a replacement disk; its primary use is automating regular persistent disk snapshots.

D:

Persistent disks can be expanded subject to limits, with guest partition or filesystem growth often still required; it is appropriate for increasing allocated disk capacity; here, the deciding requirement is recovering persistent data onto a replacement disk.

Question 514

An ERP installer needs direct SSH access and control of machine software packages. Which execution environment should host it?

  1. Use batch jobs on Google Cloud Batch
  2. Choose Cloud Run services
  3. Choose Cloud Run functions
  4. Choose Compute Engine VMs

Explanation

Correct Answer

D:

Compute Engine provides infrastructure virtual machines with guest OS control and configurable attached storage; the decisive property here is controlling the operating system and VM runtime.

Incorrect Answers

A:

Google Cloud Batch schedules and executes batch workloads on managed Compute Engine resources; it is appropriate for scheduling compute jobs that finish and exit; here, the deciding requirement is controlling the operating system and VM runtime.

B:

Cloud Run hosts container services with managed request routing and configurable instance scaling; that mechanism handles serving HTTP traffic on managed serverless containers; it does not configure controlling the operating system and VM runtime.

C:

Cloud Run functions supports managed function deployments with event integration and request-based execution; this is a distinct control for executing short event-oriented application code, rather than controlling the operating system and VM runtime.

Question 515

A serverless canary reports serious errors. Which change restores the stable release without rebuilding its container?

  1. Roll back Cloud Run traffic
  2. Check Cloud Run revision logs
  3. Deploy a new Cloud Run revision
  4. Configure Cloud Run request timeout

Explanation

Correct Answer

A:

The requested administrative outcome is reverting request routing to an earlier Cloud Run revision; Cloud Run can shift service traffic back to a previous retained revision without requiring another build.

Incorrect Answers

B:

Cloud Run integrates request and container logs with Cloud Logging for revision-focused diagnosis; the supported outcome is examining logs attached to a Cloud Run revision, while the requested result is reverting request routing to an earlier Cloud Run revision.

C:

Deploying changes to a Cloud Run service creates a revision representing its immutable code and configuration; that applies to versioning Cloud Run service configuration; the requested task is reverting request routing to an earlier Cloud Run revision.

D:

Cloud Run's request timeout bounds each service request and can be increased within supported limits; it is relevant when allowing longer supported Cloud Run HTTP processing, not when the primary need is reverting request routing to an earlier Cloud Run revision.

Question 516

Finance needs both a forecast-based warning before a monthly budget is exceeded and detailed cost records that analysts can query with SQL. Choose TWO configurations that satisfy the separate requirements.

  1. Configure billing export to BigQuery
  2. Use billing account cost reports
  3. Use billing budgets with forecast thresholds
  4. Use billing cost table reports
  5. Use the Google Cloud pricing calculator

Explanation

Correct Answers

A:

Cloud Billing exports send selected cost and pricing information to BigQuery datasets for analysis; within the multi-part workflow of receiving forecast budget alerts and querying detailed cost records, this provides making Cloud Billing data queryable in BigQuery.

C:

Budget alerts can use forecasted spend to notify stakeholders before actual charges cross a threshold; within the multi-part workflow of receiving forecast budget alerts and querying detailed cost records, this provides alerting based on forecast rather than incurred costs.

Incorrect Answers

B:

Cloud Billing Reports offers cost visualization and filtering without first creating a custom data warehouse, which serves analyzing spend in the Billing Reports interface instead of receiving forecast budget alerts and querying detailed cost records.

D:

The Cost table provides tabular cost records and invoice-oriented analysis for supported billing accounts; the question is specifically about receiving forecast budget alerts and querying detailed cost records, rather than reconciling invoiced charges and credits.

E:

The pricing calculator estimates charges from specified product usage assumptions and published price structures, which supports estimating predeployment cloud cost; the needed outcome is receiving forecast budget alerts and querying detailed cost records.

Question 517

A Pub/Sub producer publishes messages once, but three independent services each need their own delivery progress and acknowledgments. Which design gives each service a separate stream of deliveries from the same topic?

  1. Create a separate subscription to the topic for each consuming service
  2. Give all services the same subscription without a shared cursor plan
  3. Store the events only as Cloud Storage objects
  4. Increase the producer's CPU allocation

Explanation

Correct Answer

A:

Each subscription independently tracks message delivery and acknowledgments. Separate subscriptions let all three consumer services receive the published events instead of competing on one subscription.

Incorrect Answers

B:

Subscribers sharing one subscription divide delivered messages among themselves rather than each service receiving its own complete stream.

C:

Objects provide durable storage but do not automatically provide independent Pub/Sub acknowledgment state for the three consumer applications.

D:

Publisher compute capacity does not create independent delivery state; the required separation lives in Pub/Sub subscription resources.

Question 518

Old temporary exports should be deleted automatically after a defined age. Which bucket configuration achieves this?

  1. Configure Cloud Storage lifecycle rules
  2. Choose Cloud Storage Nearline
  3. Choose Cloud Storage Coldline
  4. Use a multi-region Cloud Storage bucket

Explanation

Correct Answer

A:

Object lifecycle management evaluates configured conditions and applies supported storage class transitions or deletions; Applied in this case, it delivers automatically deleting aged objects.

Incorrect Answers

B:

Nearline targets infrequently accessed objects with retrieval charges and a minimum storage duration; that applies to using a nearline object tier for monthly retrieval; the requested task is automatically deleting aged objects.

C:

Coldline is for very infrequently accessed objects with retrieval charges and longer minimum duration; the supported outcome is economically storing quarterly accessed data, while the requested result is automatically deleting aged objects.

D:

Cloud Storage multi-region locations store object data using Google's supported multi-region placement and redundancy model; that applies to selecting multi-region object storage; the requested task is automatically deleting aged objects.

Question 519

A Kubernetes workload should authenticate to Google Cloud APIs with an account designed for its own service. What configuration model fits?

  1. Grant workload identity user for federation
  2. Use Workforce Identity Federation
  3. Use service account impersonation with gcloud
  4. Bind GKE workload identity to IAM

Explanation

Correct Answer

D:

Workload Identity Federation for GKE establishes workload identities that receive supported IAM access without embedded private keys; this is relevant because the outcome sought is connecting GKE workload identity to cloud IAM permissions.

Incorrect Answers

A:

Workload Identity User can permit eligible federated identities to access a target service account through supported federation flows; that solves problems involving permitting trusted workload federation to impersonate target identity, rather than the connecting GKE workload identity to cloud IAM permissions requirement.

B:

Workforce Identity Federation lets external workforce identities access supported Google Cloud resources through configured identity pools and providers; it concerns federating workforce identities for cloud administration, and its normal effect does not provide connecting GKE workload identity to cloud IAM permissions.

C:

Gcloud supports service-account impersonation flags to request short-lived credentials when authorized; the decision here is about connecting GKE workload identity to cloud IAM permissions, not using controlled per-command service-account impersonation.

Question 520

A team wants automatic recurring persistent-disk recovery points and the ability to provision a replacement disk from those snapshots after a failure. Choose TWO capabilities.

  1. Restore a new disk from a snapshot
  2. Schedule disk snapshots
  3. Create a custom image from a disk
  4. Create a disk snapshot
  5. Resize a persistent disk

Explanation

Correct Answers

A:

A snapshot can be the source for creating a new compatible disk, enabling recovery workflows; within the multi-part workflow of scheduling persistent disk backups and restoring a replacement disk, this provides recovering persistent data onto a replacement disk.

B:

Resource policies can schedule eligible persistent disk snapshots and manage their retention; within the multi-part workflow of scheduling persistent disk backups and restoring a replacement disk, this provides automating regular persistent disk snapshots.

Incorrect Answers

C:

Custom Compute Engine images provide reusable disk source content for new boot disks; it is designed for preparing reusable VM boot images, rather than the needed scheduling persistent disk backups and restoring a replacement disk.

D:

Persistent disk snapshots preserve block-level disk contents and can be used to create recovery disks, which serves capturing persistent disk data for recovery instead of scheduling persistent disk backups and restoring a replacement disk.

E:

Persistent disks can be expanded subject to limits, with guest partition or filesystem growth often still required; the mechanism concerns expanding an existing persistent disk and does not directly supply scheduling persistent disk backups and restoring a replacement disk.

Associate Cloud Engineer Practice Tests