PROFESSIONAL-CLOUD-SECURITY-ENGINEER · Question #109
A manager wants to start retaining security event logs for 2 years while minimizing costs. You write a filter to select the appropriate log entries. Where should you export the logs?
The correct answer is B. Cloud Storage buckets. Cloud Storage (specifically Coldline or Archive storage classes) is the most cost-effective destination for long-term log retention. Logs exported via a Cloud Logging sink to a Cloud Storage bucket can be stored cheaply for years and accessed when needed for audits or…
Question
Options
- ABigQuery datasets
- BCloud Storage buckets
- CStackDriver logging
- DCloud Pub/Sub topics
How the community answered
(23 responses)- A17% (4)
- B70% (16)
- C9% (2)
- D4% (1)
Explanation
Cloud Storage (specifically Coldline or Archive storage classes) is the most cost-effective destination for long-term log retention. Logs exported via a Cloud Logging sink to a Cloud Storage bucket can be stored cheaply for years and accessed when needed for audits or compliance. BigQuery (A) is optimized for analytics with frequent queries and is significantly more expensive for pure archival storage. Cloud Logging / Stackdriver (C) has a maximum retention period (30 days by default, up to 3650 days with custom retention but at higher cost) and is not ideal for cost-optimized archiving. Cloud Pub/Sub (D) is a streaming message bus, not a storage system, and cannot retain logs for 2 years.
Topics
Community Discussion
No community discussion yet for this question.