Bird
Raised Fist0

Consider this configuration snippet:

medium📝 Predict Output Q5 of Q15
Kafka - Connect
Consider this configuration snippet:
transforms=MaskField
transforms.MaskField.type=org.apache.kafka.connect.transforms.MaskField$Value
transforms.MaskField.fields=password

What will happen to the 'password' field in the record value?
AThe 'password' field will be removed from the record
BThe 'password' field will be replaced with null
CThe 'password' field will be encrypted
DThe 'password' field will remain unchanged
Step-by-Step Solution
Solution:
  1. Step 1: Understand MaskField transform

    MaskField replaces specified fields' values with null to hide sensitive data.
  2. Step 2: Apply to 'password' field

    The 'password' field value will be replaced with null, not removed or encrypted.
  3. Final Answer:

    The 'password' field will be replaced with null -> Option B
  4. Quick Check:

    MaskField hides data by nullifying fields [OK]
Quick Trick: MaskField sets specified fields to null, not remove or encrypt [OK]
Common Mistakes:
MISTAKES
  • Thinking MaskField removes fields
  • Assuming MaskField encrypts data
  • Believing fields remain unchanged

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes