Google Professional Cloud Developer Practice Test 4
Question 30
A design places regulated customer records in a region that conflicts with the organization's required residency controls. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Choose REST for broad HTTP compatibility or gRPC with protobuf when supported typed service contracts and streaming matter.
- Place application and data resources in supported regions that satisfy locality, resilience, and regulatory requirements.
- Use Workload Identity Federation for GKE to provide keyless workload access limited to intended Google resources.
- Use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries.
Explanation
Correct Answer
B:Place application and data resources in supported regions that satisfy locality, resilience, and regulatory requirements. The expected outcome is that latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated. Before rollout, inspect user geography, regional service availability, dependency placement, measured round-trip latency, and residency policy. A design places regulated customer records in a region that conflicts with the organization's required residency controls. The team is choosing a sustainable solution.
Incorrect Answers
A:Choose REST for broad HTTP compatibility or gRPC with protobuf when supported typed service contracts and streaming matter. This design addresses REST and gRPC contract choice, where REST and gRPC are different interface and transport approaches; a protocol choice must match actual client support and the API contract. Applying it first would leave regional latency and data placement unresolved.
C:Use Workload Identity Federation for GKE to provide keyless workload access limited to intended Google resources. This design addresses GKE Workload Identity Federation, where GKE Workload Identity Federation associates Kubernetes workload identity with Google IAM permissions without embedding service-account private keys in containers. Applying it first would leave regional latency and data placement unresolved.
D:Use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries. This design addresses Firestore versus Cloud Storage versus BigQuery, where document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. Applying it first would leave regional latency and data placement unresolved.
Question 31
A design places regulated customer records in a region that conflicts with the organization's required residency controls. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Benchmark representative clients and validate the region of every persistent data replica and downstream dependency.
- Measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls.
- Configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer.
- Prototype the shortlisted runtime with the real container, platform permissions, and scaling limits before migrating traffic.
Explanation
Correct Answer
A:Benchmark representative clients and validate the region of every persistent data replica and downstream dependency. Validate the change by checking that latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated. An approved limited change can be tested in a safe environment.
Incorrect Answers
B:Measure cost and latency under representative burst and idle patterns and deploy appropriate scaling controls. This action changes a different concern, Cloud Run scaling and cost guardrails. That may help elsewhere, but it does not make the change required for regional latency and data placement.
C:Configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer. This action changes a different concern, external application load balancer routing. That may help elsewhere, but it does not make the change required for regional latency and data placement.
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. That may help elsewhere, but it does not make the change required for regional latency and data placement.
Question 32
A design places regulated customer records in a region that conflicts with the organization's required residency controls. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The selected datastore sustains the required transaction and read/write semantics under tested scale and recovery conditions.
- Over-budget requests are throttled while healthy clients remain within the service capacity budget.
- Key governance and cryptographic operations work under intended IAM restrictions without disclosing raw key material.
- Latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated.
Explanation
Correct Answer
D:Latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated. This is evidence that the particular acceptance condition for regional latency and data placement has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect user geography, regional service availability, dependency placement, measured round-trip latency, and residency policy. A design places regulated customer records in a region that conflicts with the organization's required residency controls. The team has tried a correction.
Incorrect Answers
A:The selected datastore sustains the required transaction and read/write semantics under tested scale and recovery conditions. That result could support testing of Cloud SQL versus Spanner versus Bigtable: Cloud SQL, Spanner, and Bigtable differ in data model and transaction guarantees; no one product is optimal for all workloads. A more direct response is to recognize that latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated.
B:Over-budget requests are throttled while healthy clients remain within the service capacity budget. That result could support testing of API rate limiting and request quota: Rate limiting and quota policies regulate request load; they are different from IAM authorization and should produce explicit throttling semantics. A more direct response is to recognize that latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated.
C:Key governance and cryptographic operations work under intended IAM restrictions without disclosing raw key material. It would not establish the success condition for regional latency and data placement. A more direct response is to recognize that latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated.
Question 33
A web application needs one public HTTPS endpoint that routes API paths to different supported backend services. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect immutable revision IDs, serving percentages, tag URLs, and rollback targets.
- Inspect transaction scope, SQL query needs, global replication, throughput, data size, and indexing patterns.
- Inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope.
- Inspect hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior.
Explanation
Correct Answer
C:Inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope. Success requires that requests for each public path reach the correct healthy backend through the approved HTTPS endpoint.
Incorrect Answers
A:Inspect immutable revision IDs, serving percentages, tag URLs, and rollback targets. Cloud Run revisions are immutable; traffic splitting and revision tags let teams stage, test, and reverse changes without editing an existing revision. To examine the reported mechanism, the team instead needs to inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope.
B:Inspect transaction scope, SQL query needs, global replication, throughput, data size, and indexing patterns. Cloud SQL, Spanner, and Bigtable differ in data model and transaction guarantees; no one product is optimal for all workloads. To examine the reported mechanism, the team instead needs to inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope.
D:Inspect hot-key access frequency, database load, cache hit rate, data criticality, and eviction or expiry behavior. An in-memory cache accelerates repeated reads but must not be mistaken for a durable system of record. To examine the reported mechanism, the team instead needs to inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope.
Question 34
A web application needs one public HTTPS endpoint that routes API paths to different supported backend services. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Keep critical session state in an appropriate shared durable store and use affinity only as a performance optimization where justified.
- Use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies.
- Use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries.
- Apply client-aware gateway quotas or rate limits with explicit retry behavior instead of increasing every backend limit.
Explanation
Correct Answer
B:Use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies. Application load balancing can apply HTTP host and path rules; DNS resolution alone cannot implement those backend routing decisions. Before rollout, inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope.
Incorrect Answers
A:Keep critical session state in an appropriate shared durable store and use affinity only as a performance optimization where justified. This design addresses stateless service session design, where autoscaled instances can be ephemeral; affinity does not replace durable shared state or safe per-user authorization. It cannot substitute for the required control: use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies.
C:Use Firestore for appropriate document-oriented operational data, Cloud Storage for object blobs, and BigQuery for analytical queries. This design addresses Firestore versus Cloud Storage versus BigQuery, where document stores, object stores, and analytical warehouses solve different persistence problems even if each can hold serialized data. It cannot substitute for the required control: use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies.
D:Apply client-aware gateway quotas or rate limits with explicit retry behavior instead of increasing every backend limit. This design addresses API rate limiting and request quota, where rate limiting and quota policies regulate request load; they are different from IAM authorization and should produce explicit throttling semantics. It cannot substitute for the required control: use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies.
Question 35
A web application needs one public HTTPS endpoint that routes API paths to different supported backend services. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Correct health probes and simulate one unavailable backend while observing load-balancer routing and user errors.
- Attach validated attestations to the intended image digest and test both authorized and untrusted image deployments.
- Configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer.
- Benchmark representative transactions and hot-key patterns in the chosen datastore before production migration.
Explanation
Correct Answer
C:Configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer. Application load balancing can apply HTTP host and path rules; DNS resolution alone cannot implement those backend routing decisions. Validate the change by checking that requests for each public path reach the correct healthy backend through the approved HTTPS endpoint.
Incorrect Answers
A:Correct health probes and simulate one unavailable backend while observing load-balancer routing and user errors. This action changes a different concern, backend health and failure routing. It addresses a different dependency from external application load balancer routing.
B:Attach validated attestations to the intended image digest and test both authorized and untrusted image deployments. This action changes a different concern, binary Authorization deployment policy. It addresses a different dependency from external application load balancer routing.
D:Benchmark representative transactions and hot-key patterns in the chosen datastore before production migration. This action changes a different concern, Cloud SQL versus Spanner versus Bigtable. It addresses a different dependency from external application load balancer routing.
Question 36
A web application needs one public HTTPS endpoint that routes API paths to different supported backend services. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The Pod reaches authorized APIs but cannot access unrelated data after secrets containing static keys are removed.
- Requests for each public path reach the correct healthy backend through the approved HTTPS endpoint.
- The service meets throughput and latency targets without overloading a single container or creating unnecessary instances.
- The latest authorized price appears within the defined freshness window, and cached responses preserve access boundaries.
Explanation
Correct Answer
B:Requests for each public path reach the correct healthy backend through the approved HTTPS endpoint. Application load balancing can apply HTTP host and path rules; DNS resolution alone cannot implement those backend routing decisions. The original diagnosis should have included this step: inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope.
Incorrect Answers
A:The Pod reaches authorized APIs but cannot access unrelated data after secrets containing static keys are removed. That result could support testing of GKE Workload Identity Federation: GKE Workload Identity Federation associates Kubernetes workload identity with Google IAM permissions without embedding service-account private keys in containers. The reported condition is about external application load balancer routing, not this adjacent change.
C:The service meets throughput and latency targets without overloading a single container or creating unnecessary instances. In this case, the outcome to verify is that requests for each public path reach the correct healthy backend through the approved HTTPS endpoint. The reported condition is about external application load balancer routing, not this adjacent change.
D:The latest authorized price appears within the defined freshness window, and cached responses preserve access boundaries. That result could support testing of cache freshness and invalidation: Cache invalidation and tenant-aware keying are correctness and security controls, not merely performance tuning. The reported condition is about external application load balancer routing, not this adjacent change.
Question 37
A service team configures a DNS record but expects it to provide managed path routing and HTTP health-based backend selection. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect backend health status, health-check behavior, dependency errors, and actual request distribution.
- Inspect minimum instances, maximum instances, concurrency, startup costs, request volumes, and resource pricing.
- Inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope.
- Inspect transaction scope, SQL query needs, global replication, throughput, data size, and indexing patterns.
Explanation
Correct Answer
C:Inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope. Success requires that requests for each public path reach the correct healthy backend through the approved HTTPS endpoint. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A:Inspect backend health status, health-check behavior, dependency errors, and actual request distribution. A healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. This is not the decisive inspection for external application load balancer routing.
B:Inspect minimum instances, maximum instances, concurrency, startup costs, request volumes, and resource pricing. Managed autoscaling reduces routine capacity management, but configured minimum instances and concurrency still affect cost and saturation. This is not the decisive inspection for external application load balancer routing.
D:Inspect transaction scope, SQL query needs, global replication, throughput, data size, and indexing patterns. Cloud SQL, Spanner, and Bigtable differ in data model and transaction guarantees; no one product is optimal for all workloads. This is not the decisive inspection for external application load balancer routing.
Question 38
A service team configures a DNS record but expects it to provide managed path routing and HTTP health-based backend selection. 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 to exchange trusted external identity for short-lived Google credentials without downloaded keys.
- Use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies.
- Use Direct VPC egress or a supported connector path when the Cloud Run service needs private VPC access.
- Apply client-aware gateway quotas or rate limits with explicit retry behavior instead of increasing every backend limit.
Explanation
Correct Answer
B:Use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies. Application load balancing can apply HTTP host and path rules; DNS resolution alone cannot implement those backend routing decisions. Before rollout, inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope. A service team configures a DNS record but expects it to provide managed path routing and HTTP health-based backend selection. The team is choosing a sustainable solution.
Incorrect Answers
A:Use Workload Identity Federation to exchange trusted external identity for short-lived Google credentials without downloaded keys. This design addresses external CI Workload Identity Federation, where federation trusts verified external identity claims under explicit conditions instead of exposing long-lived service account private keys. That may help elsewhere, but it does not make the change required for external application load balancer routing.
C: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. That may help elsewhere, but it does not make the change required for external application load balancer routing.
D:Apply client-aware gateway quotas or rate limits with explicit retry behavior instead of increasing every backend limit. This design addresses API rate limiting and request quota, where rate limiting and quota policies regulate request load; they are different from IAM authorization and should produce explicit throttling semantics. That may help elsewhere, but it does not make the change required for external application load balancer routing.
Question 39
A service team configures a DNS record but expects it to provide managed path routing and HTTP health-based backend selection. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Run staged load tests at controlled concurrency values and record p95 latency, instance count, and memory headroom.
- Test the supported failover path with representative dependent services and measure recovery time and data loss.
- Configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer.
- Persist the approved order then publish a stable event and implement idempotent consumers with a measured backlog policy.
Explanation
Correct Answer
C:Configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer. Application load balancing can apply HTTP host and path rules; DNS resolution alone cannot implement those backend routing decisions. Validate the change by checking that requests for each public path reach the correct healthy backend through the approved HTTPS endpoint. An approved limited change can be tested in a safe environment.
Incorrect Answers
A:Run staged load tests at controlled concurrency values and record p95 latency, instance count, and memory headroom. This action changes a different concern, Cloud Run concurrent request capacity. A more direct response is to configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer.
B:Test the supported failover path with representative dependent services and measure recovery time and data loss. This action changes a different concern, zonal and regional resiliency. A more direct response is to configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer.
D:Persist the approved order then publish a stable event and implement idempotent consumers with a measured backlog policy. This action changes a different concern, Pub/Sub decoupled processing architecture. A more direct response is to configure tested host and path rules, valid TLS, and the permitted backend services behind the load balancer.
Question 40
A service team configures a DNS record but expects it to provide managed path routing and HTTP health-based backend selection. 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.
- The service meets throughput and latency targets without overloading a single container or creating unnecessary instances.
- Requests for each public path reach the correct healthy backend through the approved HTTPS endpoint.
- Measured production traffic follows the configured split and can be restored to a prior healthy revision.
Explanation
Correct Answer
C:Requests for each public path reach the correct healthy backend through the approved HTTPS endpoint. Application load balancing can apply HTTP host and path rules; DNS resolution alone cannot implement those backend routing decisions. The original diagnosis should have included this step: inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope. A service team configures a DNS record but expects it to provide managed path routing and HTTP health-based backend selection. 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. The case instead calls for the following: requests for each public path reach the correct healthy backend through the approved HTTPS endpoint.
B:The service meets throughput and latency targets without overloading a single container or creating unnecessary instances. In this case, the outcome to verify is that requests for each public path reach the correct healthy backend through the approved HTTPS endpoint. The case instead calls for the following: requests for each public path reach the correct healthy backend through the approved HTTPS endpoint.
D:Measured production traffic follows the configured split and can be restored to a prior healthy revision. That result could support testing of Cloud Run revision traffic splitting: Cloud Run revisions are immutable; traffic splitting and revision tags let teams stage, test, and reverse changes without editing an existing revision. The case instead calls for the following: requests for each public path reach the correct healthy backend through the approved HTTPS endpoint.