Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Monitor and optimize database performance practice sets

PCDE Monitor and optimize database performance • Complete Question Bank

PCDE Monitor and optimize database performance — All Questions With Answers

Complete PCDE Monitor and optimize database performance question bank — all 0 questions with answers and detailed explanations.

104
Questions
Free
No signup
Certifications/PCDE/Practice Test/Monitor and optimize database performance/All Questions
Question 1mediummultiple choice
Read the full Monitor and optimize database performance explanation →

You are managing a Cloud SQL for PostgreSQL instance that is experiencing high CPU usage and slow query performance. You notice that the database has a high number of idle-in-transaction connections. Which immediate action should you take to reduce CPU load without disrupting active transactions?

Question 2easymultiple choice
Read the full Monitor and optimize database performance explanation →

A team is deploying a new application on Google Kubernetes Engine (GKE) that uses Cloud Spanner. They want to minimize latency for read operations. Which Spanner configuration should they use?

Question 3hardmultiple choice
Read the full Monitor and optimize database performance explanation →

Your Cloud SQL for MySQL instance is experiencing intermittent performance degradation. You suspect that the issue is due to a sudden spike in connections from a specific application. Which metric and monitoring approach would best help you correlate the connection spike with performance degradation?

Question 4mediummultiple choice
Read the full Monitor and optimize database performance explanation →

You are running a production workload on Cloud Bigtable and notice that read latency has increased. Upon reviewing the monitoring dashboard, you see that CPU utilization is below 50% but the number of active tablets is high. What is the most likely cause of the increased read latency?

Question 5easymultiple choice
Read the full Monitor and optimize database performance explanation →

A developer has deployed a new version of an application that uses Cloud SQL. After the deployment, you notice a sharp increase in the number of slow queries. What should you do first to identify the problematic queries?

Question 6mediummulti select
Read the full Monitor and optimize database performance explanation →

Which TWO actions can help reduce the number of read replicas needed for a Cloud SQL for PostgreSQL instance that serves a read-heavy workload?

Question 7hardmulti select
Read the full Monitor and optimize database performance explanation →

Which THREE factors should you consider when configuring Cloud SQL for MySQL query caching to optimize performance?

Question 8mediummultiple choice
Read the full Monitor and optimize database performance explanation →

Your Cloud SQL for PostgreSQL instance is experiencing intermittent slowdowns during peak hours. You notice that the CPU utilization spikes to 80% and the number of connections increases. The application team confirms they are not running any new queries. What should you do first to diagnose the issue?

Question 9hardmultiple choice
Read the full Monitor and optimize database performance explanation →

Your Spanner instance is running a workload with high read throughput. You notice that read latency has increased significantly. Upon investigating, you find that the instance is experiencing high CPU utilization on the Spanner nodes. The workload consists of many small point lookups (reads by primary key). Which action is most likely to reduce read latency?

Question 10easymultiple choice
Read the full Monitor and optimize database performance explanation →

A bigquery job is running slower than expected. Checking the job information, you see that the slot usage is at 100% for the entire duration of the query. You are using on-demand pricing. What is the most effective way to improve query performance?

Question 11mediummultiple choice
Read the full Monitor and optimize database performance explanation →

You are running a Memorystore for Redis instance with a high write volume. You notice that the eviction rate is high and the cache hit ratio has dropped significantly. Which configuration change would most directly reduce the eviction rate?

Question 12easymultiple choice
Read the full Monitor and optimize database performance explanation →

You are monitoring a Cloud Spanner instance and see that the average commit latency is high. The application performs many single-row inserts. Which metric would you check first to understand the root cause?

Question 13mediummulti select
Read the full Monitor and optimize database performance explanation →

You are troubleshooting a slow-performing query on Cloud Spanner. The query scans a large table with a secondary index. Which TWO metrics from the Query Insights dashboard would most directly indicate the source of the performance issue?

Question 14hardmulti select
Read the full Monitor and optimize database performance explanation →

You are managing a Cloud SQL for MySQL instance that is experiencing high replication lag. The instance uses semi-synchronous replication. Which THREE actions could reduce the replication lag?

Question 15hardmultiple choice
Read the full Monitor and optimize database performance explanation →

Refer to the exhibit. You restored a Spanner database from a backup and are checking the status of the optimize operation. The operation has been running for 15 minutes and is 45% complete. The database is already accessible but queries on it are slower than expected. What should you do?

Exhibit

gcloud spanner operations describe projects/my-project/instances/test-instance/databases/test-db/operations/_auto_12345

--output:
name: projects/my-project/instances/test-instance/databases/test-db/operations/_auto_12345
metadata:
  '@type': type.googleapis.com/google.spanner.admin.database.v1.OptimizeRestoredDatabaseMetadata
  name: projects/my-project/instances/test-instance/databases/test-db
  progress:
    progress_percent: 45
  start_time: '2023-10-01T10:00:00Z'
  end_time: '2023-10-01T10:15:00Z'
done: false
error: null
Question 16hardmultiple choice
Read the full Monitor and optimize database performance explanation →

Your Cloud SQL for PostgreSQL instance is experiencing high CPU utilization during peak hours. You notice that the query `SELECT * FROM orders WHERE order_date >= '2024-01-01'` is frequently run against a table with 10 million rows. The table has a B-tree index on `order_date`. What is the most likely cause of the high CPU usage, and how should you address it?

Question 17mediummultiple choice
Read the full Monitor and optimize database performance explanation →

You are managing a Spanner instance for a global financial application. The database has a table `transactions` with columns `transaction_id` (INT64), `user_id` (INT64), `amount` (FLOAT64), `timestamp` (TIMESTAMP), and `region` (STRING). The table is interleaved with a parent table `users`. Recently, you observed that point-read queries by `transaction_id` are taking over 100ms on average, whereas they used to take under 10ms. The instance CPU utilization is below 40%, and there are no contention issues. The `transactions` table has a primary key `(user_id, transaction_id)`. Queries filter on `transaction_id` only, without specifying `user_id`. Which optimization should you implement to improve point-read latency?

Question 18easymultiple choice
Read the full Monitor and optimize database performance explanation →

Your company runs a critical application on Google Kubernetes Engine (GKE) with a StatefulSet using persistent volumes backed by Compute Engine persistent disks. The application performs frequent small random writes to a MySQL database stored on the persistent disks. You notice that the disk write latency has increased significantly, and the application's throughput has dropped. Monitoring shows that the disk queue depth is consistently high. The current disk type is pd-standard. What is the most cost-effective way to reduce write latency and improve throughput?

Question 19mediummultiple choice
Read the full Monitor and optimize database performance explanation →

You are a database engineer for an e-commerce platform running on Cloud SQL for PostgreSQL. The application team reports that a critical report query taking 5 seconds last week now takes over 30 seconds. The database CPU usage has increased from 40% to 85%. The query plan shows a sequential scan on the orders table. Which action should you take first to diagnose the problem?

Question 20hardmulti select
Read the full Monitor and optimize database performance explanation →

You are managing a Cloud SQL for MySQL instance that is experiencing high latency and connection timeouts during peak hours. The current configuration uses 4 vCPUs, 15 GB memory, and 100 GB SSD storage. The database workload is a mix of transactional queries and batch inserts. Which TWO actions would most effectively reduce latency and improve performance?

Question 21easymultiple choice
Read the full Monitor and optimize database performance explanation →

Refer to the exhibit. You are analyzing a slow query in Cloud SQL for PostgreSQL. The execution plan shows a sequential scan. Which index should you create to most effectively improve query performance?

Network Topology
+Refer to the exhibit.```Database: mydbTable: orderscolumn | type | sizetotal | float| 8 bytesIndexes:"orders_pkey" PRIMARY KEY, btree (id)"idx_orders_user_id" btree (user_id)Query:Execution Plan:
Question 22mediumdrag order
Read the full Monitor and optimize database performance explanation →

Order the steps to set up a Cloud Spanner instance with a global database.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 23mediumdrag order
Read the full Monitor and optimize database performance explanation →

Order the steps to troubleshoot a connection timeout from an application to Cloud SQL.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 24mediummatching
Read the full Monitor and optimize database performance explanation →

Match each BigQuery feature to its purpose.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Column-based ordering to improve query performance

Dividing tables into segments for cost and performance

Guaranteed query capacity

In-memory analysis for sub-second query response

Automated data ingestion from various sources

Question 25mediummatching
Read the full Monitor and optimize database performance explanation →

Match each Cloud SQL backup type to its retention policy.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Configurable retention up to 365 days

Retained until manually deleted

Retained for point-in-time recovery window

Stored in a different region for disaster recovery

Defined start time and window for automated backups

Question 26mediummultiple choice
Read the full Monitor and optimize database performance explanation →

A Cloud SQL for PostgreSQL instance is experiencing high CPU usage during peak hours. Query Insights shows that a complex reporting query is causing full table scans on a large table. The query filters on a column used in JOINs. Which optimization should be applied first?

Question 27easymultiple choice
Read the full Monitor and optimize database performance explanation →

A Cloud Spanner database is experiencing high latency for point reads. The table has a primary key of (CustomerID, OrderDate). Most reads are by CustomerID only. What should the engineer do?

Question 28hardmultiple choice
Read the full Monitor and optimize database performance explanation →

A Bigtable instance stores time-series data with row keys formatted as `#deviceID#timestamp`. The application often queries recent data for a specific device. Monitoring shows high read latency when scanning multiple devices. The row key design is causing hotspotting. What is the best redesign?

Question 29mediummultiple choice
Read the full Monitor and optimize database performance explanation →

A Firestore database is used for a social app. A collection of posts has indexes on fields `author` and `timestamp`. The query `where author == 'user1' order by timestamp desc limit 10` is performing a large number of document reads. What is the likely cause?

Question 30hardmultiple choice
Read the full Monitor and optimize database performance explanation →

A Cloud SQL for MySQL instance is configured with 8 vCPUs and 30GB RAM. The Database Advisor suggests adding an index on a table, but after adding, write performance degrades. The table has 10 million rows and receives 500 writes per second. What is the most likely reason?

Question 31easymultiple choice
Read the full Monitor and optimize database performance explanation →

Which tool is best for identifying hot spots in a Cloud Spanner database?

Question 32mediummultiple choice
Read the full Monitor and optimize database performance explanation →

A Cloud SQL instance is using InnoDB and has a large buffer pool. The query performance is slower after a failover. What is the most likely cause?

Question 33hardmultiple choice
Read the full Monitor and optimize database performance explanation →

A Bigtable cluster has 10 nodes and is experiencing 90% CPU utilization, causing increased latency. The workload is mostly random reads (70%) and writes (30%). The table has 50TB of data, and the row key design is efficient. What is the best way to reduce CPU utilization?

Question 34easymultiple choice
Read the full Monitor and optimize database performance explanation →

A Firestore database has a collection with a composite index on (status, timestamp desc). The query `where status == 'active' order by timestamp desc limit 50` is returning empty results even though there are active documents. What could be the issue?

Question 35mediummultiple choice
Read the full Monitor and optimize database performance explanation →

A Cloud Spanner database contains the Orders table as defined above. The query `SELECT * FROM Orders WHERE CustomerID=123` takes a long time. What is the most likely reason?

Exhibit

CREATE TABLE Orders (
  OrderID INT64 NOT NULL,
  CustomerID INT64 NOT NULL,
  OrderDate DATE NOT NULL,
  TotalAmount NUMERIC NOT NULL,
) PRIMARY KEY (OrderID, CustomerID),
  INTERLEAVE IN PARENT Customers ON DELETE CASCADE;
Question 36hardmultiple choice
Read the full Monitor and optimize database performance explanation →

A slow query log entry shows the above for a Cloud SQL for MySQL instance. Which index would most improve performance?

Exhibit

Query: SELECT p.*, o.* FROM products p JOIN orders o ON p.product_id = o.product_id WHERE o.order_date BETWEEN '2023-01-01' AND '2023-01-31';
Time: 12.345 sec
Rows examined: 1 million
Rows sent: 5000
Question 37easymultiple choice
Read the full Monitor and optimize database performance explanation →

A user runs the above command and expects a row to be returned because the user exists. Which index is missing?

Exhibit

gcloud spanner databases execute-sql my-db --sql="SELECT * FROM Users WHERE Email = 'test@example.com'"
---
Output: (empty)
Question 38mediummulti select
Read the full Monitor and optimize database performance explanation →

A Cloud SQL for PostgreSQL instance is experiencing high replication lag between primary and read replica. Which TWO actions would reduce the lag?

Question 39hardmulti select
Read the full Monitor and optimize database performance explanation →

A Cloud Spanner database has a table with a primary key (UserId, Timestamp). Queries that filter by Timestamp range for a specific UserId are fast, but queries that filter only by Timestamp range across all users are slow. Which TWO improvements would help?

Question 40easymulti select
Read the full Monitor and optimize database performance explanation →

A Bigtable instance is running out of storage and performance is degraded. The schema design is known to be efficient. Which THREE actions can help?

Question 41mediummultiple choice
Read the full Monitor and optimize database performance explanation →

Your application uses Cloud SQL for PostgreSQL. You notice that the database CPU utilization has been consistently above 90% during peak hours, causing increased query latency. You have already tuned the most expensive queries. What is the most cost-effective next step?

Question 42hardmultiple choice
Read the full Monitor and optimize database performance explanation →

You are managing a Cloud Spanner instance that supports a global e-commerce application. Queries that join two large tables (Orders and OrderItems) have high latency. The tables use the CustomerID as the primary key prefix. The join condition is on OrderID, which is the second part of the primary key in both tables. What should you do to improve performance?

Question 43easymultiple choice
Read the full Monitor and optimize database performance explanation →

Your organization uses Cloud SQL for MySQL as the backend for a content management system. The Operations team reports that the database performance degrades every weekday morning at 9 AM, coinciding with a batch job that updates thousands of rows. You need to minimize the impact on end users. What is the best approach?

Question 44hardmultiple choice
Read the full Monitor and optimize database performance explanation →

You are designing a Cloud Spanner schema for a global social media application. The application reads the most recent 100 posts for a user's timeline. The Posts table has a primary key of (UserId, PostTimestamp DESC). You observe that queries for the timeline are hitting high read latency and the transaction abort rate is increasing. What is the most likely cause?

Question 45easymultiple choice
Read the full Monitor and optimize database performance explanation →

Your Cloud SQL for MySQL instance is experiencing unusually high disk usage. You need to identify the cause. Which metric should you monitor in Cloud Monitoring?

Question 46hardmultiple choice
Read the full Monitor and optimize database performance explanation →

You are running a Cloud Bigtable instance for time-series data ingestion. Write throughput has dropped significantly, and you see an increase in 'resource exhausted' errors. The table has one column family and one rowkey format: `#orgId#deviceId#timestamp`. After analyzing cluster metrics, you see that one node is handling most of the traffic. What is the most likely cause?

Question 47easymultiple choice
Read the full Monitor and optimize database performance explanation →

You have a Memorystore for Redis instance used as a session store. You notice that the instance is experiencing high eviction rates. What is the best first step to take?

Question 48mediummulti select
Read the full Monitor and optimize database performance explanation →

Which TWO metrics should you monitor in Cloud Monitoring to evaluate the performance of a Cloud Spanner instance? (Choose two.)

Question 49hardmulti select
Read the full Monitor and optimize database performance explanation →

Which THREE are best practices for designing a Cloud Spanner schema for high performance? (Choose three.)

Question 50easymulti select
Read the full Monitor and optimize database performance explanation →

Which TWO actions can help reduce connection overhead in a Cloud SQL for MySQL instance? (Choose two.)

Question 51easymultiple choice
Read the full Monitor and optimize database performance explanation →

You are using Cloud Memorystore for Redis as a caching layer. You notice that cache hit ratio is below 50%. What is the best action to improve it?

Question 52easymultiple choice
Read the full Monitor and optimize database performance explanation →

A team notices that queries on a Cloud Spanner database are slow. They want to identify which queries are consuming the most resources. What should they use?

Question 53mediummultiple choice
Read the full Monitor and optimize database performance explanation →

A company has a Cloud SQL for PostgreSQL instance that experiences high CPU usage during peak hours due to read-heavy queries. Which optimization is most effective for reducing CPU load?

Question 54hardmultiple choice
Read the full Monitor and optimize database performance explanation →

An e-commerce platform uses Cloud Bigtable for real-time user sessions. Write latency is high. On investigation, they find that rows are being written with monotonically increasing row keys (e.g., user_id + timestamp). What is the likely cause and solution?

Question 55easymultiple choice
Read the full Monitor and optimize database performance explanation →

A data warehouse in BigQuery is running slower due to large full-table scans. Which feature can reduce the amount of data processed for common queries?

Question 56mediummultiple choice
Read the full Monitor and optimize database performance explanation →

A Cloud SQL for MySQL database has frequent table locks causing contention and slow queries. Which diagnostic approach helps identify the blocking queries?

Question 57hardmultiple choice
Read the full Monitor and optimize database performance explanation →

A company runs a Cloud Spanner database with a multi-region configuration. They notice that write latency is higher than expected for clients in a region far from the leader region. What action should be taken to reduce write latency?

Question 58easymultiple choice
Read the full Monitor and optimize database performance explanation →

Which Cloud Monitoring metric indicates the number of queries waiting for locks in Cloud SQL?

Question 59mediummultiple choice
Read the full Monitor and optimize database performance explanation →

A Cloud Memorystore for Redis instance used as a session store has a high eviction rate. Which configuration change can reduce evictions while maintaining performance?

Question 60hardmultiple choice
Read the full Monitor and optimize database performance explanation →

In Cloud Bigtable, a table has a high ratio of garbage collection (GC) that causes performance degradation during compaction. What is the best practice to monitor and optimize this?

Question 61mediummulti select
Read the full Monitor and optimize database performance explanation →

A company is experiencing slow query performance in Cloud SQL for PostgreSQL. Which TWO tools can help identify the root cause?

Question 62hardmulti select
Read the full Monitor and optimize database performance explanation →

In Cloud Spanner, which TWO strategies can help reduce read latency for globally distributed applications?

Question 63easymulti select
Read the full Monitor and optimize database performance explanation →

Which THREE metrics from Cloud Monitoring are important for monitoring Cloud Bigtable performance?

Question 64easymultiple choice
Read the full Monitor and optimize database performance explanation →

Based on the exhibit from Cloud Spanner Query Insights, what is the most likely performance issue?

Exhibit

Refer to the exhibit.

```
Query: SELECT * FROM Orders WHERE customer_id = @c1 AND order_date > @d1
Total execution count: 1000
Average CPU time: 50ms
Average latency: 200ms
Rows scanned: 100000
Rows returned: 10
```
Question 65mediummultiple choice
Read the full Monitor and optimize database performance explanation →

A DBA notices high query cache lock contention on this Cloud SQL for MySQL instance. Which configuration change should be recommended?

Exhibit

Refer to the exhibit.

```
Cloud SQL for MySQL instance configuration:
max_connections: 1000
innodb_buffer_pool_size: 26843545600 (25GB)
query_cache_type: 1
query_cache_size: 1048576 (1MB)
```
Question 66hardmultiple choice
Read the full Monitor and optimize database performance explanation →

What is this alert likely monitoring?

Exhibit

Refer to the exhibit.

```
Cloud Monitoring alert policy condition:
metric.type="logging.googleapis.com/user/log-entry-count"
resource.type="cloud_sql_database"
condition_threshold:
  comparison: COMPARISON_GT
  threshold_value: 100
  duration: 60s
```
Question 67easymultiple choice
Read the full Monitor and optimize database performance explanation →

You are monitoring a Cloud SQL for PostgreSQL instance and notice that the CPU utilization is consistently above 90% during peak hours. What is the most cost-effective initial action to reduce CPU load?

Question 68easymultiple choice
Read the full Monitor and optimize database performance explanation →

Your Cloud Spanner instance has high latency for point reads. The workload is evenly distributed across all nodes. Which metric should you examine first to identify the bottleneck?

Question 69easymultiple choice
Read the full Monitor and optimize database performance explanation →

A Cloud SQL for MySQL instance is experiencing increased replica lag. The write workload is constant. What is the most likely cause?

Question 70mediummultiple choice
Read the full Monitor and optimize database performance explanation →

Your Bigtable cluster is showing high read latency for row key lookups. The application accesses rows with keys in the format 'user_id#timestamp'. You notice that most reads are for recent timestamps. Which optimization should you implement?

Question 71mediummultiple choice
Read the full Monitor and optimize database performance explanation →

You are tuning a Cloud SQL for PostgreSQL instance that runs reporting queries. The slowest query performs a full table scan on a 100 GB table. Which action is most likely to improve performance?

Question 72mediummultiple choice
Read the full Monitor and optimize database performance explanation →

Your Cloud Spanner instance has several tables with interleaved parent-child relationships. You notice that queries that join parent and child tables are slow. What is the best practice to optimize these joins?

Question 73hardmultiple choice
Read the full Monitor and optimize database performance explanation →

You are managing a Memorystore for Redis cluster with standard tier (persistence disabled). The application experiences occasional latency spikes while performing SET operations. You observe that the 'evicted_keys' metric spikes during the spikes. What is the most effective solution?

Question 74hardmultiple choice
Read the full Monitor and optimize database performance explanation →

Your Cloud SQL for SQL Server instance has a query that uses a non-clustered index to filter rows but then performs key lookups to retrieve additional columns. The query is slow. Which database tuning option would most likely reduce I/O?

Question 75hardmultiple choice
Read the full Monitor and optimize database performance explanation →

Your Bigtable cluster is experiencing high CPU utilization and write latency during a daily batch job that writes 500 GB of data. The job uses bulk mutations with 1000 rows per request. What is the most effective way to reduce CPU usage?

Question 76easymultiple choice
Read the full Monitor and optimize database performance explanation →

Refer to the exhibit. What is the most effective optimization for this query?

Exhibit

Refer to the exhibit.

```
Cloud SQL Query Insight output:
Query ID: 1234
SELECT * FROM orders WHERE order_date >= '2023-01-01' AND status = 'SHIPPED';
Average latency: 3.5s
Total executions: 10000
No index used (sequential scan on orders table, size 50 GB)
```
Question 77mediummultiple choice
Read the full Monitor and optimize database performance explanation →

Refer to the exhibit. You receive an alert from this policy for a Cloud Spanner instance. Which action should you take first?

Exhibit

Refer to the exhibit.

```
# Cloud Monitoring alert policy configuration
condition:
  conditionThreshold:
    filter: metric.type="spanner.googleapis.com/instance/node_cpu_utilization"
           resource.type="spanner_instance"
           resource.label.instance_id="my-spanner-instance"
    aggregations:
    - alignmentPeriod: 60s
      perSeriesAligner: ALIGN_MEAN
    - crossSeriesReducer: REDUCE_MEAN
    duration: 300s
    comparison: COMPARISON_GT
    thresholdValue: 0.7
```
Question 78hardmultiple choice
Read the full Monitor and optimize database performance explanation →

Refer to the exhibit. You notice replication latency is 15ms. What is the most likely cause of this latency?

Exhibit

Refer to the exhibit.

```
# Bigtable cluster metrics
Cluster: my-cluster
Table: events
CPU utilization: 85%
Storage utilization: 70%
Replication latency (average): 15ms
Current nodes: 30
Recommended nodes: 25
Table load: uniform
```
Question 79mediummulti select
Read the full Monitor and optimize database performance explanation →

Which TWO metrics are most important to monitor for a Cloud SQL for PostgreSQL instance to detect performance degradation?

Question 80hardmulti select
Read the full Monitor and optimize database performance explanation →

Which THREE actions can help reduce read latency in Cloud Spanner?

Question 81easymulti select
Read the full Monitor and optimize database performance explanation →

Which TWO are best practices for optimizing write performance in Cloud Bigtable?

Question 82mediummultiple choice
Read the full Monitor and optimize database performance explanation →

You manage a Cloud SQL for PostgreSQL instance that handles OLTP workloads. Users in a different region report slow query response times. You notice that the database CPU utilization is below 30%, but network latency is high. What is the most cost-effective solution to reduce query latency without migrating the database?

Question 83easymultiple choice
Read the full Monitor and optimize database performance explanation →

You are using Cloud Monitoring to track performance of a Cloud Spanner instance. Which metric indicates that a database is approaching its throughput limits and may need a split or additional nodes?

Question 84hardmultiple choice
Read the full Monitor and optimize database performance explanation →

Your Cloud Spanner database is experiencing a high volume of read-write conflicts, causing many aborts and high latency. You have already increased the compute capacity. Upon analyzing the schema, you find that most conflicts occur on a single table with frequent updates to the same row. What index or schema change would most effectively reduce contention?

Question 85mediummultiple choice
Read the full Monitor and optimize database performance explanation →

A data analytics team runs ad-hoc queries on BigQuery that often exceed their slot capacity, causing queuing. They want to ensure predictable performance for their critical dashboard while still allowing ad-hoc queries. What is the most cost-effective solution?

Question 86easymultiple choice
Read the full Monitor and optimize database performance explanation →

You are monitoring a Memorystore for Redis instance serving as a cache for an e-commerce application. The cache hit ratio has dropped from 95% to 70%. Which action is most likely to restore the hit ratio?

Question 87hardmultiple choice
Read the full Monitor and optimize database performance explanation →

You are optimizing a Cloud SQL for MySQL instance for an OLTP application. You observe frequent buffer pool contention and high disk reads per second. The instance has 16 vCPUs and 120 GB memory. What is the most effective initial tuning action?

Question 88mediummultiple choice
Read the full NAT/PAT explanation →

Your application uses Firestore for real-time updates. You notice increasing read latency during peak hours. The database is in Native mode with a single-location (us-central1). After reviewing metrics, you see that the number of document reads has not changed significantly, but the database size has grown. What is the most likely cause and solution?

Question 89easymultiple choice
Read the full Monitor and optimize database performance explanation →

You need to set up a Cloud Monitoring alert for a Cloud Spanner instance to notify when the CPU utilization exceeds a threshold that could indicate performance degradation. What is the recommended CPU utilization threshold for Cloud Spanner?

Question 90mediummulti select
Read the full Monitor and optimize database performance explanation →

You are monitoring a Cloud Spanner instance that is experiencing high CPU utilization (consistently above 70%). You want to identify the root cause. Which TWO metrics should you examine first? (Choose two.)

Question 91hardmulti select
Read the full Monitor and optimize database performance explanation →

You manage a Cloud SQL for PostgreSQL instance that is experiencing high read latency. You have already tuned the buffer cache and queries. Which THREE actions can further reduce read latency? (Choose three.)

Question 92easymulti select
Read the full Monitor and optimize database performance explanation →

A data engineering team wants to monitor BigQuery query performance and slot utilization. Which TWO tools or features should they use? (Choose two.)

Question 93hardmultiple choice
Read the full Monitor and optimize database performance explanation →

Your company runs a global gaming platform using Cloud Spanner as the backend database. The platform has millions of users who play concurrently. You receive reports that during peak hours (7-10 PM UTC), some users experience 'DEADLINE_EXCEEDED' errors and high latency on write operations. You have already verified that there are no hot keys and that the schema uses primary keys with hash prefixes. Monitoring shows CPU utilization averages 60% but spikes to 80% during the peak. The average commit latency is 50ms during peak, and the transaction rate is 10,000 writes per second. The instance currently has 100 nodes. The application team indicates that writes are primarily player score updates. What should you do to resolve the performance issue?

Question 94mediummultiple choice
Read the full Monitor and optimize database performance explanation →

You are responsible for a Cloud SQL for MySQL instance that supports a content management system (CMS). The application frequently performs SELECT queries with ORDER BY and LIMIT. Recently, the response time for these queries has increased. The database has 4 vCPUs and 15 GB memory. You check the slow query log and find many queries that are taking over 1 second. The 'rows_examined' is much higher than 'rows_sent'. The EXPLAIN plan shows 'Using filesort' and 'Using temporary'. There is currently an index on the column used in the WHERE clause but not on the ORDER BY columns. The table has 5 million rows. What should you do to improve query performance?

Question 95easymultiple choice
Read the full Monitor and optimize database performance explanation →

Your company runs a business intelligence (BI) dashboard on BigQuery that refreshes every hour. The dashboard queries are complex with multiple JOINs and aggregations. Recently, the queries started taking longer than 30 minutes, causing timeouts. You check the BigQuery monitoring and see that the slot utilization consistently reaches 100% during the dashboard refresh. The project uses a flat-rate pricing model with 1000 slots. Other team members run ad-hoc queries during the same period. What is the most effective action to improve the dashboard performance?

Question 96mediummultiple choice
Read the full Monitor and optimize database performance explanation →

A social media application uses Memorystore for Redis to cache user profiles and session data. Recently, the application experienced intermittent errors and high latency. You observe that the Redis CPU utilization is consistently above 90% and the cache hit ratio is 85%. The instance type is a Standard tier M2 (30 GB) with a maxmemory setting of 25 GB. The eviction policy is allkeys-lru. The number of keys is 10 million with an average value size of 2 KB. You suspect memory pressure is causing CPU spikes. What should you do to reduce CPU utilization and improve performance?

Question 97mediummulti select
Read the full Monitor and optimize database performance explanation →

You are a Cloud Database Engineer managing a Cloud Spanner instance. You notice that some queries are taking longer than expected. You suspect that the queries are not using secondary indexes efficiently. Which TWO metrics should you monitor in Cloud Monitoring to validate your suspicion? (Choose two.)

Question 98easymultiple choice
Read the full Monitor and optimize database performance explanation →

You are managing a Cloud SQL for MySQL instance that supports a web application. Recently, users have reported that the application is responding slowly during peak hours. You examine the Query Insights dashboard and see that a specific query is running frequently and has a high execution time. The query involves JOINs on three tables, each with tens of thousands of rows. The query plan shows a full table scan on two tables. What should you do first to improve performance?

Question 99hardmultiple choice
Read the full Monitor and optimize database performance explanation →

Your team uses Cloud Bigtable for a time-series data analytics platform. You observe that the write throughput has dropped significantly, and Cloud Monitoring shows that most of the CPU usage is concentrated on a few nodes. The remaining nodes have low CPU usage. The data model uses sequential timestamps as row keys, and the application writes data for many different sensors. Each sensor ID is part of the row key. What is the most effective action to resolve this hot spotting?

Question 100mediummultiple choice
Read the full Monitor and optimize database performance explanation →

A Cloud Spanner instance is experiencing high CPU utilization (above 80%) on multiple nodes. The database is used for an e-commerce application with a high volume of read-write transactions. The application uses the googlesql dialect and runs typical OLTP queries. You have already reviewed the query performance and found that most queries are efficient. Which initial step should you take to reduce CPU utilization?

Question 101hardmultiple choice
Read the full Monitor and optimize database performance explanation →

You administer a Cloud SQL for PostgreSQL instance running with 4 vCPUs and 15 GB of memory. The application frequently runs complex read-only reporting queries during business hours. Recently, the database started throwing 'out of memory' errors, and the instance's memory usage is consistently above 90%. You have enabled the pgtune recommendations and applied them. The workload is read-heavy and does not require a high write throughput. Which change would most effectively reduce memory pressure while maintaining query performance?

Question 102mediummultiple choice
Read the full Monitor and optimize database performance explanation →

What is the most likely cause of the high execution time?

Exhibit

Refer to the exhibit. Cloud Spanner query statistics:

Query: SELECT customer_id, order_total FROM orders WHERE status = 'PENDING'
Execution time: 4.2 seconds
Rows returned: 500
Rows scanned: 5,000,000
Nodes: 2
Execution plan: Full table scan
Question 103easymulti select
Read the full Monitor and optimize database performance explanation →

Which TWO actions would help optimize a Cloud SQL for PostgreSQL database experiencing high read latency?

Question 104hardmultiple choice
Read the full Monitor and optimize database performance explanation →

Your company runs a large e-commerce application on Google Cloud using Cloud SQL for MySQL (version 8.0) with 2 TB of data. The database experiences intermittent performance degradation during peak hours (10am-2pm). Cloud Monitoring shows a spike in CPU utilization to 90% and increased query latency. The database has been running for 6 months with default settings. You notice many slow queries like "SELECT * FROM orders WHERE customer_id=12345 ORDER BY order_date DESC LIMIT 10" that take 5-10 seconds. The orders table has 50 million rows, customer_id has a B-tree index, and order_date is not indexed. The query execution plan indicates a full table scan and a filesort. What is the most effective course of action to resolve the performance issue?

Practice tests

Scored 10-question sessions with instant feedback and explanations.

PCDE Practice Test 1 — 10 Questions→PCDE Practice Test 2 — 10 Questions→PCDE Practice Test 3 — 10 Questions→PCDE Practice Test 4 — 10 Questions→PCDE Practice Test 5 — 10 Questions→PCDE Practice Exam 1 — 20 Questions→PCDE Practice Exam 2 — 20 Questions→PCDE Practice Exam 3 — 20 Questions→PCDE Practice Exam 4 — 20 Questions→Free PCDE Practice Test 1 — 30 Questions→Free PCDE Practice Test 2 — 30 Questions→Free PCDE Practice Test 3 — 30 Questions→PCDE Practice Questions 1 — 50 Questions→PCDE Practice Questions 2 — 50 Questions→PCDE Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

Plan and manage database infrastructureDefine data structures and implement SQL for Business IntelligenceDesign and implement database schemasMonitor and optimize database performance

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Monitor and optimize database performance setsAll Monitor and optimize database performance questionsPCDE Practice Hub