Google Professional Cloud Developer Practice Test 37
Question 360
A supply-chain review sees a passing test report but no trustworthy trace from submitted source to the released image. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Reviewers can trace an artifact to its build inputs and trusted builder without relying on a mutable filename.
- The pipeline gains safe parallelism while no failed or unfinished mandatory check can produce an approved release.
- Only images carrying the expected evidence satisfy the admission policy; arbitrary tags do not bypass the gate.
- The application reaches the intended instance without opening unrestricted inbound database access.
Explanation
Correct Answer
A:Reviewers can trace an artifact to its build inputs and trusted builder without relying on a mutable filename. This is evidence that the particular acceptance condition for SLSA and build provenance evidence has been met, rather than a general availability metric. Supply-chain provenance records how an artifact was built; test results alone do not establish its origin.
Incorrect Answers
B:The pipeline gains safe parallelism while no failed or unfinished mandatory check can produce an approved release. In this case, the outcome to verify is that reviewers can trace an artifact to its build inputs and trusted builder without relying on a mutable filename. That may help elsewhere, but it does not make the change required for slsa and build provenance evidence.
C:Only images carrying the expected evidence satisfy the admission policy; arbitrary tags do not bypass the gate. That result could support testing of binary Authorization attestations in CI: Binary Authorization requires digest-specific trust evidence and an enforcement policy, not just an assertion that a build succeeded. That may help elsewhere, but it does not make the change required for slsa and build provenance evidence.
D:The application reaches the intended instance without opening unrestricted inbound database access. In this case, the outcome to verify is that reviewers can trace an artifact to its build inputs and trusted builder without relying on a mutable filename. That may help elsewhere, but it does not make the change required for slsa and build provenance evidence.
Question 361
A developer directly pushes an unreviewed change that can deploy to production from the default branch. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect proxy lifecycle, database IAM permissions, network reachability, client credentials, and database user access.
- Inspect API serialization, emulator feature support, test data setup, and the next production-like test boundary.
- Inspect repository review policy, branch protections, required checks, and deployment-to-commit mapping.
- Inspect cache hit rates, lockfiles, base image digests, and the version resolution mechanism.
Explanation
Correct Answer
C:Inspect repository review policy, branch protections, required checks, and deployment-to-commit mapping. This checks the actual operating conditions relevant to source control branch protection and review, rather than changing a service before the failure is understood.
Incorrect Answers
A:Inspect proxy lifecycle, database IAM permissions, network reachability, client credentials, and database user access. Cloud SQL connection helpers secure the connection path; database-level authentication and authorization still apply separately. The more informative check is to inspect repository review policy, branch protections, required checks, and deployment-to-commit mapping.
B:Inspect API serialization, emulator feature support, test data setup, and the next production-like test boundary. Service emulators exercise protocol and data behavior but do not eliminate the need for selective production-like integration checks. The more informative check is to inspect repository review policy, branch protections, required checks, and deployment-to-commit mapping.
D:Inspect cache hit rates, lockfiles, base image digests, and the version resolution mechanism. Caching speeds repeated builds, but deterministic inputs and locked dependencies are necessary for reproducible container images. The more informative check is to inspect repository review policy, branch protections, required checks, and deployment-to-commit mapping.
Question 362
A developer directly pushes an unreviewed change that can deploy to production from the default branch. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Generate authorized attestations tied to immutable artifact digests before the deployment policy evaluates them.
- Use protected branches with mandatory code review and verified CI status before release promotions.
- Capture supported build provenance with a documented trust level and link it to the deployed artifact.
- Use the supported Cloud SQL Auth Proxy or connector for authenticated encrypted connectivity rather than broadening database exposure.
Explanation
Correct Answer
B:Use protected branches with mandatory code review and verified CI status before release promotions. In this scenario, a developer directly pushes an unreviewed change that can deploy to production from the default branch. This is the bounded design decision for source control branch protection and review, not a general request to widen access or replace unrelated resources.
Incorrect Answers
A:Generate authorized attestations tied to immutable artifact digests before the deployment policy evaluates them. This design addresses binary Authorization attestations in CI, where Binary Authorization requires digest-specific trust evidence and an enforcement policy, not just an assertion that a build succeeded. The case instead calls for the following: use protected branches with mandatory code review and verified CI status before release promotions.
C:Capture supported build provenance with a documented trust level and link it to the deployed artifact. The case instead calls for the following: use protected branches with mandatory code review and verified CI status before release promotions.
D:Use the supported Cloud SQL Auth Proxy or connector for authenticated encrypted connectivity rather than broadening database exposure. The case instead calls for the following: use protected branches with mandatory code review and verified CI status before release promotions.
Question 363
A developer directly pushes an unreviewed change that can deploy to production from the default branch. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Review the suggested patch, verify imported methods, and run targeted tests and static analysis before merge.
- Record the digest at build completion and pin it in deployment manifests and release evidence.
- Enable the approved merge controls and attach immutable commit IDs to built artifacts and deployment records.
- Run staged workloads with recorded payload sizes, instance counts, and p95/p99 timings before rollout.
Explanation
Correct Answer
C:Enable the approved merge controls and attach immutable commit IDs to built artifacts and deployment records. In this scenario, a developer directly pushes an unreviewed change that can deploy to production from the default branch. This targets the identified configuration or behavior for source control branch protection and review.
Incorrect Answers
A:Review the suggested patch, verify imported methods, and run targeted tests and static analysis before merge. This action changes a different concern, Gemini Code Assist generated code verification. It cannot substitute for the required control: enable the approved merge controls and attach immutable commit IDs to built artifacts and deployment records.
B:Record the digest at build completion and pin it in deployment manifests and release evidence. This action changes a different concern, artifact Registry image digest reproducibility. It cannot substitute for the required control: enable the approved merge controls and attach immutable commit IDs to built artifacts and deployment records.
D:Run staged workloads with recorded payload sizes, instance counts, and p95/p99 timings before rollout. This action changes a different concern, performance and load testing before release. It cannot substitute for the required control: enable the approved merge controls and attach immutable commit IDs to built artifacts and deployment records.
Question 364
A developer directly pushes an unreviewed change that can deploy to production from the default branch. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The service meets agreed throughput, tail-latency, and error thresholds under the documented test profile.
- The integrated code compiles, behaves as intended, and introduces no unreviewed permission or business-logic change.
- Only reviewed commits with passing checks reach production and each deployment has a reproducible source reference.
- The container starts without excessive privileges and retains access only to necessary files and ports.
Explanation
Correct Answer
C:Only reviewed commits with passing checks reach production and each deployment has a reproducible source reference. This is evidence that the particular acceptance condition for source control branch protection and review has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect repository review policy, branch protections, required checks, and deployment-to-commit mapping.
Incorrect Answers
A:The service meets agreed throughput, tail-latency, and error thresholds under the documented test profile. That result could support testing of performance and load testing before release: Performance acceptance requires representative load and percentile metrics; a successful small demo does not demonstrate capacity. It addresses a different dependency from source control branch protection and review.
B:The integrated code compiles, behaves as intended, and introduces no unreviewed permission or business-logic change. That result could support testing of Gemini Code Assist generated code verification: AI coding assistance can accelerate development but generated suggestions do not establish their own correctness or safety. It addresses a different dependency from source control branch protection and review.
D:The container starts without excessive privileges and retains access only to necessary files and ports. That result could support testing of non-root minimal container runtime: Least-privilege container identity and reduced packages narrow the impact of a compromised application process. It addresses a different dependency from source control branch protection and review.
Question 365
A rollback requires restoring a prior release but the team cannot associate that release with a precise commit. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect recorded source revision, isolated build process, artifact digest, and available provenance attestations.
- Inspect repository review policy, branch protections, required checks, and deployment-to-commit mapping.
- Inspect API serialization, emulator feature support, test data setup, and the next production-like test boundary.
- Inspect generated code against current API references, tests, permissions, and the application's domain invariants.
Explanation
Correct Answer
B:Inspect repository review policy, branch protections, required checks, and deployment-to-commit mapping. In this scenario, a rollback requires restoring a prior release but the team cannot associate that release with a precise commit. This checks the actual operating conditions relevant to source control branch protection and review, rather than changing a service before the failure is understood.
Incorrect Answers
A:Inspect recorded source revision, isolated build process, artifact digest, and available provenance attestations. Supply-chain provenance records how an artifact was built; test results alone do not establish its origin. The relevant dependency is source control branch protection and review, which this inspection alone does not establish.
C:Inspect API serialization, emulator feature support, test data setup, and the next production-like test boundary. Service emulators exercise protocol and data behavior but do not eliminate the need for selective production-like integration checks. The relevant dependency is source control branch protection and review, which this inspection alone does not establish.
D:Inspect generated code against current API references, tests, permissions, and the application's domain invariants. AI coding assistance can accelerate development but generated suggestions do not establish their own correctness or safety. The relevant dependency is source control branch protection and review, which this inspection alone does not establish.
Question 366
A rollback requires restoring a prior release but the team cannot associate that release with a precise commit. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Capture supported build provenance with a documented trust level and link it to the deployed artifact.
- Use protected branches with mandatory code review and verified CI status before release promotions.
- Define load acceptance criteria using tail latency and error budgets at expected concurrency.
- Expose narrowly scoped MCP server tools with explicit authorization and untrusted-input handling.
Explanation
Correct Answer
B:Use protected branches with mandatory code review and verified CI status before release promotions. In this scenario, a rollback requires restoring a prior release but the team cannot associate that release with a precise commit. This is the bounded design decision for source control branch protection and review, not a general request to widen access or replace unrelated resources.
Incorrect Answers
A:Capture supported build provenance with a documented trust level and link it to the deployed artifact. Applying it first would leave source control branch protection and review unresolved.
C:Define load acceptance criteria using tail latency and error budgets at expected concurrency. This design addresses performance and load testing before release, where performance acceptance requires representative load and percentile metrics; a successful small demo does not demonstrate capacity. Applying it first would leave source control branch protection and review unresolved.
D:Expose narrowly scoped MCP server tools with explicit authorization and untrusted-input handling. Applying it first would leave source control branch protection and review unresolved.
Question 367
A rollback requires restoring a prior release but the team cannot associate that release with a precise commit. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Set an isolated named configuration and pass the intended project ID in deployment scripts where applicable.
- Enable the approved merge controls and attach immutable commit IDs to built artifacts and deployment records.
- Add a test that writes a fixture, reads it back, and verifies application decoding with a real-service smoke check where required.
- Provision the selected environment and validate workspace setup, credential access, and cleanup behavior.
Explanation
Correct Answer
B:Enable the approved merge controls and attach immutable commit IDs to built artifacts and deployment records. In this scenario, a rollback requires restoring a prior release but the team cannot associate that release with a precise commit. This targets the identified configuration or behavior for source control branch protection and review.
Incorrect Answers
A:Set an isolated named configuration and pass the intended project ID in deployment scripts where applicable. This action changes a different concern, google Cloud CLI project and identity context. That may help elsewhere, but it does not make the change required for source control branch protection and review.
C:Add a test that writes a fixture, reads it back, and verifies application decoding with a real-service smoke check where required. This action changes a different concern, integration testing with service emulators. That may help elsewhere, but it does not make the change required for source control branch protection and review.
D:Provision the selected environment and validate workspace setup, credential access, and cleanup behavior. This action changes a different concern, Cloud Shell versus Cloud Workstations. That may help elsewhere, but it does not make the change required for source control branch protection and review.
Question 368
A rollback requires restoring a prior release but the team cannot associate that release with a precise commit. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Only reviewed commits with passing checks reach production and each deployment has a reproducible source reference.
- Only changes matching the documented release conditions initiate the expected pipeline.
- The deployed image runs correctly with reduced size and without leftover compilers or build credentials.
- The container starts without excessive privileges and retains access only to necessary files and ports.
Explanation
Correct Answer
A:Only reviewed commits with passing checks reach production and each deployment has a reproducible source reference. In this scenario, a rollback requires restoring a prior release but the team cannot associate that release with a precise commit. This is evidence that the particular acceptance condition for source control branch protection and review has been met, rather than a general availability metric.
Incorrect Answers
B:Only changes matching the documented release conditions initiate the expected pipeline. In this case, the outcome to verify is that only reviewed commits with passing checks reach production and each deployment has a reproducible source reference. A more direct response is to recognize that only reviewed commits with passing checks reach production and each deployment has a reproducible source reference.
C:The deployed image runs correctly with reduced size and without leftover compilers or build credentials. That result could support testing of multi-stage Docker image construction: Multi-stage builds separate build tools from runtime contents and can reduce attack surface when stage copies are constrained. A more direct response is to recognize that only reviewed commits with passing checks reach production and each deployment has a reproducible source reference.
D:The container starts without excessive privileges and retains access only to necessary files and ports. That result could support testing of non-root minimal container runtime: Least-privilege container identity and reduced packages narrow the impact of a compromised application process. A more direct response is to recognize that only reviewed commits with passing checks reach production and each deployment has a reproducible source reference.
Question 369
A unit test for business-tax calculation unexpectedly creates real Pub/Sub messages and sometimes fails on network outages. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect the test boundary, external service calls, fixture data, and whether functions are deterministic.
- Inspect generated code against current API references, tests, permissions, and the application's domain invariants.
- Inspect recorded source revision, isolated build process, artifact digest, and available provenance attestations.
- Inspect active gcloud configurations, account identity, project setting, and environment overrides.
Explanation
Correct Answer
A:Inspect the test boundary, external service calls, fixture data, and whether functions are deterministic. This checks the actual operating conditions relevant to unit testing with isolated dependencies, rather than changing a service before the failure is understood. In this scenario, a unit test for business-tax calculation unexpectedly creates real Pub/Sub messages and sometimes fails on network outages.
Incorrect Answers
B:Inspect generated code against current API references, tests, permissions, and the application's domain invariants. AI coding assistance can accelerate development but generated suggestions do not establish their own correctness or safety. To examine the reported mechanism, the team instead needs to inspect the test boundary, external service calls, fixture data, and whether functions are deterministic.
C:Inspect recorded source revision, isolated build process, artifact digest, and available provenance attestations. Supply-chain provenance records how an artifact was built; test results alone do not establish its origin. To examine the reported mechanism, the team instead needs to inspect the test boundary, external service calls, fixture data, and whether functions are deterministic.
D:Inspect active gcloud configurations, account identity, project setting, and environment overrides. Google Cloud CLI settings influence which identity and project receive operations; implicit defaults can cause unintended resource changes. To examine the reported mechanism, the team instead needs to inspect the test boundary, external service calls, fixture data, and whether functions are deterministic.
Question 370
A unit test for business-tax calculation unexpectedly creates real Pub/Sub messages and sometimes fails on network outages. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Generate authorized attestations tied to immutable artifact digests before the deployment policy evaluates them.
- Isolate business logic using controlled stubs or mocks while keeping separate cloud integration coverage.
- Use versioned dependencies and safe build caches rather than sacrificing reproducibility for faster downloads.
- Use a supported emulator for local feature tests and keep separate targeted tests for real cloud IAM, quotas, and networking.
Explanation
Correct Answer
B:Isolate business logic using controlled stubs or mocks while keeping separate cloud integration coverage. Before rollout, inspect the test boundary, external service calls, fixture data, and whether functions are deterministic. In this scenario, a unit test for business-tax calculation unexpectedly creates real Pub/Sub messages and sometimes fails on network outages.
Incorrect Answers
A:Generate authorized attestations tied to immutable artifact digests before the deployment policy evaluates them. This design addresses binary Authorization attestations in CI, where Binary Authorization requires digest-specific trust evidence and an enforcement policy, not just an assertion that a build succeeded. It cannot substitute for the required control: isolate business logic using controlled stubs or mocks while keeping separate cloud integration coverage.
C:Use versioned dependencies and safe build caches rather than sacrificing reproducibility for faster downloads. For this case, unit tests target a bounded code unit; production network dependencies should be tested through separate controlled integration layers. It cannot substitute for the required control: isolate business logic using controlled stubs or mocks while keeping separate cloud integration coverage.
D:Use a supported emulator for local feature tests and keep separate targeted tests for real cloud IAM, quotas, and networking. This design addresses local Google Cloud emulator boundaries, where local emulators reduce feedback latency but cannot certify every managed-service feature or production security boundary. It cannot substitute for the required control: isolate business logic using controlled stubs or mocks while keeping separate cloud integration coverage.