Professional Cloud Database Engineer free question 6 / 10 · Domain 2: Manage a solution that can span multiple database technologies
You run the major version upgrade precheck on Cloud SQL for PostgreSQL. No operation is blocking it, and each database is accessible. Which combination of instance role and running state can use the precheck?
- A read replica instance whose state is STOPPED
- A primary instance whose state is RUNNING
- A primary instance whose state is STOPPED
- A read replica instance whose state is RUNNING
Show the answer and explanation
Answer: B
Why this is correct
The Limitations section of the in-place major version upgrade page lists the limits of the precheck: the instance state must be RUNNING, the instance must be a primary because the precheck does not support replicas, and there must be no pending blocking operations. The question already satisfies the last condition, so only a primary in the RUNNING state can run it.
Why the other options are wrong
"A primary instance whose state is STOPPED" … The role of primary is right, but running the precheck requires the RUNNING state. A STOPPED state does not satisfy that prerequisite.
"A read replica instance whose state is STOPPED" … The precheck does not support replicas, and it also requires the RUNNING state. This combination fails both the role and the state prerequisite.
"A read replica instance whose state is RUNNING" … A read replica is outside the scope of the precheck even when it is RUNNING. Being up and running and being a supported instance role are separate conditions.
Key point
The precheck is a long-running operation that looks for compatibility and configuration problems before the upgrade. Once the target meets the prerequisites, review the problems and warnings in its results.