Question 140
Private VM egress is broken after public IPs were removed, and the team also needs diagnostic records about NAT translation failures. Choose TWO features.
- Reserve a static internal address
- Inspect Cloud NAT logs
- Configure Cloud NAT egress for a subnet
- Expand an existing subnet's CIDR
- Use Cloud DNS forwarding zone
Explanation
Correct Answers
B:Cloud NAT logging records supported NAT translation and error information for troubleshooting; within the multi-part workflow of restoring private VM NAT egress and recording translation failures, this provides diagnosing NAT translation behavior.
C:Cloud NAT provides managed outbound NAT through a Cloud Router configuration for eligible VPC resources; within the multi-part workflow of restoring private VM NAT egress and recording translation failures, this provides providing outbound connectivity for private instances.
Incorrect Answers
A:Internal static IP reservations reserve eligible private addresses at the appropriate regional or global scope; the mechanism concerns allocating a stable private VPC IP and does not directly supply restoring private VM NAT egress and recording translation failures.
D:A subnet's primary IPv4 range can be expanded to a larger supported CIDR under applicable restrictions; its focus is enlarging a subnet's available address space, rather than restoring private VM NAT egress and recording translation failures.
E:Forwarding zones send matching DNS queries to configured target resolvers using supported connectivity; it is designed for forwarding private namespace lookups to enterprise DNS, rather than the needed restoring private VM NAT egress and recording translation failures.
Question 141
A service deployer has Pub/Sub Publisher but the running container cannot publish messages. Which principal's role should be checked?
- Use separate build and runtime service accounts
- Grant target resource role to service account
- Grant service account user role for attachment
- Use service account permissions for Cloud Build
- Use Cloud Run runtime identity permission checks
- Use signed identity tokens for authenticated endpoints
Explanation
Correct Answer
E:Production API authorization follows the workload's attached service account, not the developer's personal IAM roles; it is the direct control for validating the deployed service's runtime identity.
Incorrect Answers
A:Deployment and runtime service accounts serve different functions and can receive separate tailored IAM roles; it would help with separating deployment authority from application data access, but it does not directly implement validating the deployed service's runtime identity.
B:Attaching an account establishes identity but the service account still needs IAM permissions on the resources it accesses; its operational role is granting the workload identity the required API permissions; the needed capability is validating the deployed service's runtime identity.
C:Service Account User includes the iam.serviceAccounts.actAs permission used for attaching a service account to supported resources; it would help with authorizing workload identity attachment, but it does not directly implement validating the deployed service's runtime identity.
D:This alternative focuses on granting Cloud Build's selected build account deployment permissions; Build steps execute under a configured Cloud Build service account that needs IAM rights for target operations; the stem instead asks for validating the deployed service's runtime identity.
F:Authenticated Cloud Run HTTP invocation uses supported OIDC identity tokens with an appropriate audience and invoker permission; that solves problems involving using audience-targeted OIDC identity tokens, rather than the validating the deployed service's runtime identity requirement.
Question 142
IoT readings arrive at high throughput, and SQL joins are unnecessary. Which managed database should be considered?
- Use AlloyDB for PostgreSQL
- Use Memorystore
- Use Firestore
- Use Bigtable
Explanation
Correct Answer
D:Bigtable is a managed wide-column database optimized for large key-based workloads and low-latency access; it is the direct control for serving key-oriented analytical or operational data at scale.
Incorrect Answers
A:AlloyDB for PostgreSQL is a managed PostgreSQL-compatible service with a purpose-built storage and compute architecture; Applying it would target migrating eligible PostgreSQL workloads to AlloyDB, leaving the separate need for serving key-oriented analytical or operational data at scale.
B:Memorystore provides managed in-memory data-store options for caching and similar workloads; this is a distinct control for caching frequently requested data in memory, rather than serving key-oriented analytical or operational data at scale.
C:Firestore stores documents in collections and supports indexed queries and application client integrations; that applies to using a managed document-oriented database; the requested task is serving key-oriented analytical or operational data at scale.
Question 143
A Compute Engine VM's token cannot request the expected Google API even though its service account has an IAM role. What other VM authorization setting may matter?
- Enable GKE metadata server
- Use service account for Batch jobs
- Manage service account OAuth scopes on legacy VMs
- Avoid default Compute Engine service account overprivilege
Explanation
Correct Answer
C:Compute Engine access scopes can restrict OAuth tokens independently of IAM permissions for supported VM setups; this is relevant because the outcome sought is checking VM access scopes in addition to IAM.
Incorrect Answers
A:For supplying metadata-server identity tokens to Pods, this could be relevant; the GKE metadata server handles token access and identity federation for configured workloads on eligible GKE nodes; the actual request concerns checking VM access scopes in addition to IAM.
B:Batch workloads run under configured service-account identities on underlying compute resources; that applies to granting Batch task instances their required API permissions; the requested task is checking VM access scopes in addition to IAM.
D:This alternative focuses on attaching purpose-built least-privilege service accounts; Using dedicated narrowly scoped service accounts reduces accidental privilege sharing across compute resources; the stem instead asks for checking VM access scopes in addition to IAM.
Question 144
Several projects show failures around the same time and a provider incident is suspected. What service-health tool is most relevant?
- Use Cloud Trace spans
- Use Personalized Service Health
- Use Cloud Monitoring dashboards
- Use Cloud Audit Logs Data Access
Explanation
Correct Answer
B:The requirement is checking provider incidents relevant to selected projects; Personalized Service Health surfaces supported provider events relevant to particular resources and projects.
Incorrect Answers
A:Trace spans describe timed operations within a distributed request for root-cause investigation; that solves problems involving analyzing distributed request timing, rather than the checking provider incidents relevant to selected projects requirement.
C:Monitoring dashboards arrange charts and widgets to visualize supported time-series data; its purpose differs: organizing health metrics into operational charts is separate from checking provider incidents relevant to selected projects.
D:Data Access audit logs capture supported data reads and writes and may require explicit enablement depending on service and category; its purpose differs: observing data access operations to cloud resources is separate from checking provider incidents relevant to selected projects.
Question 145
Two projects have similar human-readable names; an automated API call must target just one. Which identifier avoids ambiguity?
- Use IAM policy analyzer
- Use project lifecycle restore window
- Use project creation permissions at ancestor
- Use a project ID rather than display name
Explanation
Correct Answer
D:Project IDs uniquely identify projects in many Google Cloud APIs and differ from editable display names; this is the capability needed for using the unique project identifier in automation.
Incorrect Answers
A:Policy Analyzer uses Cloud Asset Inventory data to examine which identities can access resources through policy bindings; the decision here is about using the unique project identifier in automation, not tracing inherited or indirect IAM permissions.
B:Projects can generally be undeleted during a limited recovery interval before final deletion and data loss; this is a distinct control for recovering a recently deleted project, rather than using the unique project identifier in automation.
C:Project creation and placement require relevant Resource Manager permissions on eligible ancestor resources; that mechanism handles granting project creation at the correct parent scope; it does not configure using the unique project identifier in automation.
Question 146
A small team wants Kubernetes APIs while Google manages routine node provisioning and infrastructure configuration. Which mode fits?
- Choose GKE Autopilot
- Use Workload Identity Federation for GKE
- Use Artifact Registry
- Use private GKE nodes
Explanation
Correct Answer
A:GKE Autopilot automates many cluster and node infrastructure tasks while retaining Kubernetes workload interfaces; this is relevant because the outcome sought is reducing Kubernetes node administration.
Incorrect Answers
B:Workload Identity Federation for GKE provides identity federation for workloads to access Google Cloud APIs; it is relevant when mapping Pod identities to Google Cloud permissions, not when the primary need is reducing Kubernetes node administration.
C:Artifact Registry stores supported packages and container images in access-controlled repositories; the scenario specifies reducing Kubernetes node administration, which differs from storing and distributing container artifacts.
D:Private GKE nodes use internal addresses and can reach required endpoints via authorized private or egress paths; that solves problems involving deploying Kubernetes nodes without public IPs, rather than the reducing Kubernetes node administration requirement.
Question 147
Several projects from one department must inherit the same organization policy while sibling departments do not. Which container should organize them?
- Inspect the effective organization policy
- Create a folder in the resource hierarchy
- Use a custom organization policy constraint
- Use the organization resource
Explanation
Correct Answer
B:Folders provide hierarchical grouping below an organization and above projects, inheriting policies down the tree; the decisive property here is scoping governance to department projects.
Incorrect Answers
A:Effective organization policies reflect applicable ancestors and overrides; an IAM role cannot bypass a conflicting constraint; the supported outcome is diagnosing the policy state inherited by a child project, while the requested result is scoping governance to department projects.
C:Custom organization policy constraints let administrators express supported resource rules using condition expressions; Applying it would target enforcing a supported custom resource rule, leaving the separate need for scoping governance to department projects.
D:The organization node is the top governance resource associated with the company's identity domain; it is appropriate for establishing an organization-wide resource ancestor; here, the deciding requirement is scoping governance to department projects.
Question 148
Terabytes of files must be copied regularly from an external object store into Cloud Storage. What managed transfer service fits?
- Use Cloud Storage signed URLs
- Use Cloud Storage public access prevention
- Use Cloud Storage versioning
- Use a Cloud Storage retention policy
- Use Cloud Storage uniform bucket-level access
- Use Storage Transfer Service
Explanation
Correct Answer
F:The scenario depends on migrating bulk external object data; Storage Transfer Service orchestrates supported large-scale transfers into and between storage systems.
Incorrect Answers
A:Signed URLs authorize specific Cloud Storage requests for a bounded time using a signing identity; the decision here is about migrating bulk external object data, not granting expiring URL-based object access.
B:Public access prevention disallows public exposure through relevant Cloud Storage access mechanisms; the scenario specifies migrating bulk external object data, which differs from preventing anonymous Cloud Storage grants.
C:Object Versioning retains noncurrent object generations until explicitly removed or lifecycle-managed; its purpose differs: retaining earlier object generations is separate from migrating bulk external object data.
D:The alternative would address preventing early deletion of retained objects; Bucket retention policies enforce minimum retention periods for supported objects and can be locked for stronger controls; the question instead requires migrating bulk external object data.
E:The alternative would address standardizing object authorization through IAM; Uniform bucket-level access turns off object ACLs so IAM governs access to bucket objects; the question instead requires migrating bulk external object data.
Question 149
A managed instance group already contains healthy instances, but traffic doubles each evening. What component can adjust its target size?
- Use VM reservation
- Configure an autoscaler for a MIG
- Use a regional managed instance group
- Create an instance template
Explanation
Correct Answer
B:MIG autoscaling changes the target number of instances using configured signals and scale limits; that behavior is precisely what scaling VM replicas to workload signals calls for.
Incorrect Answers
A:Compute Engine reservations allocate qualifying VM capacity in a zone independently of starting instances; it is appropriate for securing eligible compute capacity before demand; here, the deciding requirement is scaling VM replicas to workload signals.
C:Regional managed instance groups distribute members across multiple zones in a region for availability; Applying it would target operating a multi-zone VM instance group, leaving the separate need for scaling VM replicas to workload signals.
D:Instance templates hold immutable machine configuration for managed instance groups and other compatible VM launches; it is not the focused action for scaling VM replicas to workload signals; its primary use is standardizing newly created VM instances.
Question 150
A newly deployed GKE Pod is stuck in ImagePullBackOff. Before changing IAM or image tags, the operator needs the exact image-pull failure events reported for that Pod. What command is most useful?
- kubectl get nodes
- gcloud compute instances list
- kubectl describe pod POD_NAME
- kubectl rollout restart deployment NAME
Explanation
Correct Answer
C:Describing the affected Pod shows its status, image reference and recent events. Those events can distinguish registry authorization, missing tags and network pull errors before remediation.
Incorrect Answers
A:The nodes command lists node status but does not provide the detailed image-pull events attached to the particular failing Pod.
B:A Compute Engine instance inventory does not show the Kubernetes event stream describing why one Pod cannot retrieve its container image.
D:Restarting the deployment can recreate failing Pods without explaining the original ImagePullBackOff cause; inspect Pod events first.