GCP-CLOUD-ARCHITECT practice question 9 of 10
Your applications will be writing their logs to BigQuery for analysis. Each application should have its own table. Any logs older than 45 days should be removed. You want to optimize storage and follow Google recommended practices. What should you do?
Full set: 333 questionsDomain Analyzing and optimizing technical and business processes
Using time-partitioned tables is the Google-recommended best practice for managing time-series data like logs. By partitioning the table by day and setting the partition expiration to 45 days, BigQuery will automatically and efficiently delete partitions older than the specified limit. This approach optimizes storage costs and query performance because it avoids costly Data Manipulation Language (DML) operations that would require scanning the table to delete old rows. It is a more manageable and cost-effective solution than manual scripting or whole-table expiration.
A. Configuring table expiration would delete the entire table after 45 days, not just the old records, resulting in complete data loss.
C. BigQuery does not have a default behavior to automatically prune data; data retention must be explicitly configured by the user.
D. Using a script with DML statements (DELETE) to remove old records is expensive, as it requires a full table scan and incurs query costs.
1. Google Cloud Documentation, "Introduction to partitioned tables," Section: "Partition expiration." It states, "Setting a partition expiration is a cost-effective way to manage storage."
2. Google Cloud Documentation, "Managing partitioned tables," Section: "Updating a partition expiration time." This guide provides instructions on how to set partitionexpirationdays.
3. Google Cloud Documentation, "BigQuery best practices: cost control," Section: "Use table expiration or partitioned tables to prune old data." This section explicitly recommends partition expiration over DML for deleting old data.
Keep practicing
Take the free GCP-CLOUD-ARCHITECT practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GCP-CLOUD-ARCHITECT practice questions
- Question 1Your organization uses Google Kubernetes Engine (GKE) and Amazon Elastic Kubernetes Servi…
- Question 2You want to enable your running Google Kubernetes Engine cluster to scale as demand for y…
- Question 3Your architecture calls for the centralized collection of all admin activity and VM syste…
- Question 4A global media company is launching a new web application. The application backend is hos…
- Question 5You manage a highly distributed, hybrid- and multi-cloud IT environment and your develope…
- Question 6Your company is developing a web-based application. You need to make sure that production…
