Google Professional Cloud Developer Practice Test 53
Question 520
A developer increases timeout indefinitely instead of separating work that can be processed asynchronously. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Interactive requests terminate predictably while long jobs complete independently with verifiable status.
- The handler runs for authorized matching events with valid delivery identity and no unnecessary invocations.
- The Pod completes startup and later health failures are still detected without premature restarts.
- First-request latency meets requirements with a documented tradeoff in warm capacity cost.
Explanation
Correct Answer
A:Interactive requests terminate predictably while long jobs complete independently with verifiable status. This is evidence that the particular acceptance condition for Cloud Run request timeout handling has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect request duration, configured timeout, downstream waits, retry behavior, and whether an immediate HTTP response is required. A developer increases timeout indefinitely instead of separating work that can be processed asynchronously. The team has tried a correction.
Incorrect Answers
B: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. Applying it first would leave cloud run request timeout handling unresolved.
C:The Pod completes startup and later health failures are still detected without premature restarts. That result could support testing of GKE startup probe for slow initialization: Kubernetes startup probes can suppress normal liveness and readiness checks during initialization, preventing startup time from being mistaken for failure. Applying it first would leave cloud run request timeout handling unresolved.
D: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. Applying it first would leave cloud run request timeout handling unresolved.
Question 521
An application image depends on a logging sidecar, but the service starts with the supporting container unavailable. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect ingress-container selection, startup dependencies, internal ports, and sidecar health or readiness.
- Inspect HPA target metrics, resource requests, metrics availability, current versus desired replicas, and scale limits.
- Inspect application secret consumption pattern, configured Secret Manager version, and runtime identity access.
- Inspect schedule expression, time zone, target URL, job identity, and endpoint invocation policy.
Explanation
Correct Answer
A:Inspect ingress-container selection, startup dependencies, internal ports, and sidecar health or readiness. This checks the actual operating conditions relevant to Cloud Run sidecar container dependency, rather than changing a service before the failure is understood. A focused follow-up is to define startup order where supported and validate a request that depends on the sidecar without exposing its port publicly.
Incorrect Answers
B: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. That check does not establish the specific cause behind cloud run sidecar container dependency.
C: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. That check does not establish the specific cause behind cloud run sidecar container dependency.
D:Inspect schedule expression, time zone, target URL, job identity, and endpoint invocation policy. 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. That check does not establish the specific cause behind cloud run sidecar container dependency.
Question 522
An application image depends on a logging sidecar, but the service starts with the supporting container unavailable. 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 readiness to control serving eligibility and liveness only to restart genuinely unhealthy containers.
- Use an appropriate Kubernetes Service and controlled ingress or load-balancer configuration for the required audience.
- Use supported multi-container configuration with one ingress container and appropriately configured sidecars.
Explanation
Correct Answer
D:Use supported multi-container configuration with one ingress container and appropriately configured sidecars. In this scenario, an application image depends on a logging sidecar, but the service starts with the supporting container unavailable. Before rollout, inspect ingress-container selection, startup dependencies, internal ports, and sidecar health or readiness.
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. A more direct response is to use supported multi-container configuration with one ingress container and appropriately configured sidecars.
B:Use readiness to control serving eligibility and liveness only to restart genuinely unhealthy containers. This design addresses GKE readiness versus liveness probes, where readiness removes a Pod from eligible Service endpoints; liveness triggers restarts and therefore needs a different failure definition. A more direct response is to use supported multi-container configuration with one ingress container and appropriately configured sidecars.
C:Use an appropriate Kubernetes Service and controlled ingress or load-balancer configuration for the required audience. This design addresses GKE Service and ingress exposure, where a Deployment manages Pods, a Service provides stable routing to selected Pods, and ingress determines supported external HTTP entry. A more direct response is to use supported multi-container configuration with one ingress container and appropriately configured sidecars.
Question 523
An application image depends on a logging sidecar, but the service starts with the supporting container unavailable. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Define startup order where supported and validate a request that depends on the sidecar without exposing its port publicly.
- Configure a realistic request deadline and enqueue a long-running export with status tracking instead of holding the request open.
- Deploy a test revision from the approved source and examine the build logs and resolved container digest.
- Test representative large requests at proposed concurrency values and adjust resource settings or application buffering.
Explanation
Correct Answer
A:Define startup order where supported and validate a request that depends on the sidecar without exposing its port publicly. In this scenario, an application image depends on a logging sidecar, but the service starts with the supporting container unavailable. Validate the change by checking that the ingress application responds correctly and required sidecars are available without unintended public endpoints.
Incorrect Answers
B: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. The case instead calls for the following: define startup order where supported and validate a request that depends on the sidecar without exposing its port publicly.
C:Deploy a test revision from the approved source and examine the build logs and resolved container digest. This action changes a different concern, Cloud Run source deployment path. The case instead calls for the following: define startup order where supported and validate a request that depends on the sidecar without exposing its port publicly.
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. The case instead calls for the following: define startup order where supported and validate a request that depends on the sidecar without exposing its port publicly.
Question 524
An application image depends on a logging sidecar, but the service starts with the supporting container unavailable. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The deployed revision runs the intended commit and its built image can be traced to approved build inputs.
- The Deployment maintains the required replicas with labels recognized by its controller and Service.
- The candidate is testable without changing serving percentages and can be promoted only after acceptance.
- The ingress application responds correctly and required sidecars are available without unintended public endpoints.
Explanation
Correct Answer
D:The ingress application responds correctly and required sidecars are available without unintended public endpoints. In this scenario, an application image depends on a logging sidecar, but the service starts with the supporting container unavailable. The original diagnosis should have included this step: inspect ingress-container selection, startup dependencies, internal ports, and sidecar health or readiness.
Incorrect Answers
A:The deployed revision runs the intended commit and its built image can be traced to approved build inputs. In this case, the outcome to verify is that the ingress application responds correctly and required sidecars are available without unintended public endpoints. It cannot substitute for the required control: the ingress application responds correctly and required sidecars are available without unintended public endpoints.
B:The Deployment maintains the required replicas with labels recognized by its controller and Service. In this case, the outcome to verify is that the ingress application responds correctly and required sidecars are available without unintended public endpoints. It cannot substitute for the required control: the ingress application responds correctly and required sidecars are available without unintended public endpoints.
C:The candidate is testable without changing serving percentages and can be promoted only after acceptance. That result could support testing of tagged Cloud Run revision validation: Revision tags provide direct revision access for testing; they do not inherently shift regular service URL traffic. It cannot substitute for the required control: the ingress application responds correctly and required sidecars are available without unintended public endpoints.
Question 525
A team assumes every container in a multi-container Cloud Run instance receives inbound HTTP requests directly. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect ingress-container selection, startup dependencies, internal ports, and sidecar health or readiness.
- Inspect Eventarc trigger source, region, filters, destination service, and trigger identity permissions.
- Inspect CPU and memory use distributions, scheduling requests, limits, and termination reasons.
- Inspect network, subnet region, Direct VPC egress mode, firewall policy, and required destinations.
Explanation
Correct Answer
A:Inspect ingress-container selection, startup dependencies, internal ports, and sidecar health or readiness. This checks the actual operating conditions relevant to Cloud Run sidecar container dependency, rather than changing a service before the failure is understood. A focused follow-up is to define startup order where supported and validate a request that depends on the sidecar without exposing its port publicly. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
B:Inspect Eventarc trigger source, region, filters, destination service, and trigger identity permissions. Eventarc event routing requires compatible source filters, destination connectivity, and authorized trigger identity. The first evidence should address cloud run sidecar container dependency, not this separate diagnostic path.
C:Inspect CPU and memory use distributions, scheduling requests, limits, and termination reasons. Kubernetes requests influence scheduling and resource guarantees, while limits bound usage and can cause throttling or out-of-memory termination. The first evidence should address cloud run sidecar container dependency, not this separate diagnostic path.
D: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. The first evidence should address cloud run sidecar container dependency, not this separate diagnostic path.
Question 526
A team assumes every container in a multi-container Cloud Run instance receives inbound HTTP requests directly. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Make the ingress container listen on the provided port and accessible interface rather than a hard-coded localhost binding.
- Use stable matching selectors and Pod labels so the Kubernetes controller owns the intended replicas.
- Set Cloud Run ingress exposure and IAM invocation permissions to match whether the service is internal or public.
- Use supported multi-container configuration with one ingress container and appropriately configured sidecars.
Explanation
Correct Answer
D:Use supported multi-container configuration with one ingress container and appropriately configured sidecars. The expected outcome is that the ingress application responds correctly and required sidecars are available without unintended public endpoints. Before rollout, inspect ingress-container selection, startup dependencies, internal ports, and sidecar health or readiness.
Incorrect Answers
A:Make the ingress container listen on the provided port and accessible interface rather than a hard-coded localhost binding. The reported condition is about cloud run sidecar container dependency, not this adjacent change.
B:Use stable matching selectors and Pod labels so the Kubernetes controller owns the intended replicas. The reported condition is about cloud run sidecar container dependency, not this adjacent change.
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. The reported condition is about cloud run sidecar container dependency, not this adjacent change.
Question 527
A team assumes every container in a multi-container Cloud Run instance receives inbound HTTP requests directly. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Define startup order where supported and validate a request that depends on the sidecar without exposing its port publicly.
- Bind the correct Kubernetes identity and scoped storage permissions, and verify API calls in a fresh Pod.
- Deploy a test revision from the approved source and examine the build logs and resolved container digest.
- Configure and test the trigger against a matching object creation and a deliberately excluded update.
Explanation
Correct Answer
A:Define startup order where supported and validate a request that depends on the sidecar without exposing its port publicly. Validate the change by checking that the ingress application responds correctly and required sidecars are available without unintended public endpoints.
Incorrect Answers
B:Bind the correct Kubernetes identity and scoped storage permissions, and verify API calls in a fresh Pod. This action changes a different concern, GKE pod identity without key files. Applying it first would leave cloud run sidecar container dependency unresolved.
C:Deploy a test revision from the approved source and examine the build logs and resolved container digest. This action changes a different concern, Cloud Run source deployment path. Applying it first would leave cloud run sidecar container dependency unresolved.
D: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. Applying it first would leave cloud run sidecar container dependency unresolved.
Question 528
A team assumes every container in a multi-container Cloud Run instance receives inbound HTTP requests directly. 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.
- Only authorized network paths can reach the service, with authentication still enforced where required.
- First-request latency meets requirements with a documented tradeoff in warm capacity cost.
- Authorized push deliveries succeed without exposing the handler publicly or masking errors through silent acknowledgments.
Explanation
Correct Answer
A:The ingress application responds correctly and required sidecars are available without unintended public endpoints. This is evidence that the particular acceptance condition for Cloud Run sidecar container dependency has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect ingress-container selection, startup dependencies, internal ports, and sidecar health or readiness.
Incorrect Answers
B:Only authorized network paths can reach the service, with authentication still enforced where required. That result could support testing of Cloud Run ingress restriction: Ingress controls which network paths can reach Cloud Run; IAM controls who may invoke it, and both policies can be necessary. That may help elsewhere, but it does not make the change required for cloud run sidecar container dependency.
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. That may help elsewhere, but it does not make the change required for cloud run sidecar container dependency.
D: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. That may help elsewhere, but it does not make the change required for cloud run sidecar container dependency.
Question 529
A newly deployed container causes a spike in errors after receiving all production traffic. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect CPU and memory use distributions, scheduling requests, limits, and termination reasons.
- Inspect revision history, current traffic percentages, error rates, and verified rollback candidates.
- Inspect cold-start distribution, request frequency, configured minimum instances, and the application's latency target.
- Inspect invocation authentication setting, caller principal, audience in the ID token, and Cloud Run Invoker binding.
Explanation
Correct Answer
B:Inspect revision history, current traffic percentages, error rates, and verified rollback candidates. This checks the actual operating conditions relevant to Cloud Run revision rollback strategy, rather than changing a service before the failure is understood.
Incorrect Answers
A:Inspect CPU and memory use distributions, scheduling requests, limits, and termination reasons. Kubernetes requests influence scheduling and resource guarantees, while limits bound usage and can cause throttling or out-of-memory termination. The more informative check is to inspect revision history, current traffic percentages, error rates, and verified rollback candidates.
C: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. The more informative check is to inspect revision history, current traffic percentages, error rates, and verified rollback candidates.
D:Inspect invocation authentication setting, caller principal, audience in the ID token, and Cloud Run Invoker binding. Private Cloud Run invocation requires both valid identity evidence and applicable IAM authorization; making it public is not a substitute. The more informative check is to inspect revision history, current traffic percentages, error rates, and verified rollback candidates.
Question 530
A newly deployed container causes a spike in errors after receiving all production traffic. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Configure private egress for required VPC destinations and deliberately select whether all or only private traffic uses it.
- 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.
- Set Cloud Run ingress exposure and IAM invocation permissions to match whether the service is internal or public.
Explanation
Correct Answer
C:Rollback by restoring traffic to an immutable previously healthy revision while investigating the new release. Cloud Run rollbacks manipulate traffic allocation among existing revisions rather than rewriting the contents of a released revision. Before rollout, inspect revision history, current traffic percentages, error rates, and verified rollback candidates.
Incorrect Answers
A:Configure private egress for required VPC destinations and deliberately select whether all or only private traffic uses it. This design addresses Cloud Run Direct VPC egress configuration, where Cloud Run VPC egress policy changes outbound routing; IAM, firewall and NAT controls still determine actual reachability. The case instead calls for the following: rollback by restoring traffic to an immutable previously healthy revision while investigating the new release.
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. The case instead calls for the following: rollback by restoring traffic to an immutable previously healthy revision while investigating the new release.
D: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. The case instead calls for the following: rollback by restoring traffic to an immutable previously healthy revision while investigating the new release.