Google Professional Cloud Developer Practice Test 19
Question 180
One private Cloud Run service returns HTTP 401 when another invokes it with an unrelated OAuth access token. 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.
- The allowed caller invokes the private service successfully while requests without valid identity are denied.
- The selected runtime meets the application contract without hidden node-management or host-customization gaps.
- The origin remains authoritative and read latency improves without losing business records when the cache is empty.
Explanation
Correct Answer
B:The allowed caller invokes the private service successfully while requests without valid identity are denied. This is evidence that the particular acceptance condition for Cloud Run service-to-service identity tokens has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions.
Incorrect Answers
A:The workload executes the needed steps in the intended order without conflating scheduling, orchestration, and queue delivery. It would not establish the success condition for Cloud Run service-to-service identity tokens. The case instead calls for the following: the allowed caller invokes the private service successfully while requests without valid identity are denied.
C:The selected runtime meets the application contract without hidden node-management or host-customization gaps. It would not establish the success condition for Cloud Run service-to-service identity tokens. The case instead calls for the following: the allowed caller invokes the private service successfully while requests without valid identity are denied.
D: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. The case instead calls for the following: the allowed caller invokes the private service successfully while requests without valid identity are denied.
Question 181
An application grants public unauthenticated invocation to fix a missing service-to-service token and creates a wider exposure risk. 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 transaction scope, SQL query needs, global replication, throughput, data size, and indexing patterns.
- Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions.
- Inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
Explanation
Correct Answer
C:Inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions. This checks the actual operating conditions relevant to Cloud Run service-to-service identity tokens, rather than changing a service before the failure is understood. A focused follow-up is to configure caller identity to request a token with the intended audience and test authorized and unauthorized calls. 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. It does not isolate the cloud run service-to-service identity tokens issue described.
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. It does not isolate the cloud run service-to-service identity tokens issue described.
D: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. It does not isolate the cloud run service-to-service identity tokens issue described.
Question 182
An application grants public unauthenticated invocation to fix a missing service-to-service token and creates a wider exposure risk. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use Direct VPC egress or a supported connector path when the Cloud Run service needs private VPC access.
- Choose Cloud SQL for managed relational instances, Spanner for supported distributed SQL needs, or Bigtable for high-scale key-based wide-column access.
- Use an appropriate Google-signed identity token for the target URL plus minimum Cloud Run Invoker authorization.
- Choose Cloud Run for compatible managed HTTP containers, GKE for Kubernetes orchestration, or Compute Engine when virtual machine control is required.
Explanation
Correct Answer
C:Use an appropriate Google-signed identity token for the target URL plus minimum Cloud Run Invoker authorization. In this scenario, an application grants public unauthenticated invocation to fix a missing service-to-service token and creates a wider exposure risk. Before rollout, inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions.
Incorrect Answers
A: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. It addresses a different dependency from cloud run service-to-service identity tokens.
B:Choose Cloud SQL for managed relational instances, Spanner for supported distributed SQL needs, or Bigtable for high-scale key-based wide-column access. This design addresses Cloud SQL versus Spanner versus Bigtable, where Cloud SQL, Spanner, and Bigtable differ in data model and transaction guarantees; no one product is optimal for all workloads. It addresses a different dependency from cloud run service-to-service identity tokens.
D:Choose Cloud Run for compatible managed HTTP containers, GKE for Kubernetes orchestration, or Compute Engine when virtual machine control is required. For this case, Cloud Run authenticated HTTP invocation validates an identity token audience and caller permissions; generic Google API access tokens are not interchangeable. It addresses a different dependency from cloud run service-to-service identity tokens.
Question 183
An application grants public unauthenticated invocation to fix a missing service-to-service token and creates a wider exposure risk. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Configure caller identity to request a token with the intended audience and test authorized and unauthorized calls.
- Benchmark representative clients and validate the region of every persistent data replica and downstream dependency.
- Implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema.
- Configure the intended network and selected egress policy, then validate access to private and public dependencies.
Explanation
Correct Answer
A:Configure caller identity to request a token with the intended audience and test authorized and unauthorized calls. In this scenario, an application grants public unauthenticated invocation to fix a missing service-to-service token and creates a wider exposure risk. Validate the change by checking that the allowed caller invokes the private service successfully while requests without valid identity are denied.
Incorrect Answers
B:Benchmark representative clients and validate the region of every persistent data replica and downstream dependency. This action changes a different concern, regional latency and data placement. The reported condition is about cloud run service-to-service identity tokens, not this adjacent change.
C:Implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema. This action changes a different concern, Firestore versus Cloud Storage versus BigQuery. The reported condition is about cloud run service-to-service identity tokens, not this adjacent change.
D:Configure the intended network and selected egress policy, then validate access to private and public dependencies. This action changes a different concern, private VPC egress from Cloud Run. The reported condition is about cloud run service-to-service identity tokens, not this adjacent change.
Question 184
An application grants public unauthenticated invocation to fix a missing service-to-service token and creates a wider exposure risk. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated.
- The allowed caller invokes the private service successfully while requests without valid identity are denied.
- Untrusted images are rejected while policy-compliant images can be deployed under a recorded approval chain.
- The application reaches authorized private resources without unintended public exposure or blanket networking changes.
Explanation
Correct Answer
B:The allowed caller invokes the private service successfully while requests without valid identity are denied. This is evidence that the particular acceptance condition for Cloud Run service-to-service identity tokens has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect authenticated invocation settings, caller service account, token audience, and Cloud Run invoker permissions. An application grants public unauthenticated invocation to fix a missing service-to-service token and creates a wider exposure risk. The team has tried a correction.
Incorrect Answers
A:Latency and data placement meet stated goals without assuming every managed Google Cloud service is globally replicated. That result could support testing of regional latency and data placement: A product's regional or zonal scope determines placement, failure exposure, and latency; global branding alone does not guarantee global data residency. Applying it first would leave cloud run service-to-service identity tokens unresolved.
C: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. Applying it first would leave cloud run service-to-service identity tokens unresolved.
D:The application reaches authorized private resources without unintended public exposure or blanket networking changes. That result could support testing of private VPC egress from Cloud Run: 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 cloud run service-to-service identity tokens unresolved.
Question 185
A consumer application wants managed email and social authentication but the team tries to store reusable user passwords in Cloud Run source code. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect user geography, regional service availability, dependency placement, measured round-trip latency, and residency policy.
- Inspect end-user sign-in provider requirements, token validation, session lifecycle, and runtime service identity.
- Inspect compute placement, dependency replication, backups, failover prerequisites, and recovery objectives.
- Inspect minimum instances, maximum instances, concurrency, startup costs, request volumes, and resource pricing.
Explanation
Correct Answer
B:Inspect end-user sign-in provider requirements, token validation, session lifecycle, and runtime service identity. Success requires that valid users sign in through approved providers and cannot use an application session token as a cloud project service credential. A focused follow-up is to integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles.
Incorrect Answers
A:Inspect user geography, regional service availability, dependency placement, measured round-trip latency, and residency policy. A product's regional or zonal scope determines placement, failure exposure, and latency; global branding alone does not guarantee global data residency. That check does not establish the specific cause behind identity platform end-user sign-in.
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. That check does not establish the specific cause behind identity platform end-user sign-in.
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. That check does not establish the specific cause behind identity platform end-user sign-in.
Question 186
A consumer application wants managed email and social authentication but the team tries to store reusable user passwords in Cloud Run source code. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Choose Cloud Run for compatible managed HTTP containers, GKE for Kubernetes orchestration, or Compute Engine when virtual machine control is required.
- Use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials.
- 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.
Explanation
Correct Answer
B:Use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials. The expected outcome is that valid users sign in through approved providers and cannot use an application session token as a cloud project service credential. Before rollout, inspect end-user sign-in provider requirements, token validation, session lifecycle, and runtime service identity.
Incorrect Answers
A:Choose Cloud Run for compatible managed HTTP containers, GKE for Kubernetes orchestration, or Compute Engine when virtual machine control is required. For this case, end-user authentication and service-to-service IAM authentication are distinct trust boundaries requiring different tokens and policies. A more direct response is to use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials.
C: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 use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials.
D: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 use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials.
Question 187
A consumer application wants managed email and social authentication but the team tries to store reusable user passwords in Cloud Run source code. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles.
- Bind the Pod to a dedicated Kubernetes ServiceAccount and grant narrowly scoped cloud permissions to the corresponding principal.
- Benchmark representative clients and validate the region of every persistent data replica and downstream dependency.
- Configure the intended network and selected egress policy, then validate access to private and public dependencies.
Explanation
Correct Answer
A:Integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles. Validate the change by checking that valid users sign in through approved providers and cannot use an application session token as a cloud project service credential. In this scenario, a consumer application wants managed email and social authentication but the team tries to store reusable user passwords in Cloud Run source code.
Incorrect Answers
B:Bind the Pod to a dedicated Kubernetes ServiceAccount and grant narrowly scoped cloud permissions to the corresponding principal. This action changes a different concern, GKE Workload Identity Federation. The case instead calls for the following: integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles.
C:Benchmark representative clients and validate the region of every persistent data replica and downstream dependency. This action changes a different concern, regional latency and data placement. The case instead calls for the following: integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles.
D:Configure the intended network and selected egress policy, then validate access to private and public dependencies. This action changes a different concern, private VPC egress from Cloud Run. The case instead calls for the following: integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles.
Question 188
A consumer application wants managed email and social authentication but the team tries to store reusable user passwords in Cloud Run source code. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures.
- A user can resume the same authorized session after instance replacement without stale or cross-user state.
- Valid users sign in through approved providers and cannot use an application session token as a cloud project service credential.
- Operational document queries, large objects, and analytic scans use services aligned with their access patterns.
Explanation
Correct Answer
C:Valid users sign in through approved providers and cannot use an application session token as a cloud project service credential. This is evidence that the particular acceptance condition for identity Platform end-user sign-in has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect end-user sign-in provider requirements, token validation, session lifecycle, and runtime service identity.
Incorrect Answers
A:Traffic demand is handled within a documented budget without unnecessary warm instances or overload-induced failures. It would not establish the success condition for identity Platform end-user sign-in. It cannot substitute for the required control: valid users sign in through approved providers and cannot use an application session token as a cloud project service credential.
B:A user can resume the same authorized session after instance replacement without stale or cross-user state. That result could support testing of stateless service session design: Autoscaled instances can be ephemeral; affinity does not replace durable shared state or safe per-user authorization. It cannot substitute for the required control: valid users sign in through approved providers and cannot use an application session token as a cloud project service credential.
D: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: valid users sign in through approved providers and cannot use an application session token as a cloud project service credential.
Question 189
A service confuses application end-user identity with the service account it uses to read Cloud Storage. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency? Select ONE best answer.
- Inspect destination IP, supported VPC region, egress configuration, firewall rules, and service identity.
- Inspect client interoperability requirements, message schemas, transport capabilities, latency, and streaming needs.
- Inspect per-instance simultaneous requests, CPU saturation, memory pressure, tail latency, and autoscaling metrics.
- Inspect end-user sign-in provider requirements, token validation, session lifecycle, and runtime service identity.
Explanation
Correct Answer
D:Inspect end-user sign-in provider requirements, token validation, session lifecycle, and runtime service identity. Success requires that valid users sign in through approved providers and cannot use an application session token as a cloud project service credential. A focused follow-up is to integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles. Before choosing a remediation, which investigation best isolates the specific cause or unmet dependency.
Incorrect Answers
A: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. The first evidence should address identity platform end-user sign-in, not this separate diagnostic path.
B:Inspect client interoperability requirements, message schemas, transport capabilities, latency, and streaming needs. REST and gRPC are different interface and transport approaches; a protocol choice must match actual client support and the API contract. The first evidence should address identity platform end-user sign-in, not this separate diagnostic path.
C:Inspect per-instance simultaneous requests, CPU saturation, memory pressure, tail latency, and autoscaling metrics. Cloud Run concurrency bounds concurrent requests handled by an instance; optimal settings depend on whether its code is CPU-bound, I/O-bound, or stateful. The first evidence should address identity platform end-user sign-in, not this separate diagnostic path.
Question 190
A service confuses application end-user identity with the service account it uses to read Cloud Storage. 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.
- Choose Cloud SQL for managed relational instances, Spanner for supported distributed SQL needs, or Bigtable for high-scale key-based wide-column access.
- Use idempotency keys and transactional state transitions around work that may be redelivered or retried.
- Use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials.
Explanation
Correct Answer
D:Use Identity Platform for supported end-user identity flows and separate application sessions from workload IAM credentials. The expected outcome is that valid users sign in through approved providers and cannot use an application session token as a cloud project service credential. Before rollout, inspect end-user sign-in provider requirements, token validation, session lifecycle, and runtime service identity. A service confuses application end-user identity with the service account it uses to read Cloud Storage. The team is choosing a sustainable solution.
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 reported condition is about identity platform end-user sign-in, not this adjacent change.
B:Choose Cloud SQL for managed relational instances, Spanner for supported distributed SQL needs, or Bigtable for high-scale key-based wide-column access. This design addresses Cloud SQL versus Spanner versus Bigtable, where Cloud SQL, Spanner, and Bigtable differ in data model and transaction guarantees; no one product is optimal for all workloads. The reported condition is about identity platform end-user sign-in, not this adjacent change.
C: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. The reported condition is about identity platform end-user sign-in, not this adjacent change.