The answer is that partitions older than 365 days are automatically deleted. This is the correct effect because the `partition_expiration_days` option in BigQuery instructs the system to drop any partition whose boundary date falls outside the specified window from the current date, with the deletion handled by BigQuery’s background maintenance process to reduce storage costs and simplify lifecycle management. On the Google Professional Cloud Database Engineer exam, this concept tests your understanding of automated table management and cost optimization; a common trap is confusing this with a retention policy that only hides data or with a time-based filter on queries, whereas `partition_expiration_days` physically removes the partition data. A reliable memory tip is to think of it as a “self-cleaning” table—set the expiration days, and BigQuery sweeps away the old partitions for you.
PCDE Practice Question: Define data structures and implement SQL for Business Intelligence
This PCDE practice question tests your understanding of define data structures and implement sql for business intelligence. 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.
Exhibit
CREATE TABLE mydataset.sales
PARTITION BY DATE(order_ts)
CLUSTER BY product_id
OPTIONS(
partition_expiration_days = 365
)
AS SELECT * FROM staging.sales
Refer to the exhibit. What is the effect of the partition_expiration_days option?
CREATE TABLE mydataset.sales
PARTITION BY DATE(order_ts)
CLUSTER BY product_id
OPTIONS(
partition_expiration_days = 365
)
AS SELECT * FROM staging.sales
A
The table's storage cost is reduced by 365%
Why wrong: Storage cost is not directly reduced by a specific percentage; expiration helps reduce cost over time.
B
Queries that reference data older than 365 days will fail
Why wrong: Queries on expired partitions will fail, but the option does not cause queries on existing older data to fail before expiration.
C
Partitions older than 365 days are automatically deleted
The option enables automatic partition expiration, deleting old partitions to free storage.
D
The table will be partitioned into 365 partitions
Why wrong: The number of partitions is determined by data distribution, not by the expiration setting.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Partitions older than 365 days are automatically deleted
The `partition_expiration_days` option in BigQuery automatically drops partitions that are older than the specified number of days, reducing storage costs and simplifying lifecycle management. When set to 365, any partition with a date older than 365 days from the current date is deleted by BigQuery's background maintenance process.
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.
✗
The table's storage cost is reduced by 365%
Why it's wrong here
Storage cost is not directly reduced by a specific percentage; expiration helps reduce cost over time.
✗
Queries that reference data older than 365 days will fail
Why it's wrong here
Queries on expired partitions will fail, but the option does not cause queries on existing older data to fail before expiration.
✓
Partitions older than 365 days are automatically deleted
Why this is correct
The option enables automatic partition expiration, deleting old partitions to free storage.
Related concept
Read the scenario before looking for a memorised answer.
✗
The table will be partitioned into 365 partitions
Why it's wrong here
The number of partitions is determined by data distribution, not by the expiration setting.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Google Cloud often tests the distinction between automatic deletion (expiration) and query failure—candidates mistakenly think expired partitions cause errors, but BigQuery simply treats them as non-existent, returning empty results for those date ranges.
Detailed technical explanation
How to think about this question
Under the hood, BigQuery uses a background job to scan for partitions whose partition boundary (e.g., a date column) is older than the current UTC date minus the `partition_expiration_days` value. The deletion is irreversible and happens asynchronously, so there may be a short delay between the partition reaching expiration and its actual removal. This feature is particularly useful in streaming ingestion scenarios where you want to automatically purge old event data without manual DDL statements.
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 startup's cloud architect reviews their monthly bill and notices costs are higher than expected for a long-running batch job. Switching from on-demand instances to Reserved Instances — or using Spot/Preemptible VMs — can reduce compute costs by up to 72 %. Questions like this test whether you understand the tradeoffs between commitment, flexibility, and cost across cloud pricing models.
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.
Define data structures and implement SQL for Business Intelligence — This question tests Define data structures and implement SQL for Business Intelligence — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Partitions older than 365 days are automatically deleted — The `partition_expiration_days` option in BigQuery automatically drops partitions that are older than the specified number of days, reducing storage costs and simplifying lifecycle management. When set to 365, any partition with a date older than 365 days from the current date is deleted by BigQuery's background maintenance process.
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.