PCDE Migrate data solutions Practice Question
A team is planning a one-time migration of a 500 GB MySQL database to Cloud SQL using Database Migration Service. They want to minimize the impact on the source database. Which mysqldump flags should they use when taking the initial snapshot?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
--single-transaction and --skip-lock-tables
For a consistent snapshot without locking InnoDB tables, use --single-transaction. --skip-lock-tables avoids table locks. --master-data is not needed for DMS one-time migration.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
--master-data=2 and --single-transaction
Why it's wrong here
--master-data is for binary log position, not needed for one-time migration.
- ✗
--lock-all-tables and --flush-logs
Why it's wrong here
These cause downtime by locking all tables.
- ✓
--single-transaction and --skip-lock-tables
Why this is correct
These flags allow a consistent snapshot without locking tables.
- ✗
--all-databases and --routines
Why it's wrong here
These are for scope, not for minimizing impact.
Go deeper
Related to this question
About these practice questions
One of 1,446 original PCDE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This PCDE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCDE exam.