Google Professional Cloud Developer Practice Test 45
Question 440
An engineer optimizes a pipeline with parallel jobs but a release step begins before mandatory security checks finish. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Existing clients remain interoperable and failures return correctly structured error responses.
- The pipeline gains safe parallelism while no failed or unfinished mandatory check can produce an approved release.
- Tests detect application data-contract defects while explicitly preserving coverage of cloud-only operational behavior.
- Interface regressions are caught before production without claiming emulators prove every IAM, quota, or availability condition.
Explanation
Correct Answer
B:The pipeline gains safe parallelism while no failed or unfinished mandatory check can produce an approved release. This is evidence that the particular acceptance condition for Cloud Build parallel tests and failure gates has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect build step dependency IDs, failure propagation, required test outputs, and artifact publish sequence. An engineer optimizes a pipeline with parallel jobs but a release step begins before mandatory security checks finish. The team has tried a correction.
Incorrect Answers
A:Existing clients remain interoperable and failures return correctly structured error responses. In this case, the outcome to verify is that the pipeline gains safe parallelism while no failed or unfinished mandatory check can produce an approved release. It cannot substitute for the required control: the pipeline gains safe parallelism while no failed or unfinished mandatory check can produce an approved release.
C:Tests detect application data-contract defects while explicitly preserving coverage of cloud-only operational behavior. That result could support testing of local Google Cloud emulator boundaries: Local emulators reduce feedback latency but cannot certify every managed-service feature or production security boundary. It cannot substitute for the required control: the pipeline gains safe parallelism while no failed or unfinished mandatory check can produce an approved release.
D:Interface regressions are caught before production without claiming emulators prove every IAM, quota, or availability condition. That result could support testing of integration testing with service emulators: Service emulators exercise protocol and data behavior but do not eliminate the need for selective production-like integration checks. It cannot substitute for the required control: the pipeline gains safe parallelism while no failed or unfinished mandatory check can produce an approved release.
Question 441
A developer has a supported application source tree but no prebuilt container image and wants a managed deployment path. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect push endpoint URL, subscription authentication configuration, service account, and invoker IAM.
- Inspect source language support, build service account, artifact repository location, and required deployment permissions.
- Inspect cold-start distribution, request frequency, configured minimum instances, and the application's latency target.
- Inspect Eventarc trigger source, region, filters, destination service, and trigger identity permissions.
Explanation
Correct Answer
B:Inspect source language support, build service account, artifact repository location, and required deployment permissions. Success requires that the deployed revision runs the intended commit and its built image can be traced to approved build inputs. A focused follow-up is to deploy a test revision from the approved source and examine the build logs and resolved container digest.
Incorrect Answers
A: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. The first evidence should address cloud run source deployment path, not this separate diagnostic path.
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 first evidence should address cloud run source deployment path, not this separate diagnostic path.
D: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 source deployment path, not this separate diagnostic path.
Question 442
A developer has a supported application source tree but no prebuilt container image and wants a managed deployment path. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Choose a supported secret environment injection or mounted secret file mechanism appropriate to the application contract.
- Rollback by restoring traffic to an immutable previously healthy revision while investigating the new release.
- Treat configuration changes as new immutable revisions and scope debug settings to a controlled nonproduction rollout.
- Use Cloud Run source deployment with the appropriate build pipeline and explicitly account for the resulting container artifact.
Explanation
Correct Answer
D:Use Cloud Run source deployment with the appropriate build pipeline and explicitly account for the resulting container artifact. The expected outcome is that the deployed revision runs the intended commit and its built image can be traced to approved build inputs. Before rollout, inspect source language support, build service account, artifact repository location, and required deployment permissions.
Incorrect Answers
A:Choose a supported secret environment injection or mounted secret file mechanism appropriate to the application contract. The reported condition is about cloud run source deployment path, not this adjacent change.
B: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. The reported condition is about cloud run source deployment path, not this adjacent change.
C: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 reported condition is about cloud run source deployment path, not this adjacent change.
Question 443
A developer has a supported application source tree but no prebuilt container image and wants a managed deployment path. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Correct the manifest and apply it to a staging namespace, then compare desired and available Pods.
- Create validated service endpoints and network entry rules, then test authorized internal and external routes.
- Deploy a test revision from the approved source and examine the build logs and resolved container digest.
- Set the known-good revision's traffic to the approved percentage and monitor error recovery under load.
Explanation
Correct Answer
C:Deploy a test revision from the approved source and examine the build logs and resolved container digest. Validate the change by checking that the deployed revision runs the intended commit and its built image can be traced to approved build inputs.
Incorrect Answers
A: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. Applying it first would leave cloud run source deployment path unresolved.
B:Create validated service endpoints and network entry rules, then test authorized internal and external routes. This action changes a different concern, GKE Service and ingress exposure. Applying it first would leave cloud run source deployment path unresolved.
D:Set the known-good revision's traffic to the approved percentage and monitor error recovery under load. This action changes a different concern, Cloud Run revision rollback strategy. Applying it first would leave cloud run source deployment path unresolved.
Question 444
A developer has a supported application source tree but no prebuilt container image and wants a managed deployment path. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Traffic avoids unready Pods without needless container restarts during normal initialization.
- The workload uses short-lived authorized identity and can access only intended buckets without key material in manifests.
- The deployed revision runs the intended commit and its built image can be traced to approved build inputs.
- First-request latency meets requirements with a documented tradeoff in warm capacity cost.
Explanation
Correct Answer
C:The deployed revision runs the intended commit and its built image can be traced to approved build inputs. This is evidence that the particular acceptance condition for Cloud Run source deployment path has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect source language support, build service account, artifact repository location, and required deployment permissions.
Incorrect Answers
A:Traffic avoids unready Pods without needless container restarts during normal initialization. That result could support testing of GKE readiness versus liveness probes: Readiness removes a Pod from eligible Service endpoints; liveness triggers restarts and therefore needs a different failure definition. That may help elsewhere, but it does not make the change required for cloud run source deployment path.
B: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. That may help elsewhere, but it does not make the change required for cloud run source deployment path.
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. That may help elsewhere, but it does not make the change required for cloud run source deployment path.
Question 445
A release pipeline assumes a Cloud Run source deployment bypasses image builds and has no artifact provenance. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect invocation authentication setting, caller principal, audience in the ID token, and Cloud Run Invoker binding.
- Inspect request duration, configured timeout, downstream waits, retry behavior, and whether an immediate HTTP response is required.
- Inspect revision history, current traffic percentages, error rates, and verified rollback candidates.
- Inspect source language support, build service account, artifact repository location, and required deployment permissions.
Explanation
Correct Answer
D:Inspect source language support, build service account, artifact repository location, and required deployment permissions. Success requires that the deployed revision runs the intended commit and its built image can be traced to approved build inputs. A focused follow-up is to deploy a test revision from the approved source and examine the build logs and resolved container digest. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A: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 source language support, build service account, artifact repository location, and required deployment permissions.
B:Inspect request duration, configured timeout, downstream waits, retry behavior, and whether an immediate HTTP response is required. Cloud Run request timeouts bound synchronous request handling; raising a deadline is not a durable background processing strategy. The more informative check is to inspect source language support, build service account, artifact repository location, and required deployment permissions.
C:Inspect revision history, current traffic percentages, error rates, and verified rollback candidates. Cloud Run rollbacks manipulate traffic allocation among existing revisions rather than rewriting the contents of a released revision. The more informative check is to inspect source language support, build service account, artifact repository location, and required deployment permissions.
Question 446
A release pipeline assumes a Cloud Run source deployment bypasses image builds and has no artifact provenance. 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.
- Use an appropriate Kubernetes Service and controlled ingress or load-balancer configuration for the required audience.
- Choose an appropriate minimum-instance setting and startup optimization based on measured latency and cost.
- Use Cloud Run source deployment with the appropriate build pipeline and explicitly account for the resulting container artifact.
Explanation
Correct Answer
D:Use Cloud Run source deployment with the appropriate build pipeline and explicitly account for the resulting container artifact. The expected outcome is that the deployed revision runs the intended commit and its built image can be traced to approved build inputs. Before rollout, inspect source language support, build service account, artifact repository location, and required deployment permissions. A release pipeline assumes a Cloud Run source deployment bypasses image builds and has no artifact provenance. The team is choosing a sustainable solution.
Incorrect Answers
A:Use supported request timeouts for bounded synchronous work and dispatch long jobs to a durable asynchronous workflow. The case instead calls for the following: use Cloud Run source deployment with the appropriate build pipeline and explicitly account for the resulting container artifact.
B: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. The case instead calls for the following: use Cloud Run source deployment with the appropriate build pipeline and explicitly account for the resulting container artifact.
C:Choose an appropriate minimum-instance setting and startup optimization based on measured latency and cost. This design addresses minimum instances and cold-start tradeoffs, where 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: use Cloud Run source deployment with the appropriate build pipeline and explicitly account for the resulting container artifact.
Question 447
A release pipeline assumes a Cloud Run source deployment bypasses image builds and has no artifact provenance. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Create validated service endpoints and network entry rules, then test authorized internal and external routes.
- Deploy a canary revision with the proposed network options and test private SQL and public API connectivity.
- Test representative large requests at proposed concurrency values and adjust resource settings or application buffering.
- Deploy a test revision from the approved source and examine the build logs and resolved container digest.
Explanation
Correct Answer
D:Deploy a test revision from the approved source and examine the build logs and resolved container digest. Validate the change by checking that the deployed revision runs the intended commit and its built image can be traced to approved build inputs. An approved limited change can be tested in a safe environment.
Incorrect Answers
A:Create validated service endpoints and network entry rules, then test authorized internal and external routes. This action changes a different concern, GKE Service and ingress exposure. It cannot substitute for the required control: deploy a test revision from the approved source and examine the build logs and resolved container digest.
B: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. It cannot substitute for the required control: deploy a test revision from the approved source and examine the build logs and resolved container digest.
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 cannot substitute for the required control: deploy a test revision from the approved source and examine the build logs and resolved container digest.
Question 448
A release pipeline assumes a Cloud Run source deployment bypasses image builds and has no artifact provenance. 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.
- Replica scaling follows the target utilization and keeps application capacity within tested bounds.
- The revision becomes ready and accepts HTTP requests on the port designated by the hosting platform.
- The deployed revision runs the intended commit and its built image can be traced to approved build inputs.
Explanation
Correct Answer
D:The deployed revision runs the intended commit and its built image can be traced to approved build inputs. This is evidence that the particular acceptance condition for Cloud Run source deployment path has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect source language support, build service account, artifact repository location, and required deployment permissions. A release pipeline assumes a Cloud Run source deployment bypasses image builds and has no artifact provenance. The team has tried a correction.
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 the deployed revision runs the intended commit and its built image can be traced to approved build inputs. It addresses a different dependency from cloud run source deployment path.
B:Replica scaling follows the target utilization and keeps application capacity within tested bounds. In this case, the outcome to verify is that the deployed revision runs the intended commit and its built image can be traced to approved build inputs. It addresses a different dependency from cloud run source deployment path.
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 deployed revision runs the intended commit and its built image can be traced to approved build inputs. It addresses a different dependency from cloud run source deployment path.
Question 449
A container passes local tests on port 5000 but Cloud Run marks it unhealthy when the process ignores the provided listening port. 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 the ingress process startup, host binding, runtime PORT variable, and container listening socket.
- Inspect revision service account, actual access tokens, target resource permissions, and who invokes the service.
- Inspect revision history, current traffic percentages, error rates, and verified rollback candidates.
Explanation
Correct Answer
B:Inspect the ingress process startup, host binding, runtime PORT variable, and container listening socket. This checks the actual operating conditions relevant to Cloud Run container listening port, rather than changing a service before the failure is understood. A focused follow-up is to update application startup to honor PORT, bind appropriately, and test the image with the actual runtime contract.
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. The relevant dependency is cloud run container listening port, which this inspection alone does not establish.
C:Inspect revision service account, actual access tokens, target resource permissions, and who invokes the service. The deployed execution identity controls Google API permissions from a Cloud Run workload; user identities and deployer privileges are separate. The relevant dependency is cloud run container listening port, which this inspection alone does not establish.
D:Inspect revision history, current traffic percentages, error rates, and verified rollback candidates. Cloud Run rollbacks manipulate traffic allocation among existing revisions rather than rewriting the contents of a released revision. The relevant dependency is cloud run container listening port, which this inspection alone does not establish.
Question 450
A container passes local tests on port 5000 but Cloud Run marks it unhealthy when the process ignores the provided listening port. 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.
- Choose a supported secret environment injection or mounted secret file mechanism appropriate to the application contract.
- Make the ingress container listen on the provided port and accessible interface rather than a hard-coded localhost binding.
- Rollback by restoring traffic to an immutable previously healthy revision while investigating the new release.
Explanation
Correct Answer
C:Make the ingress container listen on the provided port and accessible interface rather than a hard-coded localhost binding. This is the bounded design decision for Cloud Run container listening port, not a general request to widen access or replace unrelated resources. Before rollout, inspect the ingress process startup, host binding, runtime PORT variable, and container listening socket.
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. Applying it first would leave cloud run container listening port unresolved.
B:Choose a supported secret environment injection or mounted secret file mechanism appropriate to the application contract. Applying it first would leave cloud run container listening port unresolved.
D: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. Applying it first would leave cloud run container listening port unresolved.