Your application writes sensitive logs to Cloud Logging. You want to mask sensitive data in the logs before they are stored. What is the most effective way to do this in GCP?
Choose an answer
Tap an option to check your answer.
Correct answer: Use Data Loss Prevention API on logs.
Why this is the answer
*Explanation:* Use Data Loss Prevention API on logs. A. Incorrect, exclusion filters can omit logs but cannot modify them. B. Correct, Data Loss Prevention API can be used to mask sensitive data in text streams, including logs. C. Incorrect, this is feasible but not the most effective way. D) Incorrect, Cloud KMS encrypts but doesn't mask data. E) Incorrect, VPC Service Controls can restrict access but do not mask data.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed