Question 120
A known traffic event needs specific VM resources available even when on-demand capacity is tight. What reservation mechanism helps?
- Use a regional managed instance group
- Configure MIG autohealing
- Configure an autoscaler for a MIG
- Use VM reservation
Explanation
Correct Answer
D:Compute Engine reservations allocate qualifying VM capacity in a zone independently of starting instances; this corresponds to securing eligible compute capacity before demand, not a separate lifecycle action.
Incorrect Answers
A:Regional managed instance groups distribute members across multiple zones in a region for availability; it is relevant when operating a multi-zone VM instance group, not when the primary need is securing eligible compute capacity before demand.
B:Autohealing uses configured health checks to trigger replacement of unhealthy MIG instances; this is a distinct control for recreating unhealthy managed instances, rather than securing eligible compute capacity before demand.
C:MIG autoscaling changes the target number of instances using configured signals and scale limits; this governs scaling VM replicas to workload signals, whereas the stated objective is securing eligible compute capacity before demand.
Question 121
A custom UDP protocol cannot use an HTTP-aware proxy. Which Google Cloud external load-balancing family can forward its packets?
- Choose external passthrough Network Load Balancer
- Choose global external Application Load Balancer
- Reserve a static internal IP
- Choose internal passthrough Network Load Balancer
Explanation
Correct Answer
A:The requested administrative outcome is serving non-HTTP layer-four network traffic; External passthrough Network Load Balancers distribute eligible TCP or UDP traffic to supported backends without terminating application protocols.
Incorrect Answers
B:Global external Application Load Balancers manage public HTTP(S) traffic using proxy-based layer-seven routing; that supports routing global HTTPS traffic by application rules; the problem to solve concerns serving non-HTTP layer-four network traffic.
C:This alternative focuses on keeping an internal service address stable; Static internal address reservations hold eligible VPC IPs for supported resources or front ends; the stem instead asks for serving non-HTTP layer-four network traffic.
D:Internal passthrough Network Load Balancers provide regional internal layer-four balancing with passthrough behavior; its purpose differs: load balancing internal TCP connections is separate from serving non-HTTP layer-four network traffic.
Question 122
Several project principals have not used much of their broad access, and an administrator wants suggestions to reduce privileges. Which capability helps?
- Use IAM Recommender
- Use IAM policy version 3 for conditions
- Use Policy Analyzer
- Use security groups with least privilege
Explanation
Correct Answer
A:IAM Recommender provides eligible role-grant recommendations based on observed access and permission usage; for the stated workload, the practical result is finding excessive IAM permissions.
Incorrect Answers
B:IAM allow policy version 3 supports conditional role bindings and should be requested when managing conditions; its purpose differs: retrieving condition-aware IAM policy data is separate from finding excessive IAM permissions.
C:Policy Analyzer can analyze IAM allow relationships using Cloud Asset Inventory data; Applying it would target investigating access relationships across the hierarchy, leaving the separate need for finding excessive IAM permissions.
D:For combining directory groups with narrow IAM permissions, this could be relevant; Group principals and scoped predefined roles reduce per-user grant management and privilege sprawl; the actual request concerns finding excessive IAM permissions.
Question 123
A new Google Cloud Free Trial customer signs up with a Google email address but has no Cloud Identity domain. How can the customer receive an organization resource?
- Use resource inventory export to BigQuery
- Use a standalone organization for a new Free Trial account
- Use billing project grouping with folders
- Use labels at resource creation
- Use project creation permissions at ancestor
Explanation
Correct Answer
B:Standalone organizations are automatically provisioned for eligible new Free Trial accounts with Google email addresses and do not require Cloud Identity; for the stated workload, the practical result is using automatic organization creation for a new free trial account.
Incorrect Answers
A:Cloud Asset Inventory supports exporting eligible asset data to BigQuery for structured reporting; that mechanism handles making asset metadata available to SQL analysis; it does not configure using automatic organization creation for a new free trial account.
C:The alternative would address organizing projects separately from billing payer assignment; Folder structure governs hierarchy; billing-account linkage is a separate association and can be shared; the question instead requires using automatic organization creation for a new free trial account.
D:Resource labels are supplied on supported resources during creation or update and can be queried for categorization; that supports applying descriptive labels during provisioning; the problem to solve concerns using automatic organization creation for a new free trial account.
E:Project creation and placement require relevant Resource Manager permissions on eligible ancestor resources; it is not the focused action for using automatic organization creation for a new free trial account; its primary use is authorizing new-project creation on the intended hierarchy parent.
Question 124
Pods are correctly scheduled but traffic changes widely, and manual replica adjustments are impractical. Which controller fits?
- Configure Horizontal Pod Autoscaler
- Use kubectl rollout status
- Configure Pod resource requests
- Configure Vertical Pod Autoscaler
Explanation
Correct Answer
A:Horizontal Pod Autoscaler adjusts supported workload replica counts using resource or custom metrics; its effect directly addresses automating the workload Pod count.
Incorrect Answers
B:Kubectl rollout status watches a supported resource's rollout progress and reports status; this governs monitoring progress of a Deployment rollout, whereas the stated objective is automating the workload Pod count.
C:Container resource requests guide Kubernetes scheduling and are central to GKE Autopilot resource provisioning; Applying it would target controlling Pod scheduling resource demand, leaving the separate need for automating the workload Pod count.
D:Vertical Pod Autoscaler recommends or manages CPU and memory requests according to its configured mode; that solves problems involving tuning container resource requests, rather than the automating the workload Pod count requirement.
Question 125
An administrator at a local workstation needs to use their user identity for Google Cloud CLI requests. Which login mechanism applies?
- Use gcloud auth application-default login
- Enable a service API for the project
- Pass a per-command --project flag
- Authenticate with gcloud auth login
Explanation
Correct Answer
D:Gcloud auth login authorizes a user account for gcloud, subject to its IAM permissions; that matches the requirement for authorizing gcloud commands as a human user.
Incorrect Answers
A:Application Default Credentials are discovered by client libraries separately from the CLI's normal active credential store; it is not the focused action for authorizing gcloud commands as a human user; its primary use is setting up local Application Default Credentials.
B:The alternative would address allowing that service's API in the project; Service Usage controls API enablement for each project; authorization and billing are separate requirements; the question instead requires authorizing gcloud commands as a human user.
C:A --project argument overrides the configured project for supported gcloud commands for that invocation; its operational role is overriding a default project for one command; the needed capability is authorizing gcloud commands as a human user.
Question 126
A team must keep all warehouse data in a mandated EU location. Which dataset creation setting is essential?
- Use BigQuery dataset location
- Use BigQuery external tables
- Use Pub/Sub dead-letter topics
- Use BigQuery load job from Cloud Storage
- Use BigQuery
Explanation
Correct Answer
A:BigQuery datasets have assigned locations that constrain storage and many job operations; this is relevant because the outcome sought is enforcing BigQuery dataset geographic placement.
Incorrect Answers
B:BigQuery external tables reference supported external data sources instead of ingesting them into native storage; that mechanism handles querying object data in place; it does not configure enforcing BigQuery dataset geographic placement.
C:Pub/Sub subscriptions can use dead-letter policies to forward messages after configured delivery attempts; it is not the focused action for enforcing BigQuery dataset geographic placement; its primary use is routing repeatedly unacknowledged messages to a dead-letter destination.
D:BigQuery load jobs read supported source objects and create or append data in destination tables; its operational role is loading staged files into BigQuery tables; the needed capability is enforcing BigQuery dataset geographic placement.
E:BigQuery is a managed analytical data warehouse designed for scalable SQL workloads; the supported outcome is querying large analytical datasets, while the requested result is enforcing BigQuery dataset geographic placement.
Question 127
A Pod must call Google Cloud APIs without copying a long-lived service-account key into a secret. Which GKE identity mechanism fits?
- Use Artifact Registry
- Use a GKE regional cluster
- Use Workload Identity Federation for GKE
- Choose GKE Standard
Explanation
Correct Answer
C:Workload Identity Federation for GKE provides identity federation for workloads to access Google Cloud APIs; that matches the requirement for authenticating Kubernetes workloads with short-lived identities.
Incorrect Answers
A:Artifact Registry stores supported packages and container images in access-controlled repositories; this is a distinct control for storing and distributing container artifacts, rather than authenticating Kubernetes workloads with short-lived identities.
B:Regional GKE clusters replicate supported control-plane and node components across multiple zones; that supports using a regionally distributed Kubernetes cluster; the problem to solve concerns authenticating Kubernetes workloads with short-lived identities.
D:GKE Standard runs Kubernetes with user-managed node pools and more infrastructure configuration control; it is relevant when administering GKE infrastructure settings directly, not when the primary need is authenticating Kubernetes workloads with short-lived identities.
Question 128
A console user edited a firewall rule outside the approved configuration, and the team needs to identify divergence from code. What should be run?
- Use Terraform variables
- Use Terraform outputs
- Use Terraform drift detection
- Use a declarative desired-state configuration
Explanation
Correct Answer
C:Terraform planning and refresh behavior can reveal discrepancies between configured and remote resource state; for the stated workload, the practical result is detecting manually introduced infrastructure configuration drift.
Incorrect Answers
A:Terraform input variables let callers supply environment-specific configuration to reusable definitions; the supported outcome is separating environment parameters from shared IaC logic, while the requested result is detecting manually introduced infrastructure configuration drift.
B:Terraform outputs publish selected values from a configuration or module for downstream use; that supports exporting values from Terraform-managed infrastructure; the problem to solve concerns detecting manually introduced infrastructure configuration drift.
D:Declarative infrastructure configuration specifies intended resources while tooling computes the necessary changes; this is a distinct control for codifying consistent cloud environments declaratively, rather than detecting manually introduced infrastructure configuration drift.
Question 129
A data center needs high-bandwidth private physical connectivity to Google Cloud rather than tunneling across the public Internet. Which connectivity service is appropriate?
- Use Cloud VPN
- Use Cloud Router
- Use Cloud Interconnect
- Use Cloud NAT
Explanation
Correct Answer
C:The scenario depends on connecting a private circuit to Google's network; Cloud Interconnect provides supported private connectivity between on-premises networks and Google Cloud through dedicated or partner arrangements.
Incorrect Answers
A:Cloud VPN provides managed IPsec VPN tunnels for hybrid network connectivity; it is not the focused action for connecting a private circuit to Google's network; its primary use is establishing encrypted site-to-cloud tunnels.
B:Cloud Router manages dynamic route exchange using BGP for supported hybrid connectivity; this is a distinct control for learning and advertising prefixes through BGP, rather than connecting a private circuit to Google's network.
D:Cloud NAT provides managed outbound network address translation for eligible resources without exposing unsolicited inbound endpoints; its purpose differs: allowing source-NAT egress without public VM interfaces is separate from connecting a private circuit to Google's network.
Question 130
A CPU-bound Kubernetes application must automatically add or remove Pod replicas based on utilization signals. What should be configured?
- Use Kubernetes Service
- Configure Horizontal Pod Autoscaler
- Use kubectl get pods
- Use Kubernetes StatefulSet
Explanation
Correct Answer
B:The requested administrative outcome is autoscaling Kubernetes workloads horizontally; Horizontal Pod Autoscaler adjusts supported workload replica counts using resource or custom metrics.
Incorrect Answers
A:Kubernetes Services select endpoints and provide stable discovery or networking for matching Pods; that applies to providing stable service discovery for changing Pods; the requested task is autoscaling Kubernetes workloads horizontally.
C:Kubectl get pods lists Pod resources and their summarized readiness and lifecycle information; that solves problems involving inspecting Pods in a namespace, rather than the autoscaling Kubernetes workloads horizontally requirement.
D:StatefulSets provide stable Pod identities and ordered management suitable for stateful applications; the scenario specifies autoscaling Kubernetes workloads horizontally, which differs from maintaining stable identities for stateful workloads.