exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 78 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 78
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

You are running an application on Compute Engine and collecting logs through Stackdriver. You discover that some personally identifiable information (PII) is leaking into certain log entry fields. You want to prevent these fields from being written in new log entries as quickly as possible. What should you do?

  • A. Use the filter-record-transformer Fluentd filter plugin to remove the fields from the log entries in flight.
  • B. Use the fluent-plugin-record-reformer Fluentd output plugin to remove the fields from the log entries in flight.
  • C. Wait for the application developers to patch the application, and then verify that the log entries are no longer exposing PII.
  • D. Stage log entries to Cloud Storage, and then trigger a Cloud Function to remove the fields and write the entries to Stackdriver via the Stackdriver Logging API.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
MF2C
Highly Voted 2 years, 5 months ago
reformer is Fluentd plugin to add or replace fields of a event record, so ans is A
upvoted 11 times
...
not_thanos
Highly Voted 2 years, 4 months ago
Selected Answer: A
Seems both A and B will work. However i will go with A, since it is included in the fluentd core and does not require installing a new plugin "The filter_record_transformer filter plugin mutates/transforms incoming event streams in a versatile manner. If there is a need to add/delete/modify events, this plugin is the first filter to try. It is included in the Fluentd's core." https://docs.fluentd.org/filter/record_transformer
upvoted 6 times
not_thanos
2 years, 4 months ago
https://cloud.google.com/logging/docs/agent/logging/configuration#modifying_log_records
upvoted 1 times
...
...
jomonkp
Most Recent 4 months, 4 weeks ago
Selected Answer: A
Option A
upvoted 1 times
...
JonathanSJ
1 year, 3 months ago
Selected Answer: A
A. Use the filter-record-transformer Fluentd filter plugin to remove the fields from the log entries in flight. Fluentd is a log collector and processor that is commonly used with Google Cloud Platform. The filter-record-transformer plugin for Fluentd can be used to modify log entries as they are being collected, allowing you to remove sensitive fields from the log entries in real-time before they are written to Stackdriver. This can be done quickly, as it doesn't require changes on the application code.
upvoted 1 times
...
DoodleDo
1 year, 4 months ago
Ans A. Source - https://docs.fluentd.org/filter/record_transformer
upvoted 1 times
...
mudot
1 year, 5 months ago
Selected Answer: B
Appeared in 07/11/2022 exam keys : Option-A has the filter name wrong. It should be filter_record_transformer not filter-record-transformer
upvoted 3 times
...
mudot
1 year, 5 months ago
Selected Answer: A
filter_record_transformer enables you to: - Add new fields to log entries - Update fields in log entries - Delete fields in log entries The fluent-plugin-record-reformer output plugin provides functionality similar to the filter_record_transformer filter plugin, except that it also allows you to modify log tags. We dont need to modify the filters here .. hence A
upvoted 3 times
mudot
1 year, 5 months ago
IF the answer 'A' is not a typo (- instead of _), then B is correct
upvoted 2 times
...
...
zellck
1 year, 6 months ago
Selected Answer: A
A is the answer. https://cloud.google.com/logging/docs/agent/logging/configuration#modifying_log_records Fluentd provides built-in filter plugins that can be used to modify log entries. The most commonly used filter plugin is filter_record_transformer. It enables you to: - Delete fields in log entries
upvoted 1 times
...
esandips
1 year, 10 months ago
Ans: B https://cloud.google.com/logging/docs/agent/logging/configuration According to this link A is wrong as correct plugin name is filter_record_transformer and not filter-record-transformer B is Correct as "The fluent-plugin-record-reformer output plugin provides functionality similar to the filter_record_transformer filter plugin, except that it also allows you to modify log tags. More resource usage is expected with this plugin: each time a log tag is updated, it generates a new log entry with the new tag."
upvoted 2 times
...
maddy94
2 years, 1 month ago
Selected Answer: A
A is correct
upvoted 1 times
...
ric79
2 years, 1 month ago
It's B. https://cloud.google.com/logging/docs/agent/logging/configuration#cloud-fluentd-config: is filter_record_transformer not filter-record-transformer. fluent-plugin-record-reformer is the right name
upvoted 4 times
Sreedharveluru
2 years ago
That is right , Both options does the job , however filter_record_transformer is the correct name. not filter-record-transformer
upvoted 2 times
...
...
Sekierer
2 years, 3 months ago
Selected Answer: A
A is correct
upvoted 1 times
...
MBA_1
2 years, 5 months ago
Yes, its A and not B as fluent-plugin-google-cloud from https://cloud.google.com/logging/docs/agent/logging/configuration#cloud-fluentd-config Besides the list of default logs that the Logging agent streams by default, you can customize the Logging agent to send additional logs to Logging or to adjust agent settings by adding input configurations. The configuration definitions in these sections apply to the fluent-plugin-google-cloud output plugin only and specify how logs are transformed and ingested into Cloud Logging.
upvoted 3 times
...
giammydell
2 years, 6 months ago
I think A because The fluent-plugin-record-reformer output plugin provides functionality similar to the filter_record_transformer filter plugin, except that it also allows you to modify log tags
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago