Google Cloud Professional Cloud Developer — Question 348

You are building an application that will store frequently accessed data in a Memorystore for Redis Cluster instance. You would like to make the application resilient to network issues. You need to ensure that the application handles client disconnections from a Redis instance gracefully to minimize disruption and ensure stability of the application. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because implementing exponential backoff with jitter allows for a more efficient and stable reconnection strategy during network disruptions, while client-side caching ensures data availability during outages. Option A is incorrect as abruptly terminating the application can cause more issues than it solves. Option B lacks a robust strategy for managing reconnections, and option C, while useful, does not directly address handling client disconnections.