Question 180
A frontend must replace unhealthy instances automatically while keeping identical machine configurations. Which Compute Engine capability fits?
- Use VM reservation
- Configure an autoscaler for a MIG
- Choose a managed instance group
- Configure MIG autohealing
Explanation
Correct Answer
C:Managed instance groups create and maintain VM replicas using instance templates and optional autoscaling and autohealing; the decisive property here is maintaining desired replicas from a shared template.
Incorrect Answers
A:Compute Engine reservations allocate qualifying VM capacity in a zone independently of starting instances; the supported outcome is securing eligible compute capacity before demand, while the requested result is maintaining desired replicas from a shared template.
B:MIG autoscaling changes the target number of instances using configured signals and scale limits; it is relevant when dynamically sizing managed VM fleets, not when the primary need is maintaining desired replicas from a shared template.
D:Autohealing uses configured health checks to trigger replacement of unhealthy MIG instances; the decision here is about maintaining desired replicas from a shared template, not recreating unhealthy managed instances.
Question 181
A GitHub Actions pipeline should exchange its trusted OIDC identity for Google Cloud authorization. Which identity integration is appropriate?
- Use IAM Credentials API
- Use IAM service-account impersonation roles
- Restrict federation provider attributes
- Use Workload Identity Federation
Explanation
Correct Answer
D:Workload Identity Federation exchanges eligible external workload identities for short-lived Google Cloud credentials; this is the specific mechanism used for accessing cloud APIs from external CI without key files.
Incorrect Answers
A:The IAM Credentials API generates supported short-lived service account tokens and signatures for authorized callers; it is relevant when requesting limited-lifetime credentials programmatically, not when the primary need is accessing cloud APIs from external CI without key files.
B:Service account impersonation lets authorized principals mint short-lived credentials for an account using supported IAM roles; its purpose differs: allowing time-limited identity impersonation is separate from accessing cloud APIs from external CI without key files.
C:For enforcing attribute-based identity federation conditions, this could be relevant; Workload identity provider attribute conditions restrict accepted external identity assertions; the actual request concerns accessing cloud APIs from external CI without key files.
Question 182
A Cloud Run process uses a Google client library and the team wants no hard-coded key path. Which credential mechanism should it rely on?
- Attach a service account to Cloud Run
- Use short-lived access tokens
- Avoid exporting service account keys
- Use Application Default Credentials on Google Cloud
Explanation
Correct Answer
D:Application Default Credentials allows libraries to discover the runtime's supported identity credentials; this is relevant because the outcome sought is automatically locating attached runtime credentials.
Incorrect Answers
A:Cloud Run services use configured runtime service accounts for Google Cloud API calls; its operational role is running the container as a selected service account; the needed capability is automatically locating attached runtime credentials.
B:Short-lived OAuth access tokens restrict credential lifetime and can be generated using supported identity mechanisms; this is a distinct control for limiting credential validity through expiration, rather than automatically locating attached runtime credentials.
C:Managed service-account credentials are generally safer than downloadable private keys because the platform supplies short-lived tokens; the scenario specifies automatically locating attached runtime credentials, which differs from using workload-attached credentials instead of embedded secrets.
Question 183
A critical error string in Cloud Logging should immediately trigger an incident without first creating a metric threshold. What alert type fits?
- Create an absence alert
- Use Monitoring notification channels
- Create a metric-threshold alert
- Create a log-based alert
Explanation
Correct Answer
D:What matters is generating incidents from matching log events; Log-based alerting policies trigger incidents from log entries matching configured filters.
Incorrect Answers
A:This alternative focuses on notifying when expected metric data disappears; Metric absence conditions identify when expected time-series data stops arriving within a configured window; the stem instead asks for generating incidents from matching log events.
B:Notification channels identify targets for messages emitted by Monitoring alerting policies; it is appropriate for delivering alerts to supported communication endpoints; here, the deciding requirement is generating incidents from matching log events.
C:The alternative would address triggering alerts from metric values; Metric-threshold conditions compare time series with configured values and duration windows; the question instead requires generating incidents from matching log events.
Question 184
A Cloud SQL instance requires recovery after an accidental destructive change, and a managed backup exists. Which operation should be used?
- Check Cloud SQL connection limits
- Use Firestore scheduled backups
- Restore a Cloud SQL backup
- Use Cloud SQL import from Cloud Storage
Explanation
Correct Answer
C:Cloud SQL backup restore operations use managed backups to recover database contents, subject to engine and target constraints; it is the direct control for recovering relational data from a database backup.
Incorrect Answers
A:Cloud SQL and underlying database engines have connection capacity considerations requiring pooling and appropriate instance sizing; the scenario specifies recovering relational data from a database backup, which differs from diagnosing exhaustion of database connections.
B:Firestore scheduled backups support daily or weekly database snapshots and restoration to a new database while retaining configurable backup copies; Applying it would target setting a scheduled Firestore database backup and retention, leaving the separate need for recovering relational data from a database backup.
D:Cloud SQL import operations ingest supported SQL and CSV files from authorized Cloud Storage paths; the scenario specifies recovering relational data from a database backup, which differs from loading external data files into Cloud SQL.
Question 185
A Compute Engine VM runs a client library that should use the VM identity, but its attached service account has insufficient roles on the target bucket. Where should the missing resource authorization be granted?
- On the developer’s local gcloud CLI login
- To the VM-attached service account on the bucket
- To every human user in the project
- By adding a public ACL on the bucket
Explanation
Correct Answer
B:Libraries using the VM’s attached identity act as the service account. Granting the required bucket role to that account at the narrow resource scope fixes IAM authorization without downloading keys.
Incorrect Answers
A:A human developer’s CLI session is not the principal used by the VM’s metadata-server credentials. Changing that login cannot fix permissions for the runtime identity.
C:Granting users access does not change the identity that application code presents from Compute Engine, and it broadens privileges without solving the service-account error.
D:Making storage data public avoids the intended authenticated authorization model and does not repair the missing IAM grant for the application’s service account.
Question 186
A scheduled analytical query appears to have failed and the owner needs its error and execution status. Which BigQuery surface fits?
- Use Pub/Sub acknowledgement
- Use Pub/Sub seek or snapshot
- Use BigQuery job history
- Check Dataflow job monitoring
Explanation
Correct Answer
C:BigQuery jobs expose execution status, errors, timing and other job metadata in the interface and APIs; this is the capability needed for inspecting a warehouse job's execution result.
Incorrect Answers
A:Pub/Sub acknowledgements mark delivered messages as handled for that subscription under applicable delivery guarantees; this governs acknowledging successfully processed messages, whereas the stated objective is inspecting a warehouse job's execution result.
B:Pub/Sub seek and snapshots support eligible replay or subscription position recovery within retention constraints; its operational role is resetting subscription delivery position; the needed capability is inspecting a warehouse job's execution result.
D:Dataflow jobs expose monitoring graphs, stage metrics, logs and execution status for operational diagnosis; it is appropriate for examining managed data-processing job health; here, the deciding requirement is inspecting a warehouse job's execution result.
Question 187
A company wants to stop inadvertent public exposure even if someone tries to make objects anonymously accessible. Which safeguard fits?
- Use Cloud Storage public access prevention
- Use a Cloud Storage retention policy
- Use Cloud Storage uniform bucket-level access
- Use Cloud Storage versioning
Explanation
Correct Answer
A:Public access prevention disallows public exposure through relevant Cloud Storage access mechanisms; that matches the requirement for blocking public exposure of bucket objects.
Incorrect Answers
B:Bucket retention policies enforce minimum retention periods for supported objects and can be locked for stronger controls; it is appropriate for preventing early deletion of retained objects; here, the deciding requirement is blocking public exposure of bucket objects.
C:Uniform bucket-level access turns off object ACLs so IAM governs access to bucket objects; this governs standardizing object authorization through IAM, whereas the stated objective is blocking public exposure of bucket objects.
D:Object Versioning retains noncurrent object generations until explicitly removed or lifecycle-managed; that applies to recovering overwritten object versions; the requested task is blocking public exposure of bucket objects.
Question 188
A development organization needs Kubernetes with reduced node administration and a private registry for publishing its application images. Choose TWO Google Cloud services or modes.
- Use a GKE regional cluster
- Choose GKE Standard
- Use batch jobs on Google Cloud Batch
- Choose GKE Autopilot
- Use Artifact Registry
Explanation
Correct Answers
D:GKE Autopilot automates many cluster and node infrastructure tasks while retaining Kubernetes workload interfaces; within the multi-part workflow of using low-operations Kubernetes and a private container image repository, this provides reducing Kubernetes node administration.
E:Artifact Registry stores supported packages and container images in access-controlled repositories; within the multi-part workflow of using low-operations Kubernetes and a private container image repository, this provides storing and distributing container artifacts.
Incorrect Answers
A:Regional GKE clusters replicate supported control-plane and node components across multiple zones; the mechanism concerns reducing single-zone GKE dependency and does not directly supply using low-operations Kubernetes and a private container image repository.
B:GKE Standard runs Kubernetes with user-managed node pools and more infrastructure configuration control; the question is specifically about using low-operations Kubernetes and a private container image repository, rather than operating configurable Kubernetes node pools.
C:Google Cloud Batch schedules and executes batch workloads on managed Compute Engine resources, which supports orchestrating finite parallel batch jobs; the needed outcome is using low-operations Kubernetes and a private container image repository.
Question 189
A BI pipeline must compare contracted or eligible published prices over time rather than just incurred spend. What billing export should be considered?
- Use cost anomaly detection
- Configure billing export to BigQuery
- Use billing account IAM roles
- Configure billing export of pricing data
Explanation
Correct Answer
D:Pricing exports provide pricing-related records to BigQuery separately from detailed usage cost exports; this corresponds to analyzing pricing data separately from usage charges, not a separate lifecycle action.
Incorrect Answers
A:Cloud Billing cost anomaly detection identifies unusual cost changes using billing spending signals; it is appropriate for surfacing anomalous billing behavior; here, the deciding requirement is analyzing pricing data separately from usage charges.
B:Cloud Billing exports send selected cost and pricing information to BigQuery datasets for analysis; that supports making Cloud Billing data queryable in BigQuery; the problem to solve concerns analyzing pricing data separately from usage charges.
C:Billing-account IAM permissions control access to financial data and payer operations separately from project IAM; its purpose differs: authorizing access to billing account information is separate from analyzing pricing data separately from usage charges.
Question 190
A planned maintenance period will intentionally violate one metric alert; the team wants to temporarily suppress notifications. Which capability helps?
- Use Monitoring uptime checks
- Use Monitoring notification channels
- Use Cloud Trace spans
- 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.