PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice question 16 of 25
[Managing service incidents] Your company runs an e-commerce business. The application responsible for payment processing has structured JSON logging…
Full set: 205 questionsGoogle Cloud Logging's field-level access control is the feature specifically designed for this scenario. By configuring jsonPayload.useremail as a restricted field on the log bucket, you can deny access to it by default for all principals. You can then grant the roles/logging.fieldAccessor IAM role to the security team for that specific field and bucket. This allows the engineering team to see all log data except the PII, while the security team can view the complete log entry, fulfilling the principle of least privilege.
A. An exclusion filter would remove the entire log entry if it contains the PII field, preventing engineers from accessing necessary operational data.
B. Conditional role bindings control access to entire log entries or buckets, not specific fields within a log's payload.
D. Modifying the application couples security policy with application code and is less flexible than using a native cloud logging feature for access control.
1. Google Cloud Documentation, "Cloud Logging > Security and compliance > Field-level access control". "Field-level access control lets you hide individual LogEntry fields from users, letting you use a single log bucket for both your sensitive and your non-sensitive data... To grant a principal permission to view the restricted fields in a given log bucket, you must grant them the logging.fieldAccessor IAM role".
2. Google Cloud Documentation, "Cloud Logging > IAM and access control > Access control with IAM". This page details the roles/logging.fieldAccessor role: "Grants permission to read log fields that are restricted."
Keep practicing
Take the free PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PROFESSIONAL-CLOUD-DEVOPS-ENGINEER practice questions
- Question 1[Building and implementing CI/CD pipelines for a service] You need to enforce several con…
- Question 2You deployed an application into a large Standard Google Kubernetes Engine (GKE) cluster.…
- Question 3You are responding to a high-priority incident where a critical, user-facing payment serv…
- Question 4[Applying Site Reliability Engineering (SRE) principles to a service] You support a user-…
- Question 5You are deploying an application that needs to access sensitive information. You need to …
- Question 6[Building and implementing CI/CD pipelines for a service] You are building an application…
