Google Professional Cloud Developer Practice Test 26
Question 250
A mobile app stores evolving user profile documents but the team considers a data-warehouse table for each profile read. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Select health criteria that accurately represent backend readiness without causing unnecessary removal during transient dependencies.
- Use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries.
- Use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials.
- Use Binary Authorization policies and supported attestations to enforce approved container promotion at deployment.
Explanation
Correct Answer
B:Use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries. Document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. Before rollout, inspect record structure, update frequency, query shape, storage volume, and whether access is transactional or analytical.
Incorrect Answers
A:Select health criteria that accurately represent backend readiness without causing unnecessary removal during transient dependencies. This design addresses backend health and failure routing, where a healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. The case instead calls for the following: use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries.
C:Use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials. This design addresses identity Platform end-user sign-in, where end-user authentication and service-to-service IAM authentication are distinct trust boundaries requiring different tokens and policies. The case instead calls for the following: use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries.
D:Use Binary Authorization policies and supported attestations to enforce approved container promotion at deployment. This design addresses binary Authorization deployment policy, where artifact storage and verified deployment authorization are separate; Binary Authorization enforces policy based on artifact trust evidence. The case instead calls for the following: use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries.
Question 251
A mobile app stores evolving user profile documents but the team considers a data-warehouse table for each profile read. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema.
- Implement the matching service, record its retry or schedule settings, and verify failure and completion paths.
- Create an appropriately signed URL with short expiration and test allowed and disallowed methods or objects.
- Prototype the shortlisted runtime with the real container, platform permissions, and scaling limits before migrating traffic.
Explanation
Correct Answer
A:Implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema. Document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. Validate the change by checking that operational document queries, large objects, and analytic scans use services aligned with their access patterns.
Incorrect Answers
B:Implement the matching service, record its retry or schedule settings, and verify failure and completion paths. This action changes a different concern, Workflows versus Cloud Tasks versus Scheduler. It cannot substitute for the required control: implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema.
C:Create an appropriately signed URL with short expiration and test allowed and disallowed methods or objects. This action changes a different concern, Cloud Storage signed URL access. It cannot substitute for the required control: implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema.
D:Prototype the shortlisted runtime with the real container, platform permissions, and scaling limits before migrating traffic. This action changes a different concern, Cloud Run versus GKE versus Compute Engine. It cannot substitute for the required control: implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema.
Question 252
A mobile app stores evolving user profile documents but the team considers a data-warehouse table for each profile read. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property.
- Untrusted images are rejected while policy-compliant images can be deployed under a recorded approval chain.
- The origin remains authoritative and read latency improves without losing business records when the cache is empty.
- Operational document queries, large objects, and analytic scans use services aligned with their access patterns.
Explanation
Correct Answer
D:Operational document queries, large objects, and analytic scans use services aligned with their access patterns. Document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. The original diagnosis should have included this step: inspect record structure, update frequency, query shape, storage volume, and whether access is transactional or analytical.
Incorrect Answers
A:Traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property. That result could support testing of service mesh versus network policy: Network policies and service meshes operate at different levels; allowing or denying packets does not automatically implement mutual TLS or service observability. It addresses a different dependency from firestore versus cloud storage versus bigquery.
B:Untrusted images are rejected while policy-compliant images can be deployed under a recorded approval chain. That result could support testing of binary Authorization deployment policy: Artifact storage and verified deployment authorization are separate; Binary Authorization enforces policy based on artifact trust evidence. It addresses a different dependency from firestore versus cloud storage versus bigquery.
C:The origin remains authoritative and read latency improves without losing business records when the cache is empty. That result could support testing of memorystore cache for hot data: An in-memory cache accelerates repeated reads but must not be mistaken for a durable system of record. It addresses a different dependency from firestore versus cloud storage versus bigquery.
Question 253
A telemetry pipeline sends terabytes of historical analytic events to a transactional document store with no need for low-latency per-document updates. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect record structure, update frequency, query shape, storage volume, and whether access is transactional or analytical.
- Inspect whether the requirement is L3/L4 network isolation, L7 routing telemetry, or authenticated service-to-service encryption.
- Inspect workload process model, control-plane needs, runtime constraints, request shape, and operational ownership.
- Inspect current request rate, authenticated client identity, quota policy, 429 responses, and downstream service capacity.
Explanation
Correct Answer
A:Inspect record structure, update frequency, query shape, storage volume, and whether access is transactional or analytical. This checks the actual operating conditions relevant to Firestore versus Cloud Storage versus BigQuery, rather than changing a service before the failure is understood. A focused follow-up is to implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
B:Inspect whether the requirement is L3/L4 network isolation, L7 routing telemetry, or authenticated service-to-service encryption. Network policies and service meshes operate at different levels; allowing or denying packets does not automatically implement mutual TLS or service observability. The relevant dependency is firestore versus cloud storage versus bigquery, which this inspection alone does not establish.
C:Inspect workload process model, control-plane needs, runtime constraints, request shape, and operational ownership. The right compute product is determined by workload execution constraints and the operating responsibility the team is prepared to own. The relevant dependency is firestore versus cloud storage versus bigquery, which this inspection alone does not establish.
D:Inspect current request rate, authenticated client identity, quota policy, 429 responses, and downstream service capacity. Rate limiting and quota policies regulate request load; they are different from IAM authorization and should produce explicit throttling semantics. The relevant dependency is firestore versus cloud storage versus bigquery, which this inspection alone does not establish.
Question 254
A telemetry pipeline sends terabytes of historical analytic events to a transactional document store with no need for low-latency per-document updates. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Cache safely recomputable read results in Memorystore while retaining authoritative durable records in the appropriate datastore.
- Use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries.
- Use Eventarc routing with selective event filters and a supported Cloud Run destination for event-driven handling.
- Use Direct VPC egress or a supported connector path when the Cloud Run service needs private VPC access.
Explanation
Correct Answer
B:Use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries. Document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. Before rollout, inspect record structure, update frequency, query shape, storage volume, and whether access is transactional or analytical. A telemetry pipeline sends terabytes of historical analytic events to a transactional document store with no need for low-latency per-document updates. The team is choosing a sustainable solution.
Incorrect Answers
A:Cache safely recomputable read results in Memorystore while retaining authoritative durable records in the appropriate datastore. This design addresses memorystore cache for hot data, where an in-memory cache accelerates repeated reads but must not be mistaken for a durable system of record. Applying it first would leave firestore versus cloud storage versus bigquery unresolved.
C:Use Eventarc routing with selective event filters and a supported Cloud Run destination for event-driven handling. For this case, document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. Applying it first would leave firestore versus cloud storage versus bigquery unresolved.
D:Use Direct VPC egress or a supported connector path when the Cloud Run service needs private VPC access. This design addresses private VPC egress from Cloud Run, where private VPC egress changes the network path for selected Cloud Run outbound traffic and still requires downstream firewall and identity controls. Applying it first would leave firestore versus cloud storage versus bigquery unresolved.
Question 255
A telemetry pipeline sends terabytes of historical analytic events to a transactional document store with no need for low-latency per-document updates. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema.
- Create a trigger with correct source and event-type filters, bind destination identity, and replay matching and nonmatching events.
- Define explicit ingress/egress policy and, where needed, mesh mTLS and route policy, then test authorized peer flows.
- Configure claim conditions and tightly scoped impersonation, then test valid and invalid CI identities.
Explanation
Correct Answer
A:Implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema. Document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. Validate the change by checking that operational document queries, large objects, and analytic scans use services aligned with their access patterns. An approved limited change can be tested in a safe environment.
Incorrect Answers
B:Create a trigger with correct source and event-type filters, bind destination identity, and replay matching and nonmatching events. This action changes a different concern, Eventarc event routing design. That may help elsewhere, but it does not make the change required for firestore versus cloud storage versus bigquery.
C:Define explicit ingress/egress policy and, where needed, mesh mTLS and route policy, then test authorized peer flows. This action changes a different concern, service mesh versus network policy. That may help elsewhere, but it does not make the change required for firestore versus cloud storage versus bigquery.
D:Configure claim conditions and tightly scoped impersonation, then test valid and invalid CI identities. This action changes a different concern, external CI Workload Identity Federation. That may help elsewhere, but it does not make the change required for firestore versus cloud storage versus bigquery.
Question 256
A telemetry pipeline sends terabytes of historical analytic events to a transactional document store with no need for low-latency per-document updates. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The application can recover from the specified fault within its recovery-time and recovery-point objectives.
- Operational document queries, large objects, and analytic scans use services aligned with their access patterns.
- Approved clients can exchange the expected payloads within latency and compatibility requirements.
- The selected runtime meets the application contract without hidden node-management or host-customization gaps.
Explanation
Correct Answer
B:Operational document queries, large objects, and analytic scans use services aligned with their access patterns. Document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. The original diagnosis should have included this step: inspect record structure, update frequency, query shape, storage volume, and whether access is transactional or analytical. A telemetry pipeline sends terabytes of historical analytic events to a transactional document store with no need for low-latency per-document updates. The team has tried a correction.
Incorrect Answers
A:The application can recover from the specified fault within its recovery-time and recovery-point objectives. That result could support testing of zonal and regional resiliency: Spreading compute across zones does not automatically replicate state or guarantee continuity after a region-wide disruption. A more direct response is to recognize that operational document queries, large objects, and analytic scans use services aligned with their access patterns.
C:Approved clients can exchange the expected payloads within latency and compatibility requirements. That result could support testing of REST and gRPC contract choice: REST and gRPC are different interface and transport approaches; a protocol choice must match actual client support and the API contract. A more direct response is to recognize that operational document queries, large objects, and analytic scans use services aligned with their access patterns.
D:The selected runtime meets the application contract without hidden node-management or host-customization gaps. In this case, the outcome to verify is that operational document queries, large objects, and analytic scans use services aligned with their access patterns. A more direct response is to recognize that operational document queries, large objects, and analytic scans use services aligned with their access patterns.
Question 257
A developer needs a short-lived browser terminal with the Google Cloud CLI for a one-off deployment inspection. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect Cloud Build trigger events, branch or tag regexes, file filters, and repository connection permissions.
- Inspect session persistence, workspace images, access policy, IDE integration, and required project permissions.
- Inspect build steps, image artifact outputs, stage dependencies, and failure propagation.
- Inspect local image build triggers, Kubernetes manifests, cluster target, and development synchronization settings.
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.
Incorrect Answers
A:Inspect Cloud Build trigger events, branch or tag regexes, file filters, and repository connection permissions. Cloud Build triggers select source events and revisions; trigger scope is independent of the container build command itself. To examine the reported mechanism, the team instead needs to inspect session persistence, workspace images, access policy, IDE integration, and required project permissions.
C: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. To examine the reported mechanism, the team instead needs to inspect session persistence, workspace images, access policy, IDE integration, and required project permissions.
D: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. To examine the reported mechanism, the team instead needs to inspect session persistence, workspace images, access policy, IDE integration, and required project permissions.
Question 258
A developer needs a short-lived browser terminal with the Google Cloud CLI for a one-off deployment inspection. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Define narrowly scoped build triggers for approved events and protected release branches.
- Use Cloud Shell for transient command-line tasks and Cloud Workstations for managed customizable remote development environments.
- Roll out features through controlled identities and verify both states before exposing real users.
- Capture supported build provenance with a documented trust level and link it to the deployed artifact.
Explanation
Correct Answer
B: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.
Incorrect Answers
A:Define narrowly scoped build triggers for approved events and protected release branches. For this case, Cloud Shell offers managed interactive temporary shell sessions, while Cloud Workstations provides customizable managed development environments. It cannot substitute for the required control: use Cloud Shell for transient command-line tasks and Cloud Workstations for managed customizable remote development environments.
C: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. It cannot substitute for the required control: use Cloud Shell for transient command-line tasks and Cloud Workstations for managed customizable remote development environments.
D: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. It cannot substitute for the required control: use Cloud Shell for transient command-line tasks and Cloud Workstations for managed customizable remote development environments.
Question 259
A developer needs a short-lived browser terminal with the Google Cloud CLI for a one-off deployment inspection. 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.
- Provision the selected environment and validate workspace setup, credential access, and cleanup behavior.
- Define explicit Cloud Build dependencies and inject one failed test to verify that release stages are skipped.
Explanation
Correct Answer
C: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.
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. It addresses a different dependency from cloud shell versus cloud workstations.
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. It addresses a different dependency from cloud shell versus cloud workstations.
D:Define explicit Cloud Build dependencies and inject one failed test to verify that release stages are skipped. This action changes a different concern, Cloud Build parallel tests and failure gates. It addresses a different dependency from cloud shell versus cloud workstations.
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.