PCDE Migrate data solutions Practice Question
An engineer is performing a manual migration from PostgreSQL to Cloud SQL. They run pg_dump and want to import the dump into Cloud SQL. Which pg_dump flags are necessary to avoid errors related to ownership and ACLs?
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 and --no-acl
Cloud SQL does not allow setting ownership or ACLs; using --no-owner and --no-acl prevents errors during restore.
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-owner and --no-acl
Why this is correct
These flags omit ownership and ACL commands, which are not supported by Cloud SQL.
- ✗
--format=custom and --compress=9
Why it's wrong here
These are for compression, not for avoiding ownership errors.
- ✗
--schema-only and --data-only
Why it's wrong here
These separate schema and data, but do not address ownership.
- ✗
--create and --clean
Why it's wrong here
These create/drop databases, but ownership issues remain.
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.