Question

Difficulty: Very hardManaging Storage and Database Solutions

Your organization operates a mission-critical Cloud SQL for MySQL database instance supporting an enterprise order-processing application. During an operational readiness review, the team identifies two operational requirements: the database must support Point-in-Time Recovery (PITR) without risking disk space exhaustion from unmanaged logs, and system maintenance reboots must be restricted to weekend off-peak hours rather than occurring at default provider times. Which TWO configuration actions should you perform on the Cloud SQL instance to satisfy these requirements?

  1. Enable binary logging on the Cloud SQL instance and configure an automated binary log retention period to manage storage consumption.Answer
  2. Configure a customized maintenance window in the instance settings specifying the preferred day of the week and time range for updates.Answer
  3. C
    Migrate the order-processing transactional data to Cloud Bigtable to obtain automatic native point-in-time recovery and relational query support.
  4. D
    Attach a Cloud Storage Object Lifecycle Management policy directly to the instance persistent disk to transition binary logs to Nearline storage after 30 days.

Answer

The two correct actions are enabling binary logging with log retention management to support Point-in-Time Recovery safely, and defining a maintenance window to restrict automated updates to designated off-peak hours.
Enabling binary logging on Cloud SQL for MySQL is mandatory for Point-in-Time Recovery (PITR), and establishing a log retention policy prevents storage exhaustion. Setting a maintenance window guarantees that routine maintenance reboots take place during administrative off-peak windows.

Step-by-Step Solution

1
Enable binary logging and retention for MySQL PITR
Binary logging enables transaction replay required for Point-in-Time Recovery, while automated retention prevents binary logs from overwhelming persistent disk capacity.
Cloud SQL for MySQL relies on binary logs for PITR; unmanaged logs will continuously consume disk space until managed.
2
Define maintenance window schedule
Configure the specific day and hour window for Cloud SQL operational maintenance updates.
Without a explicit maintenance window, Google Cloud applies maintenance during default maintenance slots, which may collide with peak application usage.

Key Concept

Cloud SQL Operations: Binary Logging, Log Retention, and Maintenance Scheduling
Rate this question