PCDE Migrate data solutions Practice Question
An engineer needs to migrate a PostgreSQL database to Cloud SQL. They have used pg_dump to create a dump file. Which flags should they use to avoid issues with ownership and ACLs, since Cloud SQL does not support those?
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
✓
--no-owner --no-acl
--no-owner and --no-acl prevent pg_dump from including ownership and ACL commands, which are not supported on Cloud SQL. --no-privileges is not a standard flag (use --no-acl). --clean drops objects before recreating, not recommended.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
--no-privileges --no-owner
Why it's wrong here
--no-privileges is not a valid flag; the correct flag is --no-acl.
- ✗
--no-owner --clean
Why it's wrong here
--clean drops objects before recreating, which may cause data loss.
- ✗
--no-acl --if-exists
Why it's wrong here
--if-exists is not needed and doesn't handle ownership.
- ✓
--no-owner --no-acl
Why this is correct
These flags exclude ownership and ACL commands, avoiding errors in Cloud SQL.
Visual reference
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.