Question 60

A daily export bucket must automatically remove temporary objects after 30 days. What policy should be applied?

  1. Grant Storage Object Admin
  2. Grant Storage Object Creator
  3. Use object holds
  4. Use gcloud storage cp
  5. Configure Cloud Storage lifecycle deletion

Explanation

Correct Answer

E:

Cloud Storage lifecycle rules can remove objects when configured age or other conditions are satisfied; that behavior is precisely what expiring old objects automatically calls for.

Incorrect Answers

A:

Storage Object Admin grants object management permissions without inherently granting all project administration rights; Applying it would target administering object data within a bucket, leaving the separate need for expiring old objects automatically.

B:

Storage Object Creator supports creating objects without granting general read or delete permissions; it concerns granting create-only object access, and its normal effect does not provide expiring old objects automatically.

C:

Object holds block eligible object deletion until the hold condition is cleared; the scenario specifies expiring old objects automatically, which differs from pausing deletion of selected objects.

D:

Gcloud storage cp copies files and supported objects between local storage and Cloud Storage paths; its operational role is transferring files into object storage; the needed capability is expiring old objects automatically.

Question 61

A live VPC was created manually and the team wants Terraform to manage it without rebuilding it. Which operation is relevant?

  1. Use Terraform outputs
  2. Run terraform plan
  3. Import an existing resource into Terraform state
  4. Use a Terraform provider

Explanation

Correct Answer

C:

Terraform import associates eligible existing remote objects with resource addresses in state, with configuration alignment still required; Applied in this case, it delivers bringing an existing resource under Terraform state.

Incorrect Answers

A:

Terraform outputs publish selected values from a configuration or module for downstream use; it would help with passing provisioned resource identifiers to consumers, but it does not directly implement bringing an existing resource under Terraform state.

B:

Terraform plan compares configuration and state with remote resource information to produce an execution plan; it would help with evaluating Terraform's pending changes, but it does not directly implement bringing an existing resource under Terraform state.

D:

This alternative focuses on declaring cloud-specific Terraform functionality; the Google Terraform provider maps supported resource schemas to Google Cloud API operations; the stem instead asks for bringing an existing resource under Terraform state.

Question 62

A hybrid environment requires BGP route exchange with VPN or Interconnect peers. Which network service supports that?

  1. Use VPC Network Peering
  2. Use Cloud Interconnect
  3. Use Cloud Router
  4. Use Cloud NAT

Explanation

Correct Answer

C:

What matters is dynamically exchanging hybrid routes; Cloud Router manages dynamic route exchange using BGP for supported hybrid connectivity.

Incorrect Answers

A:

VPC Network Peering exchanges supported routes between paired VPC networks without transitive peering; that supports privately connecting separate VPC networks; the problem to solve concerns dynamically exchanging hybrid routes.

B:

Cloud Interconnect provides supported private connectivity between on-premises networks and Google Cloud through dedicated or partner arrangements; that mechanism handles establishing dedicated or partner private connectivity; it does not configure dynamically exchanging hybrid routes.

D:

For allowing source-NAT egress without public VM interfaces, this could be relevant; Cloud NAT provides managed outbound network address translation for eligible resources without exposing unsolicited inbound endpoints; the actual request concerns dynamically exchanging hybrid routes.

Question 63

A GKE-based platform team wants to manage supported Google Cloud resources through Kubernetes custom resources. Which tool fits?

  1. Use Cloud Foundation Toolkit
  2. Use Terraform modules
  3. Use Terraform for infrastructure provisioning
  4. Use Kubernetes Config Connector

Explanation

Correct Answer

D:

Config Connector exposes supported Google Cloud services as Kubernetes custom resources and reconcilers; that behavior is precisely what reconciling Google Cloud resources through Kubernetes objects calls for.

Incorrect Answers

A:

Cloud Foundation Toolkit provides modules and examples for automated Google Cloud foundation deployments; that mechanism handles deploying tested cloud foundation patterns; it does not configure reconciling Google Cloud resources through Kubernetes objects.

B:

For standardizing infrastructure through reusable components, this could be relevant; Terraform modules encapsulate resource definitions and input/output interfaces for reuse; the actual request concerns reconciling Google Cloud resources through Kubernetes objects.

C:

Terraform uses provider-managed declarative resources and state to plan and apply infrastructure changes; the supported outcome is managing reproducible cloud resources as code, while the requested result is reconciling Google Cloud resources through Kubernetes objects.

Question 64

A cleanup worker needs to remove files and upload replacements but should not manage organization policy. What storage role suits it?

  1. Grant Storage Object Admin
  2. Use generation preconditions for object writes
  3. Use object holds
  4. Restore a soft-deleted Cloud Storage object

Explanation

Correct Answer

A:

Storage Object Admin grants object management permissions without inherently granting all project administration rights; this is relevant because the outcome sought is performing full object-level data operations.

Incorrect Answers

B:

Cloud Storage generation preconditions condition object mutations on expected generation values; it would help with protecting against concurrent object updates, but it does not directly implement performing full object-level data operations.

C:

Object holds block eligible object deletion until the hold condition is cleared; Applying it would target preventing object deletion with object holds, leaving the separate need for performing full object-level data operations.

D:

The alternative would address restoring an object during its soft-delete window; Soft-deleted objects can be restored within their applicable retention period using supported restore workflows; the question instead requires performing full object-level data operations.

Question 65

An application on Cloud Run invokes Pub/Sub, but no human account should be used at runtime. Which identity should hold the relevant role?

  1. Use IAM service-account impersonation roles
  2. Grant roles to a Google group
  3. Use Principal Access Boundary policies
  4. Grant roles to a service account

Explanation

Correct Answer

D:

Service accounts are IAM principals that represent applications or compute workloads and can receive roles; it supports delegating cloud privileges to a workload identity at the appropriate resource scope.

Incorrect Answers

A:

Service account impersonation lets authorized principals mint short-lived credentials for an account using supported IAM roles; that applies to granting token creation on a target service account; the requested task is delegating cloud privileges to a workload identity.

B:

Google groups can be IAM principals, with access evaluated through applicable group membership; the supported outcome is managing many users' access through group membership, while the requested result is delegating cloud privileges to a workload identity.

C:

Principal Access Boundary policies constrain access to supported resources within defined boundaries under applicable enforcement rules; that solves problems involving bounding accessible resources independently of allow roles, rather than the delegating cloud privileges to a workload identity requirement.

Question 66

An optimization team needs statistical profiles from a live service rather than coarse VM utilization. Which tool should it assess?

  1. Use Cloud Profiler
  2. Enable log-based metrics
  3. Use a Logs Router sink
  4. Use Cloud Service Health public status

Explanation

Correct Answer

A:

The scenario depends on identifying application code hotspots from profiles; Cloud Profiler analyzes sampled application profiles to reveal resource-heavy functions and code paths.

Incorrect Answers

B:

Log-based metrics derive metric values from matching log entries and can support dashboards or alerts; the scenario specifies identifying application code hotspots from profiles, which differs from converting matching log entries into metric time series.

C:

Log sinks use inclusion filters and destination permissions to route supported log entries from a configured scope; the supported outcome is exporting filtered log streams to a destination, while the requested result is identifying application code hotspots from profiles.

D:

Google Cloud's public service health information reports known product incidents and service status; it concerns checking published cloud service incidents, and its normal effect does not provide identifying application code hotspots from profiles.

Question 67

An identity cleanup initiative wants key creation dates and owners before replacing key-based workflows. What inventory is relevant?

  1. Use service account description and display name
  2. Audit service-account key inventory
  3. Use service account impersonation audit trail
  4. Rotate compromised service account key

Explanation

Correct Answer

B:

The scenario depends on reviewing account keys for rotation or removal; Service-account key listings expose user-managed key metadata, which can be audited and managed.

Incorrect Answers

A:

Service accounts have descriptive metadata fields that support inventory and operational ownership reviews; this is a distinct control for providing understandable account labels and descriptions, rather than reviewing account keys for rotation or removal.

C:

The alternative would address tracking requests to the IAM Credentials API; Relevant audit logs for IAM Credentials operations can attribute supported credential issuance under appropriate logging configuration; the question instead requires reviewing account keys for rotation or removal.

D:

Deleting or disabling compromised user-managed service-account keys prevents further authentication with those keys; the decision here is about reviewing account keys for rotation or removal, not invalidating exposed long-lived credentials.

Question 68

Two operators have changed networks manually, causing drift. What authoring practice creates a reviewable desired state?

  1. Use Helm charts
  2. Use Cloud Foundation Toolkit
  3. Use a version-controlled IaC repository
  4. Use Terraform for infrastructure provisioning

Explanation

Correct Answer

C:

Version control tracks infrastructure definitions, reviews and history across deployments; this is relevant because the outcome sought is managing cloud configuration through versioned files.

Incorrect Answers

A:

Helm packages and releases parametrized Kubernetes manifests as charts; that mechanism handles managing templated Kubernetes application releases; it does not configure managing cloud configuration through versioned files.

B:

Cloud Foundation Toolkit provides modules and examples for automated Google Cloud foundation deployments; that applies to deploying tested cloud foundation patterns; the requested task is managing cloud configuration through versioned files.

D:

Terraform uses provider-managed declarative resources and state to plan and apply infrastructure changes; the scenario specifies managing cloud configuration through versioned files, which differs from managing reproducible cloud resources as code.

Question 69

A temporary contractor should receive permission only before an approved expiry timestamp. What IAM capability can express that?

  1. Use IAM Conditions
  2. Use resource tags in IAM Conditions
  3. Remove an IAM policy binding
  4. Bind IAM role at resource level

Explanation

Correct Answer

A:

IAM Conditions attach supported CEL expressions to role bindings to restrict when permissions apply; this is relevant because the outcome sought is adding a time-bound conditional role grant.

Incorrect Answers

B:

IAM Conditions can evaluate supported resource-manager tag relationships in compatible access decisions; this is a distinct control for evaluating policy against resource tag values, rather than adding a time-bound conditional role grant.

C:

Removing an IAM binding eliminates that grant path, although other inherited or indirect grants may remain; Applying it would target removing unneeded role assignments, leaving the separate need for adding a time-bound conditional role grant.

D:

The alternative would address scoping permissions to one supported resource; Resource-level IAM binding limits eligible permissions to that resource and its applicable descendants; the question instead requires adding a time-bound conditional role grant.

Question 70

An organization must stop deletion of eligible compliance objects before their retention period and must disallow accidental anonymous access to the bucket. Choose TWO storage controls.

  1. Use Cloud Storage soft delete
  2. Use Cloud Storage versioning
  3. Use Cloud Storage public access prevention
  4. Use Cloud Storage uniform bucket-level access
  5. Use a Cloud Storage retention policy

Explanation

Correct Answers

C:

Public access prevention disallows public exposure through relevant Cloud Storage access mechanisms; within the multi-part workflow of enforcing legal object retention and preventing anonymous bucket access, this provides blocking public exposure of bucket objects.

E:

Bucket retention policies enforce minimum retention periods for supported objects and can be locked for stronger controls; within the multi-part workflow of enforcing legal object retention and preventing anonymous bucket access, this provides enforcing minimum retention for objects.

Incorrect Answers

A:

Soft delete retains eligible deleted object data for a configurable period to allow restoration, which supports recovering recently deleted cloud objects; the needed outcome is enforcing legal object retention and preventing anonymous bucket access.

B:

Object Versioning retains noncurrent object generations until explicitly removed or lifecycle-managed; its focus is retaining earlier object generations, rather than enforcing legal object retention and preventing anonymous bucket access.

D:

Uniform bucket-level access turns off object ACLs so IAM governs access to bucket objects, which serves standardizing object authorization through IAM instead of enforcing legal object retention and preventing anonymous bucket access.

Associate Cloud Engineer Practice Tests