Free practice · No sign-up required

Professional Cloud Database Engineer free practice test

15 questions with answer explanations. Choose an answer below to begin.

Question 1 of 15

Which service is commonly used to store time-series metrics for database performance monitoring in Google Cloud?

Show hint

Evaluate monitoring options for database performance

0/15 answered · Bookmark questions to review later. Focus the practice area to use keys 1–9 and Enter.

Learn by doing

Put your answers into practice

Use official documentation and hands-on labs to work through topics you missed.

Explore all study resources →
Google Cloud Foundation Fabric

Terraform modules and infrastructure blueprints for advanced exploration of Google Cloud design. This is supporting engineering material, not an exam course.

Try it: Read one small VPC or service-account module. Draw the resources and permission boundaries it creates, and explain a least-privilege change without deploying an entire landing zone.

Reading the code is free. Deployment requires suitable permissions and can create billable infrastructure.

Google Cloud certification guides

Official certification paths with exam-specific guides and preparation links for cloud roles.

Try it: Open the guide for your chosen role. For each weak domain, write one service-selection decision you cannot yet explain and find its product documentation.

Public certification information is free; training, labs, and exam registration may be paid.

All questions and explanations

Prefer to read at your own pace? Work through each question below, then open its answer to check your reasoning. You can link directly to a question or print this reference.

  1. Which service is commonly used to store time-series metrics for database performance monitoring in Google Cloud?

    1. Cloud Monitoring

    2. Cloud Logging

    3. Cloud Trace

    4. Cloud Profiler

    Show answer and explanation

    Correct answer

    • Cloud Monitoring

    Cloud Monitoring collects and graphs time-series metrics such as CPU, memory, and query performance. It provides dashboards and alerting for database health.

  2. What is a primary benefit of using read replicas for a Cloud SQL instance?

    1. Improved read scalability

    2. Automatic backups

    3. Stronger consistency

    4. Reduced storage costs

    Show answer and explanation

    Correct answer

    • Improved read scalability

    Read replicas allow read traffic to be distributed across copies of the primary instance, improving read throughput. They do not affect backup or consistency guarantees.

  3. Which feature helps ensure high availability for a Cloud Spanner database?

    1. Multi-region configuration

    2. Single-zone deployment

    3. Manual failover

    4. Local SSD storage

    Show answer and explanation

    Correct answer

    • Local SSD storage

    Multi-region configuration provides redundancy across zones and regions, enabling automatic failover and high availability.

  4. When performing a point-in-time recovery in Cloud SQL, what is the key requirement?

    1. Binary logging enabled

    2. Read replica present

    3. Public IP access

    4. Manual snapshot taken

    Show answer and explanation

    Correct answer

    • Binary logging enabled

    Point-in-time recovery relies on binary logs (or transaction logs) to restore data to a specific moment. It requires continuous backup settings.

  5. Which practice helps reduce latency for globally distributed applications using Cloud Spanner?

    1. Choosing an optimal multi-region configuration

    2. Using the smallest instance type

    3. Disabling automatic backups

    4. Limiting database schema changes

    Show answer and explanation

    Correct answer

    • Choosing an optimal multi-region configuration

    Selecting a multi-region configuration close to users minimizes network latency. Instance size and backup settings do not directly affect geographic latency.

  6. What is a common use case for Cloud Memorystore for Redis?

    1. Caching query results

    2. Long-term archival storage

    3. Relational transaction logging

    4. Schema version control

    Show answer and explanation

    Correct answer

    • Caching query results

    Memorystore for Redis is an in-memory store ideal for caching frequently accessed data such as query results or session information.

  7. Which action should you take before scaling up a Cloud SQL instance?

    1. Review current CPU and memory utilization

    2. Disable all user connections

    3. Export all data to Cloud Storage

    4. Switch to a different database engine

    Show answer and explanation

    Correct answer

    • Review current CPU and memory utilization

    Analyzing utilization metrics ensures the new instance size matches workload demands. Scaling decisions should be data-driven.

  8. What is a key advantage of using partitioned tables in Cloud Spanner?

    1. Improved query performance for large datasets

    2. Reduced need for indexes

    3. Automatic encryption at rest

    4. Simplified schema design

    Show answer and explanation

    Correct answer

    • Improved query performance for large datasets

    Partitioning helps manage and query large tables efficiently by dividing data into segments, enhancing performance for specific access patterns.

  9. Which backup strategy applies to both Cloud SQL and Cloud Spanner?

    1. Automated daily backups

    2. Manual snapshot only

    3. On-demand logical backups

    4. File-system level backups

    Show answer and explanation

    Correct answer

    • Manual snapshot only

    Both services support automated scheduled backups and manual snapshots. Logical backups and file-system backups are not universally supported.

  10. Question 10

    Link to question

    What is a best practice for managing database credentials in Google Cloud?

    1. Use Secret Manager

    2. Store in source code

    3. Share via email

    4. Hardcode in application config

    Show answer and explanation

    Correct answer

    • Use Secret Manager

    Secret Manager securely stores and manages sensitive data such as database passwords, with controlled access and audit logging.

  11. Question 11

    Link to question

    Which scenario is most suitable for Cloud SQL over Cloud Spanner?

    1. Strong consistency across multiple regions

    2. High transactional throughput at global scale

    3. Simple relational schema with moderate scale

    4. Automatic multi-region failover

    Show answer and explanation

    Correct answer

    • Simple relational schema with moderate scale

    Cloud SQL is well-suited for relational workloads with moderate scale and simpler operational needs, whereas Spanner targets global scale and strong consistency.

  12. Question 12

    Link to question

    What does enabling automatic backups primarily protect against?

    1. Data loss due to accidental deletion

    2. Network latency issues

    3. Schema migration errors

    4. Application-level bugs

    Show answer and explanation

    Correct answer

    • Data loss due to accidental deletion

    Automatic backups allow point-in-time recovery, protecting against data loss from mistakes or corruption. They do not address network or application logic issues.

  13. Question 13

    Link to question

    Which tool can help analyze slow queries in a Cloud SQL PostgreSQL instance?

    1. pg_stat_statements

    2. Cloud Trace

    3. Cloud Scheduler

    4. Cloud Build

    Show answer and explanation

    Correct answer

    • pg_stat_statements

    The pg_stat_statements extension tracks execution statistics of SQL statements, helping identify slow or frequent queries for optimization.

  14. Question 14

    Link to question

    What is a recommended approach for database schema changes in production?

    1. Apply changes during peak traffic

    2. Use migration tools and test in staging

    3. Modify tables directly via console

    4. Disable backups before changes

    Show answer and explanation

    Correct answer

    • Use migration tools and test in staging

    Schema changes should be tested in non-production environments and applied using migration tools to minimize risk and ensure consistency.

  15. Question 15

    Link to question

    Which feature in Cloud Spanner helps maintain consistency across regions while optimizing for read performance?

    1. Strong reads

    2. Read-only transactions

    3. Leaderless replication

    4. Multi-region configuration

    Show answer and explanation

    Correct answer

    • Multi-region configuration

    Multi-region configuration in Cloud Spanner allows data to be replicated across multiple regions, ensuring high availability and consistency while optimizing read performance by serving reads from the nearest region.

Read all flashcards

Recall the answer before opening each card.

Which service provides time-series metrics for database performance monitoring?

Cloud Monitoring collects and graphs time-series metrics like CPU, memory, and query performance for database health dashboards and alerting.

What is the primary benefit of read replicas in Cloud SQL?

Read replicas improve read scalability by distributing read traffic across multiple copies of the primary instance, enhancing read throughput.

Which feature ensures high availability for Cloud Spanner?

Multi-region configuration provides redundancy across zones and regions, enabling automatic failover and high availability for Cloud Spanner.

What requirement enables point-in-time recovery in Cloud SQL?

Point-in-time recovery requires binary logging (transaction logs) to be enabled, allowing restoration to any specific point in time.

How can you reduce latency for globally distributed applications using Cloud Spanner?

Choosing an optimal multi-region configuration places replicas close to users, minimizing network latency for reads and writes.

What is a common use case for Cloud Memorystore for Redis?

Cloud Memorystore for Redis is commonly used as an in-memory cache for frequently accessed data such as query results or session information.

What should you do before scaling up a Cloud SQL instance?

Review current CPU and memory utilization to ensure the new instance size matches workload demands, scaling based on data-driven metrics.

What is a key advantage of partitioned tables in Cloud Spanner?

Partitioning improves query performance for large datasets by dividing data into segments, enhancing query efficiency for specific access patterns.

Which backup strategy applies to both Cloud SQL and Cloud Spanner?

Both services support automated scheduled backups and manual snapshots, protecting against data loss from accidental deletion or corruption.

What is a best practice for managing database credentials in Google Cloud?

Use Secret Manager to securely store and manage database passwords with controlled access and audit logging instead of hardcoding credentials.

Which scenario is most suitable for Cloud SQL over Cloud Spanner?

Cloud SQL is best for simple relational schemas with moderate scale and less demanding consistency or geographic requirements, whereas Spanner targets global scale.

What does enabling automatic backups primarily protect against?

Automatic backups protect against data loss due to accidental deletion, corruption, or other mistakes by enabling point-in-time recovery.

Which tool helps analyze slow queries in Cloud SQL PostgreSQL?

The pg_stat_statements extension tracks execution statistics of SQL statements, helping identify slow or frequent queries for optimization.

What is a recommended approach for database schema changes in production?

Use migration tools and test schema changes in a staging environment before applying to production to minimize risk and ensure consistency.

How does Cloud Spanner maintain consistency across regions while optimizing read performance?

Multi-region configuration replicates data across regions, serving reads from the nearest region while ensuring strong consistency through synchronized replication.

What metric is most important when deciding to scale a Cloud SQL instance?

Current CPU and memory utilization are key metrics to review before scaling, ensuring the new size matches actual workload demand.

What type of backup does Cloud SQL require for point-in-time recovery?

Binary logging (transaction logs) must be enabled to support point-in-time recovery, allowing restoration to any specific moment.

Which service provides in-memory caching for database query results?

Cloud Memorystore for Redis is an in-memory store ideal for caching frequently accessed data such as query results to reduce database load.

What is the purpose of automatic backups in Cloud SQL and Spanner?

Automatic backups enable point-in-time recovery to protect against data loss from accidental deletions, corruption, or other mistakes.

How can you securely store database passwords in Google Cloud?

Use Secret Manager to store database passwords with encryption, access control, and audit logging, avoiding hardcoded credentials.

Active recall deck

Practice Professional Cloud Database Engineer with real flashcards

Read the prompt, commit to an answer, then flip the card. Move through the deck at your own pace and repeat any topic that does not come back quickly.

20 free cards

Card 1 of 20

1 reviewed this session

Connect the concepts

Your Professional Cloud Database Engineer study mind map

Open a branch to connect a topic with its practice questions and explanations. Use the map to choose your next review topic.

Professional Cloud Database Engineer15 questions in this practice set
Evaluate monitoring options for database performance(1)
Understand replication strategies for availability and performance(1)
Design highly available database architectures(1)
Implement backup and recovery strategies(1)
Optimize database placement for performance(1)
Select appropriate data stores for caching patterns(1)
Plan capacity and scaling for database instances(1)
Optimize data organization for scalability(1)
Compare backup capabilities across database services(1)
Securely manage sensitive database information(1)
Choose the right database service based on workload characteristics(1)
Understand the purpose of automated backups(1)
More practice connections(3)
Exam-focused analysis

What this Professional Cloud Database Engineer practice set measures

This is an analysis of the practice bank, not a claim about the vendor's live exam blueprint. Use it to identify the knowledge, judgment, and recall patterns exercised here, then verify your coverage against the current official exam guide.

Database Service Selection and Architecture

Choosing the right database service is foundational. Cloud SQL is ideal for moderate-scale relational workloads with simple schemas, while Cloud Spanner is designed for global scale, strong consistency, and high availability across regions. The practice set highlights that multi-region configuration in Spanner reduces latency for distributed applications, whereas read replicas in Cloud SQL improve read scalability. Partitioning in Spanner enhances query performance for large datasets. When evaluating services, consider factors like geographic distribution, consistency requirements, and operational complexity.

  • Use Cloud SQL for moderate-scale relational workloads; choose Spanner for global scale and strong consistency.
  • Read replicas in Cloud SQL improve read scalability by distributing read traffic.
  • Multi-region configuration in Spanner provides low-latency reads and automatic failover.
  • Partitioned tables in Spanner improve query performance for large datasets.

Performance Monitoring and Optimization

Monitoring database performance is critical. Cloud Monitoring collects and graphs time-series metrics like CPU, memory, and query performance, enabling alerts and dashboards. For Cloud SQL PostgreSQL, the pg_stat_statements extension helps analyze slow queries by tracking execution statistics. Scaling decisions should be based on reviewing current CPU and memory utilization rather than guesswork. Caching with Cloud Memorystore for Redis can reduce database load by storing frequently accessed data such as query results.

  • Cloud Monitoring provides time-series metrics for database performance (CPU, memory, query performance).
  • Use pg_stat_statements in PostgreSQL to identify slow or frequent queries.
  • Scale Cloud SQL instances after reviewing current utilization metrics.
  • Cloud Memorystore for Redis is ideal for caching query results and session data.

Backup, Recovery, and High Availability

Backup and recovery strategies safeguard data. Point-in-time recovery in Cloud SQL requires binary logging (or transaction logs) enabled. Both Cloud SQL and Cloud Spanner support automated scheduled backups and manual snapshots, protecting against data loss from accidental deletion. High availability in Cloud Spanner is achieved through multi-region configuration, which provides redundancy across zones and regions. Automatic backups do not prevent application logic errors or network failures but are essential for disaster recovery.

  • Point-in-time recovery in Cloud SQL requires binary logging enabled.
  • Both Cloud SQL and Cloud Spanner support automated scheduled backups and manual snapshots.
  • Multi-region configuration in Cloud Spanner ensures high availability via automatic failover.
  • Automatic backups protect against data loss from accidental deletion or corruption.

Security and Schema Management

Securing database credentials and managing schema changes are crucial operational practices. Use Secret Manager to store and control access to sensitive information like passwords, with audit logging. For schema changes in production, always use migration tools and test changes in a staging environment to minimize risk. This prevents unintended disruptions and ensures consistency across environments.

  • Store database passwords and secrets in Secret Manager for controlled access and audit logging.
  • Use migration tools and test schema changes in staging before applying to production.
  • Schema changes should be applied with care to avoid data loss or downtime.

Study workflow

Turn one Professional Cloud Database Engineer attempt into a study plan

  1. 1

    Analyze Workload Requirements

    Determine the scale, consistency, and geographic distribution needs. For moderate relational workloads with simple schemas, prefer Cloud SQL. For global low-latency reads and strong consistency, use Cloud Spanner. Document required read/write patterns and latency targets.

  2. 2

    Configure Monitoring and Alerting

    Enable Cloud Monitoring to collect database metrics like CPU, memory, and query performance. Set up dashboards and alerts for thresholds. For PostgreSQL, install pg_stat_statements to track query execution statistics. Regularly review metrics to identify bottlenecks.

  3. 3

    Implement Backup and Recovery Strategy

    Enable automated scheduled backups for both Cloud SQL and Cloud Spanner. For Cloud SQL, ensure binary logging is enabled to support point-in-time recovery. Perform manual snapshots before major changes. Test recovery procedures periodically.

  4. 4

    Plan for High Availability and Scaling

    For Cloud SQL, add read replicas to distribute read traffic. For Cloud Spanner, choose a multi-region configuration to enable automatic failover and low-latency reads. Before scaling up a Cloud SQL instance, review current CPU and memory utilization to select the appropriate size.

  5. 5

    Secure Credentials and Manage Schema Changes

    Use Secret Manager to store database passwords and other secrets, granting access only to authorized services. For schema changes, use migration tools like Cloud SQL's database migration service or custom scripts, and always test changes in a staging environment before applying to production.

FAQ

Questions about this exam practice page

Clear boundaries on what the bank covers, how to use it, and where official vendor information still matters.

When should I choose Cloud SQL over Cloud Spanner?+

Cloud SQL is ideal for moderate-scale relational workloads with a simple schema and less demanding consistency or geographic distribution requirements. Cloud Spanner is suited for global scale, strong consistency across regions, and high availability needs.

What is the key requirement for point-in-time recovery in Cloud SQL?+

Point-in-time recovery in Cloud SQL requires binary logging (or transaction logs) to be enabled. This allows restoring data to any specific moment within the backup retention period, protecting against accidental changes or deletions.

How can I analyze slow queries in Cloud SQL PostgreSQL?+

Use the pg_stat_statements extension, which tracks execution statistics for SQL statements, including total time, calls, and rows processed. This helps identify slow or frequently executed queries for optimization.

What is the benefit of multi-region configuration in Cloud Spanner?+

Multi-region configuration replicates data across multiple geographic regions, ensuring high availability with automatic failover and low-latency reads by serving requests from the nearest region. It provides strong consistency globally.

How should I manage database credentials in Google Cloud?+

Store database passwords and other secrets in Secret Manager, which provides encryption, access control, and audit logging. Avoid hardcoding credentials in code or configuration files. Grant minimal necessary access to services.

Keep studying

Build the next review session

Browse another free bank or use the study strategy guide to turn your misses into spaced review.