0
0
GCPcloud~30 mins

Memorystore for Redis caching in GCP - Mini Project: Build & Apply

Choose your learning style9 modes available
Memorystore for Redis caching
📖 Scenario: You are building a simple caching layer for a web application hosted on Google Cloud Platform. To speed up data retrieval, you want to use Memorystore for Redis, a managed Redis service. This project will guide you through creating a Redis instance, configuring it, and preparing it for use.
🎯 Goal: Create a Memorystore for Redis instance with basic configuration to enable caching for your application.
📋 What You'll Learn
Create a Redis instance with a specific name and tier
Set the Redis memory size
Configure the Redis instance with a region and authorized network
Enable Redis persistence
💡 Why This Matters
🌍 Real World
Memorystore for Redis is used to speed up applications by caching frequently accessed data, reducing database load and improving response times.
💼 Career
Cloud engineers and developers often configure managed Redis instances to optimize application performance and reliability in production environments.
Progress0 / 4 steps
1
Create a Redis instance dictionary
Create a dictionary called redis_instance with these exact keys and values: 'name': 'my-redis-cache', 'tier': 'STANDARD_HA', and 'memory_size_gb': 4.
GCP
Need a hint?

Use a Python dictionary with the exact keys and values as specified.

2
Add region and authorized network configuration
Add two new keys to the redis_instance dictionary: 'region' with value 'us-central1' and 'authorized_network' with value 'default'.
GCP
Need a hint?

Add the new keys directly inside the existing dictionary.

3
Enable Redis persistence
Add a key 'persistence_config' to the redis_instance dictionary with a nested dictionary value containing 'persistence_enabled': true.
GCP
Need a hint?

Use a nested dictionary for the persistence configuration.

4
Add Redis version and complete configuration
Add a key 'redis_version' with value 'REDIS_6_X' to the redis_instance dictionary to specify the Redis version.
GCP
Need a hint?

Specify the Redis version as a string in the dictionary.