Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Your enterprise organization centralizes logs from multiple application projects into a dedicated centralized logging project. Your compliance and operations teams have established the following access control requirements for multi-project observability:
LogEntry payloads.Which solution should you implement to meet these requirements?
Field-level access control in Cloud Logging provides granular security by allowing administrators to restrict access to specific fields inside a LogEntry (such as jsonPayload.email or jsonPayload.ssn) while keeping the rest of the log record visible. Users without specific permissions can view the log entry, but restricted fields are masked or hidden.
roles/logging.viewer) ensures they can query, filter, and view application logs for debugging while automatically hiding sensitive PII fields.roles/logging.fieldAccessor role in addition to roles/logging.viewer gives them full clearance to read both unrestricted and restricted fields across the entire centralized repository.Field-level access control operates natively within the Cloud Logging platform. Compared to managing multiple log sinks or restricting access purely by entire log views, field-level controls enforce least privilege at the field level without complicating data routing topologies.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.