Google Cloud · Databases
AlloyDB for PostgreSQL
A PostgreSQL-compatible database built for demanding transactional workloads, with a columnar engine for fast analytics.
On the Google Cloud Associate Cloud Engineer exam listRelational database
What it is and what problem it solves
AlloyDB for PostgreSQL is fully PostgreSQL-compatible but separates compute and storage, adding read pool instances that scale reads, high availability by default, and a columnar engine that speeds up analytical queries on operational data. It's managed like Cloud SQL (backups, patching, monitoring) but aimed at larger, busier workloads.
When to use it
- PostgreSQL workloads that outgrow Cloud SQL's performance.
- Mixed transactional and analytical queries on the same data.
- Migrations from self-managed or commercial databases that need high throughput.
When to avoid it
- Small or simple databases where Cloud SQL is cheaper.
- Global multi-region writes: Spanner.
- MySQL or SQL Server workloads.
Cost model
What you pay for
- vCPU and memory of primary and read pool instances.
- Storage used and backups.
Where it is cost-efficient
Busy PostgreSQL workloads that would need much larger Cloud SQL instances.
Where costs grow
Small workloads that don't use its performance; idle read pool nodes.
Cost controls and common surprises
Scale read pools with demand and use committed use discounts.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
Encryption at rest and in transit, private IP access, IAM database authentication.
What you configure
Private connectivity only, least-privilege database roles, CMEK where required.
Exam cues and common confusions
- PostgreSQL-compatible, highest performance, analytics on operational data: AlloyDB.
- Standard managed PostgreSQL: Cloud SQL.
Related
Services, comparisons and patterns
- Cloud SQL · Service
- Spanner · Service
- BigQuery · Service
- Cloud SQL vs AlloyDB vs Spanner vs Firestore · Comparison
Sources
Independent study material, not affiliated with or endorsed by Google. Google Cloud and service names are trademarks of Google LLC.