Original study notes for cloud certification exams — Google Cloud first, more clouds in build.

Cloud SQL Study Notes

Cloud SQL is a fully managed relational database service for MySQL, PostgreSQL, and SQL Server that handles backups, patching, replication, and failover. It is the default choice for traditional applications needing a familiar relational database without managing the underlying VM. Cloud SQL scales vertically easily and offers read replicas for read scaling within and across regions.

Exam tip: For any standard MySQL or PostgreSQL migration or new app needing managed failover and backups, default to Cloud SQL unless global scale is stated.

Key facts

What the exam expects you to know

Cloud SQL vs Cloud Spanner: when to use which

Use Cloud SQL when your application needs a conventional relational database with strong consistency in a single region, familiar MySQL or PostgreSQL compatibility, and modest vertical scaling. Use Cloud Spanner when you need global distribution, horizontal scaling to very large write throughput, and multi-region strong consistency with automatic sharding. The exam distinction is scale and geography: a regional business application fits Cloud SQL, while a global inventory or financial system needing unlimited scale and five-nines availability fits Spanner. Cloud SQL is also cheaper and simpler for most standard workloads. See also the Cloud Spanner notes.

Useful gcloud commands

gcloud sql instances create my-instance --database-version=POSTGRES_15 --region=us-central1 --root-password=CHANGE_ME
gcloud sql instances patch my-instance --assign-ip --network=default
gcloud sql backups create --instance=my-instance
gcloud sql instances create my-replica --master-instance-name=my-instance --region=europe-west1

Common exam traps

Frequently asked questions

How does Cloud SQL high availability work?

In a regional high availability configuration, Cloud SQL maintains a standby instance in a different zone with synchronous replication from the primary. If the primary zone fails, automatic failover promotes the standby and traffic is redirected, minimizing downtime. This protects against zonal failures but not an entire region outage, which needs cross-region replicas and promotion planning.

What is the Cloud SQL Auth Proxy used for?

The Cloud SQL Auth Proxy creates a secure local connection to your Cloud SQL instance using IAM authentication and encrypted tunnels, without requiring authorized networks or manual SSL management. Applications connect to a local port as if the database were nearby. The exam favors the proxy or official connectors whenever secure, simplified connectivity is required.

Can Cloud SQL handle global writes?

No, Cloud SQL is designed for a primary instance in one region with read replicas elsewhere, so writes go to a single primary and cross-region write latency is not optimized. For globally distributed writes with strong consistency and horizontal scaling, Google recommends Cloud Spanner. Recognizing this limit is a frequent exam decision point for architecture questions.

Study aid disclaimer: Cloud Cert Notes is an independent educational study aid. It is not affiliated with, endorsed by, or sponsored by Google, Microsoft, Amazon, Oracle, or Alibaba. Google Cloud, Associate Cloud Engineer, and Cloud Digital Leader are trademarks of Google LLC; all other certification names and product names are trademarks of their respective owners. Always confirm service details against the official provider documentation before sitting an exam.