Question 370
A database component needs stable network identities and persistent volume attachment for each replica. Which workload controller fits?
- Scale a Kubernetes Deployment replica count
- Use Kubernetes StatefulSet
- Use Kubernetes Ingress or Gateway API
- Configure Vertical Pod Autoscaler
Explanation
Correct Answer
B:StatefulSets provide stable Pod identities and ordered management suitable for stateful applications; this is the specific mechanism used for operating stateful Kubernetes Pods.
Incorrect Answers
A:The Deployment replicas setting controls desired Pod replicas managed through ReplicaSets; this is a distinct control for changing Deployment-managed Pod replicas, rather than operating stateful Kubernetes Pods.
C:Ingress and Gateway API resources describe supported application-layer entry routing to Kubernetes backends; Applying it would target routing external HTTP requests among Kubernetes Services, leaving the separate need for operating stateful Kubernetes Pods.
D:Vertical Pod Autoscaler recommends or manages CPU and memory requests according to its configured mode; the decision here is about operating stateful Kubernetes Pods, not optimizing workload resource requests vertically.
Question 371
An event-processing application must join and enrich live Pub/Sub records without running a permanent worker cluster. Which managed engine applies?
- Use BigQuery
- Use BigQuery load job from Cloud Storage
- Use Dataflow
- Use Pub/Sub
Explanation
Correct Answer
C:Dataflow runs managed batch and streaming pipelines, including Apache Beam workloads; for the stated workload, the practical result is executing scalable managed data transformations.
Incorrect Answers
A:BigQuery is a managed analytical data warehouse designed for scalable SQL workloads; it is appropriate for querying large analytical datasets; here, the deciding requirement is executing scalable managed data transformations.
B:BigQuery load jobs read supported source objects and create or append data in destination tables; it would help with loading staged files into BigQuery tables, but it does not directly implement executing scalable managed data transformations.
D:Pub/Sub delivers asynchronous messages through topics and subscriptions with configurable delivery semantics; its operational role is decoupling event publishers and subscribers; the needed capability is executing scalable managed data transformations.
Question 372
A worker normally publishes a heartbeat metric every minute, but the metric suddenly stops arriving. Which condition detects this?
- Configure Ops Agent on a VM
- Create an alerting snooze
- Configure Cloud Monitoring custom metrics
- Create an absence alert
Explanation
Correct Answer
D:Metric absence conditions identify when expected time-series data stops arriving within a configured window; the decisive property here is notifying when expected metric data disappears.
Incorrect Answers
A:The Ops Agent gathers supported guest metrics and logs and sends them to Google Cloud Observability; it would help with collecting guest metrics and logs on VMs, but it does not directly implement notifying when expected metric data disappears.
B:Monitoring snoozes suppress notifications from matching alert policies for a defined period without deleting the policies; the decision here is about notifying when expected metric data disappears, not suppressing selected incident notifications temporarily.
C:The alternative would address tracking application-specific numeric signals; Custom Cloud Monitoring metrics let applications write supported time-series values representing domain-specific behavior; the question instead requires notifying when expected metric data disappears.
Question 373
A project owner tries to grant a role to an unapproved external organization and the policy must reject it. Which organization constraint addresses this?
- Use IAM deny policies
- Use Workload Identity Federation
- Use domain restricted sharing organization policy
- Use resource tags in IAM Conditions
Explanation
Correct Answer
C:Domain-restricted sharing policy constraints limit eligible principals in supported IAM policies; for the stated workload, the practical result is preventing unauthorized external principal grants.
Incorrect Answers
A:IAM deny policies can block eligible permissions for matching principals despite otherwise applicable allow grants; Applying it would target overriding applicable allows with a deny, leaving the separate need for preventing unauthorized external principal grants.
B:Workload Identity Federation exchanges eligible external workload identities for short-lived Google Cloud credentials; that solves problems involving federating non-Google workload credentials, rather than the preventing unauthorized external principal grants requirement.
D:IAM Conditions can evaluate supported resource-manager tag relationships in compatible access decisions; the supported outcome is evaluating policy against resource tag values, while the requested result is preventing unauthorized external principal grants.
Question 374
A build pipeline needs a managed private registry for container images used by Cloud Run and GKE. What product should it use?
- Use a GKE regional cluster
- Use private GKE nodes
- Choose GKE Standard
- Use Artifact Registry
Explanation
Correct Answer
D:Artifact Registry stores supported packages and container images in access-controlled repositories; the decisive property here is storing and distributing container artifacts.
Incorrect Answers
A:Regional GKE clusters replicate supported control-plane and node components across multiple zones; this governs reducing single-zone GKE dependency, whereas the stated objective is storing and distributing container artifacts.
B:This alternative focuses on deploying Kubernetes nodes without public IPs; Private GKE nodes use internal addresses and can reach required endpoints via authorized private or egress paths; the stem instead asks for storing and distributing container artifacts.
C:GKE Standard runs Kubernetes with user-managed node pools and more infrastructure configuration control; its purpose differs: operating configurable Kubernetes node pools is separate from storing and distributing container artifacts.
Question 375
After a bad container image update, the last healthy Deployment ReplicaSet should be restored. Which command fits?
- Scale a Kubernetes Deployment replica count
- Use kubectl logs
- Use kubectl rollout undo
- Configure GKE kubectl credentials
- Grant Artifact Registry read access to GKE
- Use kubectl describe pod
Explanation
Correct Answer
C:Kubectl rollout undo can revert supported Deployment rollouts to a previous revision; for the stated workload, the practical result is reversing a faulty Kubernetes rollout.
Incorrect Answers
A:The Deployment replicas setting controls desired Pod replicas managed through ReplicaSets; it is not the focused action for reversing a faulty Kubernetes rollout; its primary use is adjusting the workload replica target.
B:Kubectl logs retrieves supported stdout and stderr logs from Pod containers, including options for prior instances; Applying it would target examining Pod container standard logs, leaving the separate need for reversing a faulty Kubernetes rollout.
D:Gcloud container clusters get-credentials adds cluster connection information to kubeconfig for kubectl; the scenario specifies reversing a faulty Kubernetes rollout, which differs from populating the Kubernetes context and authentication.
E:The identity used for image pulls needs appropriate Artifact Registry read permissions on the repository; the scenario specifies reversing a faulty Kubernetes rollout, which differs from authorizing cross-project image retrieval.
F:Kubectl describe pod exposes Kubernetes resource conditions, relevant configuration and associated events; this is a distinct control for investigating Pod scheduling events, rather than reversing a faulty Kubernetes rollout.
Question 376
An organization wants authorized access tied to centrally governed project classification tags. What IAM Conditions pattern is relevant?
- Use IAM Recommender
- Use custom role permissions support check
- Use Policy Analyzer
- Use resource tags in IAM Conditions
Explanation
Correct Answer
D:The scenario depends on restricting permissions based on supported tags; IAM Conditions can evaluate supported resource-manager tag relationships in compatible access decisions.
Incorrect Answers
A:The alternative would address reviewing evidence-based least-privilege suggestions; IAM Recommender provides eligible role-grant recommendations based on observed access and permission usage; the question instead requires restricting permissions based on supported tags.
B:Not all IAM permissions can be placed in custom roles, and support levels vary by permission; this governs checking custom-role eligibility for IAM permissions, whereas the stated objective is restricting permissions based on supported tags.
C:Policy Analyzer can analyze IAM allow relationships using Cloud Asset Inventory data; the scenario specifies restricting permissions based on supported tags, which differs from tracing effective role bindings and membership paths.
Question 377
An automation identity can edit a project but receives permission denied when moving it between two folders in the same organization. What permission scope must be checked for the move operation?
- Only Storage Object Admin on the project
- Only Billing Account Viewer on the destination payer
- Required Resource Manager move permissions on the source and destination parents
- A project label indicating the new department
Explanation
Correct Answer
C:Moving a project changes its hierarchy parent and requires suitable move-related permissions on both the original and destination parent resources, in addition to applicable project permissions.
Incorrect Answers
A:Object Admin controls bucket objects and does not provide Resource Manager authority to move a project between hierarchy parents.
B:Billing Viewer is for inspecting charges and cannot authorize project-parent changes in the Resource Manager hierarchy.
D:Labels help classify resources but do not grant authorization to relocate a project beneath a different folder.
Question 378
A team expects several hundred additional instances, but the capacity quota is below forecast demand. What should it arrange?
- Select a compatible zone for zonal resources
- Request an adjustable quota increase
- Choose a supported region
- Use service quotas proactively
Explanation
Correct Answer
B:The requested administrative outcome is obtaining additional allowed resource quota; Eligible service quotas can be increased through quota adjustment subject to approval and actual resource availability.
Incorrect Answers
A:This alternative focuses on co-locating a zonal disk and its VM; Zonal compute and zonal disks must be placed in compatible zones to attach directly; the stem instead asks for obtaining additional allowed resource quota.
C:The alternative would address confirming regional product support for the deployment; Google Cloud services have distinct regional and global availability; not every SKU exists in each location; the question instead requires obtaining additional allowed resource quota.
D:Service quotas impose consumption limits that may need review or adjustment before substantial growth; it concerns checking whether planned load exceeds project limits, and its normal effect does not provide obtaining additional allowed resource quota.
Question 379
A third-party backend has a strict safe connection limit and traffic bursts should not grow Cloud Run instances without bound. What setting helps?
- Use a Cloud Run service account
- Use Cloud Run maximum instances
- Use Cloud Run concurrency setting
- Use Cloud Run jobs
Explanation
Correct Answer
B:Maximum instances constrain how far Cloud Run instance scaling can grow under configured conditions; this is the capability needed for bounding Cloud Run instance scaling.
Incorrect Answers
A:Cloud Run services can run as a configured service account with IAM-granted permissions; it is not the focused action for bounding Cloud Run instance scaling; its primary use is authorizing Cloud Run runtime API calls.
C:Cloud Run concurrency controls how many concurrent requests a service instance may receive; the supported outcome is configuring concurrent requests per Cloud Run instance, while the requested result is bounding Cloud Run instance scaling.
D:Cloud Run jobs run tasks to completion without exposing a request-serving service endpoint; it would help with running task-oriented serverless containers, but it does not directly implement bounding Cloud Run instance scaling.
Question 380
An interruptible batch processor can checkpoint tasks and resume after VM reclamation. Which cost-oriented machine option fits?
- Use committed use discounts for compute
- Use a regional persistent disk
- Use an instance schedule
- Choose a Spot VM
Explanation
Correct Answer
D:Spot VMs have lower eligible prices but no guaranteed continuous availability or fixed lifetime; that matches the requirement for running fault-tolerant workloads on reclaimable capacity.
Incorrect Answers
A:For reducing long-term eligible compute cost, this could be relevant; Committed use discounts exchange qualifying resource or spend commitments for discounted eligible usage; the actual request concerns running fault-tolerant workloads on reclaimable capacity.
B:Regional Persistent Disk provides synchronously replicated block storage across two zones with applicable failover considerations; Applying it would target supporting zonal failover of persistent block data, leaving the separate need for running fault-tolerant workloads on reclaimable capacity.
C:Instance schedules can automate starts and stops for eligible Compute Engine VM instances; that supports scheduling regular VM start and stop behavior; the problem to solve concerns running fault-tolerant workloads on reclaimable capacity.