PROFESSIONAL-CLOUD-DEVOPS-ENGINEER · Question #84
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 th
The correct answer is C. Create log views for each project team and only show each project team their application logs.. To provide granular access to logs in a central Cloud Logging project, create log views for each project team to display only their logs, while granting the operations team access to all logs, minimizing costs.
Question
Options
- AGrant each project team access to the project _Default view in the central logging project. Grant
- BCreate Identity and Access Management (IAM) roles for each project team and restrict access to
- CCreate log views for each project team and only show each project team their application logs.
- DExport logs to BigQuery tables for each project team. Grant project teams access to their tables.
How the community answered
(31 responses)- A6% (2)
- B3% (1)
- C77% (24)
- D13% (4)
Why each option
To provide granular access to logs in a central Cloud Logging project, create log views for each project team to display only their logs, while granting the operations team access to all logs, minimizing costs.
Granting each project team access to the project _Default view in the central logging project would give all teams access to all logs in that view, violating the requirement that each team can only view their respective logs.
Creating IAM roles without specific log views would be too broad; IAM roles typically apply at the project or bucket level, not at the granular log entry level required to differentiate project-specific logs for different teams.
Cloud Logging log views allow you to define specific filters on log buckets, granting different teams access to only a subset of logs without duplicating data. This approach is cost-effective as it leverages existing log storage and access controls, fulfilling the least privilege requirement by showing each project team only their respective logs, while the operations team can be granted broader access to the entire log bucket.
Exporting logs to separate BigQuery tables for each project team would incur additional BigQuery storage and potentially export costs, and does not directly leverage Cloud Logging's built-in access control for views, thus not minimizing costs.
Concept tested: Cloud Logging log views for granular access control
Source: https://cloud.google.com/logging/docs/views
Topics
Community Discussion
No community discussion yet for this question.