Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Google Professional Cloud Database Engineer Professional-Cloud-Database-Engineer Exam Questions

Last updated: · 14 practice questions with answers and explanations

Page: 1 / 15 Total 141 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Design innovative, scalable, and highly available cloud database solutions

Skill tested: Sizes Cloud SQL compute and storage using workload metrics and growth projections.

A retailer is moving a PostgreSQL database to Cloud SQL. Its current VM averages 35% CPU but reaches 95% during nightly order reconciliation; the workload is sensitive to query latency during that period. Storage grows by 12% monthly, and the database currently uses 1.2 TB. The business forecasts a doubling of transaction volume within a year. The team wants predictable performance without paying for large idle capacity throughout the day. What is the best initial sizing approach?

Correct Answer: D. Select a machine using peak CPU and memory observations, benchmark the reconciliation workload, and provision SSD storage with capacity and growth headroom; revisit sizing from Cloud Monitoring metrics.
Explanation:

Peak workload behavior, not average CPU alone, drives the initial compute choice when reconciliation latency matters. Benchmarking the critical workload and observing CPU, memory, and I/O after deployment helps avoid both under-sizing and unnecessary oversizing. SSD storage is appropriate for latency-sensitive database access, and projected growth requires storage headroom and ongoing monitoring. Average-based HDD sizing risks poor performance at peak; choosing the largest configuration wastes budget and still does not eliminate validation; and automatic storage increases do not replace capacity monitoring or growth planning.

Question 2

New Multiple answers

Topic: Design innovative, scalable, and highly available cloud database solutions

Skill tested: Chooses Cloud SQL availability and recovery measures aligned to regional failure requirements.

A payment application uses a Cloud SQL for MySQL instance in one region. It must continue operating through a zonal failure with a short recovery time, and the organization also requires a recovery path if the entire region becomes unavailable. Writes must remain anchored to one primary database, and the team accepts that regional disaster recovery may require manual promotion and some recovery delay. Select TWO actions that best meet these requirements.

Correct Answer: A. Enable regional high availability for the primary instance so Cloud SQL can fail over between zones in its region.; D. Create a cross-region read replica and document and test promotion and application reconnection for a regional disaster.
Explanation:

Regional high availability maintains a standby in another zone of the same region and supports failover for zonal outages. It does not by itself provide regional disaster recovery. A cross-region read replica supplies a separate regional recovery target, but promotion and application redirection must be planned and tested, and replication is asynchronous. Two writable instances create conflicting write paths; backups alone generally require restore time rather than HA failover; and Cloud SQL regional HA is a same-region configuration, not a cross-region standby.

Question 3

New Single answer

Topic: Design innovative, scalable, and highly available cloud database solutions

Skill tested: Configures private Cloud SQL connectivity and least-privilege application access.

A company runs a service on Compute Engine instances in a private VPC and is deploying Cloud SQL for PostgreSQL. Policy prohibits public IP addresses on databases. The application must connect over private IP, while operators need to manage the database without distributing a shared database password to application hosts. The team wants to keep network reachability and database authorization as separate controls. Which design is most appropriate?

Correct Answer: A. Enable a private IP address using Private Services Access, route application traffic through the VPC, and use Cloud SQL IAM database authentication where supported with narrowly scoped IAM permissions.
Explanation:

Private Services Access provides a private address for Cloud SQL reachable from the VPC, satisfying the no-public-IP policy. IAM database authentication, when configured and supported for the selected engine and client, avoids distributing a long-lived shared password and ties authentication to an identity. IAM permissions still need least-privilege configuration, and database roles control what authenticated users can do inside the database. A public IP violates policy; Cloud SQL Admin is overly broad and does not automatically grant SQL privileges; and the Auth Proxy does not make a public-IP instance private.

Question 4

New Single answer

Topic: Design innovative, scalable, and highly available cloud database solutions

Skill tested: Distinguishes Cloud SQL operational auditing from application-level audit requirements.

A regulated organization runs Cloud SQL for PostgreSQL and must produce an audit trail of database activity, including access to sensitive tables, for compliance investigations. Administrators currently rely on Cloud Audit Logs and assume these logs capture every SQL statement executed by database users. The organization wants managed-service administrative activity retained and database-level activity captured without changing the application's data model. What should the database engineer recommend?

Correct Answer: D. Enable and configure PostgreSQL audit logging appropriate to the required database events, route and retain the resulting logs, and use Cloud Audit Logs for relevant administrative and control-plane activity.
Explanation:

Cloud Audit Logs record applicable Google Cloud administrative and access events, but they are not a universal record of every SQL statement or row access. Database-level auditing must be configured through the engine's supported logging capabilities and parameter settings, with care for log volume, sensitive data, routing, and retention. Backups contain database state rather than a statement-by-statement history, and replication does not provide a complete user-attributed SQL audit trail. The combined approach addresses control-plane and database activity separately.

Question 5

New Single answer

Topic: Manage a solution that can span multiple database technologies

Skill tested: Uses query plans and index analysis to diagnose slow Cloud SQL queries.

After a new release, a Cloud SQL for PostgreSQL application reports slow searches by customer identifier. CPU remains moderate, storage latency is normal, and the same query was fast before the release. The query filters on `customer_id` and sorts by `created_at`; the table has grown substantially, and no schema change was deployed. The team needs to identify the cause before adding indexes, because write throughput is important. What is the best next step?

Correct Answer: C. Inspect the query plan with `EXPLAIN (ANALYZE, BUFFERS)` on a representative workload and verify whether an appropriate index supports the filter and ordering.
Explanation:

A representative execution plan reveals whether PostgreSQL is scanning too many rows, sorting unnecessarily, or failing to use a suitable index; buffer information helps distinguish access patterns from resource saturation. The query's filter and ordering suggest evaluating a composite index, but the plan and workload should guide that decision because indexes add storage and write overhead. Scaling compute without evidence does not correct a poor access path. Restarting is disruptive and does not solve missing-index design, while indexing every column can harm write performance and increase maintenance cost.

Question 6

New Multiple answers

Topic: Manage a solution that can span multiple database technologies

Skill tested: Sets up actionable Cloud Monitoring alerts for Cloud SQL resource contention.

A Cloud SQL for MySQL production database experiences intermittent request failures during business peaks. The on-call team has only a daily dashboard and receives no notification when the database approaches capacity. They need to distinguish compute pressure from storage-capacity risk and ensure an alert reaches the on-call rotation with enough context to investigate. Select TWO actions that provide the strongest operational response.

Correct Answer: B. Configure notification channels for the on-call team and include runbook guidance for checking related database metrics and logs.; C. Create Cloud Monitoring alerting policies for relevant Cloud SQL metrics such as CPU utilization and storage utilization, with thresholds and durations matched to operational limits.
Explanation:

Cloud Monitoring alerting policies can evaluate Cloud SQL metrics over time, helping distinguish sustained CPU pressure from storage capacity approaching a limit. Notification channels make those alerts actionable for the responsible team, and a runbook speeds investigation of related metrics and logs. Automated backups are not a substitute for capacity alerts; setting storage to a maximum without understanding need can increase cost and does not address compute contention. Daily manual checks and error-only detection are too slow for intermittent production incidents.

Question 7

New Single answer

Topic: Manage a solution that can span multiple database technologies

Skill tested: Designs Cloud SQL backup and point-in-time recovery settings for defined RPO needs.

A SaaS provider uses Cloud SQL for PostgreSQL and must recover from accidental updates with a target recovery point no more than five minutes before the incident. It also needs routine protection against instance loss and a documented retention policy. The database is actively written throughout the day, so a nightly export alone would leave too much data unrecoverable. Which plan best meets the requirement?

Correct Answer: B. Enable automated backups and point-in-time recovery with transaction log retention appropriate to the recovery window, and test restoration procedures.
Explanation:

Cloud SQL automated backups protect against instance loss, while point-in-time recovery uses retained transaction logs to restore to a selected time within the available recovery window. The organization must configure retention to cover its needs, understand the applicable engine and instance settings, and test restoration against its RTO and RPO. A daily export is only a snapshot at export time, and a replica reflects replication state rather than arbitrary historical points. A weekly backup with no logs cannot satisfy a five-minute recovery-point objective.

Question 8

New Multiple answers

Topic: Manage a solution that can span multiple database technologies

Skill tested: Optimizes Cloud SQL cost and performance using read replicas and connection pooling.

An online catalog on Cloud SQL for PostgreSQL has a read-heavy workload. Its primary is near CPU capacity during traffic spikes, while reporting queries compete with checkout writes. The application also opens many short-lived database connections, and the team wants to reduce contention without accepting replica reads for checkout transactions. Select TWO actions that best address the situation while preserving the primary as the write authority.

Correct Answer: D. Use a connection pooler appropriate to the application's PostgreSQL connection behavior to reduce connection churn and the number of backend connections.; E. Route suitable read-only catalog and reporting traffic to one or more read replicas, while keeping writes and consistency-sensitive checkout reads on the primary.
Explanation:

Read replicas can offload appropriate read workloads, but they are not writable and their asynchronous replication can make reads stale. Keeping checkout writes and consistency-sensitive reads on the primary preserves the application's requirements. A connection pooler can reduce connection establishment overhead and backend connection pressure, provided its pooling mode is compatible with application behavior and session features. Writing to a replica is unsupported as a way to merge changes, scaling down while shifting all work may worsen performance, and indiscriminate indexing increases write and storage overhead.

Question 9

New Single answer

Topic: Migrate data solutions

Skill tested: Selects Database Migration Service continuous migration for low-downtime Cloud SQL cutover.

A company hosts a MySQL database in its own data center and must migrate it to Cloud SQL for MySQL. The application can tolerate only a brief write interruption during cutover, and the source must remain available as a fallback until the target is verified. The source is reachable from Google Cloud through a secured network connection. The team wants a managed migration process that keeps the target synchronized while it prepares the application change. What is the most appropriate approach?

Correct Answer: C. Use Database Migration Service for a continuous migration job, allow ongoing replication to catch up, then coordinate a brief write freeze and cutover with a rollback plan.
Explanation:

Database Migration Service supports managed migrations to Cloud SQL, including continuous migration patterns that keep changes flowing to the destination before cutover. A controlled write freeze allows the final changes to catch up and reduces the cutover interruption; retaining the source until verification provides a practical fallback, subject to avoiding conflicting writes after cutover. A one-time export creates a longer outage and stale target, Cloud SQL does not simply create a native read replica from an arbitrary on-premises server through that mechanism, and copying database files into managed storage is not a supported migration method.

Question 10

New Multiple answers

Topic: Migrate data solutions

Skill tested: Plans migration validation and rollback while controlling source and target write activity.

A financial application is migrating from a self-managed PostgreSQL source to Cloud SQL for PostgreSQL using a continuous migration. The business requires a rehearsed fallback plan, and the team must prevent divergent writes if validation fails after cutover. The migration window is short, but data correctness is more important than instantly restoring writes. Select TWO cutover practices that best protect consistency and support rollback.

Correct Answer: A. Keep the source write-fenced after cutover; define a rollback procedure that accounts for any destination-side writes before re-enabling source writes.; D. At cutover, stop or quiesce application writes to the source, allow replication to catch up, and verify the destination before directing writes there.
Explanation:

Quiescing source writes and waiting for replication to catch up establishes a well-defined handoff point; validation before routing writes reduces the chance of exposing an incomplete target. Once the destination accepts writes, simply sending traffic back to the source loses or forks those changes. A safe rollback must keep the old source from accepting conflicting writes and specify how destination changes are reconciled or otherwise handled before writes resume. Dual writes create divergence, and replication alone does not validate schema conversion, application assumptions, or business-level correctness.

Question 11

New Single answer

Topic: Migrate data solutions

Skill tested: Assesses DDL and query compatibility before migrating an application to Cloud SQL.

A software vendor plans to move an Oracle-backed application to Cloud SQL for PostgreSQL to reduce licensing and operational costs. The vendor's stored procedures use Oracle-specific syntax, and the application assumes Oracle data types and transaction behavior. Management wants the database moved with minimal redesign, but the engineering team has not yet tested application compatibility. Which action should occur first?

Correct Answer: A. Inventory schema objects and application SQL, assess DDL and data-type conversion and procedural incompatibilities, then select and test a conversion and migration plan.
Explanation:

Oracle-to-PostgreSQL migration is a heterogeneous migration: SQL syntax, stored procedures, data types, and behavioral assumptions may require conversion or application changes. An inventory and compatibility assessment should precede tool selection, conversion, rehearsal, and cutover planning. Cloud SQL does not translate Oracle SQL at runtime or accept Oracle data files as a PostgreSQL instance. A read replica cannot bridge the engines in the way described, and changing only a connection string leaves incompatible database logic unresolved.

Question 12

New Single answer

Topic: Deploy scalable and highly available databases in Google Cloud

Skill tested: Validates Cloud SQL high availability through a controlled failover exercise.

A logistics company has enabled regional high availability for a production Cloud SQL for MySQL instance. The application team assumes that this guarantees the application will recover correctly from a zonal outage, but no failover exercise has been performed. The database is accessed through a stable connection configuration, and the organization has a maintenance window for testing. What is the best way to validate readiness without treating the HA setting alone as proof?

Correct Answer: B. Force a controlled failover during the approved window, then verify application reconnection, transaction behavior, monitoring signals, and recovery against the required objectives.
Explanation:

A controlled failover exercise validates both the managed database behavior and the application's ability to recover connections and resume transactions. The team should observe failover signals, client retry behavior, and achieved recovery time during an approved test, then document findings. HA configuration is not proof that client libraries handle dropped connections correctly. Deleting the instance is destructive and tests restore rather than HA failover; independent writable instances introduce consistency problems and are not a valid HA test.

Question 13

New Multiple answers

Topic: Deploy scalable and highly available databases in Google Cloud

Skill tested: Deploys Cloud SQL read replicas to scale reads while protecting primary write availability.

A media platform's Cloud SQL for PostgreSQL primary serves user writes and several expensive analytics queries. During evening traffic, analytics cause elevated latency for user-facing requests. Product owners accept slightly stale analytics results, but user writes and read-after-write behavior must remain on the primary. The team needs a change that can be scaled as analytics demand grows and monitored independently. Select TWO actions that meet these requirements.

Correct Answer: A. Create a Cloud SQL read replica and route only analytics queries that tolerate replication lag to it.; C. Keep user writes and read-after-write operations on the primary, and monitor replica lag and resource utilization as analytics traffic changes.
Explanation:

A read replica offloads read-only analytics work while leaving the primary responsible for writes. Because replication is asynchronous, analytics can accept some lag, but user read-after-write operations should remain on the primary to avoid stale results. Monitoring lag and utilization helps determine whether to adjust replica capacity or add capacity for read demand. Replicas are not the write endpoint for primary changes, and availability does not guarantee zero replication lag; routing every read to a replica would violate consistency-sensitive behavior.

Question 14

New Single answer

Topic: Deploy scalable and highly available databases in Google Cloud

Skill tested: Automates repeatable Cloud SQL instance provisioning with declarative infrastructure management.

A platform team must provision the same Cloud SQL for PostgreSQL configuration in development, staging, and production. Differences in backups, network placement, machine settings, and HA configuration have caused drift when teams create instances manually. Production requires regional HA, while lower environments use smaller non-HA instances. The team wants reviewed, repeatable changes and environment-specific values rather than console-based runbooks. What is the best implementation approach?

Correct Answer: B. Define Cloud SQL resources and environment-specific parameters in a version-controlled infrastructure-as-code configuration, review changes, and apply it through the team's deployment process.
Explanation:

Version-controlled infrastructure as code makes instance configuration reviewable and repeatable while allowing explicit environment-specific differences such as HA, sizing, backups, and networking. A controlled apply process reduces manual drift and provides a change history. Console screenshots are not an executable or reliable configuration source. Database files do not reproduce managed instance settings, and SQL scripts operate within a database rather than provision Cloud SQL infrastructure and networking.