You are configuring a brand new PostgreSQL database instance in Cloud SQL. Your application team wants to have an optimal and highly available environment with automatic failover to avoid any unplanned outage. What should you do?
A.
Create one regional Cloud SQL instance with a read replica in another region.
B.
Create one regional Cloud SQL instance in one zone with a standby instance in another zone in the same region.
C.
Create two read-write Cloud SQL instances in two different zones with a standby instance in another region.
D.
Create two read-write Cloud SQL instances in two different regions with a standby instance in another zone.
A
From: https://cloud.google.com/sql/docs/mysql/high-availability
The HA configuration provides data redundancy. A Cloud SQL instance configured for HA is also called a regional instance and has a primary and secondary zone within the configured region.
When we say: regional Cloud SQL that already means that the instance has the configuration made up of a primary instance and a standby instance.
If we want to have the maximum availability If a replica is a cross-region replica, you can perform a failover to another region; specifically, you can promote a replica to a standalone instance
Your explanation support B as the answer. With cross-region replica, you cannot do automatic failover, it has to be manually promoted. Automatic failover is achievable within the region using different zones in same region.
B.
A is not HA. B would be HA. C doesn’t make sense and neither does D. Cloud SQL is a regional service which means the failover replica is in the same region as the primary - hopefully in a different zone. Read replicas can be in different regions, but they’re read replicas not failover replicas.
B: Create one regional Cloud SQL instance in one zone with a standby ***** instance in another zone in the same region.
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
chelbsik
Highly Voted 1 year, 11 months agopico
Most Recent 1 year, 3 months agoZek
1 week, 1 day agodynamic_dba
1 year, 8 months agopk349
1 year, 11 months ago