PCDE Migrate data solutions Practice Question
A team is migrating a MySQL database to Cloud SQL using mysqldump for the initial snapshot. The source database uses InnoDB tables. Which mysqldump flags should be used to ensure a consistent snapshot without locking tables?
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 --skip-lock-tables
--single-transaction uses a read transaction to get a consistent snapshot without table locks for InnoDB.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
--single-transaction --skip-lock-tables
Why this is correct
--single-transaction provides a consistent snapshot; --skip-lock-tables avoids additional locks.
- ✗
--all-databases --routines
Why it's wrong here
These capture all DBs and routines but don't guarantee consistency without --single-transaction.
- ✗
--lock-tables --single-transaction
Why it's wrong here
--lock-tables and --single-transaction are incompatible; --lock-tables is not needed.
- ✗
--flush-logs --master-data=2
Why it's wrong here
These are for binary log position capture, not for consistent snapshot.
Go deeper
Related to this question
About these practice questions
This PCDE question is part of Courseiva's 1,446-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.