Google Associate Cloud Engineer Practice Test 56

Question 550

A support engineer must inspect one VM's exact attached disks, networking and service account configuration. Which command fits?

  1. Schedule disk snapshots
  2. Diagnose OS Login IAM roles
  3. Resize a persistent disk
  4. Use IAP TCP forwarding for SSH
  5. Create a custom image from a disk
  6. Use gcloud compute instances describe

Explanation

Correct Answer

F:

The instances describe operation retrieves configuration and status details for a specified VM in its zone; Applied in this case, it delivers retrieving one instance's detailed configuration.

Incorrect Answers

A:

Resource policies can schedule eligible persistent disk snapshots and manage their retention; it is not the focused action for retrieving one instance's detailed configuration; its primary use is automating regular persistent disk snapshots.

B:

OS Login uses IAM roles and identities for VM SSH access, superseding metadata-managed key access when enabled; that applies to granting supported OS Login access through IAM; the requested task is retrieving one instance's detailed configuration.

C:

The alternative would address expanding an existing persistent disk; Persistent disks can be expanded subject to limits, with guest partition or filesystem growth often still required; the question instead requires retrieving one instance's detailed configuration.

D:

This alternative focuses on reaching private VM SSH through IAP TCP tunnels; IAP TCP forwarding can proxy authorized SSH connections without a public VM address when prerequisites are met; the stem instead asks for retrieving one instance's detailed configuration.

E:

Custom Compute Engine images provide reusable disk source content for new boot disks; that mechanism handles preparing reusable VM boot images; it does not configure retrieving one instance's detailed configuration.

Question 551

A CI pipeline must obtain scoped tokens for a deployment identity under audited IAM controls. Which delegation method should be configured?

  1. Use Workforce Identity Federation
  2. Use short-lived access tokens
  3. Use IAM service-account impersonation roles
  4. Grant workload identity user for federation
  5. Bind GKE workload identity to IAM

Explanation

Correct Answer

C:

Service account impersonation lets authorized principals mint short-lived credentials for an account using supported IAM roles; that behavior is precisely what granting token creation on a target service account calls for.

Incorrect Answers

A:

Workforce Identity Federation lets external workforce identities access supported Google Cloud resources through configured identity pools and providers; it concerns authorizing human users through external identity federation, and its normal effect does not provide granting token creation on a target service account.

B:

Short-lived OAuth access tokens restrict credential lifetime and can be generated using supported identity mechanisms; the scenario specifies granting token creation on a target service account, which differs from limiting credential validity through expiration.

D:

Workload Identity User can permit eligible federated identities to access a target service account through supported federation flows; the supported outcome is authorizing federated principals to use a service account, while the requested result is granting token creation on a target service account.

E:

Workload Identity Federation for GKE establishes workload identities that receive supported IAM access without embedded private keys; it concerns connecting GKE workload identity to cloud IAM permissions, and its normal effect does not provide granting token creation on a target service account.

Question 552

A security team wants to answer which principals can access one sensitive resource through all relevant IAM allow paths. What tool helps?

  1. Grant roles to a Google group
  2. Use Policy Analyzer
  3. Use IAM Conditions
  4. Use IAM deny policies
  5. Bind IAM role at organization scope

Explanation

Correct Answer

B:

Policy Analyzer can analyze IAM allow relationships using Cloud Asset Inventory data; the decisive property here is investigating access relationships across the hierarchy.

Incorrect Answers

A:

Google groups can be IAM principals, with access evaluated through applicable group membership; it would help with managing many users' access through group membership, but it does not directly implement investigating access relationships across the hierarchy.

C:

IAM Conditions attach supported CEL expressions to role bindings to restrict when permissions apply; it is appropriate for restricting IAM bindings with expressions; here, the deciding requirement is investigating access relationships across the hierarchy.

D:

IAM deny policies can block eligible permissions for matching principals despite otherwise applicable allow grants; that solves problems involving overriding applicable allows with a deny, rather than the investigating access relationships across the hierarchy requirement.

E:

Organization-level IAM allow bindings generally propagate to eligible child resources; that solves problems involving granting organization-wide audit access, rather than the investigating access relationships across the hierarchy requirement.

Question 553

An external automation service must present its organization's OIDC identity and map claims into a Google Cloud workload identity pool. Which resource is involved?

  1. Bind GKE workload identity to IAM
  2. Use Workload Identity Federation
  3. Use workload identity pool provider
  4. Use GKE Kubernetes service accounts

Explanation

Correct Answer

C:

Workload identity pool providers define trust and attribute mapping for supported external issuers; the decisive property here is trusting a configured external workload issuer.

Incorrect Answers

A:

Workload Identity Federation for GKE establishes workload identities that receive supported IAM access without embedded private keys; it is appropriate for granting Pod-scoped Google Cloud resource access; here, the deciding requirement is trusting a configured external workload issuer.

B:

Workload Identity Federation exchanges eligible external workload identities for short-lived Google Cloud credentials; its operational role is accessing cloud APIs from external CI without key files; the needed capability is trusting a configured external workload issuer.

D:

Kubernetes ServiceAccounts identify workloads to the Kubernetes API and can participate in GKE workload identity integrations; this is a distinct control for using a dedicated Kubernetes service-account principal, rather than trusting a configured external workload issuer.

Question 554

A managed Google Cloud product stops functioning after IAM cleanup. Which account role grants should be reviewed first?

  1. Protect service agent roles
  2. Use service account impersonation audit trail
  3. Use signed URL delegation with service account
  4. Use service account delegation chain

Explanation

Correct Answer

A:

Service-agent roles often enable internal Google-managed operations and should not be casually reassigned or deleted; for the stated workload, the practical result is checking whether service-agent privileges were inadvertently removed.

Incorrect Answers

B:

Relevant audit logs for IAM Credentials operations can attribute supported credential issuance under appropriate logging configuration; the decision here is about checking whether service-agent privileges were inadvertently removed, not auditing service-account token minting.

C:

Authorized service account signing can generate Cloud Storage signed URLs for temporary operation-specific access; it would help with signing controlled object access requests, but it does not directly implement checking whether service-agent privileges were inadvertently removed.

D:

IAM Credentials supports delegated impersonation chains when each principal has required token creation permissions; it is appropriate for delegating identity through authorized account hops; here, the deciding requirement is checking whether service-agent privileges were inadvertently removed.

Question 555

A security operations platform should consume matching Cloud Logging entries as a near-real-time event stream. Which destination fits?

  1. Create a log sink to Pub/Sub
  2. Use Cloud Audit Logs System Event
  3. Create a dedicated log bucket
  4. Configure log exclusions

Explanation

Correct Answer

A:

Log sinks can publish matched log records to an authorized Pub/Sub topic; it supports forwarding logs to an event subscriber at the appropriate resource scope.

Incorrect Answers

B:

System Event audit logs record supported Google Cloud system operations modifying resource configurations; its operational role is reviewing Google-managed operational changes; the needed capability is forwarding logs to an event subscriber.

C:

Cloud Logging log buckets store ingested logs with configurable retention and access controls; its purpose differs: isolating log retention and access settings is separate from forwarding logs to an event subscriber.

D:

Logging exclusions and sink filters can prevent eligible entries from being routed to selected log buckets; that solves problems involving filtering low-value logs out of ingestion paths, rather than the forwarding logs to an event subscriber requirement.

Question 556

Cloud resources have been idle for weeks, and management seeks provider-generated advice before downsizing them. What capability should be consulted?

  1. Use Cloud Audit Logs Admin Activity
  2. Use Active Assist recommendations
  3. Use Recommender API
  4. Use Cloud Audit Logs Data Access

Explanation

Correct Answer

B:

Active Assist produces eligible recommendations and insights about efficiency, reliability, security and cost; this is the specific mechanism used for reviewing rightsizing and efficiency recommendations.

Incorrect Answers

A:

Admin Activity audit logs capture supported resource configuration and permission management events; Applying it would target reviewing administrative audit actions, leaving the separate need for reviewing rightsizing and efficiency recommendations.

C:

The Recommender API exposes supported resource recommendations and insights programmatically; it would help with integrating provider resource recommendations into automation, but it does not directly implement reviewing rightsizing and efficiency recommendations.

D:

Data Access audit logs capture supported data reads and writes and may require explicit enablement depending on service and category; that solves problems involving auditing supported data-plane access events, rather than the reviewing rightsizing and efficiency recommendations requirement.

Question 557

A service should accept calls only through permitted internal or load-balanced paths instead of unrestricted Internet ingress. Which control addresses entry path?

  1. Use Cloud Run maximum instances
  2. Use Cloud Run ingress settings
  3. Use Cloud Run minimum instances
  4. Use a Cloud Run service account

Explanation

Correct Answer

B:

The requirement is constraining Cloud Run network ingress; Cloud Run ingress settings control eligible network sources and front ends allowed to reach a service.

Incorrect Answers

A:

Maximum instances constrain how far Cloud Run instance scaling can grow under configured conditions; it would help with bounding Cloud Run instance scaling, but it does not directly implement constraining Cloud Run network ingress.

C:

Minimum instances keep a configured baseline of Cloud Run capacity provisioned with associated billing consequences; it is not the focused action for constraining Cloud Run network ingress; its primary use is maintaining warm serverless instances.

D:

Cloud Run services can run as a configured service account with IAM-granted permissions; the supported outcome is separating runtime permissions from deployer access, while the requested result is constraining Cloud Run network ingress.

Question 558

During production traffic peaks, a Cloud Run service scales out more aggressively than its dependent database can support. Which service autoscaling setting should the operator adjust?

  1. Split Cloud Run revision traffic
  2. Roll back Cloud Run traffic
  3. Update Cloud Run maximum instances setting
  4. Check Cloud Run revision logs

Explanation

Correct Answer

C:

The requirement is limiting Cloud Run autoscaled instance count; Cloud Run maximum instances configures an upper scaling limit while documented transient overages can occur and capacity limits are not a substitute for downstream protection.

Incorrect Answers

A:

Cloud Run traffic allocation assigns configured percentages to eligible service revisions; the decision here is about limiting Cloud Run autoscaled instance count, not gradually shifting traffic between Cloud Run revisions.

B:

Cloud Run can shift service traffic back to a previous retained revision without requiring another build; it is not the focused action for limiting Cloud Run autoscaled instance count; its primary use is reverting request routing to an earlier Cloud Run revision.

D:

Cloud Run integrates request and container logs with Cloud Logging for revision-focused diagnosis; it would help with troubleshooting Cloud Run container logs, but it does not directly implement limiting Cloud Run autoscaled instance count.

Question 559

A security lake must receive chosen project log entries without manual CSV exports. What should be configured?

  1. Create a Logs Router sink to BigQuery
  2. Configure a log view
  3. Create a dedicated log bucket
  4. Use log-based counter metric

Explanation

Correct Answer

A:

Logs Router sinks select entries using filters and export to authorized supported destinations; for the stated workload, the practical result is routing selected logs into a BigQuery dataset.

Incorrect Answers

B:

Log views expose subsets of log bucket entries with access control through IAM; that applies to scoping read access to filtered log data; the requested task is routing selected logs into a BigQuery dataset.

C:

Cloud Logging log buckets store ingested logs with configurable retention and access controls; the supported outcome is organizing logs into a governed storage bucket, while the requested result is routing selected logs into a BigQuery dataset.

D:

Counter log-based metrics count matching Cloud Logging entries and can be charted or alerted on; that solves problems involving counting matched log records over time, rather than the routing selected logs into a BigQuery dataset requirement.

Question 560

An operations team should see application logs but not sensitive security audit records stored nearby. Which filtering access mechanism helps?

  1. Configure a log view
  2. Create a log sink to Pub/Sub
  3. Use log-based counter metric
  4. Create a Logs Router sink to BigQuery

Explanation

Correct Answer

A:

Log views expose subsets of log bucket entries with access control through IAM; this is the specific mechanism used for limiting log visibility to selected entries.

Incorrect Answers

B:

Log sinks can publish matched log records to an authorized Pub/Sub topic; the scenario specifies limiting log visibility to selected entries, which differs from forwarding logs to an event subscriber.

C:

The alternative would address turning filtered log patterns into metrics; Counter log-based metrics count matching Cloud Logging entries and can be charted or alerted on; the question instead requires limiting log visibility to selected entries.

D:

This alternative focuses on streaming matching log records to analytics storage; Logs Router sinks select entries using filters and export to authorized supported destinations; the stem instead asks for limiting log visibility to selected entries.

Associate Cloud Engineer Practice Tests