Question 520
A team wants automatic recurring persistent-disk recovery points and the ability to provision a replacement disk from those snapshots after a failure. Choose TWO capabilities.
- Restore a new disk from a snapshot
- Schedule disk snapshots
- Create a custom image from a disk
- Create a disk snapshot
- Resize a persistent disk
Explanation
Correct Answers
A:A snapshot can be the source for creating a new compatible disk, enabling recovery workflows; within the multi-part workflow of scheduling persistent disk backups and restoring a replacement disk, this provides recovering persistent data onto a replacement disk.
B:Resource policies can schedule eligible persistent disk snapshots and manage their retention; within the multi-part workflow of scheduling persistent disk backups and restoring a replacement disk, this provides automating regular persistent disk snapshots.
Incorrect Answers
C:Custom Compute Engine images provide reusable disk source content for new boot disks; it is designed for preparing reusable VM boot images, rather than the needed scheduling persistent disk backups and restoring a replacement disk.
D:Persistent disk snapshots preserve block-level disk contents and can be used to create recovery disks, which serves capturing persistent disk data for recovery instead of scheduling persistent disk backups and restoring a replacement disk.
E:Persistent disks can be expanded subject to limits, with guest partition or filesystem growth often still required; the mechanism concerns expanding an existing persistent disk and does not directly supply scheduling persistent disk backups and restoring a replacement disk.
Question 521
Several projects need the same security baseline and network resources without copy-pasting dozens of configurations. Which Terraform construct supports reuse?
- Use Fabric FAST
- Use Terraform modules
- Use Helm charts
- Use Cloud Foundation Toolkit
- Use a version-controlled IaC repository
Explanation
Correct Answer
B:Terraform modules encapsulate resource definitions and input/output interfaces for reuse; this is relevant because the outcome sought is packaging reusable resource configurations.
Incorrect Answers
A:Fabric FAST supplies a structured foundation automation approach based on infrastructure-as-code modules; this is a distinct control for automating a cloud foundation setup, rather than packaging reusable resource configurations.
C:Helm packages and releases parametrized Kubernetes manifests as charts; the decision here is about packaging reusable resource configurations, not deploying reusable collections of Kubernetes resources.
D:Cloud Foundation Toolkit provides modules and examples for automated Google Cloud foundation deployments; it is not the focused action for packaging reusable resource configurations; its primary use is bootstrapping reusable foundation infrastructure.
E:Version control tracks infrastructure definitions, reviews and history across deployments; this is a distinct control for tracking proposed configuration changes in source control, rather than packaging reusable resource configurations.
Question 522
SSH to a VM with OS Login enabled fails even though the engineer supplied a public key in metadata. What permission area should be checked?
- Use gcloud compute instances describe
- Create a custom image from a disk
- Schedule disk snapshots
- Diagnose OS Login IAM roles
- Create a disk snapshot
Explanation
Correct Answer
D:The scenario depends on authorizing OS Login rather than legacy metadata keys; OS Login uses IAM roles and identities for VM SSH access, superseding metadata-managed key access when enabled.
Incorrect Answers
A:The instances describe operation retrieves configuration and status details for a specified VM in its zone; that mechanism handles retrieving one instance's detailed configuration; it does not configure authorizing OS Login rather than legacy metadata keys.
B:Custom Compute Engine images provide reusable disk source content for new boot disks; it is relevant when turning an approved disk state into a reusable image, not when the primary need is authorizing OS Login rather than legacy metadata keys.
C:Resource policies can schedule eligible persistent disk snapshots and manage their retention; that solves problems involving automating regular persistent disk snapshots, rather than the authorizing OS Login rather than legacy metadata keys requirement.
E:Persistent disk snapshots preserve block-level disk contents and can be used to create recovery disks; that supports capturing persistent disk data for recovery; the problem to solve concerns authorizing OS Login rather than legacy metadata keys.
Question 523
A project owner has broad IAM permissions, but a bucket-creation operation fails because of an organization policy inherited from a folder. Where should the engineer inspect the policy to understand the effective restriction at the project?
- Only the local user’s gcloud authentication token
- The effective organization policy constraints for the project, including ancestor inheritance
- The project’s Cloud Billing price export
- The Compute Engine serial console output
Explanation
Correct Answer
B:The effective organization policy view includes applicable ancestor constraints. It explains why an allowed IAM principal can still be blocked by a governance rule.
Incorrect Answers
A:The caller’s token may prove identity, but organization policy restrictions are evaluated independently of the owner’s authentication token.
C:Billing price tables do not report effective constraints inherited from folders or organizations and cannot establish why storage creation was rejected.
D:A VM serial console shows guest boot and runtime messages. It is unrelated to organization policy evaluation for Cloud Storage bucket creation.
Question 524
A noisy low-value application produces a huge volume of logs that need not be stored in a particular bucket. Which logging setting can reduce ingestion?
- Create a log sink to Cloud Storage
- Create a log sink to Pub/Sub
- Use Log Analytics
- Configure log exclusions
Explanation
Correct Answer
D:Logging exclusions and sink filters can prevent eligible entries from being routed to selected log buckets; this corresponds to excluding unwanted log entries from storage routing, not a separate lifecycle action.
Incorrect Answers
A:Cloud Logging sinks can route supported records to Cloud Storage buckets for external retention workflows; the scenario specifies excluding unwanted log entries from storage routing, which differs from archiving matching logs to object storage.
B:Log sinks can publish matched log records to an authorized Pub/Sub topic; that mechanism handles publishing filtered log entries for processing; it does not configure excluding unwanted log entries from storage routing.
C:Log Analytics enables supported SQL analysis over eligible Cloud Logging buckets; its purpose differs: querying supported logs using SQL analysis is separate from excluding unwanted log entries from storage routing.
Question 525
A security analyst needs sampled flow metadata for traffic on a particular subnet. What feature should be configured?
- Use firewall logging
- Use VPC firewall egress deny
- Use VPC firewall ingress allow
- Use VPC Flow Logs
Explanation
Correct Answer
D:VPC Flow Logs records sampled network flow information for eligible subnet traffic; that matches the requirement for observing subnet network flow patterns.
Incorrect Answers
A:Firewall Rules Logging produces supported connection records for traffic matching enabled rules; the scenario specifies observing subnet network flow patterns, which differs from recording firewall rule match activity.
B:The alternative would address restricting egress network flows; Egress deny rules block matching traffic initiated by selected resources to the configured destinations; the question instead requires observing subnet network flow patterns.
C:Ingress allow rules permit matching incoming connections to specified targets subject to higher-priority policies; this is a distinct control for allowing inbound traffic from approved sources, rather than observing subnet network flow patterns.
Question 526
Kubernetes workers must not receive public external IP addresses. Which cluster/node-networking setup should be used?
- Use private GKE nodes
- Choose GKE Autopilot
- Use a GKE regional cluster
- Choose GKE Standard
Explanation
Correct Answer
A:Private GKE nodes use internal addresses and can reach required endpoints via authorized private or egress paths; that behavior is precisely what keeping GKE node interfaces privately addressed calls for.
Incorrect Answers
B:GKE Autopilot automates many cluster and node infrastructure tasks while retaining Kubernetes workload interfaces; the scenario specifies keeping GKE node interfaces privately addressed, which differs from deploying Kubernetes workloads without self-managed node pools.
C:Regional GKE clusters replicate supported control-plane and node components across multiple zones; it would help with reducing single-zone GKE dependency, but it does not directly implement keeping GKE node interfaces privately addressed.
D:For administering GKE infrastructure settings directly, this could be relevant; GKE Standard runs Kubernetes with user-managed node pools and more infrastructure configuration control; the actual request concerns keeping GKE node interfaces privately addressed.
Question 527
A data lake must delete completed temporary file generations based on age, without custom cleanup jobs. Which configuration fits?
- Configure Cloud Storage lifecycle deletion
- Use gcloud storage ls
- Use object holds
- Use gcloud storage cp
Explanation
Correct Answer
A:Cloud Storage lifecycle rules can remove objects when configured age or other conditions are satisfied; this is the capability needed for implementing age-based object cleanup.
Incorrect Answers
B:Gcloud storage ls enumerates supported buckets and objects depending on the specified path; its operational role is listing Cloud Storage objects; the needed capability is implementing age-based object cleanup.
C:Object holds block eligible object deletion until the hold condition is cleared; it concerns preventing object deletion with object holds, and its normal effect does not provide implementing age-based object cleanup.
D:Gcloud storage cp copies files and supported objects between local storage and Cloud Storage paths; its operational role is uploading object data with the CLI; the needed capability is implementing age-based object cleanup.
Question 528
An enterprise SRE must find database instances with operational issues across projects rather than opening each engine console. What management surface helps?
- Check Dataflow job monitoring
- Use BigQuery partitioned tables
- Use Database Center
- Use BigQuery job history
Explanation
Correct Answer
C:Database Center offers fleet-level information and insights for supported Google Cloud database services; that matches the requirement for centralizing database fleet visibility.
Incorrect Answers
A:Dataflow jobs expose monitoring graphs, stage metrics, logs and execution status for operational diagnosis; this is a distinct control for examining managed data-processing job health, rather than centralizing database fleet visibility.
B:Partitioned BigQuery tables organize rows into partitions that can be pruned by appropriate filters; it is relevant when pruning partitions using date filters, not when the primary need is centralizing database fleet visibility.
D:BigQuery jobs expose execution status, errors, timing and other job metadata in the interface and APIs; it is appropriate for inspecting a warehouse job's execution result; here, the deciding requirement is centralizing database fleet visibility.
Question 529
A developer proposes storing a JSON key in a container image for API access. What safer Google Cloud authentication approach should replace it?
- Avoid exporting service account keys
- Attach a service account to Cloud Run
- Grant service account token creator
- Rotate compromised service account key
Explanation
Correct Answer
A:Managed service-account credentials are generally safer than downloadable private keys because the platform supplies short-lived tokens; it supports using workload-attached credentials instead of embedded secrets at the appropriate resource scope.
Incorrect Answers
B:The alternative would address setting the identity of a serverless service; Cloud Run services use configured runtime service accounts for Google Cloud API calls; the question instead requires using workload-attached credentials instead of embedded secrets.
C:Service Account Token Creator enables supported token or signature operations for a target service account; that mechanism handles authorizing ephemeral impersonation credentials; it does not configure using workload-attached credentials instead of embedded secrets.
D:Deleting or disabling compromised user-managed service-account keys prevents further authentication with those keys; this is a distinct control for invalidating exposed long-lived credentials, rather than using workload-attached credentials instead of embedded secrets.
Question 530
A Kubernetes application's CPU and memory requests are consistently wrong and should be recommended or adjusted. Which autoscaler applies?
- Use kubectl logs
- Use Kubernetes Service
- Configure Vertical Pod Autoscaler
- Scale a Kubernetes Deployment replica count
Explanation
Correct Answer
C:Vertical Pod Autoscaler recommends or manages CPU and memory requests according to its configured mode; Applied in this case, it delivers tuning container resource requests.
Incorrect Answers
A:Kubectl logs retrieves supported stdout and stderr logs from Pod containers, including options for prior instances; the supported outcome is examining Pod container standard logs, while the requested result is tuning container resource requests.
B:For routing traffic to an application Pod set, this could be relevant; Kubernetes Services select endpoints and provide stable discovery or networking for matching Pods; the actual request concerns tuning container resource requests.
D:The Deployment replicas setting controls desired Pod replicas managed through ReplicaSets; it is appropriate for adjusting the workload replica target; here, the deciding requirement is tuning container resource requests.