Google Professional Cloud Developer Practice Test 60
Question 590
An engineer configures a liveness probe to fail whenever one downstream service briefly slows and creates a restart loop. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use readiness to control serving eligibility and liveness only to restart genuinely unhealthy containers.
- Keep private services authenticated and authorize only the intended caller with a suitable identity token.
- Set Cloud Run ingress exposure and IAM invocation permissions to match whether the service is internal or public.
- Set coordinated CPU, memory, and concurrency limits based on profiling rather than tuning a single value in isolation.
Explanation
Correct Answer
A:Use readiness to control serving eligibility and liveness only to restart genuinely unhealthy containers. The expected outcome is that traffic avoids unready Pods without needless container restarts during normal initialization. Before rollout, inspect readiness and liveness probe endpoints, dependency states, Pod events, and restart counts. An engineer configures a liveness probe to fail whenever one downstream service briefly slows and creates a restart loop. The team is choosing a sustainable solution.
Incorrect Answers
B: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. Applying it first would leave gke readiness versus liveness probes unresolved.
C:Set Cloud Run ingress exposure and IAM invocation permissions to match whether the service is internal or public. This design addresses Cloud Run ingress restriction, where ingress controls which network paths can reach Cloud Run; IAM controls who may invoke it, and both policies can be necessary. Applying it first would leave gke readiness versus liveness probes unresolved.
D:Set coordinated CPU, memory, and concurrency limits based on profiling rather than tuning a single value in isolation. For this case, readiness removes a Pod from eligible Service endpoints; liveness triggers restarts and therefore needs a different failure definition. Applying it first would leave gke readiness versus liveness probes unresolved.
Question 591
An engineer configures a liveness probe to fail whenever one downstream service briefly slows and creates a restart loop. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Define separate appropriate probes and test an unready-but-running Pod and a truly deadlocked process.
- Bind the approved secret to the service, test rotation semantics, and verify that no secret values enter logs or images.
- Deploy a canary revision with the proposed network options and test private SQL and public API connectivity.
- Update Pod resource specifications and test load under representative cluster contention.
Explanation
Correct Answer
A:Define separate appropriate probes and test an unready-but-running Pod and a truly deadlocked process. Validate the change by checking that traffic avoids unready Pods without needless container restarts during normal initialization. An approved limited change can be tested in a safe environment.
Incorrect Answers
B:Bind the approved secret to the service, test rotation semantics, and verify that no secret values enter logs or images. This action changes a different concern, Cloud Run secrets as environment or mounted files. That may help elsewhere, but it does not make the change required for gke readiness versus liveness probes.
C:Deploy a canary revision with the proposed network options and test private SQL and public API connectivity. This action changes a different concern, Cloud Run Direct VPC egress configuration. That may help elsewhere, but it does not make the change required for gke readiness versus liveness probes.
D:Update Pod resource specifications and test load under representative cluster contention. This action changes a different concern, GKE resource requests and limits. That may help elsewhere, but it does not make the change required for gke readiness versus liveness probes.
Question 592
An engineer configures a liveness probe to fail whenever one downstream service briefly slows and creates a restart loop. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The ingress application responds correctly and required sidecars are available without unintended public endpoints.
- Traffic avoids unready Pods without needless container restarts during normal initialization.
- The revision becomes ready and accepts HTTP requests on the port designated by the hosting platform.
- Production continues with approved configuration until the new revision is explicitly promoted.
Explanation
Correct Answer
B:Traffic avoids unready Pods without needless container restarts during normal initialization. In this scenario, an engineer configures a liveness probe to fail whenever one downstream service briefly slows and creates a restart loop. The original diagnosis should have included this step: inspect readiness and liveness probe endpoints, dependency states, Pod events, and restart counts.
Incorrect Answers
A:The ingress application responds correctly and required sidecars are available without unintended public endpoints. In this case, the outcome to verify is that traffic avoids unready Pods without needless container restarts during normal initialization. A more direct response is to recognize that traffic avoids unready Pods without needless container restarts during normal initialization.
C:The revision becomes ready and accepts HTTP requests on the port designated by the hosting platform. In this case, the outcome to verify is that traffic avoids unready Pods without needless container restarts during normal initialization. A more direct response is to recognize that traffic avoids unready Pods without needless container restarts during normal initialization.
D:Production continues with approved configuration until the new revision is explicitly promoted. That result could support testing of Cloud Run environment configuration revisions: Cloud Run revisions are immutable snapshots of code and configuration; environment updates create a new revision rather than editing old instances. A more direct response is to recognize that traffic avoids unready Pods without needless container restarts during normal initialization.
Question 593
A container takes several minutes to initialize a large index and is restarted repeatedly by an impatient liveness check. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect Pod ServiceAccount, workload identity pool principal, IAM bindings, and token availability inside the Pod.
- Inspect memory consumption per active request, vCPU settings, concurrency, instance count, and tail latency.
- Inspect ingress-container selection, startup dependencies, internal ports, and sidecar health or readiness.
- Inspect initialization duration, startup probe settings, existing liveness timing, and Pod event history.
Explanation
Correct Answer
D:Inspect initialization duration, startup probe settings, existing liveness timing, and Pod event history. This checks the actual operating conditions relevant to GKE startup probe for slow initialization, rather than changing a service before the failure is understood. A focused follow-up is to configure and test startup, readiness and liveness probes with a deliberately slow initialization path.
Incorrect Answers
A:Inspect Pod ServiceAccount, workload identity pool principal, IAM bindings, and token availability inside the Pod. GKE workload identity maps Kubernetes principals to Google Cloud permissions without requiring embedded long-lived service account JSON keys. To examine the reported mechanism, the team instead needs to inspect initialization duration, startup probe settings, existing liveness timing, and Pod event history.
B: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 initialization duration, startup probe settings, existing liveness timing, and Pod event history.
C:Inspect ingress-container selection, startup dependencies, internal ports, and sidecar health or readiness. In multi-container Cloud Run services, the ingress container receives requests while supporting containers perform internal auxiliary work. To examine the reported mechanism, the team instead needs to inspect initialization duration, startup probe settings, existing liveness timing, and Pod event history.
Question 594
A container takes several minutes to initialize a large index and is restarted repeatedly by an impatient liveness check. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Add a startup probe that gives slow applications an explicit bounded initialization window before normal probes run.
- Route the intended event type through Eventarc to a compatible authenticated Cloud Run destination.
- Configure supported HPA metrics and replica bounds with meaningful CPU requests or other validated measurements.
- Use Cloud Scheduler with an appropriately authenticated HTTP target for supported scheduled execution.
Explanation
Correct Answer
A:Add a startup probe that gives slow applications an explicit bounded initialization window before normal probes run. The expected outcome is that the Pod completes startup and later health failures are still detected without premature restarts. Before rollout, inspect initialization duration, startup probe settings, existing liveness timing, and Pod event history.
Incorrect Answers
B:Route the intended event type through Eventarc to a compatible authenticated Cloud Run destination. This design addresses eventarc-triggered Cloud Run handler, where Eventarc event routing requires compatible source filters, destination connectivity, and authorized trigger identity. It cannot substitute for the required control: add a startup probe that gives slow applications an explicit bounded initialization window before normal probes run.
C:Configure supported HPA metrics and replica bounds with meaningful CPU requests or other validated measurements. For this case, Kubernetes startup probes can suppress normal liveness and readiness checks during initialization, preventing startup time from being mistaken for failure. It cannot substitute for the required control: add a startup probe that gives slow applications an explicit bounded initialization window before normal probes run.
D:Use Cloud Scheduler with an appropriately authenticated HTTP target for supported scheduled execution. This design addresses Cloud Scheduler invoking a private service, where Cloud Scheduler triggers work on a schedule, while Cloud Run request containers are not a reliable place to run an always-on system cron daemon. It cannot substitute for the required control: add a startup probe that gives slow applications an explicit bounded initialization window before normal probes run.
Question 595
A container takes several minutes to initialize a large index and is restarted repeatedly by an impatient liveness check. 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 startup, readiness and liveness probes with a deliberately slow initialization path.
- Configure the cron schedule and OIDC identity, then run a one-off schedule test against the intended endpoint.
- Test representative large requests at proposed concurrency values and adjust resource settings or application buffering.
- Configure a realistic request deadline and enqueue a long-running export with status tracking instead of holding the request open.
Explanation
Correct Answer
A:Configure and test startup, readiness and liveness probes with a deliberately slow initialization path. Validate the change by checking that the Pod completes startup and later health failures are still detected without premature restarts. In this scenario, a container takes several minutes to initialize a large index and is restarted repeatedly by an impatient liveness check.
Incorrect Answers
B: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 startup probe for slow initialization.
C: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. It addresses a different dependency from gke startup probe for slow initialization.
D:Configure a realistic request deadline and enqueue a long-running export with status tracking instead of holding the request open. This action changes a different concern, Cloud Run request timeout handling. It addresses a different dependency from gke startup probe for slow initialization.
Question 596
A container takes several minutes to initialize a large index and is restarted repeatedly by an impatient liveness check. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Both destination classes follow the approved routes and network controls without leaking private endpoints.
- First-request latency meets requirements with a documented tradeoff in warm capacity cost.
- The Deployment maintains the required replicas with labels recognized by its controller and Service.
- The Pod completes startup and later health failures are still detected without premature restarts.
Explanation
Correct Answer
D:The Pod completes startup and later health failures are still detected without premature restarts. This is evidence that the particular acceptance condition for GKE startup probe for slow initialization has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect initialization duration, startup probe settings, existing liveness timing, and Pod event history.
Incorrect Answers
A:Both destination classes follow the approved routes and network controls without leaking private endpoints. That result could support testing of Cloud Run Direct VPC egress configuration: Cloud Run VPC egress policy changes outbound routing; IAM, firewall and NAT controls still determine actual reachability. The reported condition is about gke startup probe for slow initialization, 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 startup probe for slow initialization, not this adjacent change.
C:The Deployment maintains the required replicas with labels recognized by its controller and Service. In this case, the outcome to verify is that the Pod completes startup and later health failures are still detected without premature restarts. The reported condition is about gke startup probe for slow initialization, not this adjacent change.
Question 597
A team raises all liveness thresholds indefinitely instead of distinguishing startup from steady-state health. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect initialization duration, startup probe settings, existing liveness timing, and Pod event history.
- Inspect push endpoint URL, subscription authentication configuration, service account, and invoker IAM.
- Inspect HPA target metrics, resource requests, metrics availability, current versus desired replicas, and scale limits.
- Inspect service versus revision configuration, environment variables, and which revision receives production traffic.
Explanation
Correct Answer
A:Inspect initialization duration, startup probe settings, existing liveness timing, and Pod event history. This checks the actual operating conditions relevant to GKE startup probe for slow initialization, rather than changing a service before the failure is understood. A focused follow-up is to configure and test startup, readiness and liveness probes with a deliberately slow initialization path. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
B:Inspect push endpoint URL, subscription authentication configuration, service account, and invoker IAM. Pub/Sub push delivery can use an OIDC token for authenticated Cloud Run invocation; access is not established by topic ownership alone. This is not the decisive inspection for gke startup probe for slow initialization.
C:Inspect HPA target metrics, resource requests, metrics availability, current versus desired replicas, and scale limits. Horizontal Pod Autoscaler makes replica decisions from observed metrics relative to configured targets, not merely from an arbitrary container count. This is not the decisive inspection for gke startup probe for slow initialization.
D: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. This is not the decisive inspection for gke startup probe for slow initialization.
Question 598
A team raises all liveness thresholds indefinitely instead of distinguishing startup from steady-state health. 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.
- Use Cloud Run source deployment with the appropriate build pipeline and explicitly account for the resulting container artifact.
- Add a startup probe that gives slow applications an explicit bounded initialization window before normal probes run.
- Use supported request timeouts for bounded synchronous work and dispatch long jobs to a durable asynchronous workflow.
Explanation
Correct Answer
C:Add a startup probe that gives slow applications an explicit bounded initialization window before normal probes run. The expected outcome is that the Pod completes startup and later health failures are still detected without premature restarts. Before rollout, inspect initialization duration, startup probe settings, existing liveness timing, and Pod event history. A team raises all liveness thresholds indefinitely instead of distinguishing startup from steady-state health. The team is choosing a sustainable solution.
Incorrect Answers
A:Use Workload Identity Federation for GKE with least-privilege permissions rather than injecting static Google private keys. This design addresses GKE pod identity without key files, where 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 startup probe for slow initialization.
B:Use Cloud Run source deployment with the appropriate build pipeline and explicitly account for the resulting container artifact. For this case, Kubernetes startup probes can suppress normal liveness and readiness checks during initialization, preventing startup time from being mistaken for failure. That may help elsewhere, but it does not make the change required for gke startup probe for slow initialization.
D:Use supported request timeouts for bounded synchronous work and dispatch long jobs to a durable asynchronous workflow. For this case, Kubernetes startup probes can suppress normal liveness and readiness checks during initialization, preventing startup time from being mistaken for failure. That may help elsewhere, but it does not make the change required for gke startup probe for slow initialization.
Question 599
A team raises all liveness thresholds indefinitely instead of distinguishing startup from steady-state health. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Configure a realistic request deadline and enqueue a long-running export with status tracking instead of holding the request open.
- Configure and test startup, readiness and liveness probes with a deliberately slow initialization path.
- Define separate appropriate probes and test an unready-but-running Pod and a truly deadlocked process.
- Apply the intended ingress mode and test calls from approved internal and unapproved external locations.
Explanation
Correct Answer
B:Configure and test startup, readiness and liveness probes with a deliberately slow initialization path. In this scenario, a team raises all liveness thresholds indefinitely instead of distinguishing startup from steady-state health. Validate the change by checking that the Pod completes startup and later health failures are still detected without premature restarts.
Incorrect Answers
A:Configure a realistic request deadline and enqueue a long-running export with status tracking instead of holding the request open. This action changes a different concern, Cloud Run request timeout handling. A more direct response is to configure and test startup, readiness and liveness probes with a deliberately slow initialization path.
C:Define separate appropriate probes and test an unready-but-running Pod and a truly deadlocked process. This action changes a different concern, GKE readiness versus liveness probes. A more direct response is to configure and test startup, readiness and liveness probes with a deliberately slow initialization path.
D:Apply the intended ingress mode and test calls from approved internal and unapproved external locations. This action changes a different concern, Cloud Run ingress restriction. A more direct response is to configure and test startup, readiness and liveness probes with a deliberately slow initialization path.
Question 600
A team raises all liveness thresholds indefinitely instead of distinguishing startup from steady-state health. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The workload uses short-lived authorized identity and can access only intended buckets without key material in manifests.
- The Pod completes startup and later health failures are still detected without premature restarts.
- The revision becomes ready and accepts HTTP requests on the port designated by the hosting platform.
- The Deployment maintains the required replicas with labels recognized by its controller and Service.
Explanation
Correct Answer
B:The Pod completes startup and later health failures are still detected without premature restarts. This is evidence that the particular acceptance condition for GKE startup probe for slow initialization has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect initialization duration, startup probe settings, existing liveness timing, and Pod event history. A team raises all liveness thresholds indefinitely instead of distinguishing startup from steady-state health. The team has tried a correction.
Incorrect Answers
A:The workload uses short-lived authorized identity and can access only intended buckets without key material in manifests. That result could support testing of GKE pod identity without key files: GKE workload identity maps Kubernetes principals to Google Cloud permissions without requiring embedded long-lived service account JSON keys. The case instead calls for the following: the Pod completes startup and later health failures are still detected without premature restarts.
C:The revision becomes ready and accepts HTTP requests on the port designated by the hosting platform. In this case, the outcome to verify is that the Pod completes startup and later health failures are still detected without premature restarts. The case instead calls for the following: the Pod completes startup and later health failures are still detected without premature restarts.
D:The Deployment maintains the required replicas with labels recognized by its controller and Service. In this case, the outcome to verify is that the Pod completes startup and later health failures are still detected without premature restarts. The case instead calls for the following: the Pod completes startup and later health failures are still detected without premature restarts.