
Answer-first summary for fast verification
Answer: Use the filter_record_transformer plugin to remove sensitive data.
The filter_record_transformer plugin is the correct choice for adding, modifying, and deleting fields in log entries, including the removal of sensitive data. Option B is incorrect as it is used for modifying tags. Option A is incorrect because it is designed for scanning log streams for multi-line exception stack traces. Option D is incorrect as it is used for parsing string fields in event records and mutating the event record with the parsed result. Reference: [Google Cloud Logging Agent Configuration](https://cloud.google.com/logging/docs/agent/configuration#modifying_log_records).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are managing an application deployed on Google Kubernetes Engine (GKE), with its logs being captured by Cloud Logging. Your task is to ensure that sensitive data is removed from these logs before they are sent to the Cloud Logging API. Which logging plugin should you use for this purpose?
A
Utilize the fluent-plugin-detect-exceptions plugin to remove sensitive data.
B
Apply the fluent-plugin-record-reformer plugin to remove sensitive data.
C
Use the filter_record_transformer plugin to remove sensitive data.
D
Implement the fluent-plugin-parser plugin to remove sensitive data.
No comments yet.