Google Professional Cloud Developer Practice Test 9
Question 80
A public browser-facing integration expects ordinary HTTP JSON requests but a team proposes requiring unsupported gRPC transports. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery.
- Approved clients can exchange the expected payloads within latency and compatibility requirements.
- Over-budget requests are throttled while healthy clients remain within the service capacity budget.
- The selected runtime meets the application contract without hidden node-management or host-customization gaps.
Explanation
Correct Answer
B:Approved clients can exchange the expected payloads within latency and compatibility requirements. This is evidence that the particular acceptance condition for REST and gRPC contract choice has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect client interoperability requirements, message schemas, transport capabilities, latency, and streaming needs. A public browser-facing integration expects ordinary HTTP JSON requests but a team proposes requiring unsupported gRPC transports. The team has tried a correction.
Incorrect Answers
A:The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery. In this case, the outcome to verify is that approved clients can exchange the expected payloads within latency and compatibility requirements. That may help elsewhere, but it does not make the change required for rest and grpc contract choice.
C: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. That may help elsewhere, but it does not make the change required for rest and grpc contract choice.
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 approved clients can exchange the expected payloads within latency and compatibility requirements. That may help elsewhere, but it does not make the change required for rest and grpc contract choice.
Question 81
A team wants a managed entrypoint to protect a small API but does not need extensive API-product analytics or lifecycle workflows. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect required authentication, quota policy, developer-portal features, routing, and API product governance.
- Inspect immutable revision IDs, serving percentages, tag URLs, and rollback targets.
- 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.
Explanation
Correct Answer
A:Inspect required authentication, quota policy, developer-portal features, routing, and API product governance. Success requires that the API control plane enforces necessary policies without a complexity gap or missing governance feature. A focused follow-up is to configure a proof-of-concept policy and verify partner access, API metrics, and operational ownership against requirements.
Incorrect Answers
B: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. The more informative check is to inspect required authentication, quota policy, developer-portal features, routing, and API product governance.
C: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. The more informative check is to inspect required authentication, quota policy, developer-portal features, routing, and API product governance.
D: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. The more informative check is to inspect required authentication, quota policy, developer-portal features, routing, and API product governance.
Question 82
A team wants a managed entrypoint to protect a small API but does not need extensive API-product analytics or lifecycle workflows. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Place application and data resources in supported regions that satisfy locality, resilience, and regulatory requirements.
- Store sensitive application credentials in Secret Manager and grant narrowly scoped access to the execution identity.
- Select Cloud API Gateway for supported simpler managed gateway use or Apigee when its broader API management features are necessary.
- Set Cloud Run concurrency to match measured in-process parallelism, rather than assuming the highest possible number is optimal.
Explanation
Correct Answer
C:Select Cloud API Gateway for supported simpler managed gateway use or Apigee when its broader API management features are necessary. The expected outcome is that the API control plane enforces necessary policies without a complexity gap or missing governance feature. Before rollout, inspect required authentication, quota policy, developer-portal features, routing, and API product governance.
Incorrect Answers
A: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. The case instead calls for the following: select Cloud API Gateway for supported simpler managed gateway use or Apigee when its broader API management features are necessary.
B:Store sensitive application credentials in Secret Manager and grant narrowly scoped access to the execution identity. For this case, a basic managed gateway and a full API management platform overlap in routing but differ in breadth of policy, analytics, and developer lifecycle. The case instead calls for the following: select Cloud API Gateway for supported simpler managed gateway use or Apigee when its broader API management features are necessary.
D:Set Cloud Run concurrency to match measured in-process parallelism, rather than assuming the highest possible number is optimal. For this case, a basic managed gateway and a full API management platform overlap in routing but differ in breadth of policy, analytics, and developer lifecycle. The case instead calls for the following: select Cloud API Gateway for supported simpler managed gateway use or Apigee when its broader API management features are necessary.
Question 83
A team wants a managed entrypoint to protect a small API but does not need extensive API-product analytics or lifecycle workflows. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Configure a proof-of-concept policy and verify partner access, API metrics, and operational ownership against requirements.
- Configure claim conditions and tightly scoped impersonation, then test valid and invalid CI identities.
- Introduce bounded cache keys and TTLs, invalidate them on relevant writes, and verify cache-miss database fallback.
- Invalidate or replace affected entries after authorized updates and test that users cannot receive another tenant's cached content.
Explanation
Correct Answer
A:Configure a proof-of-concept policy and verify partner access, API metrics, and operational ownership against requirements. Validate the change by checking that the API control plane enforces necessary policies without a complexity gap or missing governance feature.
Incorrect Answers
B: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. It cannot substitute for the required control: configure a proof-of-concept policy and verify partner access, API metrics, and operational ownership against requirements.
C:Introduce bounded cache keys and TTLs, invalidate them on relevant writes, and verify cache-miss database fallback. This action changes a different concern, memorystore cache for hot data. It cannot substitute for the required control: configure a proof-of-concept policy and verify partner access, API metrics, and operational ownership against requirements.
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. It cannot substitute for the required control: configure a proof-of-concept policy and verify partner access, API metrics, and operational ownership against requirements.
Question 84
A team wants a managed entrypoint to protect a small API but does not need extensive API-product analytics or lifecycle workflows. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The API control plane enforces necessary policies without a complexity gap or missing governance feature.
- Traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property.
- Approved clients can exchange the expected payloads within latency and compatibility requirements.
- The Pod reaches authorized APIs but cannot access unrelated data after secrets containing static keys are removed.
Explanation
Correct Answer
A:The API control plane enforces necessary policies without a complexity gap or missing governance feature. This is evidence that the particular acceptance condition for API Gateway versus Apigee responsibilities has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect required authentication, quota policy, developer-portal features, routing, and API product governance.
Incorrect Answers
B: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 api gateway versus apigee responsibilities.
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. It addresses a different dependency from api gateway versus apigee responsibilities.
D: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. It addresses a different dependency from api gateway versus apigee responsibilities.
Question 85
An enterprise exposes partner APIs that require detailed traffic policy management, developer engagement, and API lifecycle analytics. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect required authentication, quota policy, developer-portal features, routing, and API product governance.
- Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions.
- Inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope.
- Inspect artifact signatures or attestations, policy enforcement point, provenance, and admitted image digest.
Explanation
Correct Answer
A:Inspect required authentication, quota policy, developer-portal features, routing, and API product governance. Success requires that the API control plane enforces necessary policies without a complexity gap or missing governance feature. A focused follow-up is to configure a proof-of-concept policy and verify partner access, API metrics, and operational ownership against requirements. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
B: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 relevant dependency is api gateway versus apigee responsibilities, which this inspection alone does not establish.
C:Inspect hostname requirements, URL paths, backends, ingress type, health checks, and TLS certificate scope. Application load balancing can apply HTTP host and path rules; DNS resolution alone cannot implement those backend routing decisions. The relevant dependency is api gateway versus apigee responsibilities, which this inspection alone does not establish.
D:Inspect artifact signatures or attestations, policy enforcement point, provenance, and admitted image digest. Artifact storage and verified deployment authorization are separate; Binary Authorization enforces policy based on artifact trust evidence. The relevant dependency is api gateway versus apigee responsibilities, which this inspection alone does not establish.
Question 86
An enterprise exposes partner APIs that require detailed traffic policy management, developer engagement, and API lifecycle analytics. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use an appropriate Google-signed identity token for the target URL plus minimum Cloud Run Invoker authorization.
- Use idempotency keys and transactional state transitions around work that may be redelivered or retried.
- Select Cloud API Gateway for supported simpler managed gateway use or Apigee when its broader API management features are necessary.
- Use Cloud KMS for supported cryptographic key operations and lifecycle controls, rather than confusing it with Secret Manager storage.
Explanation
Correct Answer
C:Select Cloud API Gateway for supported simpler managed gateway use or Apigee when its broader API management features are necessary. The expected outcome is that the API control plane enforces necessary policies without a complexity gap or missing governance feature. Before rollout, inspect required authentication, quota policy, developer-portal features, routing, and API product governance. An enterprise exposes partner APIs that require detailed traffic policy management, developer engagement, and API lifecycle analytics. The team is choosing a sustainable solution.
Incorrect Answers
A:Use an appropriate Google-signed identity token for the target URL plus minimum Cloud Run Invoker authorization. This design addresses Cloud Run service-to-service identity tokens, where Cloud Run authenticated HTTP invocation validates an identity token audience and caller permissions; generic Google API access tokens are not interchangeable. Applying it first would leave api gateway versus apigee responsibilities unresolved.
B:Use idempotency keys and transactional state transitions around work that may be redelivered or retried. This design addresses retry-safe application side effects, where transient retries and at-least-once event delivery do not imply exactly-once business effects without an idempotent application design. Applying it first would leave api gateway versus apigee responsibilities unresolved.
D:Use Cloud KMS for supported cryptographic key operations and lifecycle controls, rather than confusing it with Secret Manager storage. For this case, a basic managed gateway and a full API management platform overlap in routing but differ in breadth of policy, analytics, and developer lifecycle. Applying it first would leave api gateway versus apigee responsibilities unresolved.
Question 87
An enterprise exposes partner APIs that require detailed traffic policy management, developer engagement, and API lifecycle analytics. 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.
- Integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles.
- Test the supported failover path with representative dependent services and measure recovery time and data loss.
- Configure a proof-of-concept policy and verify partner access, API metrics, and operational ownership against requirements.
Explanation
Correct Answer
D:Configure a proof-of-concept policy and verify partner access, API metrics, and operational ownership against requirements. Validate the change by checking that the API control plane enforces necessary policies without a complexity gap or missing governance feature. An approved limited change can be tested in a safe environment.
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. That may help elsewhere, but it does not make the change required for api gateway versus apigee responsibilities.
B:Integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles. This action changes a different concern, identity Platform end-user sign-in. That may help elsewhere, but it does not make the change required for api gateway versus apigee responsibilities.
C: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. That may help elsewhere, but it does not make the change required for api gateway versus apigee responsibilities.
Question 88
An enterprise exposes partner APIs that require detailed traffic policy management, developer engagement, and API lifecycle analytics. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery.
- Only authorized workloads retrieve approved secret versions, and the service adopts rotations according to policy.
- The selected datastore sustains the required transaction and read/write semantics under tested scale and recovery conditions.
- The API control plane enforces necessary policies without a complexity gap or missing governance feature.
Explanation
Correct Answer
D:The API control plane enforces necessary policies without a complexity gap or missing governance feature. This is evidence that the particular acceptance condition for API Gateway versus Apigee responsibilities has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect required authentication, quota policy, developer-portal features, routing, and API product governance. An enterprise exposes partner APIs that require detailed traffic policy management, developer engagement, and API lifecycle analytics. The team has tried a correction.
Incorrect Answers
A:The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery. In this case, the outcome to verify is that the API control plane enforces necessary policies without a complexity gap or missing governance feature. A more direct response is to recognize that the API control plane enforces necessary policies without a complexity gap or missing governance feature.
B:Only authorized workloads retrieve approved secret versions, and the service adopts rotations according to policy. In this case, the outcome to verify is that the API control plane enforces necessary policies without a complexity gap or missing governance feature. A more direct response is to recognize that the API control plane enforces necessary policies without a complexity gap or missing governance feature.
C: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 the API control plane enforces necessary policies without a complexity gap or missing governance feature.
Question 89
A public ingestion API accepts an unbounded burst from one client and exhausts a downstream datastore's connection pool. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect producer and consumer latency, durability, delivery retries, and whether side effects require synchronous confirmation.
- Inspect whether the requirement is L3/L4 network isolation, L7 routing telemetry, or authenticated service-to-service encryption.
- Inspect current request rate, authenticated client identity, quota policy, 429 responses, and downstream service capacity.
- Inspect affinity configuration, revision traffic allocation, session data dependencies, and failover behavior.
Explanation
Correct Answer
C:Inspect current request rate, authenticated client identity, quota policy, 429 responses, and downstream service capacity. This checks the actual operating conditions relevant to API rate limiting and request quota, rather than changing a service before the failure is understood. A focused follow-up is to enforce a bounded API policy and test a normal client alongside an intentionally over-budget client.
Incorrect Answers
A: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. To examine the reported mechanism, the team instead needs to inspect current request rate, authenticated client identity, quota policy, 429 responses, and downstream service capacity.
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. To examine the reported mechanism, the team instead needs to inspect current request rate, authenticated client identity, quota policy, 429 responses, and downstream service capacity.
D: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. To examine the reported mechanism, the team instead needs to inspect current request rate, authenticated client identity, quota policy, 429 responses, and downstream service capacity.
Question 90
A public ingestion API accepts an unbounded burst from one client and exhausts a downstream datastore's connection pool. 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.
- Choose Cloud Run for compatible managed HTTP containers, GKE for Kubernetes orchestration, or Compute Engine when virtual machine control is required.
- Use an appropriate external Application Load Balancer with URL routing instead of treating DNS records as layer-seven routing policies.
- Apply client-aware gateway quotas or rate limits with explicit retry behavior instead of increasing every backend limit.
Explanation
Correct Answer
D:Apply client-aware gateway quotas or rate limits with explicit retry behavior instead of increasing every backend limit. Before rollout, inspect current request rate, authenticated client identity, quota policy, 429 responses, and downstream service capacity.
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. It cannot substitute for the required control: apply client-aware gateway quotas or rate limits with explicit retry behavior instead of increasing every backend limit.
B:Choose Cloud Run for compatible managed HTTP containers, GKE for Kubernetes orchestration, or Compute Engine when virtual machine control is required. For this case, 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: apply client-aware gateway quotas or rate limits with explicit retry behavior instead of increasing every backend limit.
C: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. It cannot substitute for the required control: apply client-aware gateway quotas or rate limits with explicit retry behavior instead of increasing every backend limit.