Google Cloud Professional Cloud Security Engineer — Question 354

You are deploying a web application hosted on Compute Engine. A business requirement mandates that application logs are preserved for 12 years and data is kept within European boundaries. You want to implement a storage solution that minimizes overhead and is cost-effective. What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because creating a Cloud Storage bucket directly allows for efficient logging with minimal overhead, ensuring logs are stored in the required region. Option B involves using the Cloud Logging agent which adds complexity, while C introduces unnecessary components with Pub/Sub, and D does not address the direct logging efficiency required.