Google Cloud Professional Cloud DevOps Engineer — Question 116

Your company has a Google Cloud resource hierarchy with folders for production, test, and development. Your cyber security team needs to review your company's Google Cloud security posture to accelerate security issue identification and resolution. You need to centralize the logs generated by Google Cloud services from all projects only inside your production folder to allow for alerting and near-real time analysis. What should you do?

Answer options

Correct answer: C

Explanation

The correct answer is C because creating an aggregated log sink with a Pub/Sub topic allows for real-time processing of logs and alerting. Option A is incorrect as the Workflows API does not directly relate to log centralization. Option B, while helpful for monitoring, does not specifically address log aggregation for security purposes. Option D uses a Cloud Logging bucket, which is less efficient for real-time analysis compared to a Pub/Sub topic.