Google Associate Cloud Engineer Practice Test 25

Question 240

A team has an HTTP container and wants request-based autoscaling without administering nodes. What should host it?

  1. Use batch jobs on Google Cloud Batch
  2. Use Cloud Run jobs
  3. Choose Cloud Run services
  4. Choose GKE Standard

Explanation

Correct Answer

C:

Cloud Run hosts container services with managed request routing and configurable instance scaling; this is relevant because the outcome sought is serving HTTP traffic on managed serverless containers.

Incorrect Answers

A:

Google Cloud Batch schedules and executes batch workloads on managed Compute Engine resources; the decision here is about serving HTTP traffic on managed serverless containers, not orchestrating finite parallel batch jobs.

B:

Cloud Run jobs run tasks to completion without exposing a request-serving service endpoint; that applies to running task-oriented serverless containers; the requested task is serving HTTP traffic on managed serverless containers.

D:

GKE Standard runs Kubernetes with user-managed node pools and more infrastructure configuration control; it would help with administering GKE infrastructure settings directly, but it does not directly implement serving HTTP traffic on managed serverless containers.

Question 241

A resource creation is rejected after the project reaches its allowable regional CPU quota. What should the engineer inspect?

  1. Use a support case for quota constraints
  2. Check a quota in Quotas & System Limits
  3. Select a compatible zone for zonal resources
  4. Distinguish quota from physical capacity

Explanation

Correct Answer

B:

What matters is diagnosing a project-level quota limit; Quotas and System Limits surfaces supported quota consumption, values and adjustable limits.

Incorrect Answers

A:

Google Cloud support can clarify policy and capacity options, although some system limits are not adjustable; this governs escalating a quota constraint through support, whereas the stated objective is diagnosing a project-level quota limit.

C:

Zonal compute and zonal disks must be placed in compatible zones to attach directly; that supports matching VM and disk zones; the problem to solve concerns diagnosing a project-level quota limit.

D:

Quota determines allowed resource consumption; regional or zonal hardware capacity is a separate constraint; it is relevant when checking actual location capacity and availability, not when the primary need is diagnosing a project-level quota limit.

Question 242

A database VM's storage needs independently provisioned throughput or IOPS under a supported Hyperdisk type. What should be selected?

  1. Use a zonal persistent disk
  2. Use a custom VM image
  3. Use a Hyperdisk volume
  4. Choose a custom machine type

Explanation

Correct Answer

C:

Hyperdisk offers supported block volume types with configurable performance capabilities subject to type and machine limits; it supports matching disk performance settings to workload demand at the appropriate resource scope.

Incorrect Answers

A:

Zonal Persistent Disk is persistent block storage tied to one zone and attachable to compatible VMs; it is not the focused action for matching disk performance settings to workload demand; its primary use is maintaining persistent block data with a VM.

B:

Custom images capture disk contents for compatible boot or data disk creation; it is appropriate for baking standardized boot disk contents; here, the deciding requirement is matching disk performance settings to workload demand.

D:

Compute Engine custom machine types support configurable processor and memory combinations within family constraints; this is a distinct control for tailoring vCPU and memory combinations, rather than matching disk performance settings to workload demand.

Question 243

An operations manager wants to revoke all incident-response privileges by removing users from one directory group. What binding design works?

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

Explanation

Correct Answer

D:

The requirement is driving IAM entitlements via centralized groups; Google groups can be IAM principals, with access evaluated through applicable group membership.

Incorrect Answers

A:

Principal Access Boundary policies constrain access to supported resources within defined boundaries under applicable enforcement rules; this governs bounding accessible resources independently of allow roles, whereas the stated objective is driving IAM entitlements via centralized groups.

B:

IAM Recommender provides eligible role-grant recommendations based on observed access and permission usage; its purpose differs: finding excessive IAM permissions is separate from driving IAM entitlements via centralized groups.

C:

Service accounts are IAM principals that represent applications or compute workloads and can receive roles; it concerns delegating cloud privileges to a workload identity, and its normal effect does not provide driving IAM entitlements via centralized groups.

Question 244

A cluster's nodes use a custom service account and cannot fetch images from another project's Artifact Registry. What should be granted?

  1. Use service account for Batch jobs
  2. Use service account permissions for Cloud Build
  3. Grant Artifact Registry reader to node identity
  4. Bind GKE workload identity to IAM

Explanation

Correct Answer

C:

GKE image pulls use eligible node or configured credential identities that need Artifact Registry read permissions; it is the direct control for giving node-side image pull identity registry access.

Incorrect Answers

A:

Batch workloads run under configured service-account identities on underlying compute resources; the decision here is about giving node-side image pull identity registry access, not granting Batch task instances their required API permissions.

B:

Build steps execute under a configured Cloud Build service account that needs IAM rights for target operations; this is a distinct control for authorizing the build execution identity to publish artifacts, rather than giving node-side image pull identity registry access.

D:

Workload Identity Federation for GKE establishes workload identities that receive supported IAM access without embedded private keys; its operational role is granting Pod-scoped Google Cloud resource access; the needed capability is giving node-side image pull identity registry access.

Question 245

A specific application reported a failure at 14:05 and engineers must filter logs by resource and timestamp. Which surface fits?

  1. Query logs in Logs Explorer
  2. Configure log exclusions
  3. Create a log sink to Cloud Storage
  4. Create a log-based alert

Explanation

Correct Answer

A:

The requirement is searching centralized logs by resource and time; Logs Explorer filters indexed log entries and displays structured resource labels and payload details.

Incorrect Answers

B:

Logging exclusions and sink filters can prevent eligible entries from being routed to selected log buckets; the supported outcome is filtering low-value logs out of ingestion paths, while the requested result is searching centralized logs by resource and time.

C:

Cloud Logging sinks can route supported records to Cloud Storage buckets for external retention workflows; it concerns archiving matching logs to object storage, and its normal effect does not provide searching centralized logs by resource and time.

D:

Log-based alerting policies trigger incidents from log entries matching configured filters; the supported outcome is alerting when filtered logs appear, while the requested result is searching centralized logs by resource and time.

Question 246

A multi-stage automation uses one broker identity before calling APIs as a final account. What permissions and API feature enable the flow?

  1. Use service account impersonation with gcloud
  2. Use IAM service-account impersonation roles
  3. Use service account delegation chain
  4. Grant Cloud Run Invoker

Explanation

Correct Answer

C:

What matters is performing authorized chained service-account impersonation; IAM Credentials supports delegated impersonation chains when each principal has required token creation permissions.

Incorrect Answers

A:

This alternative focuses on using controlled per-command service-account impersonation; Gcloud supports service-account impersonation flags to request short-lived credentials when authorized; the stem instead asks for performing authorized chained service-account impersonation.

B:

Service account impersonation lets authorized principals mint short-lived credentials for an account using supported IAM roles; its operational role is allowing time-limited identity impersonation; the needed capability is performing authorized chained service-account impersonation.

D:

Cloud Run Invoker grants permission to invoke eligible Cloud Run services subject to authentication and ingress controls; its purpose differs: authorizing HTTP invocation of a private service is separate from performing authorized chained service-account impersonation.

Question 247

An SRE wants to detect whether a hosted web URL is reachable from Google's probe locations. What should they configure?

  1. Use Monitoring notification channels
  2. Configure Cloud Monitoring custom metrics
  3. Use Log Analytics
  4. Use Monitoring uptime checks

Explanation

Correct Answer

D:

Uptime checks send periodic protocol requests to supported endpoints and produce availability metrics; that behavior is precisely what testing external service responsiveness automatically calls for.

Incorrect Answers

A:

Notification channels identify targets for messages emitted by Monitoring alerting policies; it concerns delivering alerts to supported communication endpoints, and its normal effect does not provide testing external service responsiveness automatically.

B:

Custom Cloud Monitoring metrics let applications write supported time-series values representing domain-specific behavior; that solves problems involving tracking application-specific numeric signals, rather than the testing external service responsiveness automatically requirement.

C:

Log Analytics enables supported SQL analysis over eligible Cloud Logging buckets; it is relevant when running analytical queries on stored logs, not when the primary need is testing external service responsiveness automatically.

Question 248

A deployment changes environment variables, and the team wants a versioned revision available for routing. What should be created?

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

Explanation

Correct Answer

C:

Deploying changes to a Cloud Run service creates a revision representing its immutable code and configuration; the decisive property here is versioning Cloud Run service configuration.

Incorrect Answers

A:

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; that solves problems involving setting the Cloud Run service maximum instance configuration, rather than the versioning Cloud Run service configuration requirement.

B:

The alternative would address examining logs attached to a Cloud Run revision; Cloud Run integrates request and container logs with Cloud Logging for revision-focused diagnosis; the question instead requires versioning Cloud Run service configuration.

D:

The alternative would address redirecting requests to a prior healthy revision; Cloud Run can shift service traffic back to a previous retained revision without requiring another build; the question instead requires versioning Cloud Run service configuration.

Question 249

App teams should not override a centrally established baseline network rule through ordinary VPC rules. Which policy layer helps?

  1. Use Cloud NGFW hierarchical firewall policies
  2. Use VPC firewall egress deny
  3. Use VPC firewall ingress allow
  4. Use Cloud NGFW secure tags

Explanation

Correct Answer

A:

Hierarchical firewall policies apply ordered network security rules from organization or folder associations; it supports centralizing firewall enforcement above individual projects at the appropriate resource scope.

Incorrect Answers

B:

Egress deny rules block matching traffic initiated by selected resources to the configured destinations; the decision here is about centralizing firewall enforcement above individual projects, not blocking outbound connections to a destination range.

C:

The alternative would address opening a targeted inbound network flow; Ingress allow rules permit matching incoming connections to specified targets subject to higher-priority policies; the question instead requires centralizing firewall enforcement above individual projects.

D:

Secure Tags are resource-manager tags usable in supported Cloud NGFW policy targeting; it is not the focused action for centralizing firewall enforcement above individual projects; its primary use is selecting network targets using governed security tags.

Question 250

Multiple engineers collaborate on one Terraform deployment and need a shared authoritative state file. What should they configure?

  1. Run terraform plan
  2. Use remote Terraform state storage
  3. Import an existing resource into Terraform state
  4. Use Terraform modules

Explanation

Correct Answer

B:

The requested administrative outcome is centralizing infrastructure state for a team; A remote backend such as a protected Cloud Storage bucket can centralize Terraform state for collaborative workflows.

Incorrect Answers

A:

Terraform plan compares configuration and state with remote resource information to produce an execution plan; it is relevant when reviewing a proposed infrastructure diff, not when the primary need is centralizing infrastructure state for a team.

C:

This alternative focuses on bringing an existing resource under Terraform state; Terraform import associates eligible existing remote objects with resource addresses in state, with configuration alignment still required; the stem instead asks for centralizing infrastructure state for a team.

D:

Terraform modules encapsulate resource definitions and input/output interfaces for reuse; this is a distinct control for standardizing infrastructure through reusable components, rather than centralizing infrastructure state for a team.

Associate Cloud Engineer Practice Tests