Migrate an on-premises Redis database to Memorystore for Redis with minimal cost, time, and effort. What is the recommended approach?
Choose an answer
Tap an option to check your answer.
Correct answer: 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..
Why this is the answer
The recommended approach for migrating an on-premises Redis database to Memorystore for Redis with minimal cost, time, and effort is to use an RDB backup. Redis's RDB persistence creates a point-in-time snapshot of the dataset. This RDB file can be easily copied to Google Cloud Storage using gsutil and then directly imported into a new Memorystore for Redis instance. This method is efficient because it leverages Redis's native backup format and Memorystore's built-in import functionality, avoiding complex data transformations or custom code. Creating a secondary instance on Compute Engine and performing a live cutover is more complex and incurs additional compute costs. A Dataflow job would require significant development effort to create and manage, increasing both time and cost. Writing a custom shell script is also prone to errors, time-consuming, and less robust than using native backup/restore mechanisms.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed