Google Cloud Professional Cloud DevOps Engineer — Question 153

Your organization stores all application logs from multiple Google Cloud projects in a central Cloud Logging project. Your security team wants to enforce a rule that each project team can only view their respective logs and only the operations team can view all the logs. You need to design a solution that meets the security team s requirements while minimizing costs. What should you do?

Answer options

Correct answer: C

Explanation

Option C is correct because creating log views for each project team ensures they only see their specific logs while allowing the operations team to access all logs through the _AllLogs view. Option A does not restrict access appropriately, as it allows project teams to see all logs. Option B restricts access to individual projects but does not fulfill the requirement for the operations team to see all logs. Option D introduces unnecessary complexity and cost by exporting logs to BigQuery, which is not needed for this scenario.