Complete the code to create a Redis instance with the correct tier.
gcloud redis instances create my-redis-instance --size=1 --region=us-central1 --tier=[1] --authorized-network=default
The BASIC tier is the simplest Redis instance type for Memorystore, suitable for development and testing.
Complete the code to specify the Redis version when creating an instance.
gcloud redis instances create cache-1 --size=2 --region=us-east1 --tier=BASIC --redis-version=[1] --authorized-network=default
The REDIS_6_X version is a common supported version for Memorystore, offering newer features and better performance.
Fix the error in the command to allow authorized network access.
gcloud redis instances create cache-2 --size=3 --region=us-west1 --tier=STANDARD_HA --authorized-network=[1]
The authorized-network flag requires the name of the VPC network, commonly default for the default VPC.
Fill both blanks to configure a Redis instance with a specific memory size and region.
gcloud redis instances create my-cache --size=[1] --region=[2] --tier=BASIC --authorized-network=default
The size is set to 2 GB and the region to us-central1 for this Redis instance.
Fill all three blanks to create a Redis instance with high availability, a specific version, and authorized network.
gcloud redis instances create ha-cache --size=5 --region=[1] --tier=[2] --redis-version=[3] --authorized-network=default
The instance is created in us-east1 region, with STANDARD_HA tier for high availability, and Redis version REDIS_6_X.