Google Associate Cloud Engineer Practice Test 20

Question 190

A planned maintenance period will intentionally violate one metric alert; the team wants to temporarily suppress notifications. Which capability helps?

  1. Use Monitoring uptime checks
  2. Use Monitoring notification channels
  3. Use Cloud Trace spans
  4. Create an alerting snooze

Explanation

Correct Answer

D:

Monitoring snoozes suppress notifications from matching alert policies for a defined period without deleting the policies; Applied in this case, it delivers silencing expected alerts during maintenance.

Incorrect Answers

A:

Uptime checks send periodic protocol requests to supported endpoints and produce availability metrics; this is a distinct control for probing endpoint availability from outside, rather than silencing expected alerts during maintenance.

B:

Notification channels identify targets for messages emitted by Monitoring alerting policies; that supports delivering alerts to supported communication endpoints; the problem to solve concerns silencing expected alerts during maintenance.

C:

Trace spans describe timed operations within a distributed request for root-cause investigation; it would help with analyzing distributed request timing, but it does not directly implement silencing expected alerts during maintenance.

Question 191

A regulated workload must store and process data only in a geography where its selected products are offered. What should be verified before deployment?

  1. Use service quotas proactively
  2. Request an adjustable quota increase
  3. Check a quota in Quotas & System Limits
  4. Choose a supported region
  5. Use a support case for quota constraints

Explanation

Correct Answer

D:

Google Cloud services have distinct regional and global availability; not every SKU exists in each location; this is the specific mechanism used for validating service availability and data location.

Incorrect Answers

A:

Service quotas impose consumption limits that may need review or adjustment before substantial growth; its operational role is checking whether planned load exceeds project limits; the needed capability is validating service availability and data location.

B:

Eligible service quotas can be increased through quota adjustment subject to approval and actual resource availability; Applying it would target obtaining additional allowed resource quota, leaving the separate need for validating service availability and data location.

C:

Quotas and System Limits surfaces supported quota consumption, values and adjustable limits; it is not the focused action for validating service availability and data location; its primary use is diagnosing a project-level quota limit.

E:

Google Cloud support can clarify policy and capacity options, although some system limits are not adjustable; the supported outcome is escalating a quota constraint through support, while the requested result is validating service availability and data location.

Question 192

Two microservices require different data permissions and should not share one privileged identity. What provisioning pattern fits?

  1. Delete obsolete service account
  2. Avoid exporting service account keys
  3. Create a dedicated service account
  4. Disable unused service account

Explanation

Correct Answer

C:

Dedicated service accounts provide separate nonhuman identities for workloads and make IAM grants auditable; the decisive property here is providing each workload with a distinct IAM principal.

Incorrect Answers

A:

Deleting a service account removes its identity; accidental deletion may have limited recovery options and affect dependencies; it concerns eliminating unused service-account principals, and its normal effect does not provide providing each workload with a distinct IAM principal.

B:

Managed service-account credentials are generally safer than downloadable private keys because the platform supplies short-lived tokens; the decision here is about providing each workload with a distinct IAM principal, not avoiding unnecessary long-lived private keys.

D:

Disabling a service account blocks its use without immediately deleting the identity and associated metadata; that solves problems involving blocking authentication by an abandoned workload identity, rather than the providing each workload with a distinct IAM principal requirement.

Question 193

A platform team wants to trace which human or workload requested short-lived credentials for a privileged account. What logging should it review?

  1. Use service account impersonation with gcloud
  2. Use service account authentication without downloaded keys
  3. Use service account impersonation audit trail
  4. Grant service account token creator

Explanation

Correct Answer

C:

Relevant audit logs for IAM Credentials operations can attribute supported credential issuance under appropriate logging configuration; this is relevant because the outcome sought is auditing service-account token minting.

Incorrect Answers

A:

The alternative would address temporarily running a command under service-account identity; Gcloud supports service-account impersonation flags to request short-lived credentials when authorized; the question instead requires auditing service-account token minting.

B:

Attached service accounts and the platform metadata service supply refreshed short-lived credentials to supported workloads; that applies to using default platform-supplied tokens; the requested task is auditing service-account token minting.

D:

Service Account Token Creator enables supported token or signature operations for a target service account; its purpose differs: authorizing ephemeral impersonation credentials is separate from auditing service-account token minting.

Question 194

A CI job must turn on the Artifact Registry API noninteractively in a project. Which command family is appropriate?

  1. Authenticate with gcloud auth login
  2. Use gcloud services enable
  3. Use a gcloud named configuration
  4. Set gcloud's active project

Explanation

Correct Answer

B:

The gcloud services enable command activates named Service Usage APIs in the selected project; that behavior is precisely what enabling a service through the command line calls for.

Incorrect Answers

A:

Gcloud auth login authorizes a user account for gcloud, subject to its IAM permissions; that mechanism handles authorizing gcloud commands as a human user; it does not configure enabling a service through the command line.

C:

Named gcloud configurations store sets of CLI properties and can be activated as needed; the decision here is about enabling a service through the command line, not separating reusable gcloud account and project settings.

D:

The alternative would address persisting the project's CLI selection; the active gcloud core/project property determines the default project for commands that honor it; the question instead requires enabling a service through the command line.

Question 195

A resource state changed because Google Cloud performed a system-managed operation instead of a human API call. Which log category may explain it?

  1. Use Cloud Audit Logs Data Access
  2. Use Cloud Audit Logs System Event
  3. Use Cloud Monitoring Managed Service for Prometheus
  4. Use Active Assist recommendations

Explanation

Correct Answer

B:

System Event audit logs record supported Google Cloud system operations modifying resource configurations; Applied in this case, it delivers identifying provider-initiated system changes.

Incorrect Answers

A:

Data Access audit logs capture supported data reads and writes and may require explicit enablement depending on service and category; it concerns auditing supported data-plane access events, and its normal effect does not provide identifying provider-initiated system changes.

C:

Managed Service for Prometheus integrates Prometheus-compatible metric collection with Cloud Monitoring storage and querying; it would help with collecting Prometheus-compatible workload metrics, but it does not directly implement identifying provider-initiated system changes.

D:

Active Assist produces eligible recommendations and insights about efficiency, reliability, security and cost; it is relevant when reviewing rightsizing and efficiency recommendations, not when the primary need is identifying provider-initiated system changes.

Question 196

A governance team needs to deny a supported resource configuration based on a resource attribute rather than a built-in list. Which mechanism is appropriate?

  1. Use a custom organization policy constraint
  2. Create a folder in the resource hierarchy
  3. Use Cloud Asset Inventory
  4. Use Resource Manager tags

Explanation

Correct Answer

A:

What matters is expressing a supported resource-attribute restriction; Custom organization policy constraints let administrators express supported resource rules using condition expressions.

Incorrect Answers

B:

Folders provide hierarchical grouping below an organization and above projects, inheriting policies down the tree; Applying it would target scoping governance to department projects, leaving the separate need for expressing a supported resource-attribute restriction.

C:

Cloud Asset Inventory indexes supported Google Cloud resource and policy metadata for search, analysis and exports; it is not the focused action for expressing a supported resource-attribute restriction; its primary use is searching a centralized cloud asset inventory.

D:

Resource Manager tags are centrally defined key-value bindings with policy integrations distinct from ordinary labels; that supports attaching policy-aware governed metadata to resources; the problem to solve concerns expressing a supported resource-attribute restriction.

Question 197

An alert policy creates incidents but emails never reach the responders because no target is attached. What should be configured?

  1. Use Monitoring notification channels
  2. Create a log-based alert
  3. Configure Cloud Monitoring custom metrics
  4. Create a metric-threshold alert

Explanation

Correct Answer

A:

The requirement is routing incident notifications to recipients; Notification channels identify targets for messages emitted by Monitoring alerting policies.

Incorrect Answers

B:

Log-based alerting policies trigger incidents from log entries matching configured filters; it would help with alerting when filtered logs appear, but it does not directly implement routing incident notifications to recipients.

C:

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 routing incident notifications to recipients requirement.

D:

For detecting sustained monitoring metric breaches, this could be relevant; Metric-threshold conditions compare time series with configured values and duration windows; the actual request concerns routing incident notifications to recipients.

Question 198

An application suddenly receives too-many-connections errors despite normal CPU usage. What database configuration or telemetry should be inspected?

  1. Use Database Center
  2. Check Cloud SQL connection limits
  3. Use Cloud SQL Query Insights
  4. Use Firestore scheduled backups

Explanation

Correct Answer

B:

What matters is diagnosing exhaustion of database connections; Cloud SQL and underlying database engines have connection capacity considerations requiring pooling and appropriate instance sizing.

Incorrect Answers

A:

Database Center offers fleet-level information and insights for supported Google Cloud database services; that mechanism handles observing a fleet of cloud databases; it does not configure diagnosing exhaustion of database connections.

C:

Cloud SQL Query Insights provides query-centric performance analysis and workload metrics for supported database instances and configurations; that solves problems involving investigating high-latency database queries with Query Insights, rather than the diagnosing exhaustion of database connections requirement.

D:

Firestore scheduled backups support daily or weekly database snapshots and restoration to a new database while retaining configurable backup copies; the decision here is about diagnosing exhaustion of database connections, not setting a scheduled Firestore database backup and retention.

Question 199

Network engineers require explicit control over subnet creation and CIDR ranges in each region. Which VPC mode fits?

  1. Use Cloud DNS private zones
  2. Use a Shared VPC host project
  3. Use Cloud Interconnect
  4. Create a custom-mode VPC

Explanation

Correct Answer

D:

Custom-mode VPC networks have no automatically created regional subnets and let administrators add them explicitly; the decisive property here is manually defining regional subnets and address ranges.

Incorrect Answers

A:

Private Cloud DNS zones are authorized for specific networks and resolve within those networks; that mechanism handles resolving private hostnames inside authorized networks; it does not configure manually defining regional subnets and address ranges.

B:

This alternative focuses on sharing controlled VPC subnets across service projects; Shared VPC allows service projects to use subnets from a host project's shared network under delegated access; the stem instead asks for manually defining regional subnets and address ranges.

C:

Cloud Interconnect provides supported private connectivity between on-premises networks and Google Cloud through dedicated or partner arrangements; the scenario specifies manually defining regional subnets and address ranges, which differs from connecting a private circuit to Google's network.

Question 200

A runtime discrepancy involves a particular VM; administrators need its full API representation rather than a fleet summary. What should they run?

  1. Use gcloud compute instances describe
  2. Create a custom image from a disk
  3. Diagnose OS Login IAM roles
  4. Use IAP TCP forwarding for SSH
  5. Use an SSH metadata key for supported VMs

Explanation

Correct Answer

A:

The instances describe operation retrieves configuration and status details for a specified VM in its zone; this is relevant because the outcome sought is examining an individual VM resource.

Incorrect Answers

B:

Custom Compute Engine images provide reusable disk source content for new boot disks; Applying it would target preparing reusable VM boot images, leaving the separate need for examining an individual VM resource.

C:

OS Login uses IAM roles and identities for VM SSH access, superseding metadata-managed key access when enabled; this governs granting supported OS Login access through IAM, whereas the stated objective is examining an individual VM resource.

D:

IAP TCP forwarding can proxy authorized SSH connections without a public VM address when prerequisites are met; it would help with tunneling SSH through identity-aware access, but it does not directly implement examining an individual VM resource.

E:

When OS Login is disabled, supported SSH keys in project or instance metadata can be applied by guest agents; that supports managing SSH public keys via Compute Engine metadata; the problem to solve concerns examining an individual VM resource.

Associate Cloud Engineer Practice Tests