Google Associate Cloud Engineer Practice Test 37

Question 360

Multiple teams share a billing account and need charge allocation for supported tagged resources. What metadata should they attach?

  1. Create a Cloud Billing account
  2. Apply labels for cost attribution
  3. Use project billing permissions to link the payer
  4. Use billing cost table reports

Explanation

Correct Answer

B:

Supported labels can be surfaced in billing exports and filters to allocate eligible costs; Applied in this case, it delivers grouping labeled resource cost records.

Incorrect Answers

A:

The alternative would address establishing a billing payer; Cloud Billing accounts represent payment and invoicing relationships and can pay for multiple linked projects; the question instead requires grouping labeled resource cost records.

C:

Managing project billing associations requires the appropriate project and billing account permissions; this governs authorizing a project-to-billing relationship, whereas the stated objective is grouping labeled resource cost records.

D:

The Cost table provides tabular cost records and invoice-oriented analysis for supported billing accounts; it is not the focused action for grouping labeled resource cost records; its primary use is reviewing invoice-aligned billing cost detail.

Question 361

A private VM permits administrator access via Google's IAP and SSH but not Internet-routable addresses. What connection technique works?

  1. Use gcloud compute instances list
  2. Use gcloud compute instances describe
  3. Resize a persistent disk
  4. Use IAP TCP forwarding for SSH

Explanation

Correct Answer

D:

IAP TCP forwarding can proxy authorized SSH connections without a public VM address when prerequisites are met; that behavior is precisely what reaching private VM SSH through IAP TCP tunnels calls for.

Incorrect Answers

A:

The instances list command queries Compute Engine VM metadata and supports filters and output formatting; it concerns obtaining current VM inventory data, and its normal effect does not provide reaching private VM SSH through IAP TCP tunnels.

B:

The instances describe operation retrieves configuration and status details for a specified VM in its zone; it would help with retrieving one instance's detailed configuration, but it does not directly implement reaching private VM SSH through IAP TCP tunnels.

C:

Persistent disks can be expanded subject to limits, with guest partition or filesystem growth often still required; it concerns increasing allocated disk capacity, and its normal effect does not provide reaching private VM SSH through IAP TCP tunnels.

Question 362

VMs on a chosen VPC need internal DNS names that should not resolve from the public Internet. Which DNS feature fits?

  1. Use Cloud DNS private zones
  2. Use Cloud Interconnect
  3. Use Cloud Router
  4. Reserve a static internal IP

Explanation

Correct Answer

A:

Private Cloud DNS zones are authorized for specific networks and resolve within those networks; that matches the requirement for resolving private hostnames inside authorized networks.

Incorrect Answers

B:

Cloud Interconnect provides supported private connectivity between on-premises networks and Google Cloud through dedicated or partner arrangements; it is relevant when establishing dedicated or partner private connectivity, not when the primary need is resolving private hostnames inside authorized networks.

C:

Cloud Router manages dynamic route exchange using BGP for supported hybrid connectivity; it is appropriate for dynamically exchanging hybrid routes; here, the deciding requirement is resolving private hostnames inside authorized networks.

D:

Static internal address reservations hold eligible VPC IPs for supported resources or front ends; it is not the focused action for resolving private hostnames inside authorized networks; its primary use is keeping an internal service address stable.

Question 363

A regulated application wants eligible VM memory protected with hardware-based encryption during processing. Which VM feature should it evaluate?

  1. Use Shielded VM
  2. Use Confidential VM
  3. Configure VM Manager
  4. Use VM startup scripts

Explanation

Correct Answer

B:

Confidential VM uses hardware confidential-computing capabilities to protect supported workloads during execution; this is the capability needed for protecting data in use on supported VMs.

Incorrect Answers

A:

Shielded VM provides capabilities such as Secure Boot, virtual TPM and integrity monitoring; this governs hardening virtual machine boot integrity, whereas the stated objective is protecting data in use on supported VMs.

C:

The alternative would address managing fleet OS patches and inventory; VM Manager provides OS inventory, patch and configuration capabilities for supported VM environments; the question instead requires protecting data in use on supported VMs.

D:

This alternative focuses on initializing a VM from metadata scripts; Compute Engine startup scripts execute configured initialization commands in supported guest environments; the stem instead asks for protecting data in use on supported VMs.

Question 364

A Cloud Run app has a valid token yet cannot publish to a Pub/Sub topic. Which access decision should be revisited?

  1. Use service account impersonation with gcloud
  2. Attach a service account to Cloud Run
  3. Grant target resource role to service account
  4. Attach a service account to a VM
  5. Use service-account-level IAM policy

Explanation

Correct Answer

C:

Attaching an account establishes identity but the service account still needs IAM permissions on the resources it accesses; that behavior is precisely what granting the workload identity the required API permissions calls for.

Incorrect Answers

A:

Gcloud supports service-account impersonation flags to request short-lived credentials when authorized; this is a distinct control for using controlled per-command service-account impersonation, rather than granting the workload identity the required API permissions.

B:

Cloud Run services use configured runtime service accounts for Google Cloud API calls; it concerns setting the identity of a serverless service, and its normal effect does not provide granting the workload identity the required API permissions.

D:

VMs can run as attached service accounts, with tokens available through the metadata server subject to access settings; that mechanism handles assigning workload identity to a compute instance; it does not configure granting the workload identity the required API permissions.

E:

A service account is an IAM resource with its own allow policy for controlling who can use or manage it; the supported outcome is scoping impersonation permissions to the target account, while the requested result is granting the workload identity the required API permissions.

Question 365

A command-line job must enumerate objects in a bucket to verify backup delivery. Which operation helps?

  1. Configure Cloud Storage lifecycle class transition
  2. Configure Cloud Storage lifecycle deletion
  3. Use gcloud storage rsync
  4. Restore a soft-deleted Cloud Storage object
  5. Use gcloud storage ls

Explanation

Correct Answer

E:

The requested administrative outcome is listing Cloud Storage objects; Gcloud storage ls enumerates supported buckets and objects depending on the specified path.

Incorrect Answers

A:

For transitioning aged objects to colder storage classes, this could be relevant; Lifecycle management can change eligible object storage class when matching conditions are met; the actual request concerns listing Cloud Storage objects.

B:

Cloud Storage lifecycle rules can remove objects when configured age or other conditions are satisfied; the supported outcome is implementing age-based object cleanup, while the requested result is listing Cloud Storage objects.

C:

Gcloud storage rsync synchronizes supported source and destination content with comparison options; it is not the focused action for listing Cloud Storage objects; its primary use is synchronizing a set of files to object storage.

D:

Soft-deleted objects can be restored within their applicable retention period using supported restore workflows; the scenario specifies listing Cloud Storage objects, which differs from recovering retained deleted object data.

Question 366

A project user can read resources despite having no direct binding on the project. What should be checked?

  1. Inspect effective IAM allow bindings
  2. Use IAM policy version 3 for conditions
  3. Bind IAM role at organization scope
  4. Use Principal Access Boundary policies

Explanation

Correct Answer

A:

The scenario depends on finding grants inherited from parent scopes; Effective IAM access can include organization, folder, project and resource-level bindings with inheritance.

Incorrect Answers

B:

IAM allow policy version 3 supports conditional role bindings and should be requested when managing conditions; the decision here is about finding grants inherited from parent scopes, not retrieving condition-aware IAM policy data.

C:

Organization-level IAM allow bindings generally propagate to eligible child resources; it would help with granting organization-wide audit access, but it does not directly implement finding grants inherited from parent scopes.

D:

Principal Access Boundary policies constrain access to supported resources within defined boundaries under applicable enforcement rules; the decision here is about finding grants inherited from parent scopes, not bounding accessible resources independently of allow roles.

Question 367

A deployment gateway uses IAM Credentials generateAccessToken with intermediate identities A and B before reaching final account C. The target is C and direct impersonation is forbidden. Which request field and role arrangement supports delegated impersonation?

  1. Set name=A and give every developer project Owner
  2. List A and B in delegates in order, and grant Token Creator for each hop through C
  3. Set delegates to the VM machine types and enable public IP addresses
  4. Store C’s downloaded private key in a Kubernetes Secret

Explanation

Correct Answer

B:

The generateAccessToken delegates field specifies intermediate service accounts in the chain. Each principal or service account must have Service Account Token Creator on the next account, including B on final target C.

Incorrect Answers

A:

Targeting A does not produce credentials for C. Granting broad project Owner permissions bypasses the intended explicit delegation chain and exceeds the security requirement.

C:

The delegates field expects service-account resource names rather than VM types or network properties. Public addresses do not establish IAM impersonation permissions.

D:

A long-lived service-account key avoids the approved delegated token flow, increases credential exposure, and does not satisfy the requirement to enforce intermediary identities.

Question 368

An auditor finds a group still has a privileged project binding that is no longer required. What IAM action directly closes it?

  1. Grant roles to a Google group
  2. Inspect effective IAM allow bindings
  3. Use IAM Conditions
  4. Remove an IAM policy binding
  5. Bind IAM role at project scope
  6. Bind IAM role at folder scope

Explanation

Correct Answer

D:

Removing an IAM binding eliminates that grant path, although other inherited or indirect grants may remain; this is the capability needed for removing unneeded role assignments.

Incorrect Answers

A:

Google groups can be IAM principals, with access evaluated through applicable group membership; the decision here is about removing unneeded role assignments, not driving IAM entitlements via centralized groups.

B:

Effective IAM access can include organization, folder, project and resource-level bindings with inheritance; that applies to finding grants inherited from parent scopes; the requested task is removing unneeded role assignments.

C:

IAM Conditions attach supported CEL expressions to role bindings to restrict when permissions apply; the scenario specifies removing unneeded role assignments, which differs from adding a time-bound conditional role grant.

E:

Project-level IAM bindings apply role grants across supported resources within that project; that applies to scoping role inheritance to a single project; the requested task is removing unneeded role assignments.

F:

Folder IAM policies can grant inherited permissions to descendant projects and resources; it is not the focused action for removing unneeded role assignments; its primary use is inheriting permissions through one folder subtree.

Question 369

A Cloud Logging sink already routes selected audit logs to a BigQuery dataset, but the sink reports destination permission errors and no new rows arrive. What should be granted on that dataset?

  1. BigQuery Data Viewer to the engineers who created the sink
  2. Storage Object Creator to the sink writer identity
  3. Logs Viewer to the originating project users
  4. BigQuery Data Editor to the sink writer identity

Explanation

Correct Answer

D:

The sink uses its own writer identity for export. Grant that identity BigQuery Data Editor on the receiving dataset so it can write the selected log entries to the destination.

Incorrect Answers

A:

A user's Data Viewer access is for reading dataset contents; it does not authorize the log sink writer identity to write new records into the dataset.

B:

Storage Object Creator is the appropriate destination-specific permission for Cloud Storage buckets, not for inserting rows into a BigQuery dataset.

C:

Logs Viewer allows supported log reading and is separate from the destination write authorization needed by the routed log sink.

Question 370

A database component needs stable network identities and persistent volume attachment for each replica. Which workload controller fits?

  1. Scale a Kubernetes Deployment replica count
  2. Use Kubernetes StatefulSet
  3. Use Kubernetes Ingress or Gateway API
  4. Configure Vertical Pod Autoscaler

Explanation

Correct Answer

B:

StatefulSets provide stable Pod identities and ordered management suitable for stateful applications; this is the specific mechanism used for operating stateful Kubernetes Pods.

Incorrect Answers

A:

The Deployment replicas setting controls desired Pod replicas managed through ReplicaSets; this is a distinct control for changing Deployment-managed Pod replicas, rather than operating stateful Kubernetes Pods.

C:

Ingress and Gateway API resources describe supported application-layer entry routing to Kubernetes backends; Applying it would target routing external HTTP requests among Kubernetes Services, leaving the separate need for operating stateful Kubernetes Pods.

D:

Vertical Pod Autoscaler recommends or manages CPU and memory requests according to its configured mode; the decision here is about operating stateful Kubernetes Pods, not optimizing workload resource requests vertically.

Associate Cloud Engineer Practice Tests