
Answer-first summary for fast verification
Answer: Opt for the filter_record_transformer plugin to remove sensitive data from the logs.
The correct choice is the filter_record_transformer plugin because it is specifically designed to add, modify, and delete fields within log entries, making it ideal for handling sensitive data. The other options fall short for the following reasons: The fluent-plugin-detect-exceptions plugin is intended for scanning log streams for multi-line exception stack traces, not for data modification. The fluent-plugin-parser plugin is used for parsing string fields in event records and mutating the event record with the parsed result, not for direct data removal. The fluent-plugin-record-reformer plugin is more about modifying tags rather than directly removing sensitive data. For more details, refer to the documentation on modifying log records.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Imagine you're overseeing an application hosted on Google Kubernetes Engine (GKE), with its logs being captured by Cloud Logging. Your task is to ensure that sensitive data is scrubbed from these logs before they're sent to the Cloud Logging API. Which logging plugin would you employ for this purpose?
A
Employ the fluent-plugin-detect-exceptions plugin to eliminate sensitive data.
B
Utilize the fluent-plugin-parser plugin to strip away sensitive data.
C
Apply the fluent-plugin-record-reformer plugin to cleanse sensitive data from the logs.
D
Opt for the filter_record_transformer plugin to remove sensitive data from the logs.
No comments yet.