Question 320
A freshly installed CLI points at the wrong project for subsequent commands. What should the administrator change?
- Pass a per-command --project flag
- Set gcloud's active project
- Use gcloud services enable
- Use Cloud Shell
Explanation
Correct Answer
B:The active gcloud core/project property determines the default project for commands that honor it; the decisive property here is setting the default gcloud project context.
Incorrect Answers
A: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 setting the default gcloud project context.
C:The gcloud services enable command activates named Service Usage APIs in the selected project; it would help with enabling a service through the command line, but it does not directly implement setting the default gcloud project context.
D:Cloud Shell provides a browser terminal with Google Cloud CLI tools and user-based authentication integration; its purpose differs: performing administration from a managed web shell is separate from setting the default gcloud project context.
Question 321
Several private application VMs serve TCP traffic and require regional internal layer-4 distribution. Which product fits?
- Choose global external Application Load Balancer
- Choose internal Application Load Balancer
- Reserve a static internal IP
- Choose internal passthrough Network Load Balancer
Explanation
Correct Answer
D:Internal passthrough Network Load Balancers provide regional internal layer-four balancing with passthrough behavior; Applied in this case, it delivers load balancing internal TCP connections.
Incorrect Answers
A:Global external Application Load Balancers manage public HTTP(S) traffic using proxy-based layer-seven routing; it concerns routing global HTTPS traffic by application rules, and its normal effect does not provide load balancing internal TCP connections.
B:Internal Application Load Balancers proxy private HTTP(S) traffic to configured backends; its operational role is balancing private HTTP(S) workloads; the needed capability is load balancing internal TCP connections.
C:Static internal address reservations hold eligible VPC IPs for supported resources or front ends; it is not the focused action for load balancing internal TCP connections; its primary use is retaining a fixed private endpoint address.
Question 322
A Cloud Monitoring alert sends an SMS to an on-call phone number, but the phone channel was added without entering the verification code. What should the operator complete before relying on the channel?
- Increase the project budget threshold
- Create an extra Cloud NAT gateway
- Complete SMS notification channel verification using the sent code
- Grant project Owner to the on-call employee
Explanation
Correct Answer
C:The SMS notification-channel setup sends a verification code to the recipient number. Entering that code and confirming verification makes the number usable as a selected alert destination.
Incorrect Answers
A:Budget threshold changes govern financial notifications and do not verify a phone number or complete the Cloud Monitoring SMS channel setup required for alert delivery.
B:Cloud NAT permits outbound connections from private instances; it is not involved in proving control of the recipient phone number for Cloud Monitoring SMS alerts.
D:A project-wide administrative role is unnecessary and does not verify the on-call phone number. Notification delivery should not depend on broad resource permissions.
Question 323
A private VM pool has no public addresses but must access public package repositories, and internal applications need VPC-only resolution of corporate service names. Choose TWO network components.
- Use Cloud NAT
- Use Cloud VPN
- Use Cloud DNS public managed zones
- Use Cloud DNS private zones
- Use Premium Network Service Tier
Explanation
Correct Answers
A:Cloud NAT provides managed outbound network address translation for eligible resources without exposing unsolicited inbound endpoints; within the multi-part workflow of supplying private VM Internet egress and private internal DNS resolution, this provides providing outbound Internet access for privately addressed VMs.
D:Private Cloud DNS zones are authorized for specific networks and resolve within those networks; within the multi-part workflow of supplying private VM Internet egress and private internal DNS resolution, this provides resolving private hostnames inside authorized networks.
Incorrect Answers
B:Cloud VPN provides managed IPsec VPN tunnels for hybrid network connectivity; it is designed for establishing encrypted site-to-cloud tunnels, rather than the needed supplying private VM Internet egress and private internal DNS resolution.
C:Public managed zones publish authoritative DNS records reachable through the public DNS hierarchy, which serves publishing globally resolvable DNS records instead of supplying private VM Internet egress and private internal DNS resolution.
E:Premium Tier uses Google's premium network and is required for certain global connectivity features; the question is specifically about supplying private VM Internet egress and private internal DNS resolution, rather than using Premium-tier global networking capabilities.
Question 324
A Terraform deployment modified a VPC configuration and the team needs the recorded administrative API event. Where should it look?
- Use Recommender API
- Use Cloud Monitoring Managed Service for Prometheus
- Create a log sink to Cloud Storage
- Use Cloud Audit Logs Admin Activity
Explanation
Correct Answer
D:The requirement is reviewing administrative audit actions; Admin Activity audit logs capture supported resource configuration and permission management events.
Incorrect Answers
A:For integrating provider resource recommendations into automation, this could be relevant; the Recommender API exposes supported resource recommendations and insights programmatically; the actual request concerns reviewing administrative audit actions.
B:Managed Service for Prometheus integrates Prometheus-compatible metric collection with Cloud Monitoring storage and querying; it is not the focused action for reviewing administrative audit actions; its primary use is collecting Prometheus-compatible workload metrics.
C:The alternative would address shipping selected log streams to storage; Cloud Logging sinks can route supported records to Cloud Storage buckets for external retention workflows; the question instead requires reviewing administrative audit actions.
Question 325
Security wants a short recovery period for objects removed by a mistaken script. Which protection should be configured?
- Use a multi-region Cloud Storage bucket
- Choose Cloud Storage Coldline
- Use Cloud Storage soft delete
- Choose Cloud Storage Archive
- Configure Cloud Storage lifecycle rules
Explanation
Correct Answer
C:Soft delete retains eligible deleted object data for a configurable period to allow restoration; it supports temporarily retaining deleted object data at the appropriate resource scope.
Incorrect Answers
A:Cloud Storage multi-region locations store object data using Google's supported multi-region placement and redundancy model; this governs selecting multi-region object storage, whereas the stated objective is temporarily retaining deleted object data.
B:The alternative would address economically storing quarterly accessed data; Coldline is for very infrequently accessed objects with retrieval charges and longer minimum duration; the question instead requires temporarily retaining deleted object data.
D:Archive is the coldest Cloud Storage class with retrieval charges and minimum storage duration but online object availability; it is appropriate for storing long-term rarely retrieved objects; here, the deciding requirement is temporarily retaining deleted object data.
E:For applying time-driven object lifecycle actions, this could be relevant; Object lifecycle management evaluates configured conditions and applies supported storage class transitions or deletions; the actual request concerns temporarily retaining deleted object data.
Question 326
A public service's DNS must point to an address that remains allocated beyond VM restart or instance replacement. What IP resource should be created?
- Reserve a static external IP
- Choose internal Application Load Balancer
- Use Premium Network Service Tier
- Reserve a static internal IP
- Choose internal passthrough Network Load Balancer
- Use Standard Network Service Tier
Explanation
Correct Answer
A:A reserved static external IP remains allocated to its project until released, subject to attachment and scope; the decisive property here is keeping a stable publicly routable address.
Incorrect Answers
B:Internal Application Load Balancers proxy private HTTP(S) traffic to configured backends; that supports balancing private HTTP(S) workloads; the problem to solve concerns keeping a stable publicly routable address.
C:Premium Tier uses Google's premium network and is required for certain global connectivity features; this governs using Premium-tier global networking capabilities, whereas the stated objective is keeping a stable publicly routable address.
D:For keeping an internal service address stable, this could be relevant; Static internal address reservations hold eligible VPC IPs for supported resources or front ends; the actual request concerns keeping a stable publicly routable address.
E:For load balancing internal TCP connections, this could be relevant; Internal passthrough Network Load Balancers provide regional internal layer-four balancing with passthrough behavior; the actual request concerns keeping a stable publicly routable address.
F:Standard Tier routes eligible traffic with more reliance on the public Internet and has feature limitations; that applies to selecting a lower-cost regional networking tier; the requested task is keeping a stable publicly routable address.
Question 327
Before a regional expansion, engineers need to identify services whose allowed request counts might block rollout. What should they review?
- Request an adjustable quota increase
- Distinguish quota from physical capacity
- Select a compatible zone for zonal resources
- Use service quotas proactively
Explanation
Correct Answer
D:Service quotas impose consumption limits that may need review or adjustment before substantial growth; it is the direct control for validating required quota headroom.
Incorrect Answers
A:Eligible service quotas can be increased through quota adjustment subject to approval and actual resource availability; it is not the focused action for validating required quota headroom; its primary use is obtaining additional allowed resource quota.
B:Quota determines allowed resource consumption; regional or zonal hardware capacity is a separate constraint; that supports separating zone capacity limits from quota authorization; the problem to solve concerns validating required quota headroom.
C:Zonal compute and zonal disks must be placed in compatible zones to attach directly; its purpose differs: co-locating a zonal disk and its VM is separate from validating required quota headroom.
Question 328
A database operator's role should affect one eligible database instance instead of all project resources. Which binding scope is best?
- Remove an IAM policy binding
- Inspect effective IAM allow bindings
- Avoid basic Editor role
- Bind IAM role at resource level
- Use IAM deny policies
Explanation
Correct Answer
D:Resource-level IAM binding limits eligible permissions to that resource and its applicable descendants; this is relevant because the outcome sought is minimizing the hierarchy breadth of a role grant.
Incorrect Answers
A:Removing an IAM binding eliminates that grant path, although other inherited or indirect grants may remain; this is a distinct control for removing unneeded role assignments, rather than minimizing the hierarchy breadth of a role grant.
B:Effective IAM access can include organization, folder, project and resource-level bindings with inheritance; it would help with finding grants inherited from parent scopes, but it does not directly implement minimizing the hierarchy breadth of a role grant.
C:This alternative focuses on reducing broad write permissions; Basic Editor is a broad predefined-style basic role that can change many resources beyond a narrow task; the stem instead asks for minimizing the hierarchy breadth of a role grant.
E:IAM deny policies can block eligible permissions for matching principals despite otherwise applicable allow grants; it is appropriate for overriding applicable allows with a deny; here, the deciding requirement is minimizing the hierarchy breadth of a role grant.
Question 329
A team needs a managed Apache Beam pipeline to transform streaming events and load an analytical sink. Which product fits?
- Use Memorystore
- Use Pub/Sub dead-letter topics
- Use Dataflow
- Use BigQuery
- Use a multi-region Cloud Storage bucket
Explanation
Correct Answer
C:The requested administrative outcome is processing streaming and batch data pipelines; Dataflow runs managed batch and streaming pipelines, including Apache Beam workloads.
Incorrect Answers
A:This alternative focuses on caching frequently requested data in memory; Memorystore provides managed in-memory data-store options for caching and similar workloads; the stem instead asks for processing streaming and batch data pipelines.
B:Pub/Sub subscriptions can use dead-letter policies to forward messages after configured delivery attempts; this governs routing repeatedly unacknowledged messages to a dead-letter destination, whereas the stated objective is processing streaming and batch data pipelines.
D: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 processing streaming and batch data pipelines.
E:Cloud Storage multi-region locations store object data using Google's supported multi-region placement and redundancy model; that solves problems involving storing objects across a multi-region location, rather than the processing streaming and batch data pipelines requirement.
Question 330
A Pod is Pending and scheduling details are missing from a simple list view. Which command reveals events and conditions?
- Use kubectl describe pod
- Use Kubernetes StatefulSet
- Configure Pod resource requests
- Configure Horizontal Pod Autoscaler
Explanation
Correct Answer
A:Kubectl describe pod exposes Kubernetes resource conditions, relevant configuration and associated events; its effect directly addresses investigating Pod scheduling events.
Incorrect Answers
B:StatefulSets provide stable Pod identities and ordered management suitable for stateful applications; the decision here is about investigating Pod scheduling events, not maintaining stable identities for stateful workloads.
C:Container resource requests guide Kubernetes scheduling and are central to GKE Autopilot resource provisioning; its purpose differs: declaring resources required by a Pod is separate from investigating Pod scheduling events.
D:Horizontal Pod Autoscaler adjusts supported workload replica counts using resource or custom metrics; its operational role is automating the workload Pod count; the needed capability is investigating Pod scheduling events.