Courseiva

PCDE Practice Question: Manage a solution that can span multiple database technologies

A company uses Cloud SQL for MySQL to run an e-commerce application. They need to ensure that they can recover the database to any point within the last 4 days. They also want to minimize storage costs. Which configuration should they use?

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

Enable binary logging with the 'log_bin' flag and set the transaction log retention to 4 days in the backup configuration.

Point-in-time recovery (PITR) in Cloud SQL for MySQL requires binary logging, which can be enabled with the 'log_bin' flag. The transaction log retention period can be set from 1 to 7 days. For 4-day recovery, set the retention to 4 days. Option B is correct: enable binary logging and set the transaction log retention to 4 days. Option A is wrong because automated backups alone only restore to backup time, not any point. Option C is wrong because disabling automated backups is not necessary—automated backups are still needed for initial restore points, but PITR uses transaction logs. Option D is wrong because point-in-time recovery is enabled by setting binary logging and retention; there is no separate 'point_in_time_recovery' flag.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Enable automated backups with a 4-day retention schedule.

    Why it's wrong here

    Automated backups with 4-day retention allow restore to backup times only, not any point in time. PITR requires binary logs.

  • Enable binary logging with the 'log_bin' flag and set the transaction log retention to 4 days in the backup configuration.

    Why this is correct

    Correct! Binary logging enables PITR, and setting transaction log retention to 4 days allows recovery to any point within the last 4 days.

  • Enable binary logging and set the transaction log retention to 4 days. Disable automated backups.

    Why it's wrong here

    Disabling automated backups would prevent initial restore points. PITR still requires automated backups as a baseline; the transaction logs fill the gaps between backups.

  • Enable point-in-time recovery by setting the 'point_in_time_recovery' flag to true with a 4-day window.

    Why it's wrong here

    There is no separate 'point_in_time_recovery' flag in Cloud SQL for MySQL. PITR is configured by enabling binary logging and setting the transaction log retention.

About these practice questions

Courseiva writes every PCDE question from scratch — 1,446 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

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.