The correct choice is to continue running queries, as performance will improve once the optimize operation completes. This is because Cloud Spanner’s optimize operation runs asynchronously in the background, reorganizing data and rebuilding indexes to improve the physical data layout, but it does not block database access. During optimization, the operation consumes significant I/O and CPU resources, which temporarily slows query performance; once it finishes, the more efficient data layout directly enhances query speed. On the Google Professional Cloud Database Engineer exam, this scenario tests your understanding of Spanner’s asynchronous maintenance operations and their impact on query performance—a common trap is assuming you must cancel or restart the operation to fix slow queries. Remember the memory tip: “Optimize is async, not a block; let it finish to unlock the clock.”
PCDE Monitor and optimize database performance Practice Question
This PCDE practice question tests your understanding of monitor and optimize database performance. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
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?
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Continue running queries; performance will improve once the optimize operation completes.
Option A is correct because Spanner's optimize operation runs asynchronously and does not block database access. Queries are slower during optimization because the operation reorganizes data and rebuilds indexes, which consumes I/O and CPU resources. Once the optimize operation completes, query performance will improve as the data layout becomes more efficient.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
✓
Continue running queries; performance will improve once the optimize operation completes.
Why this is correct
The optimize operation rebuilds indexes and updates statistics, which improves query performance.
Related concept
Read the scenario before looking for a memorised answer.
✗
Wait for the operation to finish before allowing any queries.
Why it's wrong here
Queries are allowed during optimize, and waiting is unnecessary.
✗
Drop and restore the database again to start fresh.
Why it's wrong here
This would restart the optimize process and waste time.
✗
Cancel the optimize operation to reduce resource usage.
Why it's wrong here
Canceling would leave indexes unoptimized and statistics outdated, hurting performance long-term.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the misconception that database maintenance operations like optimization must complete before the database is usable, but Spanner is designed for continuous availability and allows queries during such operations.
Detailed technical explanation
How to think about this question
The optimize operation in Spanner is a background maintenance task that compacts data, reorganizes splits, and rebuilds secondary indexes to improve read performance. It uses a resource-governed approach, limiting its impact on foreground queries, but it still competes for I/O and CPU, causing temporary slowdowns. In production, it's common to schedule optimization during low-traffic windows, but it can run concurrently with normal operations without data inconsistency.
KKey Concepts to Remember
Read the scenario before looking for a memorised answer.
Find the constraint that changes the correct option.
Eliminate answers that are true in general but not in this case.
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Monitor and optimize database performance — This question tests Monitor and optimize database performance — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Continue running queries; performance will improve once the optimize operation completes. — Option A is correct because Spanner's optimize operation runs asynchronously and does not block database access. Queries are slower during optimization because the operation reorganizes data and rebuilds indexes, which consumes I/O and CPU resources. Once the optimize operation completes, query performance will improve as the data layout becomes more efficient.
What should I do if I get this PCDE question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
This PCDE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the PCDE exam.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.