Google Cloud Professional Cloud Security Engineer — Question 231

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?

Answer options

Correct answer: B

Explanation

Exporting the logs to Cloud Storage buckets is the most cost-effective method for long-term retention of data, as it allows for scalable storage at a lower price. BigQuery datasets are more suited for analysis rather than long-term storage, while StackDriver logging is primarily for real-time monitoring and Cloud Pub/Sub topics are intended for message distribution rather than long-term log storage.