Google Professional Cloud Developer Practice Test 63
Question 620
A Deployment has healthy Pods but customers cannot reach it because there is no suitable Kubernetes Service or ingress path. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Workloads schedule predictably and remain below reasonable limits without starving neighboring applications.
- Healthy Pods receive traffic through the intended endpoint while private services remain unexposed.
- The handler runs for authorized matching events with valid delivery identity and no unnecessary invocations.
- The application reads only authorized secret content and adopts updated credentials according to documented delivery behavior.
Explanation
Correct Answer
B:Healthy Pods receive traffic through the intended endpoint while private services remain unexposed. In this scenario, a Deployment has healthy Pods but customers cannot reach it because there is no suitable Kubernetes Service or ingress path. The original diagnosis should have included this step: inspect Pod labels, Service selectors, Service type, ingress configuration, and security boundary requirements.
Incorrect Answers
A:Workloads schedule predictably and remain below reasonable limits without starving neighboring applications. That result could support testing of GKE resource requests and limits: Kubernetes requests influence scheduling and resource guarantees, while limits bound usage and can cause throttling or out-of-memory termination. A more direct response is to recognize that healthy Pods receive traffic through the intended endpoint while private services remain unexposed.
C:The handler runs for authorized matching events with valid delivery identity and no unnecessary invocations. That result could support testing of eventarc-triggered Cloud Run handler: Eventarc event routing requires compatible source filters, destination connectivity, and authorized trigger identity. A more direct response is to recognize that healthy Pods receive traffic through the intended endpoint while private services remain unexposed.
D:The application reads only authorized secret content and adopts updated credentials according to documented delivery behavior. It would not establish the success condition for GKE Service and ingress exposure. A more direct response is to recognize that healthy Pods receive traffic through the intended endpoint while private services remain unexposed.
Question 621
An internal administration service is exposed publicly when its Service type is changed without reviewing networking policy. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect memory consumption per active request, vCPU settings, concurrency, instance count, and tail latency.
- Inspect service versus revision configuration, environment variables, and which revision receives production traffic.
- Inspect Pod labels, Service selectors, Service type, ingress configuration, and security boundary requirements.
- Inspect service revision tags, authentication policy, no-traffic settings, and which URL testers invoke.
Explanation
Correct Answer
C:Inspect Pod labels, Service selectors, Service type, ingress configuration, and security boundary requirements. This checks the actual operating conditions relevant to GKE Service and ingress exposure, rather than changing a service before the failure is understood. A focused follow-up is to create validated service endpoints and network entry rules, then test authorized internal and external routes. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A:Inspect memory consumption per active request, vCPU settings, concurrency, instance count, and tail latency. Per-instance concurrent work multiplies runtime resource demand; autoscaling does not prevent an individual overloaded container from exhausting memory. To examine the reported mechanism, the team instead needs to inspect Pod labels, Service selectors, Service type, ingress configuration, and security boundary requirements.
B:Inspect service versus revision configuration, environment variables, and which revision receives production traffic. Cloud Run revisions are immutable snapshots of code and configuration; environment updates create a new revision rather than editing old instances. To examine the reported mechanism, the team instead needs to inspect Pod labels, Service selectors, Service type, ingress configuration, and security boundary requirements.
D:Inspect service revision tags, authentication policy, no-traffic settings, and which URL testers invoke. Revision tags provide direct revision access for testing; they do not inherently shift regular service URL traffic. To examine the reported mechanism, the team instead needs to inspect Pod labels, Service selectors, Service type, ingress configuration, and security boundary requirements.
Question 622
An internal administration service is exposed publicly when its Service type is changed without reviewing networking policy. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use supported request timeouts for bounded synchronous work and dispatch long jobs to a durable asynchronous workflow.
- Assign a dedicated execution service account with the narrow roles needed for outbound service access.
- Use an authenticated Pub/Sub push subscription with a scoped service account and target audience.
- Use an appropriate Kubernetes Service and controlled ingress or load-balancer configuration for the required audience.
Explanation
Correct Answer
D:Use an appropriate Kubernetes Service and controlled ingress or load-balancer configuration for the required audience. In this scenario, an internal administration service is exposed publicly when its Service type is changed without reviewing networking policy. Before rollout, inspect Pod labels, Service selectors, Service type, ingress configuration, and security boundary requirements.
Incorrect Answers
A:Use supported request timeouts for bounded synchronous work and dispatch long jobs to a durable asynchronous workflow. For this case, a Deployment manages Pods, a Service provides stable routing to selected Pods, and ingress determines supported external HTTP entry. It cannot substitute for the required control: use an appropriate Kubernetes Service and controlled ingress or load-balancer configuration for the required audience.
B:Assign a dedicated execution service account with the narrow roles needed for outbound service access. This design addresses Cloud Run execution identity attachment, where the deployed execution identity controls Google API permissions from a Cloud Run workload; user identities and deployer privileges are separate. It cannot substitute for the required control: use an appropriate Kubernetes Service and controlled ingress or load-balancer configuration for the required audience.
C:Use an authenticated Pub/Sub push subscription with a scoped service account and target audience. This design addresses Pub/Sub push to Cloud Run authentication, where Pub/Sub push delivery can use an OIDC token for authenticated Cloud Run invocation; access is not established by topic ownership alone. It cannot substitute for the required control: use an appropriate Kubernetes Service and controlled ingress or load-balancer configuration for the required audience.
Question 623
An internal administration service is exposed publicly when its Service type is changed without reviewing networking policy. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Configure and test the trigger against a matching object creation and a deliberately excluded update.
- Create validated service endpoints and network entry rules, then test authorized internal and external routes.
- Configure the cron schedule and OIDC identity, then run a one-off schedule test against the intended endpoint.
- Apply a representative HPA target and observe replica changes during controlled load increases and decreases.
Explanation
Correct Answer
B:Create validated service endpoints and network entry rules, then test authorized internal and external routes. In this scenario, an internal administration service is exposed publicly when its Service type is changed without reviewing networking policy. Validate the change by checking that healthy Pods receive traffic through the intended endpoint while private services remain unexposed.
Incorrect Answers
A:Configure and test the trigger against a matching object creation and a deliberately excluded update. This action changes a different concern, eventarc-triggered Cloud Run handler. It addresses a different dependency from gke service and ingress exposure.
C:Configure the cron schedule and OIDC identity, then run a one-off schedule test against the intended endpoint. This action changes a different concern, Cloud Scheduler invoking a private service. It addresses a different dependency from gke service and ingress exposure.
D:Apply a representative HPA target and observe replica changes during controlled load increases and decreases. This action changes a different concern, GKE Horizontal Pod Autoscaler metrics. It addresses a different dependency from gke service and ingress exposure.
Question 624
An internal administration service is exposed publicly when its Service type is changed without reviewing networking policy. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Authorized push deliveries succeed without exposing the handler publicly or masking errors through silent acknowledgments.
- First-request latency meets requirements with a documented tradeoff in warm capacity cost.
- Healthy Pods receive traffic through the intended endpoint while private services remain unexposed.
- Traffic returns to a verified version and incident evidence remains available for the bad revision.
Explanation
Correct Answer
C:Healthy Pods receive traffic through the intended endpoint while private services remain unexposed. In this scenario, an internal administration service is exposed publicly when its Service type is changed without reviewing networking policy. The original diagnosis should have included this step: inspect Pod labels, Service selectors, Service type, ingress configuration, and security boundary requirements.
Incorrect Answers
A:Authorized push deliveries succeed without exposing the handler publicly or masking errors through silent acknowledgments. That result could support testing of Pub/Sub push to Cloud Run authentication: Pub/Sub push delivery can use an OIDC token for authenticated Cloud Run invocation; access is not established by topic ownership alone. The reported condition is about gke service and ingress exposure, not this adjacent change.
B:First-request latency meets requirements with a documented tradeoff in warm capacity cost. That result could support testing of minimum instances and cold-start tradeoffs: Cloud Run minimum instances can reduce cold starts but incur resource charges; the correct setting depends on measured demand and service objectives. The reported condition is about gke service and ingress exposure, not this adjacent change.
D:Traffic returns to a verified version and incident evidence remains available for the bad revision. That result could support testing of Cloud Run revision rollback strategy: Cloud Run rollbacks manipulate traffic allocation among existing revisions rather than rewriting the contents of a released revision. The reported condition is about gke service and ingress exposure, not this adjacent change.
Question 625
A GKE application mounts a JSON service account key to reach Cloud Storage instead of using built-in workload identity. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect network, subnet region, Direct VPC egress mode, firewall policy, and required destinations.
- Inspect Pod ServiceAccount, workload identity pool principal, IAM bindings, and token availability inside the Pod.
- Inspect readiness and liveness probe endpoints, dependency states, Pod events, and restart counts.
- Inspect cold-start distribution, request frequency, configured minimum instances, and the application's latency target.
Explanation
Correct Answer
B:Inspect Pod ServiceAccount, workload identity pool principal, IAM bindings, and token availability inside the Pod. Success requires that the workload uses short-lived authorized identity and can access only intended buckets without key material in manifests. A focused follow-up is to bind the correct Kubernetes identity and scoped storage permissions, and verify API calls in a fresh Pod.
Incorrect Answers
A:Inspect network, subnet region, Direct VPC egress mode, firewall policy, and required destinations. Cloud Run VPC egress policy changes outbound routing; IAM, firewall and NAT controls still determine actual reachability. This is not the decisive inspection for gke pod identity without key files.
C:Inspect readiness and liveness probe endpoints, dependency states, Pod events, and restart counts. Readiness removes a Pod from eligible Service endpoints; liveness triggers restarts and therefore needs a different failure definition. This is not the decisive inspection for gke pod identity without key files.
D:Inspect cold-start distribution, request frequency, configured minimum instances, and the application's latency target. Cloud Run minimum instances can reduce cold starts but incur resource charges; the correct setting depends on measured demand and service objectives. This is not the decisive inspection for gke pod identity without key files.
Question 626
A GKE application mounts a JSON service account key to reach Cloud Storage instead of using built-in workload identity. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Keep private services authenticated and authorize only the intended caller with a suitable identity token.
- Use Workload Identity Federation for GKE with least-privilege permissions rather than injecting static Google private keys.
- Choose a supported secret environment injection or mounted secret file mechanism appropriate to the application contract.
- Assign a dedicated execution service account with the narrow roles needed for outbound service access.
Explanation
Correct Answer
B:Use Workload Identity Federation for GKE with least-privilege permissions rather than injecting static Google private keys. The expected outcome is that the workload uses short-lived authorized identity and can access only intended buckets without key material in manifests. Before rollout, inspect Pod ServiceAccount, workload identity pool principal, IAM bindings, and token availability inside the Pod.
Incorrect Answers
A:Keep private services authenticated and authorize only the intended caller with a suitable identity token. This design addresses authenticated Cloud Run invocation, where private Cloud Run invocation requires both valid identity evidence and applicable IAM authorization; making it public is not a substitute. That may help elsewhere, but it does not make the change required for gke pod identity without key files.
C:Choose a supported secret environment injection or mounted secret file mechanism appropriate to the application contract. For this case, GKE workload identity maps Kubernetes principals to Google Cloud permissions without requiring embedded long-lived service account JSON keys. That may help elsewhere, but it does not make the change required for gke pod identity without key files.
D:Assign a dedicated execution service account with the narrow roles needed for outbound service access. This design addresses Cloud Run execution identity attachment, where the deployed execution identity controls Google API permissions from a Cloud Run workload; user identities and deployer privileges are separate. That may help elsewhere, but it does not make the change required for gke pod identity without key files.
Question 627
A GKE application mounts a JSON service account key to reach Cloud Storage instead of using built-in workload identity. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Configure the cron schedule and OIDC identity, then run a one-off schedule test against the intended endpoint.
- Bind the correct Kubernetes identity and scoped storage permissions, and verify API calls in a fresh Pod.
- Correct the manifest and apply it to a staging namespace, then compare desired and available Pods.
- Test representative large requests at proposed concurrency values and adjust resource settings or application buffering.
Explanation
Correct Answer
B:Bind the correct Kubernetes identity and scoped storage permissions, and verify API calls in a fresh Pod. Validate the change by checking that the workload uses short-lived authorized identity and can access only intended buckets without key material in manifests.
Incorrect Answers
A:Configure the cron schedule and OIDC identity, then run a one-off schedule test against the intended endpoint. This action changes a different concern, Cloud Scheduler invoking a private service. A more direct response is to recognize that bind the correct Kubernetes identity and scoped storage permissions, and verify API calls in a fresh Pod.
C:Correct the manifest and apply it to a staging namespace, then compare desired and available Pods. This action changes a different concern, GKE Deployment replicas and selectors. A more direct response is to recognize that bind the correct Kubernetes identity and scoped storage permissions, and verify API calls in a fresh Pod.
D:Test representative large requests at proposed concurrency values and adjust resource settings or application buffering. This action changes a different concern, Cloud Run memory and concurrency coordination. A more direct response is to recognize that bind the correct Kubernetes identity and scoped storage permissions, and verify API calls in a fresh Pod.
Question 628
A GKE application mounts a JSON service account key to reach Cloud Storage instead of using built-in workload identity. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The Deployment maintains the required replicas with labels recognized by its controller and Service.
- The workload uses short-lived authorized identity and can access only intended buckets without key material in manifests.
- First-request latency meets requirements with a documented tradeoff in warm capacity cost.
- Replica scaling follows the target utilization and keeps application capacity within tested bounds.
Explanation
Correct Answer
B:The workload uses short-lived authorized identity and can access only intended buckets without key material in manifests. This is evidence that the particular acceptance condition for GKE pod identity without key files has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect Pod ServiceAccount, workload identity pool principal, IAM bindings, and token availability inside the Pod.
Incorrect Answers
A:The Deployment maintains the required replicas with labels recognized by its controller and Service. It would not establish the success condition for GKE pod identity without key files. The case instead calls for the following: the workload uses short-lived authorized identity and can access only intended buckets without key material in manifests.
C:First-request latency meets requirements with a documented tradeoff in warm capacity cost. That result could support testing of minimum instances and cold-start tradeoffs: Cloud Run minimum instances can reduce cold starts but incur resource charges; the correct setting depends on measured demand and service objectives. The case instead calls for the following: the workload uses short-lived authorized identity and can access only intended buckets without key material in manifests.
D:Replica scaling follows the target utilization and keeps application capacity within tested bounds. It would not establish the success condition for GKE pod identity without key files. The case instead calls for the following: the workload uses short-lived authorized identity and can access only intended buckets without key material in manifests.
Question 629
A new workload loses cloud API access after migration because its Kubernetes ServiceAccount lacks intended IAM bindings. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect network, subnet region, Direct VPC egress mode, firewall policy, and required destinations.
- Inspect application secret consumption pattern, configured Secret Manager version, and runtime identity access.
- Inspect service ingress policy, authentication requirements, load-balancer path, and authorized traffic origins.
- Inspect Pod ServiceAccount, workload identity pool principal, IAM bindings, and token availability inside the Pod.
Explanation
Correct Answer
D:Inspect Pod ServiceAccount, workload identity pool principal, IAM bindings, and token availability inside the Pod. Success requires that the workload uses short-lived authorized identity and can access only intended buckets without key material in manifests. A focused follow-up is to bind the correct Kubernetes identity and scoped storage permissions, and verify API calls in a fresh Pod. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A:Inspect network, subnet region, Direct VPC egress mode, firewall policy, and required destinations. Cloud Run VPC egress policy changes outbound routing; IAM, firewall and NAT controls still determine actual reachability. It does not isolate the gke pod identity without key files issue described.
B:Inspect application secret consumption pattern, configured Secret Manager version, and runtime identity access. Secret delivery mode and version selection affect startup and refresh behavior; moving a value to Secret Manager alone does not guarantee live updates. It does not isolate the gke pod identity without key files issue described.
C:Inspect service ingress policy, authentication requirements, load-balancer path, and authorized traffic origins. Ingress controls which network paths can reach Cloud Run; IAM controls who may invoke it, and both policies can be necessary. It does not isolate the gke pod identity without key files issue described.
Question 630
A new workload loses cloud API access after migration because its Kubernetes ServiceAccount lacks intended IAM bindings. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use Workload Identity Federation for GKE with least-privilege permissions rather than injecting static Google private keys.
- Treat configuration changes as new immutable revisions and scope debug settings to a controlled nonproduction rollout.
- Rollback by restoring traffic to an immutable previously healthy revision while investigating the new release.
- Use an authenticated Pub/Sub push subscription with a scoped service account and target audience.
Explanation
Correct Answer
A:Use Workload Identity Federation for GKE with least-privilege permissions rather than injecting static Google private keys. The expected outcome is that the workload uses short-lived authorized identity and can access only intended buckets without key material in manifests. Before rollout, inspect Pod ServiceAccount, workload identity pool principal, IAM bindings, and token availability inside the Pod. A new workload loses cloud API access after migration because its Kubernetes ServiceAccount lacks intended IAM bindings. The team is choosing a sustainable solution.
Incorrect Answers
B:Treat configuration changes as new immutable revisions and scope debug settings to a controlled nonproduction rollout. This design addresses Cloud Run environment configuration revisions, where Cloud Run revisions are immutable snapshots of code and configuration; environment updates create a new revision rather than editing old instances. It addresses a different dependency from gke pod identity without key files.
C:Rollback by restoring traffic to an immutable previously healthy revision while investigating the new release. This design addresses Cloud Run revision rollback strategy, where Cloud Run rollbacks manipulate traffic allocation among existing revisions rather than rewriting the contents of a released revision. It addresses a different dependency from gke pod identity without key files.
D:Use an authenticated Pub/Sub push subscription with a scoped service account and target audience. This design addresses Pub/Sub push to Cloud Run authentication, where Pub/Sub push delivery can use an OIDC token for authenticated Cloud Run invocation; access is not established by topic ownership alone. It addresses a different dependency from gke pod identity without key files.