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.
Question 331
An organization wants an additional control restricting which resource sets a principal may be eligible to access. Which IAM policy model fits?
- Use Principal Access Boundary policies
- Bind IAM role at resource level
- Use Workforce Identity Federation
- Bind IAM role at organization scope
Explanation
Correct Answer
A:Principal Access Boundary policies constrain access to supported resources within defined boundaries under applicable enforcement rules; this is the capability needed for constraining the resource scope available to principals.
Incorrect Answers
B:Resource-level IAM binding limits eligible permissions to that resource and its applicable descendants; that applies to minimizing the hierarchy breadth of a role grant; the requested task is constraining the resource scope available to principals.
C:This alternative focuses on federating workforce identities for cloud administration; Workforce Identity Federation lets external workforce identities access supported Google Cloud resources through configured identity pools and providers; the stem instead asks for constraining the resource scope available to principals.
D:Organization-level IAM allow bindings generally propagate to eligible child resources; it concerns inheriting a role throughout the organization tree, and its normal effect does not provide constraining the resource scope available to principals.
Question 332
A function works locally under a developer login and fails in production when using its service account. What authorization mismatch should be investigated?
- Grant service account user role for attachment
- Use service account permissions for Cloud Build
- Use Cloud Run runtime identity permission checks
- Attach a service account to Cloud Run
- Use authenticated Pub/Sub push
Explanation
Correct Answer
C:The requested administrative outcome is checking runtime principal privileges rather than developer grants; Production API authorization follows the workload's attached service account, not the developer's personal IAM roles.
Incorrect Answers
A:Service Account User includes the iam.serviceAccounts.actAs permission used for attaching a service account to supported resources; the scenario specifies checking runtime principal privileges rather than developer grants, which differs from granting actAs rights for a target service account.
B:Build steps execute under a configured Cloud Build service account that needs IAM rights for target operations; Applying it would target authorizing the build execution identity to publish artifacts, leaving the separate need for checking runtime principal privileges rather than developer grants.
D:Cloud Run services use configured runtime service accounts for Google Cloud API calls; it is appropriate for setting the identity of a serverless service; here, the deciding requirement is checking runtime principal privileges rather than developer grants.
E:Authenticated Pub/Sub push uses a configured service account to attach supported OIDC tokens to push requests; it is appropriate for delivering Pub/Sub events with signed identity credentials; here, the deciding requirement is checking runtime principal privileges rather than developer grants.
Question 333
A service identity has Editor but only uses a few API operations, and the security team wants right-sizing guidance. What recommendation source fits?
- Use IAM policy version 3 for conditions
- Grant roles to a Google group
- Use IAM Recommender
- Use security groups with least privilege
Explanation
Correct Answer
C:IAM Recommender provides eligible role-grant recommendations based on observed access and permission usage; it is the direct control for reviewing evidence-based least-privilege suggestions.
Incorrect Answers
A:IAM allow policy version 3 supports conditional role bindings and should be requested when managing conditions; this is a distinct control for retrieving condition-aware IAM policy data, rather than reviewing evidence-based least-privilege suggestions.
B:Google groups can be IAM principals, with access evaluated through applicable group membership; it would help with managing many users' access through group membership, but it does not directly implement reviewing evidence-based least-privilege suggestions.
D:Group principals and scoped predefined roles reduce per-user grant management and privilege sprawl; it would help with managing identities through groups with scoped role bindings, but it does not directly implement reviewing evidence-based least-privilege suggestions.
Question 334
A service produces recurring exception stack traces, and an engineer needs aggregated error groups. Which tool is designed for this?
- Use Cloud Error Reporting
- Use an organization log sink
- Create a Cloud Monitoring dashboard
- Use Cloud Trace
Explanation
Correct Answer
A:The scenario depends on grouping recurring application exceptions; Error Reporting groups recognized application errors and summarizes their frequency and impact.
Incorrect Answers
B:Aggregated sinks at suitable resource ancestors can route descendant logs subject to sink configuration and permissions; it is appropriate for centralizing log routing across descendant projects; here, the deciding requirement is grouping recurring application exceptions.
C:For presenting multiple metrics in one visual operations view, this could be relevant; Cloud Monitoring dashboards arrange metrics and supported visual widgets for operational visibility; the actual request concerns grouping recurring application exceptions.
D:Cloud Trace collects and visualizes distributed request traces and span timings; it is relevant when locating slow segments in distributed calls, not when the primary need is grouping recurring application exceptions.
Question 335
A team wants to discard selected repetitive debug records before they consume configured log-bucket storage. Which router feature helps?
- Configure a log view
- Use Log Analytics
- Query logs in Logs Explorer
- Create a log sink to Pub/Sub
- Configure log exclusions
Explanation
Correct Answer
E:The requirement is filtering low-value logs out of ingestion paths; Logging exclusions and sink filters can prevent eligible entries from being routed to selected log buckets.
Incorrect Answers
A:Log views expose subsets of log bucket entries with access control through IAM; it is appropriate for limiting log visibility to selected entries; here, the deciding requirement is filtering low-value logs out of ingestion paths.
B:Log Analytics enables supported SQL analysis over eligible Cloud Logging buckets; that solves problems involving querying supported logs using SQL analysis, rather than the filtering low-value logs out of ingestion paths requirement.
C:Logs Explorer filters indexed log entries and displays structured resource labels and payload details; this is a distinct control for filtering structured Cloud Logging entries, rather than filtering low-value logs out of ingestion paths.
D:Log sinks can publish matched log records to an authorized Pub/Sub topic; it is relevant when forwarding logs to an event subscriber, not when the primary need is filtering low-value logs out of ingestion paths.
Question 336
Many VMs share a default identity with unnecessary project permissions. What configuration should a team prefer for new workloads?
- Manage service account OAuth scopes on legacy VMs
- Attach a service account to a VM
- Avoid default Compute Engine service account overprivilege
- Use Cloud Run runtime identity permission checks
Explanation
Correct Answer
C:Using dedicated narrowly scoped service accounts reduces accidental privilege sharing across compute resources; this corresponds to attaching purpose-built least-privilege service accounts, not a separate lifecycle action.
Incorrect Answers
A:Compute Engine access scopes can restrict OAuth tokens independently of IAM permissions for supported VM setups; that solves problems involving resolving token scope restrictions on legacy VM credentials, rather than the attaching purpose-built least-privilege service accounts requirement.
B:VMs can run as attached service accounts, with tokens available through the metadata server subject to access settings; the scenario specifies attaching purpose-built least-privilege service accounts, which differs from assigning workload identity to a compute instance.
D:Production API authorization follows the workload's attached service account, not the developer's personal IAM roles; this is a distinct control for validating the deployed service's runtime identity, rather than attaching purpose-built least-privilege service accounts.
Question 337
A warehouse team has large structured files already staged in a bucket and wants a batch ingest into native tables. Which operation fits?
- Use Memorystore
- Use a multi-region Cloud Storage bucket
- Use BigQuery load job from Cloud Storage
- Use Managed Service for Apache Kafka
- Use Pub/Sub dead-letter topics
Explanation
Correct Answer
C:BigQuery load jobs read supported source objects and create or append data in destination tables; Applied in this case, it delivers loading staged files into BigQuery tables.
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 loading staged files into BigQuery tables.
B:Cloud Storage multi-region locations store object data using Google's supported multi-region placement and redundancy model; it would help with selecting multi-region object storage, but it does not directly implement loading staged files into BigQuery tables.
D:For using managed Kafka-compatible messaging infrastructure, this could be relevant; Google Cloud Managed Service for Apache Kafka offers managed Kafka clusters and familiar Kafka interfaces; the actual request concerns loading staged files into BigQuery tables.
E:Pub/Sub subscriptions can use dead-letter policies to forward messages after configured delivery attempts; the supported outcome is isolating messages after repeated delivery failures, while the requested result is loading staged files into BigQuery tables.
Question 338
A particular Cloud Storage object must not be deleted until a workflow releases a temporary or event-based hold. What object feature applies?
- Use object holds
- Configure Cloud Storage lifecycle class transition
- Use generation preconditions for object writes
- Configure Cloud Storage lifecycle deletion
Explanation
Correct Answer
A:Object holds block eligible object deletion until the hold condition is cleared; Applied in this case, it delivers pausing deletion of selected objects.
Incorrect Answers
B:Lifecycle management can change eligible object storage class when matching conditions are met; it is not the focused action for pausing deletion of selected objects; its primary use is automating storage-class transitions for older objects.
C:Cloud Storage generation preconditions condition object mutations on expected generation values; it would help with protecting against concurrent object updates, but it does not directly implement pausing deletion of selected objects.
D:Cloud Storage lifecycle rules can remove objects when configured age or other conditions are satisfied; its purpose differs: implementing age-based object cleanup is separate from pausing deletion of selected objects.
Question 339
A team makes a Compute Engine capacity reservation in us-central1-a, then attempts to consume it with matching instances launched in us-central1-b. What is the main placement issue?
- Reservations must be created in a global Cloud Storage bucket
- Reservations are zonal and must match the target VM zone
- A VM reservation always moves to the least expensive region automatically
- Reservations are only for external load balancer IP addresses
Explanation
Correct Answer
B:Compute Engine reservations reserve eligible instance capacity in a particular zone. Matching machine properties in another zone do not consume the reservation in us-central1-a.
Incorrect Answers
A:A Compute Engine VM capacity reservation is a compute resource, not a Cloud Storage bucket object, and it is not consumed through bucket location.
C:Reservations hold capacity for their configured location and do not migrate across zones or regions in response to pricing or workload changes.
D:Compute Engine capacity reservations target eligible virtual-machine resources, not public IP reservations for external load balancers.
Question 340
Auditors change frequently; the administrator wants straightforward revocation without granting broad Owner access. What pattern fits?
- Use custom role permissions support check
- Use Cloud Identity groups for external collaborators
- Use access change audit logs
- Use security groups with least privilege
Explanation
Correct Answer
D:The scenario depends on combining directory groups with narrow IAM permissions; Group principals and scoped predefined roles reduce per-user grant management and privilege sprawl.
Incorrect Answers
A:Not all IAM permissions can be placed in custom roles, and support levels vary by permission; its operational role is validating permissions permitted in custom roles; the needed capability is combining directory groups with narrow IAM permissions.
B:Supported Google groups can aggregate external collaborators and be bound to appropriate resource roles; the scenario specifies combining directory groups with narrow IAM permissions, which differs from grouping authorized collaborators for IAM assignment.
C:Cloud Audit Logs Admin Activity records supported administrative IAM policy changes; it is appropriate for attributing access-policy updates to callers; here, the deciding requirement is combining directory groups with narrow IAM permissions.