Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam Professional Cloud Architect topic 1 question 176 discussion

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

Your company has an application that is running on multiple instances of Compute Engine. It generates 1 TB per day of logs. For compliance reasons, the logs need to be kept for at least two years. The logs need to be available for active query for 30 days. After that, they just need to be retained for audit purposes. You want to implement a storage solution that is compliant, minimizes costs, and follows Google-recommended practices. What should you do?

  • A. 1. Install a Cloud Logging agent on all instances. 2. Create a sink to export logs into a regional Cloud Storage bucket. 3. Create an Object Lifecycle rule to move files into a Coldline Cloud Storage bucket after one month. 4. Configure a retention policy at the bucket level using bucket lock.
  • B. 1. Write a daily cron job, running on all instances, that uploads logs into a Cloud Storage bucket. 2. Create a sink to export logs into a regional Cloud Storage bucket. 3. Create an Object Lifecycle rule to move files into a Coldline Cloud Storage bucket after one month.
  • C. 1. Install a Cloud Logging agent on all instances. 2. Create a sink to export logs into a partitioned BigQuery table. 3. Set a time_partitioning_expiration of 30 days.
  • D. 1. Create a daily cron job, running on all instances, that uploads logs into a partitioned BigQuery table. 2. Set a time_partitioning_expiration of 30 days.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
gggsrs
Highly Voted 2 years, 3 months ago
The answer is A. The practice for managing logs generated on Compute Engine on Google Cloud is to install the Cloud Logging agent and send them to Cloud Logging. The sent logs will be aggregated into a Cloud Logging sink and exported to Cloud Storage. The reason for using Cloud Storage as the destination for the logs is that the requirement in question requires setting up a lifecycle based on the storage period. In this case, the log will be used for active queries for 30 days after it is saved, but after that, it needs to be stored for a longer period of time for auditing purposes. If the data is to be used for active queries, we can use BigQuery's Cloud Storage data query feature and move the data past 30 days to Coldline to build a cost-optimal solution. Therefore, the correct answer is as follows 1. Install the Cloud Logging agent on all instances. Create a sync that exports the logs to the region's Cloud Storage bucket. 3. Create an Object Lifecycle rule to move the files to the Coldline Cloud Storage bucket after one month. 4. 4. set up a bucket-level retention policy using bucket locking."
upvoted 21 times
gggsrs
2 years, 3 months ago
https://cloud.google.com/logging/docs/agent/logging/installation https://cloud.google.com/logging/docs/export/configure_export_v2 https://cloud.google.com/bigquery/external-data-cloud-storage
upvoted 4 times
...
...
Tirthankar17
Most Recent 2 months ago
Selected Answer: A
No need to look at any other options.
upvoted 1 times
...
SANTHEDAN
6 months, 1 week ago
None of the options are correct: A - It should be archive (>= 365 days) and not coldline ( >= 90 days) - Proposed solution is more expensive that what is possible. Also no way to query unless you use BigQuery external tables. B & C - Wrong because CRON is not the way to do this. D - Wrong because data is deleted after 30 days and not retained for 2 years.
upvoted 4 times
...
devnul
7 months, 3 weeks ago
Answer A is misleading/confusing: "3. Create an Object Lifecycle rule to move files into a Coldline Cloud Storage bucket after one month." A lifecycle rule will NOT move files in another bucket (coldline bucket etc). It will just change the storage class of the file.
upvoted 1 times
...
someCloudUser
1 year, 2 months ago
Selected Answer: A
A is correct
upvoted 1 times
...
someCloudUser
1 year, 2 months ago
Selected Answer: A
A is correct.
upvoted 1 times
...
omermahgoub
1 year, 4 months ago
A. 1. Install a Cloud Logging agent on all instances. 2. Create a sink to export logs into a regional Cloud Storage bucket. 3. Create an Object Lifecycle rule to move files into a Coldline Cloud Storage bucket after one month. 4. Configure a retention policy at the bucket level using bucket lock. This approach would allow you to use Cloud Logging to collect and export the logs from the Compute Engine instances into a Cloud Storage bucket. You can then use an Object Lifecycle rule to automatically move the logs from the regional bucket to a Coldline bucket after one month, which will reduce storage costs for logs that are not actively being queried. By configuring a retention policy using bucket lock, you can ensure that the logs are retained for at least two years for audit purposes. This approach follows Google-recommended practices for storing logs and minimizing costs.
upvoted 2 times
...
surajkrishnamurthy
1 year, 4 months ago
Selected Answer: A
A Is the Correct Answer
upvoted 1 times
...
habros
1 year, 4 months ago
Selected Answer: A
A is perfect answer… the rest doesn’t sound rational
upvoted 1 times
...
megumin
1 year, 5 months ago
Selected Answer: A
A is ok
upvoted 1 times
...
Mahmoud_E
1 year, 6 months ago
Selected Answer: A
A is the correct answer
upvoted 1 times
...
AzureDP900
1 year, 6 months ago
I agree with A, There is no need of BigQuery.
upvoted 2 times
...
manis68
1 year, 6 months ago
Selected Answer: A
A is fine
upvoted 1 times
...
Imran109
1 year, 8 months ago
For compliance reasons, the logs need to be kept for at least two years... In Bigquery time partitioned after 30 days ..how the logs be present for 2 years ..Hence going with A
upvoted 1 times
...
harutheorochimaru
1 year, 8 months ago
Selected Answer: A
A is a no-brainer
upvoted 1 times
...
exam9391
1 year, 9 months ago
Selected Answer: A
A is ok
upvoted 1 times
...
H_S
1 year, 10 months ago
Selected Answer: A
when a partition expires, the data in the partition is no longer available
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 ...