You need to migrate a Redis database from an on-premises data center to a Memorystore for Redis instance. You want to follow Google-recommended practices and perform the migration for minimal cost, time and effort. What should you do?
- AMake an RDB backup of the Redis database, use the gsutil utility to copy the RDB file into a Cloud Storage bucket, and then import the RDB file into the Memorystore for Redis instance. (correct answer)
- BMake a secondary instance of the Redis database on a Compute Engine instance and then perform a live cutover.
- CCreate a Dataflow job to read the Redis database from the on-premises data center and write the data to a Memorystore for Redis instance.
- DWrite a shell script to migrate the Redis data and create a new Memorystore for Redis instance.
Reveal answer & explanationHide answer
The correct answer is A. Option A: Make an RDB backup of the Redis database, use the gsutil utility to copy the RDB file into a Cloud Storage bucket, and then import the RDB file into the Memorystore for Redis instance.
Explanation
Cloud Storage provides durable, scalable object storage that is fully managed. Memorystore provides managed in-memory Redis/Memcached caching to reduce latency and offload databases.


