exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 78 discussion

Actual exam question from Google's Professional Cloud Architect
Question #: 78
Topic #: 1
[All Professional Cloud Architect Questions]

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?

  • A. Configure the expiration time for your tables at 45 days
  • B. Make the tables time-partitioned, and configure the partition expiration at 45 days
  • C. Rely on BigQuery's default behavior to prune application logs older than 45 days
  • D. Create a script that uses the BigQuery command line tool (bq) to remove records older than 45 days
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
KouShikyou
Highly Voted 5 years ago
Could you please help clarify? I think B is correct. It looks like table will be deleted with option A. https://cloud.google.com/bigquery/docs/managing-tables#updating_a_tables_expiration_time When you delete a table, any data in the table is also deleted. To automatically delete tables after a specified period of time, set the default table expiration for the dataset or set the expiration time when you create the table.
upvoted 40 times
AzureDP900
2 years ago
Agreed and going with B
upvoted 2 times
...
kumarp6
3 years, 12 months ago
it is B, if you use option A, on 46th day there is no table/content in table for application :)
upvoted 11 times
...
nitinz
3 years, 7 months ago
B partition table
upvoted 4 times
...
tartar
4 years, 2 months ago
B is ok
upvoted 8 times
...
...
aviv
Highly Voted 4 years, 10 months ago
Agreed with B.
upvoted 10 times
...
OSAMA911
Most Recent 8 months, 1 week ago
Selected Answer: B
I think B is correct.
upvoted 1 times
...
AdityaGupta
1 year ago
Selected Answer: B
https://cloud.google.com/bigquery/docs/managing-partitioned-tables#partition-expiration B is the correct answer.
upvoted 3 times
...
SSPPJi
1 year, 3 months ago
https://cloud.google.com/bigquery/docs/managing-partitioned-tables#partition-expiration
upvoted 4 times
...
FaizAhmed
1 year, 4 months ago
Selected Answer: B
B is correct
upvoted 1 times
...
Sur_Nikki
1 year, 5 months ago
B seems correct as this will partitioning will create a filter criteria on the basis of which specified actions on logs will be taken
upvoted 1 times
...
examch
1 year, 10 months ago
Selected Answer: B
B is the correct answer, If your tables are partitioned by date, the dataset's default table expiration applies to the individual partitions. You can also control partition expiration using the time_partitioning_expiration flag in the bq command-line tool or the expirationMs configuration setting in the API. When a partition expires, data in the partition is deleted but the partitioned table is not dropped even if the table is empty. https://cloud.google.com/bigquery/docs/best-practices-storage
upvoted 7 times
...
megumin
1 year, 11 months ago
Selected Answer: B
B is ok
upvoted 1 times
...
MarcoEscanor
2 years ago
Selected Answer: B
B - You can control partition expiration using the time_partitioning_expiration flag in the bq command-line https://cloud.google.com/bigquery/docs/best-practices-storage
upvoted 2 times
...
AhmedH7793
2 years, 1 month ago
Selected Answer: B
B is okay
upvoted 1 times
...
DrishaS4
2 years, 2 months ago
Selected Answer: B
Using Table-Partitions.
upvoted 1 times
...
DrishaS4
2 years, 2 months ago
Using Table-Partitions.
upvoted 1 times
...
[Removed]
2 years, 8 months ago
Selected Answer: B
I got similar question on my exam.
upvoted 1 times
...
haroldbenites
2 years, 10 months ago
Go for B. https://cloud.google.com/bigquery/docs/creating-partitioned-tables#sql CREATE TABLE mydataset.newtable (transaction_id INT64, transaction_date DATE) PARTITION BY transaction_date OPTIONS( partition_expiration_days=3, require_partition_filter=true )
upvoted 2 times
...
vincy2202
2 years, 11 months ago
Selected Answer: B
B is the correct answer
upvoted 2 times
...
MaxNRG
3 years ago
B – Make the tables time-partitioned and configure the partition expiration at 45 days. A – if you use table expiration time, then it will remove the whole table after 45 days. D – requires extra work and is not automatic.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago