Google Professional Cloud Developer Practice Test 22
Question 210
An internal service needs telemetry and mutual TLS between microservices, but a team assumes basic Pod traffic filters provide service-level identity encryption. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use idempotency keys and transactional state transitions around work that may be redelivered or retried.
- Use Kubernetes NetworkPolicy for supported traffic isolation and a supported service mesh for additional service-level controls.
- Use versioned or invalidated cached data with identity-scoped keys and freshness bounds appropriate to the business rule.
- Choose Cloud SQL for managed relational instances, Spanner for supported distributed SQL needs, or Bigtable for high-scale key-based wide-column access.
Explanation
Correct Answer
B:Use Kubernetes NetworkPolicy for supported traffic isolation and a supported service mesh for additional service-level controls. Network policies and service meshes operate at different levels; allowing or denying packets does not automatically implement mutual TLS or service observability. Before rollout, inspect whether the requirement is L3/L4 network isolation, L7 routing telemetry, or authenticated service-to-service encryption.
Incorrect Answers
A: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. It addresses a different dependency from service mesh versus network policy.
C:Use versioned or invalidated cached data with identity-scoped keys and freshness bounds appropriate to the business rule. This design addresses cache freshness and invalidation, where cache invalidation and tenant-aware keying are correctness and security controls, not merely performance tuning. It addresses a different dependency from service mesh versus network policy.
D: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 service mesh versus network policy.
Question 211
An internal service needs telemetry and mutual TLS between microservices, but a team assumes basic Pod traffic filters provide service-level identity encryption. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Define explicit ingress/egress policy and, where needed, mesh mTLS and route policy, then test authorized peer flows.
- Implement a small representative read/write/query workload and verify access patterns plus cost before committing the schema.
- Integrate the chosen provider, validate ID tokens server-side, and map authorized users to application roles.
- Correct health probes and simulate one unavailable backend while observing load-balancer routing and user errors.
Explanation
Correct Answer
A:Define explicit ingress/egress policy and, where needed, mesh mTLS and route policy, then test authorized peer flows. Network policies and service meshes operate at different levels; allowing or denying packets does not automatically implement mutual TLS or service observability. Validate the change by checking that traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property.
Incorrect Answers
B: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 service mesh versus network policy, not this adjacent change.
C: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. The reported condition is about service mesh versus network policy, not this adjacent change.
D: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. The reported condition is about service mesh versus network policy, not this adjacent change.
Question 212
An internal service needs telemetry and mutual TLS between microservices, but a team assumes basic Pod traffic filters provide service-level identity encryption. 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.
- Traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property.
- The API control plane enforces necessary policies without a complexity gap or missing governance feature.
Explanation
Correct Answer
C:Traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property. This is evidence that the particular acceptance condition for service mesh versus network policy has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect whether the requirement is L3/L4 network isolation, L7 routing telemetry, or authenticated service-to-service encryption.
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 service mesh versus network policy. Applying it first would leave service mesh versus network policy unresolved.
B:Only authorized workloads retrieve approved secret versions, and the service adopts rotations according to policy. It would not establish the success condition for service mesh versus network policy. Applying it first would leave service mesh versus network policy unresolved.
D:The API control plane enforces necessary policies without a complexity gap or missing governance feature. That result could support testing of API Gateway versus Apigee responsibilities: 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 service mesh versus network policy unresolved.
Question 213
A cluster restricts Pod-to-Pod connectivity and the operator expects every denied flow to be automatically encrypted and traced. 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 artifact signatures or attestations, policy enforcement point, provenance, and admitted image digest.
- Inspect whether the requirement is L3/L4 network isolation, L7 routing telemetry, or authenticated service-to-service encryption.
Explanation
Correct Answer
D:Inspect whether the requirement is L3/L4 network isolation, L7 routing telemetry, or authenticated service-to-service encryption. This checks the actual operating conditions relevant to service mesh versus network policy, rather than changing a service before the failure is understood. A focused follow-up is to define explicit ingress/egress policy and, where needed, mesh mTLS and route policy, then test authorized peer flows. 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. That check does not establish the specific cause behind service mesh versus network policy.
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. That check does not establish the specific cause behind service mesh versus network policy.
C: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. That check does not establish the specific cause behind service mesh versus network policy.
Question 214
A cluster restricts Pod-to-Pod connectivity and the operator expects every denied flow to be automatically encrypted and traced. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use Cloud KMS for supported cryptographic key operations and lifecycle controls, rather than confusing it with Secret Manager storage.
- Publish durable business events through Pub/Sub and let independent subscribers process appropriate downstream work asynchronously.
- Use Kubernetes NetworkPolicy for supported traffic isolation and a supported service mesh for additional service-level controls.
- Set Cloud Run concurrency to match measured in-process parallelism, rather than assuming the highest possible number is optimal.
Explanation
Correct Answer
C:Use Kubernetes NetworkPolicy for supported traffic isolation and a supported service mesh for additional service-level controls. Network policies and service meshes operate at different levels; allowing or denying packets does not automatically implement mutual TLS or service observability. Before rollout, inspect whether the requirement is L3/L4 network isolation, L7 routing telemetry, or authenticated service-to-service encryption. A cluster restricts Pod-to-Pod connectivity and the operator expects every denied flow to be automatically encrypted and traced. The team is choosing a sustainable solution.
Incorrect Answers
A:Use Cloud KMS for supported cryptographic key operations and lifecycle controls, rather than confusing it with Secret Manager storage. For this case, network policies and service meshes operate at different levels; allowing or denying packets does not automatically implement mutual TLS or service observability. A more direct response is to use Kubernetes NetworkPolicy for supported traffic isolation and a supported service mesh for additional service-level controls.
B: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. A more direct response is to use Kubernetes NetworkPolicy for supported traffic isolation and a supported service mesh for additional service-level controls.
D:Set Cloud Run concurrency to match measured in-process parallelism, rather than assuming the highest possible number is optimal. For this case, network policies and service meshes operate at different levels; allowing or denying packets does not automatically implement mutual TLS or service observability. A more direct response is to use Kubernetes NetworkPolicy for supported traffic isolation and a supported service mesh for additional service-level controls.
Question 215
A cluster restricts Pod-to-Pod connectivity and the operator expects every denied flow to be automatically encrypted and traced. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Prototype the interface using supported client libraries and validate backward-compatible schema and authentication behavior.
- Attach validated attestations to the intended image digest and test both authorized and untrusted image deployments.
- Define explicit ingress/egress policy and, where needed, mesh mTLS and route policy, then test authorized peer flows.
- Configure the approved key ring, key permissions, and key-rotation plan, then test authorized encrypt/decrypt operations.
Explanation
Correct Answer
C:Define explicit ingress/egress policy and, where needed, mesh mTLS and route policy, then test authorized peer flows. Network policies and service meshes operate at different levels; allowing or denying packets does not automatically implement mutual TLS or service observability. Validate the change by checking that traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property. An approved limited change can be tested in a safe environment.
Incorrect Answers
A: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: define explicit ingress/egress policy and, where needed, mesh mTLS and route policy, then test authorized peer flows.
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. The case instead calls for the following: define explicit ingress/egress policy and, where needed, mesh mTLS and route policy, then test authorized peer flows.
D:Configure the approved key ring, key permissions, and key-rotation plan, then test authorized encrypt/decrypt operations. This action changes a different concern, Cloud KMS and encryption key lifecycle. The case instead calls for the following: define explicit ingress/egress policy and, where needed, mesh mTLS and route policy, then test authorized peer flows.
Question 216
A cluster restricts Pod-to-Pod connectivity and the operator expects every denied flow to be automatically encrypted and traced. 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.
- The allowed caller invokes the private service successfully while requests without valid identity are denied.
- The origin remains authoritative and read latency improves without losing business records when the cache is empty.
Explanation
Correct Answer
B:Traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property. This is evidence that the particular acceptance condition for service mesh versus network policy has been met, rather than a general availability metric. The original diagnosis should have included this step: inspect whether the requirement is L3/L4 network isolation, L7 routing telemetry, or authenticated service-to-service encryption. A cluster restricts Pod-to-Pod connectivity and the operator expects every denied flow to be automatically encrypted and traced. The team has tried a correction.
Incorrect Answers
A:The API control plane enforces necessary policies without a complexity gap or missing governance feature. That result could support testing of API Gateway versus Apigee responsibilities: A basic managed gateway and a full API management platform overlap in routing but differ in breadth of policy, analytics, and developer lifecycle. It cannot substitute for the required control: traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property.
C:The allowed caller invokes the private service successfully while requests without valid identity are denied. That result could support testing of Cloud Run service-to-service identity tokens: Cloud Run authenticated HTTP invocation validates an identity token audience and caller permissions; generic Google API access tokens are not interchangeable. It cannot substitute for the required control: traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property.
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. It cannot substitute for the required control: traffic is constrained and authenticated at the intended layers rather than assuming one control supplies every property.
Question 217
A Cloud Run service cannot reach a database endpoint on a private address and currently sends traffic through public egress. 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 where session state is written, whether it is shared, and what happens during scale-out or instance replacement.
- Inspect minimum instances, maximum instances, concurrency, startup costs, request volumes, and resource pricing.
- Inspect current request rate, authenticated client identity, quota policy, 429 responses, and downstream service capacity.
Explanation
Correct Answer
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. A focused follow-up is to configure the intended network and selected egress policy, then validate access to private and public dependencies.
Incorrect Answers
B:Inspect where session state is written, whether it is shared, and what happens during scale-out or instance replacement. Autoscaled instances can be ephemeral; affinity does not replace durable shared state or safe per-user authorization. The first evidence should address private vpc egress from cloud run, not this separate diagnostic path.
C: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 first evidence should address private vpc egress from cloud run, not this separate diagnostic path.
D:Inspect current request rate, authenticated client identity, quota policy, 429 responses, and downstream service capacity. Rate limiting and quota policies regulate request load; they are different from IAM authorization and should produce explicit throttling semantics. The first evidence should address private vpc egress from cloud run, not this separate diagnostic path.
Question 218
A Cloud Run service cannot reach a database endpoint on a private address and currently sends traffic through public egress. The team is choosing a sustainable solution. Which design best meets the stated requirement without broad unrelated changes? Select ONE best answer.
- Use Cloud KMS for supported cryptographic key operations and lifecycle controls, rather than confusing it with Secret Manager storage.
- Use Kubernetes NetworkPolicy for supported traffic isolation and a supported service mesh for additional service-level controls.
- Use versioned or invalidated cached data with identity-scoped keys and freshness bounds appropriate to the business rule.
- Use Direct VPC egress or a supported connector path when the Cloud Run service needs private VPC access.
Explanation
Correct Answer
D:Use Direct VPC egress or a supported connector path when the Cloud Run service needs private VPC access. Private VPC egress changes the network path for selected Cloud Run outbound traffic and still requires downstream firewall and identity controls. Before rollout, inspect destination IP, supported VPC region, egress configuration, firewall rules, and service identity.
Incorrect Answers
A:Use Cloud KMS for supported cryptographic key operations and lifecycle controls, rather than confusing it with Secret Manager storage. For this case, private VPC egress changes the network path for selected Cloud Run outbound traffic and still requires downstream firewall and identity controls. The reported condition is about private vpc egress from cloud run, not this adjacent change.
B:Use Kubernetes NetworkPolicy for supported traffic isolation and a supported service mesh for additional service-level controls. This design addresses service mesh versus network policy, where network policies and service meshes operate at different levels; allowing or denying packets does not automatically implement mutual TLS or service observability. The reported condition is about private vpc egress from cloud run, not this adjacent change.
C:Use versioned or invalidated cached data with identity-scoped keys and freshness bounds appropriate to the business rule. This design addresses cache freshness and invalidation, where cache invalidation and tenant-aware keying are correctness and security controls, not merely performance tuning. The reported condition is about private vpc egress from cloud run, not this adjacent change.
Question 219
A Cloud Run service cannot reach a database endpoint on a private address and currently sends traffic through public egress. An approved limited change can be tested in a safe environment. Which implementation action most directly addresses this scenario? Select ONE best answer.
- Introduce bounded cache keys and TTLs, invalidate them on relevant writes, and verify cache-miss database fallback.
- Persist the approved order then publish a stable event and implement idempotent consumers with a measured backlog policy.
- Configure claim conditions and tightly scoped impersonation, then test valid and invalid CI identities.
- Configure the intended network and selected egress policy, then validate access to private and public dependencies.
Explanation
Correct Answer
D:Configure the intended network and selected egress policy, then validate access to private and public dependencies. Private VPC egress changes the network path for selected Cloud Run outbound traffic and still requires downstream firewall and identity controls. Validate the change by checking that the application reaches authorized private resources without unintended public exposure or blanket networking changes.
Incorrect Answers
A: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. Applying it first would leave private vpc egress from cloud run unresolved.
B: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. Applying it first would leave private vpc egress from cloud run unresolved.
C: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. Applying it first would leave private vpc egress from cloud run unresolved.
Question 220
A Cloud Run service cannot reach a database endpoint on a private address and currently sends traffic through public egress. The team has tried a correction. Which measurable outcome most directly demonstrates that this issue is resolved? Select ONE best answer.
- Key governance and cryptographic operations work under intended IAM restrictions without disclosing raw key material.
- Unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract.
- The application reaches authorized private resources without unintended public exposure or blanket networking changes.
- The allowed caller invokes the private service successfully while requests without valid identity are denied.
Explanation
Correct Answer
C:The application reaches authorized private resources without unintended public exposure or blanket networking changes. Private VPC egress changes the network path for selected Cloud Run outbound traffic and still requires downstream firewall and identity controls. The original diagnosis should have included this step: inspect destination IP, supported VPC region, egress configuration, firewall rules, and service identity.
Incorrect Answers
A:Key governance and cryptographic operations work under intended IAM restrictions without disclosing raw key material. In this case, the outcome to verify is that the application reaches authorized private resources without unintended public exposure or blanket networking changes. That may help elsewhere, but it does not make the change required for private vpc egress from cloud run.
B:Unhealthy backends stop receiving new eligible traffic while healthy capacity serves the request contract. That result could support testing of backend health and failure routing: A healthy network listener and a healthy application are not necessarily equivalent; routing depends on meaningful health checks. That may help elsewhere, but it does not make the change required for private vpc egress from cloud run.
D:The allowed caller invokes the private service successfully while requests without valid identity are denied. That result could support testing of Cloud Run service-to-service identity tokens: Cloud Run authenticated HTTP invocation validates an identity token audience and caller permissions; generic Google API access tokens are not interchangeable. That may help elsewhere, but it does not make the change required for private vpc egress from cloud run.