AWS Certified Data Engineer Associate DEA-C01 Practice Question
A data engineer must generate a consistent logical backup of an Amazon RDS for MySQL instance each night. During the export, client applications may continue to read data, but no writes must occur on any tables until the dump is finished. Which approach meets these requirements with the least operational overhead?
Create a read replica, promote it to primary for the export, and direct client traffic to the new writer during the dump.
Run mysqldump with the --single-transaction option so the export occurs under snapshot isolation without explicit locks.
Execute FLUSH TABLES WITH READ LOCK in an administrative session, keep that session open for the duration of the dump, then run UNLOCK TABLES when the export completes.
Stop the RDS instance before starting the export and restart it after the dump finishes.
Issuing FLUSH TABLES WITH READ LOCK places a global read lock on the MySQL instance: write operations are blocked while read operations are still allowed. Keeping the session that issued the command open maintains the lock for the entire duration of the dump, and running UNLOCK TABLES afterward restores normal write access. Using --single-transaction does not block writers, a replica dump does not stop writes on the primary, and stopping the instance prevents both reads and writes and incurs downtime.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does FLUSH TABLES WITH READ LOCK do in MySQL?
Open an interactive chat with Bash
Why is the --single-transaction option insufficient for blocking writes during a MySQL backup?
Open an interactive chat with Bash
What are the drawbacks of stopping an RDS instance for backups?
Open an interactive chat with Bash
What does the 'FLUSH TABLES WITH READ LOCK' MySQL command do?
Open an interactive chat with Bash
Why is the --single-transaction option in mysqldump not suitable in this scenario?
Open an interactive chat with Bash
Why isn't creating and promoting a read replica an effective approach for this requirement?
Open an interactive chat with Bash
AWS Certified Data Engineer Associate DEA-C01
Data Store Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .