nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #394

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 en

The correct answer is D. Implement exponential backoff with a jitter when reconnecting after a disconnection. Configure. Implementing exponential backoff with jitter when reconnecting reduces connection storms and gracefully handles transient network issues. Client-side caching ensures the application remains stable and responsive during brief Redis outages.

Building Resilient Applications

Question

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?

Options

  • AImmediately terminate the application instance upon detecting a Redis disconnection to force a
  • BConfigure the Redis client to reconnect after a fixed delay of 60 seconds.
  • CUse Memorystore's automatic failover mechanisms to make the Redis cache available in a
  • DImplement exponential backoff with a jitter when reconnecting after a disconnection. Configure

How the community answered

(34 responses)
  • A
    6% (2)
  • B
    12% (4)
  • C
    3% (1)
  • D
    79% (27)

Explanation

Implementing exponential backoff with jitter when reconnecting reduces connection storms and gracefully handles transient network issues. Client-side caching ensures the application remains stable and responsive during brief Redis outages.

Topics

#Application Resilience#Redis Client#Error Handling#Exponential Backoff

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice