Google Professional Cloud Developer Practice Test 27
Question 260
A developer needs a short-lived browser terminal with the Google Cloud CLI for a one-off deployment inspection. 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.
- Developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace.
- Only images carrying the expected evidence satisfy the admission policy; arbitrary tags do not bypass the gate.
- The container starts without excessive privileges and retains access only to necessary files and ports.
Explanation
Correct Answer
B:Developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace. This is evidence that the particular acceptance condition for Cloud Shell versus Cloud Workstations has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect session persistence, workspace images, access policy, IDE integration, and required project permissions.
Incorrect Answers
A:Reviewers can trace an artifact to its build inputs and trusted builder without relying on a mutable filename. In this case, the outcome to verify is that developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace. The reported condition is about cloud shell versus cloud workstations, not this adjacent change.
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. The reported condition is about cloud shell versus cloud workstations, not this adjacent change.
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. The reported condition is about cloud shell versus cloud workstations, not this adjacent change.
Question 261
A regulated team needs persistent policy-controlled development environments with approved IDE extensions and preconfigured tooling. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect local image build triggers, Kubernetes manifests, cluster target, and development synchronization settings.
- Inspect session persistence, workspace images, access policy, IDE integration, and required project permissions.
- Inspect active gcloud configurations, account identity, project setting, and environment overrides.
- Inspect image digests, mutable tags, build provenance, and the image reference used by each deployment.
Explanation
Correct Answer
B:Inspect session persistence, workspace images, access policy, IDE integration, and required project permissions. This checks the actual operating conditions relevant to Cloud Shell versus Cloud Workstations, rather than changing a service before the failure is understood. A focused follow-up is to provision the selected environment and validate workspace setup, credential access, and cleanup behavior. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A:Inspect local image build triggers, Kubernetes manifests, cluster target, and development synchronization settings. Cloud Code and Skaffold can streamline iterative container development but must be scoped to the correct cluster and configuration profile. This is not the decisive inspection for cloud shell versus cloud workstations.
C: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. This is not the decisive inspection for cloud shell versus cloud workstations.
D:Inspect image digests, mutable tags, build provenance, and the image reference used by each deployment. Tags can be moved to new images; a content digest identifies the exact stored container artifact for verification and rollback. This is not the decisive inspection for cloud shell versus cloud workstations.
Question 262
A regulated team needs persistent policy-controlled development environments with approved IDE extensions and preconfigured tooling. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use Cloud Shell for transient command-line tasks and Cloud Workstations for managed customizable remote development environments.
- Capture supported build provenance with a documented trust level and link it to the deployed artifact.
- Expose narrowly scoped MCP server tools with explicit authorization and untrusted-input handling.
- Build in an isolated stage and copy only required runtime artifacts into a minimal final stage.
Explanation
Correct Answer
A:Use Cloud Shell for transient command-line tasks and Cloud Workstations for managed customizable remote development environments. Cloud Shell offers managed interactive temporary shell sessions, while Cloud Workstations provides customizable managed development environments. Before rollout, inspect session persistence, workspace images, access policy, IDE integration, and required project permissions. A regulated team needs persistent policy-controlled development environments with approved IDE extensions and preconfigured tooling. The team is choosing a sustainable solution.
Incorrect Answers
B:Capture supported build provenance with a documented trust level and link it to the deployed artifact. For this case, Cloud Shell offers managed interactive temporary shell sessions, while Cloud Workstations provides customizable managed development environments. That may help elsewhere, but it does not make the change required for cloud shell versus cloud workstations.
C:Expose narrowly scoped MCP server tools with explicit authorization and untrusted-input handling. For this case, Cloud Shell offers managed interactive temporary shell sessions, while Cloud Workstations provides customizable managed development environments. That may help elsewhere, but it does not make the change required for cloud shell versus cloud workstations.
D:Build in an isolated stage and copy only required runtime artifacts into a minimal final stage. This design addresses multi-stage Docker image construction, where multi-stage builds separate build tools from runtime contents and can reduce attack surface when stage copies are constrained. That may help elsewhere, but it does not make the change required for cloud shell versus cloud workstations.
Question 263
A regulated team needs persistent policy-controlled development environments with approved IDE extensions and preconfigured tooling. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Start the authorized proxy and run a harmless connection query with a least-privilege test database user.
- Restrict tool commands to approved functions and test attempted access to forbidden files or resources.
- Run staged workloads with recorded payload sizes, instance counts, and p95/p99 timings before rollout.
- Provision the selected environment and validate workspace setup, credential access, and cleanup behavior.
Explanation
Correct Answer
D:Provision the selected environment and validate workspace setup, credential access, and cleanup behavior. Cloud Shell offers managed interactive temporary shell sessions, while Cloud Workstations provides customizable managed development environments. Validate the change by checking that developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace. An approved limited change can be tested in a safe environment.
Incorrect Answers
A:Start the authorized proxy and run a harmless connection query with a least-privilege test database user. This action changes a different concern, Cloud SQL Auth Proxy local connectivity. A more direct response is to recognize that provision the selected environment and validate workspace setup, credential access, and cleanup behavior.
B:Restrict tool commands to approved functions and test attempted access to forbidden files or resources. This action changes a different concern, MCP server development tool boundary. A more direct response is to recognize that provision the selected environment and validate workspace setup, credential access, and cleanup behavior.
C: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. A more direct response is to recognize that provision the selected environment and validate workspace setup, credential access, and cleanup behavior.
Question 264
A regulated team needs persistent policy-controlled development environments with approved IDE extensions and preconfigured tooling. 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.
- Developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace.
- Only changes matching the documented release conditions initiate the expected pipeline.
- Equivalent source and locks produce the expected artifact while warm builds improve latency without hidden dependency drift.
Explanation
Correct Answer
B:Developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace. This is evidence that the particular acceptance condition for Cloud Shell versus Cloud Workstations has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect session persistence, workspace images, access policy, IDE integration, and required project permissions. A regulated team needs persistent policy-controlled development environments with approved IDE extensions and preconfigured tooling. 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 developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace. The case instead calls for the following: developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace.
C:Only changes matching the documented release conditions initiate the expected pipeline. In this case, the outcome to verify is that developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace. The case instead calls for the following: developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace.
D:Equivalent source and locks produce the expected artifact while warm builds improve latency without hidden dependency drift. In this case, the outcome to verify is that developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace. The case instead calls for the following: developers have sufficient tools and permissions without storing project keys or relying on an unsuitable ephemeral workspace.
Question 265
A developer wants fast repeatable tests of Firestore queries without creating real cloud resources for every unit test. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect which Google Cloud service exposes a supported emulator and which production behaviors the emulator cannot simulate.
- Inspect build steps, image artifact outputs, stage dependencies, and failure propagation.
- Inspect Dockerfile stages, copied artifacts, build-time secrets, runtime libraries, and final image composition.
- Inspect API schema versions, response bodies, status semantics, and authorized versus unauthorized test cases.
Explanation
Correct Answer
A:Inspect which Google Cloud service exposes a supported emulator and which production behaviors the emulator cannot simulate. Success requires that tests detect application data-contract defects while explicitly preserving coverage of cloud-only operational behavior. A focused follow-up is to run hermetic emulator tests with isolated fixture data and add a controlled cloud integration smoke test.
Incorrect Answers
B:Inspect build steps, image artifact outputs, stage dependencies, and failure propagation. A build pipeline must explicitly encode its ordering and failure gates; saving a Dockerfile alone does not enforce release quality. It does not isolate the local google cloud emulator boundaries issue described.
C:Inspect Dockerfile stages, copied artifacts, build-time secrets, runtime libraries, and final image composition. Multi-stage builds separate build tools from runtime contents and can reduce attack surface when stage copies are constrained. It does not isolate the local google cloud emulator boundaries issue described.
D:Inspect API schema versions, response bodies, status semantics, and authorized versus unauthorized test cases. Deployable container health is not equivalent to API compatibility; contract testing validates consumer-visible behavior. It does not isolate the local google cloud emulator boundaries issue described.
Question 266
A developer wants fast repeatable tests of Firestore queries without creating real cloud resources for every unit test. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Enforce contract tests for backward-compatible request and response shapes before traffic migration.
- Capture supported build provenance with a documented trust level and link it to the deployed artifact.
- Use a supported emulator for local feature tests and keep separate targeted tests for real cloud IAM, quotas, and networking.
- Expose narrowly scoped MCP server tools with explicit authorization and untrusted-input handling.
Explanation
Correct Answer
C:Use a supported emulator for local feature tests and keep separate targeted tests for real cloud IAM, quotas, and networking. Local emulators reduce feedback latency but cannot certify every managed-service feature or production security boundary. Before rollout, inspect which Google Cloud service exposes a supported emulator and which production behaviors the emulator cannot simulate.
Incorrect Answers
A:Enforce contract tests for backward-compatible request and response shapes before traffic migration. For this case, local emulators reduce feedback latency but cannot certify every managed-service feature or production security boundary. It addresses a different dependency from local google cloud emulator boundaries.
B:Capture supported build provenance with a documented trust level and link it to the deployed artifact. For this case, local emulators reduce feedback latency but cannot certify every managed-service feature or production security boundary. It addresses a different dependency from local google cloud emulator boundaries.
D:Expose narrowly scoped MCP server tools with explicit authorization and untrusted-input handling. For this case, local emulators reduce feedback latency but cannot certify every managed-service feature or production security boundary. It addresses a different dependency from local google cloud emulator boundaries.
Question 267
A developer wants fast repeatable tests of Firestore queries without creating real cloud resources for every unit test. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Add a verified CI attestation step and test one signed and one unsigned image digest against enforcement.
- Refactor the Dockerfile to separate compilation from runtime and inspect the final image filesystem and dependency inventory.
- Enable the approved merge controls and attach immutable commit IDs to built artifacts and deployment records.
- Run hermetic emulator tests with isolated fixture data and add a controlled cloud integration smoke test.
Explanation
Correct Answer
D:Run hermetic emulator tests with isolated fixture data and add a controlled cloud integration smoke test. Local emulators reduce feedback latency but cannot certify every managed-service feature or production security boundary. Validate the change by checking that tests detect application data-contract defects while explicitly preserving coverage of cloud-only operational behavior.
Incorrect Answers
A:Add a verified CI attestation step and test one signed and one unsigned image digest against enforcement. This action changes a different concern, binary Authorization attestations in CI. The reported condition is about local google cloud emulator boundaries, not this adjacent change.
B:Refactor the Dockerfile to separate compilation from runtime and inspect the final image filesystem and dependency inventory. This action changes a different concern, multi-stage Docker image construction. The reported condition is about local google cloud emulator boundaries, not this adjacent change.
C:Enable the approved merge controls and attach immutable commit IDs to built artifacts and deployment records. This action changes a different concern, source control branch protection and review. The reported condition is about local google cloud emulator boundaries, not this adjacent change.
Question 268
A developer wants fast repeatable tests of Firestore queries without creating real cloud resources for every unit test. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The feedback loop uses the intended source revision without accidentally publishing development images into production.
- Tests detect application data-contract defects while explicitly preserving coverage of cloud-only operational behavior.
- 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.
Explanation
Correct Answer
B:Tests detect application data-contract defects while explicitly preserving coverage of cloud-only operational behavior. Local emulators reduce feedback latency but cannot certify every managed-service feature or production security boundary. The original diagnosis should have included this step: inspect which Google Cloud service exposes a supported emulator and which production behaviors the emulator cannot simulate.
Incorrect Answers
A:The feedback loop uses the intended source revision without accidentally publishing development images into production. That result could support testing of Cloud Code and Skaffold inner development loop: Cloud Code and Skaffold can streamline iterative container development but must be scoped to the correct cluster and configuration profile. Applying it first would leave local google cloud emulator boundaries unresolved.
C: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. Applying it first would leave local google cloud emulator boundaries unresolved.
D: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. Applying it first would leave local google cloud emulator boundaries unresolved.
Question 269
An integration suite passes against a local emulator and the team declares that production IAM and networking are also verified. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect which Google Cloud service exposes a supported emulator and which production behaviors the emulator cannot simulate.
- Inspect recorded source revision, isolated build process, artifact digest, and available provenance attestations.
- Inspect request mix, percentile latency, concurrency, dependency saturation, and error rate under representative traffic.
- Inspect attestor configuration, attestation target digest, build service identity, and deployment policy conditions.
Explanation
Correct Answer
A:Inspect which Google Cloud service exposes a supported emulator and which production behaviors the emulator cannot simulate. Success requires that tests detect application data-contract defects while explicitly preserving coverage of cloud-only operational behavior. A focused follow-up is to run hermetic emulator tests with isolated fixture data and add a controlled cloud integration smoke test. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
B: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. That check does not establish the specific cause behind local google cloud emulator boundaries.
C:Inspect request mix, percentile latency, concurrency, dependency saturation, and error rate under representative traffic. Performance acceptance requires representative load and percentile metrics; a successful small demo does not demonstrate capacity. That check does not establish the specific cause behind local google cloud emulator boundaries.
D:Inspect attestor configuration, attestation target digest, build service identity, and deployment policy conditions. Binary Authorization requires digest-specific trust evidence and an enforcement policy, not just an assertion that a build succeeded. That check does not establish the specific cause behind local google cloud emulator boundaries.
Question 270
An integration suite passes against a local emulator and the team declares that production IAM and networking are also verified. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Roll out features through controlled identities and verify both states before exposing real users.
- Define load acceptance criteria using tail latency and error budgets at expected concurrency.
- Use a supported emulator for local feature tests and keep separate targeted tests for real cloud IAM, quotas, and networking.
- Generate authorized attestations tied to immutable artifact digests before the deployment policy evaluates them.
Explanation
Correct Answer
C:Use a supported emulator for local feature tests and keep separate targeted tests for real cloud IAM, quotas, and networking. Local emulators reduce feedback latency but cannot certify every managed-service feature or production security boundary. Before rollout, inspect which Google Cloud service exposes a supported emulator and which production behaviors the emulator cannot simulate. An integration suite passes against a local emulator and the team declares that production IAM and networking are also verified. The team is choosing a sustainable solution.
Incorrect Answers
A:Roll out features through controlled identities and verify both states before exposing real users. This design addresses feature-flag regression testing, where feature flags separate code deployment from feature exposure, but untested flag branches can still create production failures. A more direct response is to use a supported emulator for local feature tests and keep separate targeted tests for real cloud IAM, quotas, and networking.
B: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. A more direct response is to use a supported emulator for local feature tests and keep separate targeted tests for real cloud IAM, quotas, and networking.
D: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. A more direct response is to use a supported emulator for local feature tests and keep separate targeted tests for real cloud IAM, quotas, and networking.