Question 90
A team has built a stateless HTTP container but has not deployed it yet. They want request-driven scaling without server management and a configured upper limit on instance growth to protect a fragile downstream system. Choose TWO Google Cloud configurations.
- Use Cloud Run jobs
- Choose Cloud Run services
- Use Cloud Run maximum instances
- Use Cloud Run minimum instances
- Choose Cloud Run functions
Explanation
Correct Answers
B:Cloud Run hosts container services with managed request routing and configurable instance scaling; within the multi-part workflow of running a serverless HTTP container while limiting autoscaled instance growth, this provides serving HTTP traffic on managed serverless containers.
C:Maximum instances constrain how far Cloud Run instance scaling can grow under configured conditions; within the multi-part workflow of running a serverless HTTP container while limiting autoscaled instance growth, this provides bounding Cloud Run instance scaling.
Incorrect Answers
A:Cloud Run jobs run tasks to completion without exposing a request-serving service endpoint; it is designed for executing finite container jobs without HTTP serving, rather than the needed running a serverless HTTP container while limiting autoscaled instance growth.
D:Minimum instances keep a configured baseline of Cloud Run capacity provisioned with associated billing consequences; the question is specifically about running a serverless HTTP container while limiting autoscaled instance growth, rather than maintaining warm serverless instances.
E:Cloud Run functions supports managed function deployments with event integration and request-based execution, which supports processing events with managed functions; the needed outcome is running a serverless HTTP container while limiting autoscaled instance growth.
Question 91
A high-traffic application needs an in-memory cache to reduce database query latency. Which managed service fits?
- Use Pub/Sub
- Use Dataflow
- Use Memorystore
- Use BigQuery load job from Cloud Storage
Explanation
Correct Answer
C:Memorystore provides managed in-memory data-store options for caching and similar workloads; Applied in this case, it delivers caching frequently requested data in memory.
Incorrect Answers
A:Pub/Sub delivers asynchronous messages through topics and subscriptions with configurable delivery semantics; that supports decoupling event publishers and subscribers; the problem to solve concerns caching frequently requested data in memory.
B:Dataflow runs managed batch and streaming pipelines, including Apache Beam workloads; that supports executing scalable managed data transformations; the problem to solve concerns caching frequently requested data in memory.
D:BigQuery load jobs read supported source objects and create or append data in destination tables; it is not the focused action for caching frequently requested data in memory; its primary use is ingesting object files through warehouse load jobs.
Question 92
A new application needs its own API enablement and quota consumption without sharing another team's settings. What resource should be provisioned?
- Use a separate project for prod and dev
- Inspect the effective organization policy
- Create a project under an organization folder
- Create a folder in the resource hierarchy
Explanation
Correct Answer
C:The requirement is giving the application a distinct project boundary; A Google Cloud project is the primary boundary for enabled services, resources, IAM and many quotas.
Incorrect Answers
A:Separate projects provide independent administration, many quota scopes and clearer billing and permission boundaries; it would help with creating independent environment projects, but it does not directly implement giving the application a distinct project boundary.
B:Effective organization policies reflect applicable ancestors and overrides; an IAM role cannot bypass a conflicting constraint; that supports identifying effective policy restrictions on a resource; the problem to solve concerns giving the application a distinct project boundary.
D:Folders provide hierarchical grouping below an organization and above projects, inheriting policies down the tree; this governs grouping related projects under inherited governance, whereas the stated objective is giving the application a distinct project boundary.
Question 93
An automation application needs a short-lived access token for a service account without downloading its key. Which API is relevant?
- Use Workforce Identity Federation
- Grant workload identity user for federation
- Use service account impersonation with gcloud
- Use IAM Credentials API
Explanation
Correct Answer
D:The scenario depends on generating ephemeral service-account credentials; the IAM Credentials API generates supported short-lived service account tokens and signatures for authorized callers.
Incorrect Answers
A:Workforce Identity Federation lets external workforce identities access supported Google Cloud resources through configured identity pools and providers; its operational role is federating workforce identities for cloud administration; the needed capability is generating ephemeral service-account credentials.
B:Workload Identity User can permit eligible federated identities to access a target service account through supported federation flows; it is not the focused action for generating ephemeral service-account credentials; its primary use is permitting trusted workload federation to impersonate target identity.
C:Gcloud supports service-account impersonation flags to request short-lived credentials when authorized; it would help with temporarily running a command under service-account identity, but it does not directly implement generating ephemeral service-account credentials.
Question 94
A project suddenly grants Editor to a new group, and investigators must identify the initiating principal. What should be queried?
- Use IAM Credentials API
- Use time-based IAM Condition
- Use security groups with least privilege
- Use access change audit logs
Explanation
Correct Answer
D:The requested administrative outcome is attributing access-policy updates to callers; Cloud Audit Logs Admin Activity records supported administrative IAM policy changes.
Incorrect Answers
A:The IAM Credentials API generates supported short-lived service account tokens and signatures for authorized callers; the scenario specifies attributing access-policy updates to callers, which differs from requesting limited-lifetime credentials programmatically.
B:A conditional IAM binding can compare request time with an expiry condition for supported access checks; the decision here is about attributing access-policy updates to callers, not expiring a temporary IAM grant automatically.
C:Group principals and scoped predefined roles reduce per-user grant management and privilege sprawl; the scenario specifies attributing access-policy updates to callers, which differs from combining directory groups with narrow IAM permissions.
Question 95
Healthy application servers are labeled unhealthy by a MIG and cycled out of service. Which configured probe should be validated?
- Change a VM machine type
- Use a MIG rolling update
- Use MIG health check diagnostics
- Create a custom image from a disk
Explanation
Correct Answer
C:MIG autohealing relies on health check results and timing; mismatched ports or startup delays can cause replacement loops; the decisive property here is checking whether autohealing criteria match application health.
Incorrect Answers
A:VM machine types control vCPU and memory allocations; changing types commonly requires stopping an eligible VM; the scenario specifies checking whether autohealing criteria match application health, which differs from adjusting a VM's machine configuration.
B:MIG rolling updates progressively apply new instance templates with configurable surge and unavailability; it is relevant when rolling out an instance-template change across replicas, not when the primary need is checking whether autohealing criteria match application health.
D:Custom Compute Engine images provide reusable disk source content for new boot disks; that applies to preparing reusable VM boot images; the requested task is checking whether autohealing criteria match application health.
Question 96
A Pod needs access to a Google Cloud bucket and must avoid node-wide permissions. What identity integration is appropriate?
- Use Workload Identity Federation
- Use Workforce Identity Federation
- Bind GKE workload identity to IAM
- Grant workload identity user for federation
Explanation
Correct Answer
C:Workload Identity Federation for GKE establishes workload identities that receive supported IAM access without embedded private keys; that matches the requirement for granting Pod-scoped Google Cloud resource access.
Incorrect Answers
A:Workload Identity Federation exchanges eligible external workload identities for short-lived Google Cloud credentials; that mechanism handles federating non-Google workload credentials; it does not configure granting Pod-scoped Google Cloud resource access.
B:Workforce Identity Federation lets external workforce identities access supported Google Cloud resources through configured identity pools and providers; this governs authorizing human users through external identity federation, whereas the stated objective is granting Pod-scoped Google Cloud resource access.
D:Workload Identity User can permit eligible federated identities to access a target service account through supported federation flows; it would help with permitting trusted workload federation to impersonate target identity, but it does not directly implement granting Pod-scoped Google Cloud resource access.
Question 97
A consumer handles a Pub/Sub message but repeatedly sees it again after its deadline. What behavior should be checked?
- Use Pub/Sub acknowledgement
- Expand an existing subnet's CIDR
- Create a log sink to Pub/Sub
- Use Pub/Sub seek or snapshot
- Add a subnet to a custom VPC
Explanation
Correct Answer
A:Pub/Sub acknowledgements mark delivered messages as handled for that subscription under applicable delivery guarantees; it is the direct control for confirming messages before their acknowledgement deadline.
Incorrect Answers
B:A subnet's primary IPv4 range can be expanded to a larger supported CIDR under applicable restrictions; the decision here is about confirming messages before their acknowledgement deadline, not enlarging a subnet's available address space.
C:Log sinks can publish matched log records to an authorized Pub/Sub topic; the supported outcome is publishing filtered log entries for processing, while the requested result is confirming messages before their acknowledgement deadline.
D:Pub/Sub seek and snapshots support eligible replay or subscription position recovery within retention constraints; Applying it would target replaying retained subscription messages, leaving the separate need for confirming messages before their acknowledgement deadline.
E:Subnets are regional resources associated with a VPC and have nonoverlapping ranges as required; its operational role is creating a new regional subnet in an existing network; the needed capability is confirming messages before their acknowledgement deadline.
Question 98
A finance team wants to manage payment instruments and charge responsibility separately from project IAM. What resource provides that?
- Apply labels for cost attribution
- Create a Cloud Billing account
- Create a billing budget
- Use project billing permissions to link the payer
Explanation
Correct Answer
B:Cloud Billing accounts represent payment and invoicing relationships and can pay for multiple linked projects; this corresponds to managing cloud payment responsibility, not a separate lifecycle action.
Incorrect Answers
A:Supported labels can be surfaced in billing exports and filters to allocate eligible costs; it would help with categorizing resource charges using labels, but it does not directly implement managing cloud payment responsibility.
C:Cloud Billing budgets evaluate costs against thresholds and issue alerts but do not directly cap or halt usage; the supported outcome is tracking spend against configurable budget thresholds, while the requested result is managing cloud payment responsibility.
D:The alternative would address authorizing a project-to-billing relationship; Managing project billing associations requires the appropriate project and billing account permissions; the question instead requires managing cloud payment responsibility.
Question 99
A GPU workload needs a specialized node configuration distinct from the existing general-purpose pool. What cluster operation fits?
- Use Kubernetes StatefulSet
- Enable GKE node autoscaling
- Configure Vertical Pod Autoscaler
- Add a GKE node pool
Explanation
Correct Answer
D:The requirement is providing a second worker node configuration; GKE Standard node pools group nodes with common machine and node configuration settings.
Incorrect Answers
A:This alternative focuses on operating stateful Kubernetes Pods; StatefulSets provide stable Pod identities and ordered management suitable for stateful applications; the stem instead asks for providing a second worker node configuration.
B:GKE cluster autoscaler adjusts supported node pool size to accommodate pending workload requests; the supported outcome is adding compute nodes for unschedulable workloads, while the requested result is providing a second worker node configuration.
C:Vertical Pod Autoscaler recommends or manages CPU and memory requests according to its configured mode; it concerns tuning container resource requests, and its normal effect does not provide providing a second worker node configuration.
Question 100
A hybrid environment must connect on-premises routers to cloud private networks without leased private circuits. Which service applies?
- Use Cloud Interconnect
- Use Cloud DNS private zones
- Use Cloud NAT
- Use Cloud VPN
Explanation
Correct Answer
D:Cloud VPN provides managed IPsec VPN tunnels for hybrid network connectivity; its effect directly addresses connecting external networks through VPN tunnels.
Incorrect Answers
A:Cloud Interconnect provides supported private connectivity between on-premises networks and Google Cloud through dedicated or partner arrangements; that supports establishing dedicated or partner private connectivity; the problem to solve concerns connecting external networks through VPN tunnels.
B:Private Cloud DNS zones are authorized for specific networks and resolve within those networks; Applying it would target resolving private hostnames inside authorized networks, leaving the separate need for connecting external networks through VPN tunnels.
C:Cloud NAT provides managed outbound network address translation for eligible resources without exposing unsolicited inbound endpoints; it is appropriate for allowing source-NAT egress without public VM interfaces; here, the deciding requirement is connecting external networks through VPN tunnels.