exam questions

Exam Professional Cloud Database Engineer All Questions

View all questions & answers for the Professional Cloud Database Engineer exam

Exam Professional Cloud Database Engineer topic 1 question 96 discussion

Actual exam question from Google's Professional Cloud Database Engineer
Question #: 96
Topic #: 1
[All Professional Cloud Database Engineer Questions]

You have a Cloud SQL instance (DB-1) with two cross-region read replicas (DB-2 and DB-3). During a business continuity test, the primary instance (DB-1) was taken offline and a replica (DB-2) was promoted. The test has concluded and you want to return to the pre-test configuration. What should you do?

  • A. Bring DB-1 back online.
  • B. Delete DB-1, and re-create DB-1 as a read replica in the same region as DB-1.
  • C. Delete DB-2 so that DB-1 automatically reverts to the primary instance.
  • D. Create DB-4 as a read replica in the same region as DB-1, and promote DB-4 to primary.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
BIGQUERY_ALT_ALT
Highly Voted 8 months, 2 weeks ago
Selected Answer: D
The Option D describes the correct answer (even though it is only half part as it doesn't prevent split brain situations but It is better answer than B, A or C), The issue with answer B is It doesn't return to pretest configuration. Same Goes for A as DB-2 still the primary in this case. Option C is not recommended in case region is not available and still you end up having only Primary (DB-1) available and Not Replica (DB-2) we want pre test config which is both DB-1 and DB-2 available. PLEASE UPVOTE SO OTHERS CAN BENEFIT.
upvoted 6 times
887ad17
1 week, 3 days ago
why I cannt Delete DB-1, and re-create DB-1 ?
upvoted 1 times
...
...
Pime13
Most Recent 3 months, 1 week ago
Selected Answer: D
https://cloud.google.com/sql/docs/mysql/high-availability#failback
upvoted 1 times
...
whoosh
7 months, 3 weeks ago
Selected Answer: D
Option D is correct. Option A is false because After a failover, the instance that received the failover continues to be the primary instance, even after the original instance comes back online. After the zone or instance that experienced an outage becomes available again, the original primary instance is destroyed and recreated. Then it becomes the new standby instance. If a failover occurs in the future, the new primary will fail over to the original instance in the original zone. Reference: https://cloud.google.com/sql/docs/mysql/high-availability#failback
upvoted 1 times
...
whoosh
7 months, 3 weeks ago
Option D is correct. Option A is false because After a failover, the instance that received the failover continues to be the primary instance, even after the original instance comes back online. After the zone or instance that experienced an outage becomes available again, the original primary instance is destroyed and recreated. Then it becomes the new standby instance. If a failover occurs in the future, the new primary will fail over to the original instance in the original zone. Reference: https://cloud.google.com/sql/docs/mysql/high-availability#failback
upvoted 1 times
...
BIGQUERY_ALT_ALT
8 months, 2 weeks ago
The Option D describes the correct answer (even though it is only half part as it doesn't prevent split brain situations but It is better answer than B, A or C), The issue with answer B is It doesn't return to pretest configuration. Same Goes for A as DB-2 still the primary in this case. Option C is not recommended in case region is not available and still you end up having only Primary (DB-1) available and Not Replica (DB-2) we want pre test config which is both DB-1 and DB-2 available. PLEASE UPVOTE SO OTHERS CAN BENEFIT.
upvoted 1 times
...
kfiryo
8 months, 2 weeks ago
According to this: https://cloud.google.com/solutions/cloud-sql-mysql-disaster-recovery-complete-failover-fallback#phase_1_setting_up_an_ha_database_instance_for_dr Option D is the correct one. Once you promote a read replica it destroys the old replica flow and you need to create a new instance to promote as primary.
upvoted 2 times
...
[Removed]
8 months, 3 weeks ago
Selected Answer: D
D is correct. Read the other comments
upvoted 4 times
...
nhiguchi
9 months, 1 week ago
Selected Answer: D
D is correct.
upvoted 3 times
...
peiying0107
9 months, 3 weeks ago
Selected Answer: D
D. If you need to have the primary instance in the zone that had the outage, you can do a failback. A failback performs the same steps as the failover, only in the opposite direction, to reroute traffic back to the original instance. To perform a failback, use the procedure in Initiating failover. https://cloud.google.com/sql/docs/mysql/high-availability#failback
upvoted 3 times
...
learnazureportal
10 months, 2 weeks ago
option A- Bring DB-1 back online.
upvoted 1 times
...
fantax26
10 months, 3 weeks ago
As stated in the documentation (https://cloud.google.com/sql/docs/mysql/replication/cross-region-replicas) the cross region read replica promotion is a manual activity and it destroys all the previous replica flow. The pre-test configuration is having a primary instance on region 1 with 2 read replicas on region 2 and 3; the only way to do that is to create a replica of DB2 in region 1 (DB4), promote it as a primary instance and then create DB4 read replicas on region 2 and 3. - Answer D is the only one in that direction - Answer A is wrong because the replica flow between DB1 and DB2 has been destroyed with the promotion - Answer B is partially correct but not enough - Answer C is wrong because we are talking about read replica, not high availability, and the replica flow between DB1 and DB2 has been destroyed by the promotion
upvoted 3 times
...
njda
10 months, 4 weeks ago
A. Bring back original primary. Tabs at link below shows process for failover and then failback https://cloud.google.com/sql/docs/mysql/high-availability#failback
upvoted 1 times
...
learnazureportal
11 months ago
correct answer is A. Bring DB-1 back online. :)
upvoted 1 times
...
pico
11 months, 3 weeks ago
Selected Answer: A
A you just need to bring it back again as you can see in the Google documentation: https://cloud.google.com/sql/docs/mysql/high-availability#failback
upvoted 1 times
...
CloudKida
1 year, 1 month ago
Selected Answer: B
https://cloud.google.com/sql/docs/mysql/replication/cross-region-replicas If the primary instance (db-1) becomes unavailable, you can promote the replica in region B to become the primary. To again have additional replicas in regions A and C, delete the old instances (the former primary instance in A, and the replica in C), and create new read replicas from the new primary instance in B.
upvoted 1 times
...
blathul
1 year, 1 month ago
Selected Answer: A
A is the correct choice because it allows you to restore the original primary instance. By bringing DB-1 back online, it will automatically synchronize with the promoted replica (DB-2) and resume its role as the primary instance. This ensures that the system returns to the pre-test configuration.
upvoted 1 times
...
isribalaji
1 year, 1 month ago
Selected Answer: A
The answer is A. To return to the pre-test configuration, you need to bring DB-1 back online. This will automatically demote DB-2 and make DB-1 the primary instance again. Option B is incorrect because it would re-create DB-1 as a read replica, which is not the pre-test configuration. Option C is incorrect because deleting DB-2 would not automatically revert DB-1 to the primary instance. You would need to manually promote DB-1 to primary. Option D is incorrect because creating DB-4 as a read replica and promoting it to primary would create a new primary instance, but it would not revert DB-1 to its pre-test configuration.
upvoted 3 times
isribalaji
1 year, 1 month ago
Bringing DB-1 back online: This option involves reactivating the original primary instance (DB-1). By bringing it back online, it will resume its role as the primary instance, and any changes made to the promoted replica (DB-2) during the test will be discarded. This action restores the pre-test configuration.
upvoted 1 times
...
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago