100% Latest & Updated Google Professional Cloud Developer Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 20
A public API operates healthy backends in two regions, but clients use a region-specific address and cannot fail over when that region is unavailable. Which safeguard MUST remain in place during and after the correction?
- Publish both IPs in a README and assume client-side failover is automatic
- Simulated regional backend failure moves eligible traffic to healthy capacity within recovery objectives
- Keep TLS, access policy, and data-residency constraints consistent across backends
- Differentiate an application-level global frontend from simply creating two independent regional IPs
Explanation
Correct Answer
C:This preserves the essential security or operating boundary: Keep TLS, access policy, and data-residency constraints consistent across backends. The reason is: Global routing requires configured backends and health-informed traffic policy.
Incorrect Answers
A:Publishing both IPs in a README and assuming client-side failover is automatic would not address the problem because global routing requires configured backends and health-informed traffic policy. The more relevant step is: Keep TLS, access policy, and data-residency constraints consistent across backends. Here, a public API operates healthy backends in two regions, but clients use a region-specific address and cannot fail over when that region is unavailable.
B:This measures whether the fix works rather than specifying the ongoing constraint: Keep TLS, access policy, and data-residency constraints consistent across backends.
D:This states a comparison, not the enduring safeguard: Keep TLS, access policy, and data-residency constraints consistent across backends.
Question 21
A shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix. Which observation should the engineer obtain FIRST to identify the technical condition?
- Trace where cart state is written and whether requests may reach different revisions or instances
- The same cart survives instance replacement and cross-instance requests under load
- Move session state to an appropriate shared, authenticated datastore and make request handlers stateless
- Enable instance affinity alone and claim per-instance memory survives scale-to-zero
Explanation
Correct Answer
A:Tracing where cart state is written and whether requests may reach different revisions or instances is appropriate because resilient cloud applications externalize cross-request user state. Here, a shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix.
Incorrect Answers
B:The same cart survives instance replacement and cross-instance requests under load does not establish the cause or baseline. Resilient cloud applications externalize cross-request user state.
C:Moving session state to an appropriate shared, authenticated datastore and making request handlers stateless is a potential later step, not the cause or baseline requested here. Trace where cart state is written and whether requests may reach different revisions or instances.
D:Enabling instance affinity alone and claim per-instance memory survives scale-to-zero would not address the problem because resilient cloud applications externalize cross-request user state. The more relevant step is: Trace where cart state is written and whether requests may reach different revisions or instances. Here, a shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix.
Question 22
A shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix. After the diagnosis is confirmed, which action MOST DIRECTLY corrects the problem?
- Trace where cart state is written and whether requests may reach different revisions or instances
- Enable instance affinity alone and claim per-instance memory survives scale-to-zero
- Move session state to an appropriate shared, authenticated datastore and make request handlers stateless
- Limit session TTLs and protect stored session tokens from disclosure
Explanation
Correct Answer
C:Moving session state to an appropriate shared, authenticated datastore and making request handlers stateless is appropriate because it addresses the observed problem because resilient cloud applications externalize cross-request user state.
Incorrect Answers
A:This is the diagnostic investigation, not the corrective intervention: Move session state to an appropriate shared, authenticated datastore and make request handlers stateless.
B:Enabling instance affinity alone and claim per-instance memory survives scale-to-zero would not address the problem because it addresses the observed problem because resilient cloud applications externalize cross-request user state.
D:This preserves a boundary but does not implement the main remedy: Move session state to an appropriate shared, authenticated datastore and make request handlers stateless.
Question 23
A shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix. Which measurement or test BEST shows that the proposed correction works?
- Move session state to an appropriate shared, authenticated datastore and make request handlers stateless
- Enable instance affinity alone and claim per-instance memory survives scale-to-zero
- Contrast shared durable session state with best-effort routing affinity
- The same cart survives instance replacement and cross-instance requests under load
Explanation
Correct Answer
D:The same cart survives instance replacement and cross-instance requests under load is appropriate because it conflicts with the technical condition because resilient cloud applications externalize cross-request user state.
Incorrect Answers
A:This describes an implementation step, not independent evidence of success: The same cart survives instance replacement and cross-instance requests under load.
B:Enabling instance affinity alone and claim per-instance memory survives scale-to-zero would not address the problem because it conflicts with the technical condition because resilient cloud applications externalize cross-request user state.
C:This separates two concepts but does not measure the outcome: The same cart survives instance replacement and cross-instance requests under load.
Question 24
A shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix. Before the change, which TWO steps together establish the diagnosis and preserve a key operating constraint? Choose TWO.
- Trace where cart state is written and whether requests may reach different revisions or instances
- Enable instance affinity alone and claim per-instance memory survives scale-to-zero
- Limit session TTLs and protect stored session tokens from disclosure
- Move session state to an appropriate shared, authenticated datastore and make request handlers stateless
- The same cart survives instance replacement and cross-instance requests under load
Explanation
Correct Answers
A:Tracing where cart state is written and whether requests may reach different revisions or instances is appropriate because resilient cloud applications externalize cross-request user state. Here, a shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix. The combined response also requires limiting session TTLs and protect stored session tokens from disclosure.
C:Limiting session TTLs and protect stored session tokens from disclosure is appropriate because resilient cloud applications externalize cross-request user state. Here, a shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix. The combined response also requires tracing where cart state is written and whether requests may reach different revisions or instances.
Incorrect Answers
B:Enabling instance affinity alone and claim per-instance memory survives scale-to-zero would not address the problem because resilient cloud applications externalize cross-request user state. The more relevant step is: Trace where cart state is written and whether requests may reach different revisions or instances. Here, a shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix. The combined response also includes tracing where cart state is written and whether requests may reach different revisions or instances and limiting session TTLs and protect stored session tokens from disclosure.
D:Moving session state to an appropriate shared, authenticated datastore and making request handlers stateless does not establish the starting evidence. Resilient cloud applications externalize cross-request user state.
E:The same cart survives instance replacement and cross-instance requests under load does not establish the starting evidence. Resilient cloud applications externalize cross-request user state.
Question 25
A shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix. Diagnosis and authorization are complete. Which THREE steps combine the remedy, acceptance evidence and continuing safeguard? Choose THREE.
- Enable instance affinity alone and claim per-instance memory survives scale-to-zero
- The same cart survives instance replacement and cross-instance requests under load
- Move session state to an appropriate shared, authenticated datastore and make request handlers stateless
- Contrast shared durable session state with best-effort routing affinity
- Trace where cart state is written and whether requests may reach different revisions or instances
- Limit session TTLs and protect stored session tokens from disclosure
Explanation
Correct Answers
B:The same cart survives instance replacement and cross-instance requests under load is appropriate because resilient cloud applications externalize cross-request user state.
C:Moving session state to an appropriate shared, authenticated datastore and making request handlers stateless is appropriate because resilient cloud applications externalize cross-request user state.
F:Limiting session TTLs and protect stored session tokens from disclosure is appropriate because resilient cloud applications externalize cross-request user state. Here, a shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix. The combined response also includes the same cart survives instance replacement and cross-instance requests under load and moving session state to an appropriate shared, authenticated datastore and making request handlers stateless.
Incorrect Answers
A:Enabling instance affinity alone and claim per-instance memory survives scale-to-zero would not address the problem because resilient cloud applications externalize cross-request user state. The more relevant step is: The same cart survives instance replacement and cross-instance requests under load. Here, a shopping cart stored in Cloud Run instance memory disappears when autoscaling routes a later request to another instance; a teammate wants permanent session affinity as the only fix. The combined response also includes the same cart survives instance replacement and cross-instance requests under load and moving session state to an appropriate shared, authenticated datastore and making request handlers stateless.
D:Contrasting shared durable session state with best-effort routing affinity does not establish the specific decision in the question. Resilient cloud applications externalize cross-request user state.
E:Tracing where cart state is written and whether requests may reach different revisions or instances does not establish the specific decision in the question. Resilient cloud applications externalize cross-request user state.
Question 26
A product recommendation endpoint issues the same expensive database lookup on every request despite a short acceptable freshness window. Which observation should the engineer obtain FIRST to identify the technical condition?
- Replace the primary relational database with an unmanaged cache lacking durability controls
- p95 latency and read load drop while cached results remain within the authorized freshness bound
- Profile repeated keys, cache hit potential, consistency tolerance, and database load
- Cache eligible results using Memorystore with bounded TTL and invalidation on relevant writes
Explanation
Correct Answer
C:Profiling repeated keys, cache hit potential, consistency tolerance, and database load is appropriate because caching can reduce repeated read cost but requires explicit freshness and security policy.
Incorrect Answers
A:Replacing the primary relational database with an unmanaged cache lacking durability controls would not address the problem because caching can reduce repeated read cost but requires explicit freshness and security policy. The more relevant step is: Profile repeated keys, cache hit potential, consistency tolerance, and database load. Here, a product recommendation endpoint issues the same expensive database lookup on every request despite a short acceptable freshness window.
B:P95 latency and read load drop while cached results remain within the authorized freshness bound does not establish the cause or baseline. Caching can reduce repeated read cost but requires explicit freshness and security policy.
D:Caching eligible results using Memorystore with bounded TTL and invalidation on relevant writes is a potential later step, not the cause or baseline requested here. Profile repeated keys, cache hit potential, consistency tolerance, and database load.
Question 27
A product recommendation endpoint issues the same expensive database lookup on every request despite a short acceptable freshness window. After the diagnosis is confirmed, which action MOST DIRECTLY corrects the problem?
- Cache eligible results using Memorystore with bounded TTL and invalidation on relevant writes
- Never put unencrypted sensitive tokens into broadly shared cache entries
- Replace the primary relational database with an unmanaged cache lacking durability controls
- Profile repeated keys, cache hit potential, consistency tolerance, and database load
Explanation
Correct Answer
A:This implements the fix: Cache eligible results using Memorystore with bounded TTL and invalidation on relevant writes. It addresses the observed problem because caching can reduce repeated read cost but requires explicit freshness and security policy.
Incorrect Answers
B:This preserves a boundary but does not implement the main remedy: Cache eligible results using Memorystore with bounded TTL and invalidation on relevant writes.
C:Replacing the primary relational database with an unmanaged cache lacking durability controls would not address the problem because it addresses the observed problem because caching can reduce repeated read cost but requires explicit freshness and security policy.
D:This is the diagnostic investigation, not the corrective intervention: Cache eligible results using Memorystore with bounded TTL and invalidation on relevant writes.
Question 28
A product recommendation endpoint issues the same expensive database lookup on every request despite a short acceptable freshness window. Which measurement or test BEST shows that the proposed correction works?
- Cache eligible results using Memorystore with bounded TTL and invalidation on relevant writes
- Replace the primary relational database with an unmanaged cache lacking durability controls
- p95 latency and read load drop while cached results remain within the authorized freshness bound
- Distinguish an ephemeral performance cache from the canonical data store
Explanation
Correct Answer
C:P95 latency and read load drop while cached results remain within the authorized freshness bound is appropriate because it conflicts with the technical condition because caching can reduce repeated read cost but requires explicit freshness and security policy.
Incorrect Answers
A:This describes an implementation step, not independent evidence of success: p95 latency and read load drop while cached results remain within the authorized freshness bound.
B:Replacing the primary relational database with an unmanaged cache lacking durability controls would not address the problem because it conflicts with the technical condition because caching can reduce repeated read cost but requires explicit freshness and security policy.
D:This separates two concepts but does not measure the outcome: p95 latency and read load drop while cached results remain within the authorized freshness bound.
Question 29
A product recommendation endpoint issues the same expensive database lookup on every request despite a short acceptable freshness window. Which comparison BEST identifies the technical distinction behind this failure?
- Never put unencrypted sensitive tokens into broadly shared cache entries
- Profile repeated keys, cache hit potential, consistency tolerance, and database load
- Replace the primary relational database with an unmanaged cache lacking durability controls
- Distinguish an ephemeral performance cache from the canonical data store
Explanation
Correct Answer
D:This separates the mechanisms that matter here: Distinguish an ephemeral performance cache from the canonical data store. The underlying distinction is: Caching can reduce repeated read cost but requires explicit freshness and security policy.
Incorrect Answers
A:Nevering put unencrypted sensitive tokens into broadly shared cache entries does not establish the failure mechanism. The underlying distinction is: Caching can reduce repeated read cost but requires explicit freshness and security policy.
B:Profiling repeated keys, cache hit potential, consistency tolerance, and database load does not establish the failure mechanism. The underlying distinction is: Caching can reduce repeated read cost but requires explicit freshness and security policy.
C:Replacing the primary relational database with an unmanaged cache lacking durability controls would not address the problem because the underlying distinction is: Caching can reduce repeated read cost but requires explicit freshness and security policy.
Question 30
A product recommendation endpoint issues the same expensive database lookup on every request despite a short acceptable freshness window. Which safeguard MUST remain in place during and after the correction?
- Replace the primary relational database with an unmanaged cache lacking durability controls
- p95 latency and read load drop while cached results remain within the authorized freshness bound
- Never put unencrypted sensitive tokens into broadly shared cache entries
- Distinguish an ephemeral performance cache from the canonical data store
Explanation
Correct Answer
C:This preserves the essential security or operating boundary: Never put unencrypted sensitive tokens into broadly shared cache entries. The reason is: Caching can reduce repeated read cost but requires explicit freshness and security policy.
Incorrect Answers
A:Replacing the primary relational database with an unmanaged cache lacking durability controls would not address the problem because caching can reduce repeated read cost but requires explicit freshness and security policy. The more relevant step is: Never put unencrypted sensitive tokens into broadly shared cache entries. Here, a product recommendation endpoint issues the same expensive database lookup on every request despite a short acceptable freshness window.
B:This measures whether the fix works rather than specifying the ongoing constraint: Never put unencrypted sensitive tokens into broadly shared cache entries.
D:This states a comparison, not the enduring safeguard: Never put unencrypted sensitive tokens into broadly shared cache entries.
Professional Cloud Developer Practice Tests