Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Google Cloud · Associate Data Practitioner

Availability and recovery

Associate Data Practitioner · Lesson 15 of 16 · 1:46:49

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Prepare for the Google Cloud Associate Data Practitioner exam, on the official exam guide. In this lesson: location types and redundancy, soft delete and object versioning, Cloud SQL high availability, backups, and point-in-time recovery, and replicas for disaster recovery. Includes three original practice questions, with Cymbal Energy, a fictional electricity and gas supplier, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

What could go wrong

The outage map and the customer accounts database at Cymbal Energy must stay up, even when a zone of a data center fails. If a whole region goes down, the meter files and the accounts must come back quickly, somewhere else. And last week, an engineer deleted a folder of files by mistake.

Location types and redundancy

Redundancy starts with where the data is stored. A regional bucket stores data in at least two zones of one region, so it survives the loss of a zone, with low latency for services in that region. Dual-region and multi-region buckets store data in at least two separate geographic places, so the data survives the loss of a whole region: with a dual-region, you choose the two regions, and with a multi-region, Google chooses the data centers within a large area, like the United States. Turbo replication, on dual-regions, copies new objects to the second region within fifteen minutes, for a stricter recovery point objective. And a single zone is only for Rapid buckets, built for the highest performance, not for redundancy.

Soft delete and versioning

Redundancy protects against outages, not against mistakes, like a deleted folder. Soft delete keeps deleted objects for a retention period, seven days by default, during which you can restore them. Object versioning keeps older versions when an object is replaced or deleted, so a bad overwrite can be undone, and lifecycle rules can remove old versions after a while. And for a copy in another bucket, cross-bucket replication, or Storage Transfer Service, copies objects to a bucket in another location.

Cloud SQL availability and backups

For Cloud SQL, high availability means a regional instance: a primary in one zone, and a standby in another zone of the same region. Every write is copied synchronously to the disks in both zones before it is confirmed, so when the zone or the instance fails, the standby becomes the new primary, in a failover, with no data lost. Backups protect against other problems, like a bad update: Cloud SQL takes automated backups every day, and on-demand backups when you ask, and enhanced backups go into a backup vault, managed by Backup and DR, that nobody can alter or delete early. Point-in-time recovery uses the log of every change, like the binary logs of MySQL, to restore the database as it was at a precise moment, into a new instance, a clone. And the backups of a deleted instance are kept for four days, unless you choose to retain them longer.

Replicas and disaster recovery

Read replicas are copies of a Cloud SQL instance, updated asynchronously, that serve read traffic, like reports, without loading the primary. A cross-region read replica also prepares for disaster: if the whole region fails, you promote the replica to become the new primary, in another region. Because replication is asynchronous, the replica can lag a little, so the most recent writes may be lost, which means a recovery point objective that is not zero. So choose by need: high availability for a zone failure, backups and point-in-time recovery for mistakes, and a cross-region replica for the loss of a region.

Recap

Let's recap. Regional buckets survive a zone failure, while dual-region and multi-region buckets survive the loss of a region, and turbo replication copies new objects within fifteen minutes. Soft delete and object versioning protect against mistakes, like deletions and bad overwrites. A Cloud SQL high availability instance fails over to a standby in another zone, with no data lost. Backups, including enhanced backups in a vault, and point-in-time recovery undo mistakes, into a new instance. And a cross-region read replica, promoted to primary, survives the loss of a region.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Yesterday, an engineer deleted a folder of meter files by mistake. The bucket uses the default settings. What is the fastest way to get the files back?

    • Copy them back from the turbo replica
    • Ask Google support to recover them
    • Restore the soft-deleted objects
    • Promote a read replica of the bucket
    Show the answer

    Restore the soft-deleted objects

    Soft delete keeps deleted objects for seven days by default, so the files can simply be restored. “Copy them back from the turbo replica” would not help, because the deletion is replicated too. “Ask Google support to recover them” is not how deleted objects come back. And “Promote a read replica of the bucket” only applies to Cloud SQL databases.

  2. At 10:15, a faulty script deleted thousands of customer rows in the Cloud SQL database. The team wants the data exactly as it was at 10:14. What should they use?

    • A failover to the standby instance
    • Point-in-time recovery to 10:14
    • Last night’s automated backup
    • Promote the cross-region read replica
    Show the answer

    Point-in-time recovery to 10:14

    Point-in-time recovery restores the database as it was at ten fourteen, into a new instance. “A failover to the standby instance” would only switch to a standby that already holds the same deletions. “Last night’s automated backup” would lose every change made since last night. And “Promote the cross-region read replica” would also bring back a replica that received the deletions.

  3. The accounts database already has high availability. It must also come back within an hour if an entire Google Cloud region is lost. What should be added?

    • A cross-region read replica to promote
    • More backups, kept in the same region
    • A larger machine type
    • Turbo replication on the instance
    Show the answer

    A cross-region read replica to promote

    A cross-region read replica can be promoted to primary in another region, when the first one is lost. “More backups, kept in the same region” would keep every backup in the region that failed. “A larger machine type” only makes the instance faster, in the same region. And “Turbo replication on the instance” only applies to dual-region buckets, not to Cloud SQL.