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.
An organization is running containerized microservices where application logs occasionally contain sensitive user data, such as jsonPayload.user_email and jsonPayload.tax_id.
DevOps engineers require continuous access to these logs in Logs Explorer to debug production incidents, inspect error codes, and verify request latency. However, security compliance requires that standard engineers cannot view the sensitive PII fields, while authorized compliance auditors must retain the ability to inspect the full, unredacted log entries.
Which native Cloud Logging strategy should you implement to meet these requirements?
Field-level access control in Cloud Logging allows administrators to restrict access to specific leaf fields or nested paths within a LogEntry (such as specific fields inside jsonPayload, httpRequest, or labels) at the log bucket level without dropping or hiding the entire log message.
LogEntry in Logs Explorer to inspect metadata, error traces, and operational context; the restricted leaf fields are simply redacted and omitted from their query results.jsonPayload.user_email,jsonPayload.tax_id in --restricted-fields, non-privileged users cannot view these values or query them directly.roles/logging.fieldAccessor (optionally scoped via IAM conditions) to compliance auditors allows them to view and search the complete, unredacted log entries when necessary.Alternative solutions like exclusion filters or log views drop or hide the entire log entry, making it impossible for DevOps teams to debug operational issues. Field-level access control specifically targets sensitive fields while leaving all other telemetry intact.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.