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 25 discussion

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

Your organization deployed a new version of a critical application that uses Cloud SQL for MySQL with high availability (HA) and binary logging enabled to store transactional information. The latest release of the application had an error that caused massive data corruption in your Cloud SQL for MySQL database. You need to minimize data loss. What should you do?

  • A. Open the Google Cloud Console, navigate to SQL > Backups, and select the last version of the automated backup before the corruption.
  • B. Reload the Cloud SQL for MySQL database using the LOAD DATA command to load data from CSV files that were used to initialize the instance.
  • C. Perform a point-in-time recovery of your Cloud SQL for MySQL database, selecting a date and time before the data was corrupted.
  • D. Fail over to the Cloud SQL for MySQL HA instance. Use that instance to recover the transactions that occurred before the corruption.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
dynamic_dba
Highly Voted 1 year, 7 months ago
C. The question specifically mentions binary logging and the binary logs are used by point-in-time recovery. D doesn’t buy you anything since the corrupt data would also be on the HA replica you fail over to. B looks like a lot of work and if the Cloud SQL instance were instantiated a while ago, option B could take a long time. A would work but the backup could have been taken a while before the corruption began. In which case restoring using that backup would wipe all the good data up to the point of corruption. The question asks for minimal data loss and the only way to ensure that is to restore to a point-in-time just before the corruption began.
upvoted 7 times
...
fff2e69
Most Recent 1 month, 3 weeks ago
Selected Answer: C
Point in time recovery helps us to go back exactly a minute before corruption. This will leave us with most of the data before the corruption
upvoted 1 times
...
PKookNN
9 months, 2 weeks ago
Selected Answer: C
unrelated but this was also a question from PCA. and the same answer C
upvoted 1 times
...
Hilab
1 year, 7 months ago
C. Perform a point-in-time recovery of your Cloud SQL for MySQL database, selecting a date and time before the data was corrupted. Performing a point-in-time recovery is the best option to minimize data loss in case of data corruption. Point-in-time recovery restores the database to a specific point in time before the data was corrupted, by replaying the binary logs that were generated since the selected time. This option is available when binary logging is enabled on Cloud SQL for MySQL with high availability. Option A, restoring from an automated backup, can lead to data loss because it might not contain all the changes made to the database after the backup was taken. Option B, reloading the database from CSV files, can be time-consuming and may lead to data loss if the files used for initialization are not up to date. Option D, failing over to the Cloud SQL for MySQL HA instance, may not help in this scenario as the data corruption is replicated to the HA instance, and it is intended to be used for high availability and not for disaster recovery.
upvoted 2 times
...
zanhsieh
1 year, 8 months ago
Selected Answer: A
A. Originally I thought it was C, but after reading mysql best practices as well as Kloudgeek link carefully I changed my answer. In Cloud SQL best-practice: https://cloud.google.com/sql/docs/mysql/best-practices "A point-in-time recovery always creates a new instance; you cannot perform a point-in-time recovery to an existing instance." Kloudgeek's link (why gcloud command use clone?): https://cloud.google.com/sql/docs/mysql/backup-recovery/pitr#perform-pitr-binlog "gcloud sql instances clone instance1 \ instance1-clone \ --bin-log-file-name=mysql-bin.0000031 \ --bin-log-position=107" It seems to me that the question does not expect Cloud SQL instance switched just because of data corruption.
upvoted 1 times
...
pk349
1 year, 10 months ago
C: Perform a point-in-time recovery of your Cloud SQL for MySQL database, selecting a date and time ***** before the data was corrupted.
upvoted 1 times
...
GCP72
1 year, 10 months ago
Selected Answer: C
C is correct answer
upvoted 1 times
...
range9005
1 year, 10 months ago
Selected Answer: C
Binary logging --> Point in Recovery
upvoted 3 times
...
fredcaram
1 year, 10 months ago
Selected Answer: C
Since it is retaining transaction log, point in time recovery is enabled and that would be the best option
upvoted 2 times
...
Kloudgeek
1 year, 10 months ago
Correct Answer C: Binary Logging enabled, with that you can identify the point of time the data was good and recover from that point time. https://cloud.google.com/sql/docs/mysql/backup-recovery/pitr#perform_the_point-in-time_recovery_using_binary_log_positions
upvoted 3 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