Question 183 of 503
Plan and manage database infrastructureeasyMultiple ChoiceObjective-mapped

Quick Answer

The answer is that the transaction log retention period defaults to 7 days, so logs older than that are purged, making point-in-time recovery impossible beyond that window. Even though binaryLogEnabled and pointInTimeRecoveryEnabled are both true, Cloud SQL for MySQL does not automatically retain binary logs for the full backup retention period; the transaction log retention setting must be explicitly configured to match your desired recovery window. This is a classic trap on the Google Professional Cloud Database Engineer exam, testing your understanding that enabling PITR alone is insufficient—you must also set the transaction log retention duration to align with your backup retention, or you lose the ability to recover to a specific second beyond the default 7 days. A common memory tip is “PITR needs logs, not just backups”—the logs are the timeline, and if they’re purged, the timeline is cut short.

PCDE Plan and manage database infrastructure Practice Question

This PCDE practice question tests your understanding of plan and manage database infrastructure. This is a configuration task: choose the command set that satisfies every stated requirement. Small differences — like 'secret' vs 'password' or 'transport input ssh' vs 'all' — change whether the answer is correct. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Exhibit

Refer to the exhibit.

```
gcloud sql instances describe my-instance --format=json
{
  "kind": "sql#instance",
  "name": "my-instance",
  "databaseVersion": "MYSQL_8_0",
  "state": "RUNNABLE",
  "region": "us-central1",
  "settings": {
    "tier": "db-n1-standard-2",
    "activationPolicy": "ALWAYS",
    "backupConfiguration": {
      "enabled": true,
      "binaryLogEnabled": true,
      "pointInTimeRecoveryEnabled": true,
      "startTime": "07:00",
      "retentionSettings": {
        "retentionUnit": "COUNT",
        "retainedBackupsCount": 7
      }
    }
  },
  "ipAddresses": [
    {
      "ipAddress": "34.71.123.45",
      "type": "PRIMARY"
    }
  ]
}
```

A database engineer is reviewing the configuration of a Cloud SQL for MySQL instance. The backup configuration shows binaryLogEnabled and pointInTimeRecoveryEnabled set to true. However, the engineer is unable to perform a point-in-time recovery (PITR) to a specific second within the last 30 days. What is the most likely reason?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

Question 1easymultiple choice
Full question →

Exhibit

Refer to the exhibit.

```
gcloud sql instances describe my-instance --format=json
{
  "kind": "sql#instance",
  "name": "my-instance",
  "databaseVersion": "MYSQL_8_0",
  "state": "RUNNABLE",
  "region": "us-central1",
  "settings": {
    "tier": "db-n1-standard-2",
    "activationPolicy": "ALWAYS",
    "backupConfiguration": {
      "enabled": true,
      "binaryLogEnabled": true,
      "pointInTimeRecoveryEnabled": true,
      "startTime": "07:00",
      "retentionSettings": {
        "retentionUnit": "COUNT",
        "retainedBackupsCount": 7
      }
    }
  },
  "ipAddresses": [
    {
      "ipAddress": "34.71.123.45",
      "type": "PRIMARY"
    }
  ]
}
```

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

The transaction log retention period is not set, defaulting to 7 days, so logs older than that are purged.

Option B is correct because, by default, Cloud SQL for MySQL sets the transaction log retention period to 7 days when binary logging and point-in-time recovery are enabled. This means that binary logs older than 7 days are automatically purged, making it impossible to perform a PITR to a specific second beyond that window, even if the backup retention is set to 30 days. To recover to any point within the last 30 days, the transaction log retention period must be explicitly configured to match the backup retention period.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Binary logging is not enabled for all databases on the instance.

    Why it's wrong here

    Binary logging is enabled at the instance level; the output shows binaryLogEnabled: true.

  • The transaction log retention period is not set, defaulting to 7 days, so logs older than that are purged.

    Why this is correct

    PITR requires transaction logs to be retained for the desired recovery window; the default is 7 days.

    Clue confirmation

    The clue word "most likely" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • The instance is not in a runnable state.

    Why it's wrong here

    The state is RUNNABLE, so the instance is operational.

  • The database version is MySQL 8.0, which does not support PITR.

    Why it's wrong here

    MySQL 8.0 supports PITR when binary logging is enabled.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Google Cloud often tests the misconception that enabling binary logging and point-in-time recovery automatically allows recovery to any point within the backup retention period, ignoring the separate transaction log retention default of 7 days.

Trap categories for this question

  • Command / output trap

    Binary logging is enabled at the instance level; the output shows binaryLogEnabled: true.

Detailed technical explanation

How to think about this question

Cloud SQL for MySQL uses the `expire_logs_days` system variable (or `binlog_expire_logs_seconds` in MySQL 8.0+) to control how long binary logs are retained. By default, this value is 7 days, meaning logs older than 7 days are automatically deleted. For PITR to work across a 30-day window, this retention period must be increased to at least 30 days via the `transactionLogRetentionDays` flag in Cloud SQL. Additionally, the backup retention period and transaction log retention period are independent settings; both must be configured to cover the desired recovery window.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related PCDE practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free PCDE practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this PCDE question test?

Plan and manage database infrastructure — This question tests Plan and manage database infrastructure — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: The transaction log retention period is not set, defaulting to 7 days, so logs older than that are purged. — Option B is correct because, by default, Cloud SQL for MySQL sets the transaction log retention period to 7 days when binary logging and point-in-time recovery are enabled. This means that binary logs older than 7 days are automatically purged, making it impossible to perform a PITR to a specific second beyond that window, even if the backup retention is set to 30 days. To recover to any point within the last 30 days, the transaction log retention period must be explicitly configured to match the backup retention period.

What should I do if I get this PCDE question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 30, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.