Google Cloud Professional Data Engineer — Question 317
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?
Answer options
- 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.
- B. Make a secondary instance of the Redis database on a Compute Engine instance and then perform a live cutover.
- C. Create a Dataflow job to read the Redis database from the on-premises data center and write the data to a Memorystore for Redis instance.
- D. Write a shell script to migrate the Redis data and create a new Memorystore for Redis instance.
Correct answer: A
Explanation
Option A is the correct choice because it follows Google's recommended practices by utilizing RDB backups and Cloud Storage for a straightforward and cost-effective migration. The other options involve more complexity and potential downtime, such as live cutovers in option B, which may not be the most efficient approach, and options C and D introduce unnecessary complexity without leveraging the best tools for this specific task.