Google Associate Cloud Engineer Practice Test 46

Question 450

A finance analyst needs visibility into payer charges but should not administer VMs or databases. What permission model governs the payer?

  1. Use billing account IAM roles
  2. Configure billing export to BigQuery
  3. Link a project to a billing account
  4. Use billing account export permissions

Explanation

Correct Answer

A:

The requirement is granting billing access independently of project resources; Billing-account IAM permissions control access to financial data and payer operations separately from project IAM.

Incorrect Answers

B:

Cloud Billing exports send selected cost and pricing information to BigQuery datasets for analysis; that applies to exporting billing records for warehouse analysis; the requested task is granting billing access independently of project resources.

C:

A project must be linked to an active billing account to consume many chargeable services; that mechanism handles associating the project with an active payer; it does not configure granting billing access independently of project resources.

D:

Setting up a Cloud Billing export requires suitable billing account access and BigQuery destination permissions; that applies to separating export configuration rights from dataset query rights; the requested task is granting billing access independently of project resources.

Question 451

A small event handler should execute code when a supported Cloud Storage event arrives, without operating a server. Which runtime is a strong fit?

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

Explanation

Correct Answer

C:

Cloud Run functions supports managed function deployments with event integration and request-based execution; that behavior is precisely what processing events with managed functions calls for.

Incorrect Answers

A:

Google Cloud Batch schedules and executes batch workloads on managed Compute Engine resources; Applying it would target orchestrating finite parallel batch jobs, leaving the separate need for processing events with managed functions.

B:

Compute Engine provides infrastructure virtual machines with guest OS control and configurable attached storage; the supported outcome is controlling the operating system and VM runtime, while the requested result is processing events with managed functions.

D:

GKE Standard runs Kubernetes with user-managed node pools and more infrastructure configuration control; this governs administering GKE infrastructure settings directly, whereas the stated objective is processing events with managed functions.

Question 452

A federated external workload has a valid pool principal but cannot access a specific target service account. What binding is required for supported impersonation?

  1. Use IAM service-account impersonation roles
  2. Grant Cloud Run Invoker
  3. Grant workload identity user for federation
  4. Use GKE Kubernetes service accounts

Explanation

Correct Answer

C:

Workload Identity User can permit eligible federated identities to access a target service account through supported federation flows; that behavior is precisely what authorizing federated principals to use a service account calls for.

Incorrect Answers

A:

Service account impersonation lets authorized principals mint short-lived credentials for an account using supported IAM roles; its purpose differs: allowing time-limited identity impersonation is separate from authorizing federated principals to use a service account.

B:

Cloud Run Invoker grants permission to invoke eligible Cloud Run services subject to authentication and ingress controls; this is a distinct control for permitting selected callers to invoke Cloud Run, rather than authorizing federated principals to use a service account.

D:

Kubernetes ServiceAccounts identify workloads to the Kubernetes API and can participate in GKE workload identity integrations; it is relevant when using a dedicated Kubernetes service-account principal, not when the primary need is authorizing federated principals to use a service account.

Question 453

A subscription must replay a range of previously retained messages during recovery. Which capability should be evaluated?

  1. Use Pub/Sub acknowledgement
  2. Use Pub/Sub seek or snapshot
  3. Use BigQuery clustered tables
  4. Use BigQuery partitioned tables

Explanation

Correct Answer

B:

Pub/Sub seek and snapshots support eligible replay or subscription position recovery within retention constraints; its effect directly addresses replaying retained subscription messages.

Incorrect Answers

A:

The alternative would address acknowledging successfully processed messages; Pub/Sub acknowledgements mark delivered messages as handled for that subscription under applicable delivery guarantees; the question instead requires replaying retained subscription messages.

C:

BigQuery clustering organizes storage blocks by selected columns to improve eligible query pruning; it is not the focused action for replaying retained subscription messages; its primary use is organizing warehouse storage for selective queries.

D:

Partitioned BigQuery tables organize rows into partitions that can be pruned by appropriate filters; that supports reducing scan volume with partition elimination; the problem to solve concerns replaying retained subscription messages.

Question 454

A governance automation must act on billing budget events rather than rely on emails. Which notification configuration supports this?

  1. Apply labels for cost attribution
  2. Use billing account cost reports
  3. Use billing budgets with forecast thresholds
  4. Configure budget Pub/Sub notifications

Explanation

Correct Answer

D:

Budget notifications can be published through Pub/Sub for downstream automation to process; the decisive property here is publishing budget alerts to an automation topic.

Incorrect Answers

A:

Supported labels can be surfaced in billing exports and filters to allocate eligible costs; its operational role is grouping labeled resource cost records; the needed capability is publishing budget alerts to an automation topic.

B:

Cloud Billing Reports offers cost visualization and filtering without first creating a custom data warehouse; it would help with filtering visual cloud billing reports, but it does not directly implement publishing budget alerts to an automation topic.

C:

Budget alerts can use forecasted spend to notify stakeholders before actual charges cross a threshold; that applies to alerting based on forecast rather than incurred costs; the requested task is publishing budget alerts to an automation topic.

Question 455

Developers need Pods and Services but prefer a managed GKE operational model with Pod-based resource requests. Which approach is relevant?

  1. Choose GKE Autopilot
  2. Use Artifact Registry
  3. Use Workload Identity Federation for GKE
  4. Use a GKE regional cluster

Explanation

Correct Answer

A:

The requested administrative outcome is deploying Kubernetes workloads without self-managed node pools; GKE Autopilot automates many cluster and node infrastructure tasks while retaining Kubernetes workload interfaces.

Incorrect Answers

B:

Artifact Registry stores supported packages and container images in access-controlled repositories; the decision here is about deploying Kubernetes workloads without self-managed node pools, not storing and distributing container artifacts.

C:

Workload Identity Federation for GKE provides identity federation for workloads to access Google Cloud APIs; its purpose differs: mapping Pod identities to Google Cloud permissions is separate from deploying Kubernetes workloads without self-managed node pools.

D:

Regional GKE clusters replicate supported control-plane and node components across multiple zones; that applies to reducing single-zone GKE dependency; the requested task is deploying Kubernetes workloads without self-managed node pools.

Question 456

An infrequently read dataset must remain available without long archival restore delays. Which access class is a candidate?

  1. Configure Cloud Storage Autoclass
  2. Choose Cloud Storage Coldline
  3. Choose Cloud Storage Nearline
  4. Choose Cloud Storage Archive

Explanation

Correct Answer

C:

Nearline targets infrequently accessed objects with retrieval charges and a minimum storage duration; its effect directly addresses using a nearline object tier for monthly retrieval.

Incorrect Answers

A:

Autoclass automatically manages eligible object storage classes based on access patterns and policy rules; that supports adapting object class based on observed access; the problem to solve concerns using a nearline object tier for monthly retrieval.

B:

Coldline is for very infrequently accessed objects with retrieval charges and longer minimum duration; it concerns economically storing quarterly accessed data, and its normal effect does not provide using a nearline object tier for monthly retrieval.

D:

The alternative would address storing long-term rarely retrieved objects; Archive is the coldest Cloud Storage class with retrieval charges and minimum storage duration but online object availability; the question instead requires using a nearline object tier for monthly retrieval.

Question 457

A Cloud SQL for PostgreSQL Enterprise Plus instance already has Query Insights enabled. The team wants suggestions for CREATE INDEX statements based on observed queries. Which feature should it consult?

  1. Use Database Center
  2. Use Cloud SQL Query Insights
  3. Use Cloud SQL Enterprise Plus index advisor
  4. Use Cloud SQL import from Cloud Storage
  5. Use Cloud SQL export to Cloud Storage
  6. Use Firestore scheduled backups

Explanation

Correct Answer

C:

Cloud SQL index advisor generates index recommendations on supported Enterprise Plus instances with the required Query Insights features enabled; that matches the requirement for getting index recommendations from a supported Enterprise Plus instance.

Incorrect Answers

A:

Database Center offers fleet-level information and insights for supported Google Cloud database services; this governs observing a fleet of cloud databases, whereas the stated objective is getting index recommendations from a supported Enterprise Plus instance.

B:

Cloud SQL Query Insights provides query-centric performance analysis and workload metrics for supported database instances and configurations; that mechanism handles observing database query performance at query level; it does not configure getting index recommendations from a supported Enterprise Plus instance.

D:

Cloud SQL import operations ingest supported SQL and CSV files from authorized Cloud Storage paths; the scenario specifies getting index recommendations from a supported Enterprise Plus instance, which differs from loading external data files into Cloud SQL.

E:

This alternative focuses on exporting Cloud SQL content to object storage; Cloud SQL export writes supported database export formats to authorized Cloud Storage destinations; the stem instead asks for getting index recommendations from a supported Enterprise Plus instance.

F:

The alternative would address setting a scheduled Firestore database backup and retention; Firestore scheduled backups support daily or weekly database snapshots and restoration to a new database while retaining configurable backup copies; the question instead requires getting index recommendations from a supported Enterprise Plus instance.

Question 458

A service team needs to signal that a project must not be removed while a dependency exists. What protective mechanism is appropriate?

  1. Use IAM inheritance reasoning
  2. Use project lifecycle restore window
  3. Use project creation permissions at ancestor
  4. Use a project lien

Explanation

Correct Answer

D:

A project lien can restrict deletion while the lien remains in place; the decisive property here is preventing deletion of a depended-on project.

Incorrect Answers

A:

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 preventing deletion of a depended-on project.

B:

Projects can generally be undeleted during a limited recovery interval before final deletion and data loss; that solves problems involving recovering a recently deleted project, rather than the preventing deletion of a depended-on project requirement.

C:

This alternative focuses on granting project creation at the correct parent scope; Project creation and placement require relevant Resource Manager permissions on eligible ancestor resources; the stem instead asks for preventing deletion of a depended-on project.

Question 459

An instance was affected by a platform maintenance event and auditors want applicable system-triggered audit entries. What audit log type is relevant?

  1. Create a log sink to Pub/Sub
  2. Use Cloud Monitoring Managed Service for Prometheus
  3. Use Cloud Audit Logs System Event
  4. Use Recommender API

Explanation

Correct Answer

C:

System Event audit logs record supported Google Cloud system operations modifying resource configurations; that matches the requirement for reviewing Google-managed operational changes.

Incorrect Answers

A:

Log sinks can publish matched log records to an authorized Pub/Sub topic; it concerns publishing filtered log entries for processing, and its normal effect does not provide reviewing Google-managed operational changes.

B:

Managed Service for Prometheus integrates Prometheus-compatible metric collection with Cloud Monitoring storage and querying; its purpose differs: collecting Prometheus-compatible workload metrics is separate from reviewing Google-managed operational changes.

D:

For fetching machine-readable optimization advice, this could be relevant; the Recommender API exposes supported resource recommendations and insights programmatically; the actual request concerns reviewing Google-managed operational changes.

Question 460

One team should be able to impersonate a particular service account but not other accounts in the project. Where should the permission be granted?

  1. Use service-account-level IAM policy
  2. Delete obsolete service account
  3. Disable unused service account
  4. Grant target resource role to service account

Explanation

Correct Answer

A:

A service account is an IAM resource with its own allow policy for controlling who can use or manage it; this is the specific mechanism used for delegating access to exactly one service account.

Incorrect Answers

B:

Deleting a service account removes its identity; accidental deletion may have limited recovery options and affect dependencies; the scenario specifies delegating access to exactly one service account, which differs from eliminating unused service-account principals.

C:

Disabling a service account blocks its use without immediately deleting the identity and associated metadata; that mechanism handles blocking authentication by an abandoned workload identity; it does not configure delegating access to exactly one service account.

D:

Attaching an account establishes identity but the service account still needs IAM permissions on the resources it accesses; the scenario specifies delegating access to exactly one service account, which differs from granting the workload identity the required API permissions.

Associate Cloud Engineer Practice Tests