Google Professional Cloud Developer Practice Test 5
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.
Question 41
A regional API continues receiving traffic on an unhealthy endpoint because the configured load-balancer health signal is incorrect. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent.
- Inspect backend health status, health-check behavior, dependency errors, and actual request distribution.
- Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions.
- Inspect producer and consumer latency, durability, delivery retries, and whether side effects require synchronous confirmation.
Explanation
Correct Answer
B:Inspect backend health status, health-check behavior, dependency errors, and actual request distribution. This checks the actual operating conditions relevant to backend health and failure routing, rather than changing a service before the failure is understood.
Incorrect Answers
A:Inspect cache keys, expiry settings, update events, tenant identity, and whether responses are permission-dependent. Cache invalidation and tenant-aware keying are correctness and security controls, not merely performance tuning. It does not isolate the backend health and failure routing issue described.
C:Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions. Cloud Run authenticated HTTP invocation validates an identity token audience and caller permissions; generic Google API access tokens are not interchangeable. It does not isolate the backend health and failure routing issue described.
D:Inspect producer and consumer latency, durability, delivery retries, and whether side effects require synchronous confirmation. Publish-subscribe messaging decouples production from consumption but consumers still need retry-safe processing and eventual completion visibility. It does not isolate the backend health and failure routing issue described.
Question 42
A regional API continues receiving traffic on an unhealthy endpoint because the configured load-balancer health signal is incorrect. 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.
- Store sensitive application credentials in Secret Manager and grant narrowly scoped access to the execution identity.
- Set justified Cloud Run minimum and maximum instance bounds and concurrency based on load and cold-start tolerance.
- Publish durable business events through Pub/Sub and let independent subscribers process appropriate downstream work asynchronously.
Explanation
Correct Answer
A:Select health criteria that accurately represent backend readiness without causing unnecessary removal during transient dependencies. A healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. Before rollout, inspect backend health status, health-check behavior, dependency errors, and actual request distribution.
Incorrect Answers
B:Store sensitive application credentials in Secret Manager and grant narrowly scoped access to the execution identity. For this case, a healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. It addresses a different dependency from backend health and failure routing.
C:Set justified Cloud Run minimum and maximum instance bounds and concurrency based on load and cold-start tolerance. For this case, a healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. It addresses a different dependency from backend health and failure routing.
D:Publish durable business events through Pub/Sub and let independent subscribers process appropriate downstream work asynchronously. This design addresses Pub/Sub decoupled processing architecture, where publish-subscribe messaging decouples production from consumption but consumers still need retry-safe processing and eventual completion visibility. It addresses a different dependency from backend health and failure routing.
Question 43
A regional API continues receiving traffic on an unhealthy endpoint because the configured load-balancer health signal is incorrect. 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.
- Run staged load tests at controlled concurrency values and record p95 latency, instance count, and memory headroom.
- Define explicit ingress/egress policy and, where needed, mesh mTLS and route policy, then test authorized peer flows.
- Invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content.
Explanation
Correct Answer
A:Correct health probes and simulate one unavailable backend while observing load-balancer routing and user errors. A healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. Validate the change by checking that unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract.
Incorrect Answers
B: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. The reported condition is about backend health and failure routing, not this adjacent change.
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. The reported condition is about backend health and failure routing, not this adjacent change.
D:Invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content. This action changes a different concern, cache freshness and invalidation. The reported condition is about backend health and failure routing, not this adjacent change.
Question 44
A regional API continues receiving traffic on an unhealthy endpoint because the configured load-balancer health signal is incorrect. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The origin remains authoritative and read latency improves without losing business records when the cache is empty.
- Over-budget requests are throttled while healthy clients remain within the service capacity budget.
- The client can perform only the permitted operation before expiry, without direct bucket-wide IAM credentials.
- Unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract.
Explanation
Correct Answer
D:Unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract. A healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. The original diagnosis should have included this step: inspect backend health status, health-check behavior, dependency errors, and actual request distribution.
Incorrect Answers
A: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. Applying it first would leave backend health and failure routing unresolved.
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. Applying it first would leave backend health and failure routing unresolved.
C:The client can perform only the permitted operation before expiry, without direct bucket-wide IAM credentials. In this scenario, a regional API continues receiving traffic on an unhealthy endpoint because the configured load-balancer health signal is incorrect. Applying it first would leave backend health and failure routing unresolved.
Question 45
An operations team treats a container's running process as proof that its database-dependent application endpoint is ready. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions.
- Inspect destination IP, supported VPC region, egress configuration, firewall rules, and service identity.
- Inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization.
- Inspect backend health status, health-check behavior, dependency errors, and actual request distribution.
Explanation
Correct Answer
D:Inspect backend health status, health-check behavior, dependency errors, and actual request distribution. This checks the actual operating conditions relevant to backend health and failure routing, rather than changing a service before the failure is understood. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A:Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions. Cloud Run authenticated HTTP invocation validates an identity token audience and caller permissions; generic Google API access tokens are not interchangeable. That check does not establish the specific cause behind backend health and failure routing.
B:Inspect destination IP, supported VPC region, egress configuration, firewall rules, and service identity. Private VPC egress changes the network path for selected Cloud Run outbound traffic and still requires downstream firewall and identity controls. That check does not establish the specific cause behind backend health and failure routing.
C:Inspect event sources, supported Eventarc provider types, filters, delivery destinations, and handler authorization. Eventarc routes supported source events to destinations; filters, delivery permissions, and handler idempotency determine reliable behavior. That check does not establish the specific cause behind backend health and failure routing.
Question 46
An operations team treats a container's running process as proof that its database-dependent application endpoint is ready. 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.
- Place application and data resources in supported regions that satisfy locality, resilience, and regulatory requirements.
- Use revision-specific traffic allocation to stage releases with an available rollback to the previous working revision.
- Use Eventarc routing with selective event filters and a supported Cloud Run destination for event-driven handling.
Explanation
Correct Answer
A:Select health criteria that accurately represent backend readiness without causing unnecessary removal during transient dependencies. A healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. Before rollout, inspect backend health status, health-check behavior, dependency errors, and actual request distribution. An operations team treats a container's running process as proof that its database-dependent application endpoint is ready. The team is choosing a sustainable solution.
Incorrect Answers
B:Place application and data resources in supported regions that satisfy locality, resilience, and regulatory requirements. This design addresses regional latency and data placement, where a product's regional or zonal scope determines placement, failure exposure, and latency; global branding alone does not guarantee global data residency. A more direct response is to select health criteria that accurately represent backend readiness without causing unnecessary removal during transient dependencies.
C:Use revision-specific traffic allocation to stage releases with an available rollback to the previous working revision. This design addresses Cloud Run revision traffic splitting, where Cloud Run revisions are immutable; traffic splitting and revision tags let teams stage, test, and reverse changes without editing an existing revision. A more direct response is to select health criteria that accurately represent backend readiness without causing unnecessary removal during transient dependencies.
D:Use Eventarc routing with selective event filters and a supported Cloud Run destination for event-driven handling. For this case, a healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. A more direct response is to select health criteria that accurately represent backend readiness without causing unnecessary removal during transient dependencies.
Question 47
An operations team treats a container's running process as proof that its database-dependent application endpoint is ready. 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.
- Prototype the interface using supported client libraries and validate backward-compatible schema and authentication behavior.
- Move the cart record to an authorized shared datastore and test alternating requests across independently restarted instances.
- Invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content.
Explanation
Correct Answer
A:Correct health probes and simulate one unavailable backend while observing load-balancer routing and user errors. A healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. Validate the change by checking that unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract. An approved limited change can be tested in a safe environment.
Incorrect Answers
B:Prototype the interface using supported client libraries and validate backward-compatible schema and authentication behavior. This action changes a different concern, REST and gRPC contract choice. The case instead calls for the following: correct health probes and simulate one unavailable backend while observing load-balancer routing and user errors.
C:Move the cart record to an authorized shared datastore and test alternating requests across independently restarted instances. This action changes a different concern, stateless service session design. The case instead calls for the following: correct health probes and simulate one unavailable backend while observing load-balancer routing and user errors.
D:Invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content. This action changes a different concern, cache freshness and invalidation. The case instead calls for the following: correct health probes and simulate one unavailable backend while observing load-balancer routing and user errors.
Question 48
An operations team treats a container's running process as proof that its database-dependent application endpoint is ready. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract.
- Operational document queries, large objects, and analytic scans use services aligned with their access patterns.
- The selected runtime meets the application contract without hidden node-management or host-customization gaps.
- Measured production traffic follows the configured split and can be restored to a prior healthy revision.
Explanation
Correct Answer
A:Unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract. A healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. The original diagnosis should have included this step: inspect backend health status, health-check behavior, dependency errors, and actual request distribution. An operations team treats a container's running process as proof that its database-dependent application endpoint is ready. The team has tried a correction.
Incorrect Answers
B:Operational document queries, large objects, and analytic scans use services aligned with their access patterns. That result could support testing of Firestore versus Cloud Storage versus BigQuery: 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: unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract.
C:The selected runtime meets the application contract without hidden node-management or host-customization gaps. It cannot substitute for the required control: unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract.
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. It cannot substitute for the required control: unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract.
Question 49
A real-time collaboration service prefers repeat requests on the same backend but also needs safe continuity when instances are replaced. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect affinity configuration, revision traffic allocation, session data dependencies, and failover behavior.
- Inspect Kubernetes ServiceAccount binding, workload identity principal, token audience, and IAM access scope.
- Inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
- Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions.
Explanation
Correct Answer
A:Inspect affinity configuration, revision traffic allocation, session data dependencies, and failover behavior. Affinity influences routing preferences but cannot guarantee durable state or prevent all changes in backend selection. A focused follow-up is to enable supported affinity only for an evaluated benefit, and test revision migration with independent session persistence.
Incorrect Answers
B:Inspect Kubernetes ServiceAccount binding, workload identity principal, token audience, and IAM access scope. GKE Workload Identity Federation associates Kubernetes workload identity with Google IAM permissions without embedding service-account private keys in containers. The first evidence should address session affinity limitations, not this separate diagnostic path.
C:Inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives. Spreading compute across zones does not automatically replicate state or guarantee continuity after a region-wide disruption. The first evidence should address session affinity limitations, not this separate diagnostic path.
D:Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions. Cloud Run authenticated HTTP invocation validates an identity token audience and caller permissions; generic Google API access tokens are not interchangeable. The first evidence should address session affinity limitations, not this separate diagnostic path.
Question 50
A real-time collaboration service prefers repeat requests on the same backend but also needs safe continuity when instances are replaced. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use Workload Identity Federation for GKE to provide keyless workload access limited to intended Google resources.
- Use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies.
- Treat session affinity as a best-effort routing optimization and keep correctness independent of instance or revision attachment.
- Set Cloud Run concurrency to match measured in-process parallelism, rather than assuming the highest possible number is optimal.
Explanation
Correct Answer
C:Treat session affinity as a best-effort routing optimization and keep correctness independent of instance or revision attachment. Affinity influences routing preferences but cannot guarantee durable state or prevent all changes in backend selection. Before rollout, inspect affinity configuration, revision traffic allocation, session data dependencies, and failover behavior.
Incorrect Answers
A: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. The reported condition is about session affinity limitations, not this adjacent change.
B:Use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies. This design addresses external application load balancer routing, where application load balancing can apply HTTP host and path rules; DNS resolution alone cannot implement those backend routing decisions. The reported condition is about session affinity limitations, not this adjacent change.
D:Set Cloud Run concurrency to match measured in-process parallelism, rather than assuming the highest possible number is optimal. For this case, affinity influences routing preferences but cannot guarantee durable state or prevent all changes in backend selection. The reported condition is about session affinity limitations, not this adjacent change.