The tasks in exam guide v1.2: design the database, run it across engines, migrate it with a fallback, and deploy a highly available configuration you can prove.
Exam guide v1.2Four sectionsReviewed November 8, 2026
How to read these notes: Start with the recovery objective and the access pattern, then the service. The tasks below follow the linked v1.2 guide. Service behavior is qualified with current documentation and concrete examples. New to the exam? Start with the overview. Pipelines and warehouses live on Professional Data Engineer. Whole-solution design lives on Professional Cloud Architect.
Section 1: Size the database, then place it
Capacity planning starts from measured workload and a stated future, not from the largest machine on the price list. Record CPU, memory, storage growth, I/O, connection count, and the read-to-write ratio. A machine type changes compute. A storage type changes I/O and cost. High availability and every read replica add capacity you pay for even when they are idle. Compare configurations on those facts.
Zonal placement is one zone. Regional high availability for Cloud SQL keeps a standby in another zone and fails over to current data. Multi-regional placement, including a Spanner multi-region configuration or a cross-region replica, survives a regional loss and costs more latency or lag. A maintenance window and notification policy belong to the availability requirement. They do not replace a failover design. Put the window where the application can reconnect.
Recovery point and recovery time decide which of those placements is enough. A checkout database has a one-minute RPO and must survive a zone loss. Regional high availability replicates committed writes to the standby, so a zone failover can meet that RPO. The same database also has a cross-region read replica whose measured lag is six minutes. Promoting that replica recovers the region and loses about six minutes, so it misses the one-minute RPO. Adding the replica without closing the lag does not satisfy the objective. Either the business accepts a six-minute RPO for regional loss, or the design needs a replication method whose lag stays inside one minute.
Planning calculations you should be able to explain
Storage runway: keep units consistent, forecast growth, then add headroom. A database using 2 TiB is 2,048 GiB. Nine months at 120 GiB per month adds 1,080 GiB. The subtotal is 3,128 GiB; 20 percent headroom makes 3,753.6 GiB, or about 3.7 TiB. This is a capacity floor, not proof that the chosen storage also meets IOPS, throughput, backup, or service-limit requirements.
Transfer time: divide bits by bits per second, then add protocol overhead, catch-up, and validation. Four decimal terabytes is about 32 terabits. At an observed 800 Mb/s, the ideal initial copy takes 40,000 seconds, about 11.1 hours. If the source changes during those hours, cutover waits for the change backlog too. Use measured effective throughput rather than the circuit's advertised maximum.
Restore time: recovered bytes divided by observed restore throughput is only the first part of RTO. A 3 TB restore at 200 GB per hour takes about 15 hours before database startup, integrity checks, DNS or connection changes, and an application query. If the RTO is four hours, a faster recovery copy or promotion path is required; a green backup job does not change the arithmetic.
Connection budget: reserve connections for operations and failover before dividing the rest across maximum application scale. With a 500-connection limit and a reserve of 100, 30 application instances share 400. The safe integer cap is 13 each, for 390 total. Fourteen each would permit 420 and consume the reserve. For Cloud SQL Managed Connection Pooling, remember that pool sizes are applied per pooler and per database-and-user pair, so multiply the configured pool size by the number of poolers before comparing it with the server budget.
Connectivity, keys, poolers, and audit
Private connectivity keeps the database off the public internet. Cloud SQL can use Private Service Access, which allocates an address range and a service-networking connection, or Private Service Connect, which exposes an endpoint in the consumer network. Authorized networks are a public-IP allow list. An Auth Proxy or a language connector can present IAM authentication without handing out a long-lived database password. The proxy is a connection path. It is not a backup.
A customer-managed encryption key in Cloud KMS puts key control with you. The key location has to be compatible with the database location. Disabling or destroying the key can make the database unreadable, so key management is also an availability decision. IAM still decides who can call the API. A database user, password, or IAM database authentication decides who can log in to the engine. One control does not replace the other.
A session pooler exists because application instances can open more connections than the database allows. Transaction-mode pooling multiplexes many clients onto fewer server connections and does not preserve one server session between transactions. LISTEN, session-level advisory locks, and session-scoped temporary state are incompatible. Protocol-level named prepared statements need explicit pooler support and sizing; Cloud SQL Managed Connection Pooling exposes a max_prepared_statements setting instead of making every prepared statement fail. Use transaction mode only for request paths that do not depend on stable session state. Keep session pooling or direct connections where the application does. Justify the mode and the per-pooler connection budget from the application, not from a default template.
Admin Activity audit logs record control-plane changes and are on by default. Data Access logs that record data reads are a separate choice, often off until you enable them, and they can be large. An auditing requirement names which of those logs, and the retention, the regulator asked for. An organization policy can block a public IP or restrict resource locations. It does not move an instance that already exists.
Choose the engine from the data shape
Engine choices for the decisions in exam guide v1.2.
Requirement
Service
Design note
Regional MySQL, PostgreSQL, or SQL Server
Cloud SQL
Regional HA for zone loss. Cross-region read replicas for regional recovery. Read replicas lag.
PostgreSQL with large operational reads or scans
AlloyDB for PostgreSQL
Writes go to the primary. Read pools scale reads. A read pool needs at least two nodes to be highly available, and it does not replace primary HA. The columnar engine accelerates scans on this database.
Relational transactions that scale out
Spanner
Strong consistency. Regional or multi-region configuration. Avoid monotonic keys that hotspot one split.
High-throughput access by key
Bigtable
Design the row key for the query. SSD for low-latency random reads. HDD for large sequential scans. App profiles choose routing.
Document reads and writes from the application
Firestore
Native mode and Datastore mode are chosen for the database. Compound queries need the matching index. Export analytics elsewhere.
A cache in front of the system of record
Memorystore
Redis or Valkey HA is cache availability. It is not the ledger and not a point-in-time history of the database.
Self-managed or a partner engine
Compute Engine, Bare Metal, or a partner service
You keep patching, backups, and failover. Choose it when the managed service cannot run the engine or the compliance constraint.
SQL fits transactions, constraints, and joins. NoSQL fits the access pattern you model: a document, a wide row, or a cache. Unstructured objects belong in Cloud Storage, not in a relational row, unless the database is only the index. Vector data supports similarity for generative AI. Store embeddings beside the operational row when the answer must match the current tenant record, and filter by tenant before you rank similarity. A similarity score does not authorize the caller. Analytical totals still belong in BigQuery. Federated query and scheduled export are ways to span engines. They are not a reason to make BigQuery the checkout system of record.
Cost is comparative. Cloud SQL high availability and each replica add instance cost. Spanner bills processing units or nodes plus storage, and a multi-region configuration costs more than a regional one. One thousand processing units is one node. Extra nodes do not fix a hotspot caused by a key. Bigtable bills nodes per cluster, and SSD and HDD are different performance and price points. Include backups, cross-region traffic, and the idle standby in the comparison.
Regulatory design is placement, encryption, access, and audit together. An organization policy that restricts locations constrains new resources. It does not prove that every replica, backup, export, and support path is inside the rule. Read the dependency list: the application, the pooler, the key, the migration job, and the analytics export can all land outside the database region you chose.
Section 2: Operate across engines
IAM and database users answer different questions. IAM allows a principal to call a Google Cloud API, such as creating an instance or connecting with IAM database authentication. The database still has users, roles, and grants. A built-in account with a password in a repository is a long-lived secret. Prefer IAM database authentication where the engine supports it, and keep the database privileges least-privilege either way.
A slow query needs a cause. Query Insights on Cloud SQL and AlloyDB shows the statement, lock time, and index advice. A missing index is a plan problem. A lock is a concurrency problem: a long transaction, an unindexed foreign key check, or a transaction that reads more rows than it needs. Adding a larger machine hides either symptom until the workload grows. Spanner lock contention shows up as aborted transactions and hot splits. Firestore returns a failed precondition when a query needs a composite index that does not exist. Creating every suggested index without a query can also slow writes, so add the index the query needs.
Vitals are CPU, memory, storage, I/O, replication lag, and connection count. Alert on the signal a person will act on: backup failure, storage approaching the limit, replication lag beyond the RPO, and failover. A quota error needs a quota change or less concurrency. Restarting the client in a loop spends the same quota faster. Data Access audit logs help an investigation only if they were enabled before the event.
A backup or a point-in-time recovery window is history. Cloud SQL point-in-time recovery uses retained transaction logs plus a usable backup: PostgreSQL Enterprise supports 1 to 7 log days and Enterprise Plus 1 to 35, while backup retention must cover the logs. Spanner point-in-time recovery retains one hour by default and can be configured up to seven days; increasing the window can increase storage and compute use, and extending it does not backfill older versions. Firestore with PITR enabled retains seven days, with any timestamp in the past hour and one-minute snapshots beyond the hour; with PITR disabled, versions are available for one hour. Scheduled backups cover longer Firestore retention. AlloyDB continuous backup supports recovery inside its configured window. An export to Cloud Storage is a portable logical copy and a useful schedule. It is not the same control as a physical backup, and a successful export job is not a restore test. Retention is how long you keep the copy. A replica does not implement retention of yesterday.
Scale up when one node needs more CPU, memory, or I/O and the engine supports a larger machine. Scale out when the engine can add nodes, read pools, or read replicas for the access pattern. Cloud SQL read replicas and AlloyDB read pools take read traffic. They do not accept the writes that must stay on the primary. Spanner scales by processing units, after the schema spreads the load. Revisit cost after every scale event. A committed-use discount fits a shape you have already measured.
Maintenance is index work, exports, and version upgrades on the managed schedule. Put upgrades in the maintenance window and confirm the application still connects after a minor version change. Major version upgrades and flag changes need a rehearsal. An SLA or SLO is a target you measure, including availability after failover and lag against the RPO. A dashboard that only shows CPU can be green while backups have failed for a week.
Section 3: Migrate with a fallback
Name the downtime before you name the tool. An extended outage can use a dump and load. Near-zero downtime uses continuous replication, a short write pause, a final catch-up, and a connection cutover. Zero downtime is a business claim you only make when the replication and the application cutover actually support it. Fallback is a planned path back to the source, not a hope that the old server is still powered on.
Database Migration Service migrates supported database engines into Google Cloud databases and can keep continuous replication until cutover. Use it for a database-to-database move, including sources outside Google Cloud. Datastream captures change for supported destinations such as BigQuery, Cloud Storage, and some databases. Use it when another system needs the change stream. A one-time export is the extended-outage tool. Transfer Appliance is for bulk files when the network cannot carry them. It is not a logical database replication product.
Reverse replication copies changes from Google Cloud back to the source so a failed cutover can return. Set it up and test it before you call the migration finished. Stop it on purpose when the fallback window closes, or the source and the new primary will diverge in a way you did not plan.
DDL and DML conversion is part of the plan. Sequences and identity columns must continue above the highest migrated key, or the first new insert collides. Oracle treats an empty string as null, while PostgreSQL preserves an empty string; predicates, uniqueness, and new application writes can therefore change after migration unless the conversion defines one meaning. Stored procedures, packages, and vendor-specific types need a rewrite or a compatibility review. Character sets, time zones, and collations change sort order and uniqueness. Validate row counts, checksums of critical tables, business totals, delete propagation, sequence values, and the application against a production-sized copy. A migration job that reports success can still leave a semantic difference or a broken fallback.
Section 4: Deploy the available database and test it
Provision the availability configuration the design named. For Cloud SQL, regional availability creates the standby. For AlloyDB, enable the highly available primary and add a read pool only for read scale; a read pool with two or more nodes is highly available, while a one-node pool is not. For Spanner, choose the regional or multi-region instance configuration and enough processing units for the baseline, then grow. For Bigtable, create the clusters and app profiles that match the consistency you promised. Single-cluster routing can provide read-your-writes when all relevant app profiles use the same cluster; multi-cluster failover can expose stale data, and row-affinity improves locality without guaranteeing consistency through a failover. Automation with infrastructure as code makes that shape repeatable. A click-built production instance that nobody can rebuild is not the control.
Test high availability on purpose. Trigger a Cloud SQL failover, or the equivalent for the engine, during a window you control. Confirm the application reconnects, the pool drops dead connections, and the recovery time meets the objective. A test that only pings the load balancer IP misses a pool full of broken sessions. Disaster recovery is a different test: promote the cross-region replica or restore into the recovery region, point clients at it, and measure the data loss. Write down the RPO you observed.
Multi-region replication and read replicas answer different traffic. Spanner multi-region replication serves the consistency model of that configuration, and stale reads can be local while strong reads follow the leader placement. Cloud SQL and AlloyDB cross-region replicas are for regional survival and for reads that tolerate lag. Scale read replicas or AlloyDB read pools when the primary's read CPU is the bottleneck. Do not send writes to them. Monitor replication lag, failover events, backup age, and storage. An available primary with a replica hours behind is a failed regional RPO even though the primary looks healthy.
Decision exercises
These original exercises add explicit assumptions so you can practice the tradeoff. They are not official exam questions. Write the recommendation and the option you reject before you open the reasoning.
1. A six-minute replica and a one-minute recovery point
Orders run on Cloud SQL for PostgreSQL in a regional high-availability configuration. A cross-region read replica shows six minutes of lag. The business RPO is one minute for both a zone loss and a regional loss. The team wants to mark the regional objective complete because the replica exists.
Reveal reasoning
Regional high availability can meet a one-minute RPO for a zone loss because committed transactions reach the standby. Promoting the cross-region replica recovers from a regional loss and can lose about six minutes, which misses the RPO. Close the lag and prove it, or change the accepted regional RPO. Creating the replica is not the same as meeting the number.
Verification evidence: Record replica lag during the peak hour and during a planned promotion test. The observed loss has to stay inside one minute before you claim the regional objective.
Changed assumption: If the business accepts fifteen minutes of data loss for a regional disaster, the six-minute replica can fit, and the remaining work is the promotion runbook and client cutover.
2. New Spanner orders land on one split
A Spanner table uses the key timestamp then order_id. Checkout latency climbs every sale, and CPU on the instance is moderate. The proposal is to double the node count.
Reveal reasoning
Monotonic timestamps concentrate new writes on one split. Extra nodes add capacity the hot split cannot use until the key spreads the writes. Put a high-cardinality prefix first, such as a customer or a hashed shard, when the read pattern can use it. Then size processing units from the spread load. One thousand processing units is one node. The key design still comes first.
Verification evidence: Inspect split statistics and latency by key range before and after the key change. A healthy result shows writes across splits, not a single hot key at a higher node count.
Changed assumption: If every read must scan the newest orders in timestamp order, design a secondary access path instead of keeping the hot key as the only primary key.
3. The pooler made advisory locks disappear
Two hundred Cloud Run instances open ten connections each. The PostgreSQL instance allows far fewer connections, so the team enables transaction-mode pooling. A nightly job that takes a session-level advisory lock and uses session-scoped temporary state now runs on different server sessions.
Reveal reasoning
Transaction pooling multiplexes clients and does not preserve one server session between transactions. Keep this job on session pooling or a direct connection, and pool only the short request path that does not need stable session state. Named prepared statements are a separate capability: verify and size the pooler's explicit support instead of assuming every prepared statement works or fails.
Verification evidence: Run the locking job through the intended connection path in a test database and confirm the lock and temporary state stay on one session. Compare connection count on the server before and after pooling the request path.
Changed assumption: If the application can replace session locks and temporary state with transaction-safe coordination, transaction pooling can fit the rewritten job.
4. The first order after cutover collides
Database Migration Service has replicated an Oracle order table into AlloyDB. Row counts match. The cutover succeeds, and the first insert fails on a primary-key collision. There is no reverse replication.
Reveal reasoning
Set the sequence or identity to a value above the migrated maximum before you open writes. Matching row counts does not prove that. Also start reverse replication before cutover so a bad release can return to the source. Keep the source read-only or stopped according to the plan until that window ends.
Verification evidence: In a dress rehearsal, insert one row immediately after cutover and confirm the new key is greater than every migrated key. Fail back once and confirm the source receives the new row.
Changed assumption: If the business allows an extended outage and no fallback, a dump and load can replace continuous replication, and the sequence reset is still required.
5. PostgreSQL reads are the bottleneck
A Cloud SQL for PostgreSQL primary spends its CPU on a mix of checkout transactions and same-table analytical scans. The team proposes Spanner because it scales, or BigQuery as the new system of record.
Reveal reasoning
The engine is already PostgreSQL, and the pain is read and scan load on the operational database. AlloyDB keeps PostgreSQL compatibility, sends writes to the primary, scales reads with a read pool, and can use the columnar engine for the scans. Spanner is a different SQL dialect and operational model. BigQuery fits a replica of the analytical workload, not the checkout transactions.
Verification evidence: Compare a representative checkout transaction and the heavy scan on AlloyDB. Confirm writes still land on the primary and the scan CPU moves off that path.
Changed assumption: If the requirement becomes global strong consistency and horizontal write scale, evaluate Spanner and budget a schema and SQL migration.
6. Failover kept the bad delete
At 10:14 an operator deletes the current price list. At 10:20 the team fails over the regional Cloud SQL instance and also reads from a replica. Both still show the delete. They expected failover to act as undo.
Reveal reasoning
The standby and the replica follow current data, including the delete. Restore to a point before 10:14 with point-in-time recovery, or restore a backup taken before the delete. Then reconcile any orders that arrived after the bad statement. Practice that restore. A successful failover test proves zone loss, not history.
Verification evidence: Restore to a test instance at 10:13 and confirm the deleted prices are back. Record how long the restore took against the RTO.
Changed assumption: If the delete is legitimate and the symptom is a zone outage, failover is the right control and a restore would bring the prices back incorrectly.
7. The Firestore query has no index
A mobile client queries orders by customer and status, sorted by creation time. The query fails. Someone suggests exporting the whole database to BigQuery for every screen render.
Reveal reasoning
That compound query needs a composite index in Firestore Native mode. Create the index that matches the fields and the sort. Use a BigQuery export or a pipeline for analytical reports, not for the latency path of one customer's orders. A missing index is not a reason to change the system of record.
Verification evidence: Run the client query after the index builds and confirm it returns the fixture orders. Confirm the analytical job reads the export, not the mobile client.
Changed assumption: If the database is in Datastore mode, use the index and API model of that mode. You do not flip a Native database to Datastore mode in place.
8. The encryption key lives in another continent
A regional database must stay in europe-west1 under a customer-managed key. The team creates the key in us-central1 because that project already has a key ring. They also turn on every Data Access log in production without a retention plan.
Reveal reasoning
The Cloud KMS key has to be in a location compatible with the database, so create or choose a key the europe-west1 instance can use. A key in us-central1 does not meet that placement. Enable the Data Access audit stream the requirement names, sample its volume, and set retention. Turning on every read log can overwhelm the logging sink and still miss the question the auditor asked.
Verification evidence: Attempt the instance configuration with the intended key and confirm the location is accepted. Query a test row and find the expected audit entry, then confirm the sink retention matches the policy.
Changed assumption: If the control is only encryption in transit and Google-managed encryption at rest, a customer-managed key is optional. The location rule for the database itself still stands.
9. Storage growth needs a number, not a larger shape
A database uses 2 TiB and grows by 120 GiB each month. The plan needs nine months of runway and 20 percent headroom. A reviewer proposes 3 TiB because the current database is smaller than that.
Reveal reasoning
Convert to GiB before adding: 2 TiB is 2,048 GiB. Nine months adds 1,080 GiB, so the forecast is 3,128 GiB. Headroom makes it 3,753.6 GiB, about 3.7 TiB. Three TiB is below the forecast before headroom. Then verify that the service limit and storage performance fit; capacity arithmetic does not prove I/O performance.
Verification evidence: Compare monthly storage measurements with the 120 GiB assumption and alert well before the planned boundary. Record the forecast, chosen capacity, and remaining headroom in the design review.
Changed assumption: If lifecycle or partition cleanup removes 80 GiB each month, net growth is 40 GiB. Recalculate with measured net growth rather than reusing the original answer.
10. The network estimate omits catch-up
A 4 TB source can sustain 800 Mb/s of effective migration throughput. The team reserves a ten-hour window for the full copy and plans to open the destination immediately afterward.
Reveal reasoning
Four decimal terabytes is about 32 terabits. At 0.8 gigabits per second, the ideal copy is 40,000 seconds, about 11.1 hours, already longer than the window. Real work also includes overhead, accumulated-change catch-up, validation, and client cutover. Start the initial copy while the source is online, measure lag, and reserve the outage only for the final write pause and cutover.
Verification evidence: Measure effective throughput and change-generation rate in a rehearsal. Record the initial-copy duration, the peak backlog, catch-up time, and final application outage separately.
Changed assumption: If the source can be offline for a full day and no changes occur during the copy, a one-time migration can fit, but the 11.1-hour ideal still needs overhead and validation margin.
11. A green backup misses the four-hour objective
A 3 TB restore runs at an observed 200 GB per hour. The recovery-time objective for a bad deployment is four hours. Backup jobs are green, and the runbook starts client validation after the restore finishes.
Reveal reasoning
The data transfer alone is about 15 hours, before startup, integrity checks, credentials, connection changes, and a successful application query. This path cannot meet a four-hour RTO. Use a faster recovery copy or a promotion path that preserves the required RPO, and measure the full application recovery rather than the backup job.
Verification evidence: Time a production-sized restore through the first successful application transaction. Keep separate timestamps for restore, validation, connection cutover, and service acceptance.
Changed assumption: If the four-hour target applies only to a zone outage, regional HA can be the fast path while the 15-hour restore remains the documented logical-corruption path with its own longer RTO.
12. Autoscaling spends the failover reserve
A database accepts 500 server connections. Operations and failover need 100 reserved. The service can scale to 30 instances, and the proposed pool size is 14 connections per instance.
Reveal reasoning
The application can use 400 connections. Four hundred divided by 30 is 13.33, so the safe whole-number cap is 13, for 390 total. Fourteen each allows 420 and consumes the reserve. If a managed pool has multiple poolers, also multiply the per-pooler pool size by the pooler count and by active database-and-user pairs before comparing it with max_connections.
Verification evidence: Load test at maximum instance count during a failover rehearsal. Confirm server connections stay below 400 for the application and that administrative access still succeeds.
Changed assumption: If autoscaling is capped at 20 instances, 20 connections each uses the same 400-connection application budget, but burst behavior and multiple pools still need measurement.
Verify the behavior, not only the product name
Technical boundaries reviewed November 8, 2026. Use these primary references to check the applicable configuration, supported modes, and limitations before a real implementation. The decision exercises are independent fictional examples.
The English Professional Cloud Database Engineer exam guide titled v1.2, reviewed from the certification page on November 8, 2026. Use the linked guide for exam scope and current service documentation for implementation behavior, and confirm the live guide before booking.
How do Cloud SQL high availability, a read replica, and point-in-time recovery differ?
Regional high availability fails over to a current standby in another zone. A read replica is an asynchronous copy you can read, and promoting a cross-region replica is a regional recovery whose recovery point is the lag. Point-in-time recovery restores an earlier moment. Failover and a replica both keep a bad committed write.
When is Spanner a better fit than Cloud SQL?
When relational transactions must scale horizontally or across regions with strong consistency. A modest regional MySQL, PostgreSQL, or SQL Server workload can stay on Cloud SQL. A PostgreSQL workload that needs larger operational reads can fit AlloyDB without becoming Spanner.
Continue the Professional Cloud Database Engineer study path
Certicab provides general informational, educational, and convenience resources. Learning materials can contain errors or become outdated. Check the current exam guide and official documentation before relying on a technical recommendation. Practice only in environments you own or are authorized to use, and do not share credentials or confidential exam material. Study resources are independent and do not guarantee exam success or imply certification-provider endorsement. Google Cloud and related marks are trademarks of Google LLC. Certicab is not affiliated with, endorsed by, or sponsored by Google.