Your organization is a financial company that needs to store audit log files for 3 years. Your organization has hundreds of Google Cloud projects. You need to implement a cost-effective approach for log file retention. What should you do?
A.
Create an export to the sink that saves logs from Cloud Audit to BigQuery.
B.
Create an export to the sink that saves logs from Cloud Audit to a Coldline Storage bucket.
C.
Write a custom script that uses logging API to copy the logs from Stackdriver logs to BigQuery.
D.
Export these logs to Cloud Pub/Sub and write a Cloud Dataflow pipeline to store logs to Cloud SQL.
BigQuery data after 90 days has the same cost for storage as Cloud Storage Nearline. Storing it in Cloud Storage adds more costs for data retrival if the class is i.e archival
B is correct because Coldline Storage is the perfect service to store audit logs from all the projects and is very cost-efficient as well. Coldline Storage is a very low-cost, highly durable storage service for storing infrequently accessed data.
if it is all about cost, B is the best. However, speaking of "audit" you probably need to access the data once in a while, which Coldline storage might not be ideal for this case I guess? I would go for A in the exam though.
Both options (exporting to BigQuery and exporting to Coldline Storage) have their merits, and the choice depends on specific use cases, access patterns, and organizational preferences. If your organization values a more structured and analyzable format with SQL-like querying capabilities, BigQuery might be preferable. If the priority is on long-term, infrequent access with cost optimization, then Coldline Storage could be a suitable choice.
Answer B. Create an export to the sink that saves logs from Cloud Audit to a Coldline Storage bucket.
To meet the requirement of retaining log files for 3 years, a cost-effective approach is to export logs to a cheaper storage option like Cloud Storage Coldline storage class. The coldline storage class is designed for cold data storage and offers lower storage costs and higher retrieval costs when compared to other storage classes.
Exporting logs from Cloud Audit to a Coldline Storage bucket can be done by creating an export sink. This is a straightforward process that can be done via the Cloud Console, Cloud SDK, or REST API.
INCORRECT:
Answer A is incorrect because while it does store logs in BigQuery, it is a more expensive option than storing logs in Coldline storage.
Answer C is incorrect because writing a custom script to copy logs to BigQuery would be complex and more difficult to maintain compared to using an export sink.
Answer D is incorrect because while logs can be exported to Pub/Sub, writing a Cloud Dataflow pipeline to store logs in Cloud SQL would require additional configuration and might not be as cost-effective as exporting logs to Coldline storage.
B. Create an export to the sink that saves logs from Cloud Audit to a Coldline Storage bucket. This is the most cost-effective approach for log file retention as Coldline Storage has lower storage costs compared to other storage classes, making it suitable for infrequently accessed data that still needs to be retained for a long time.
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.
yasu
Highly Voted 4 years, 8 months agolxs
3 years, 1 month agoKerolesKhalil
1 year, 5 months ago_Sande
1 year, 7 months agouganeshku
2 years, 11 months agoGini
Highly Voted 4 years, 7 months agoAle1973
4 years, 2 months agopas77
3 years, 3 months agoboof
3 years, 2 months agopragneshpandya
Most Recent 2 months, 4 weeks agojungkook_1
7 months agojungkook_1
7 months agoLSB56757
7 months, 3 weeks agozameerb
10 months, 1 week agoBAofBK
1 year agogsmasad
1 year agoelviskimutai
1 year, 2 months agosabrinakloud
1 year, 7 months agoBuruguduystunstugudunstuy
1 year, 9 months agoBuruguduystunstugudunstuy
1 year, 9 months agoMac_1612
1 year, 2 months agocucinareblog
1 year, 2 months agokaisehhop
1 year, 9 months agoalex000
1 year, 10 months agoNeeleshinuk
1 year, 11 months agocslince
1 year, 11 months agoZoze
2 years ago