Bird
Raised Fist0

A user configures this transform chain:

medium📝 Debug Q7 of Q15
Kafka - Connect
A user configures this transform chain:
transforms=DropFields
transforms.DropFields.type=org.apache.kafka.connect.transforms.ReplaceField$Value
transforms.DropFields.blacklist=field1,field2

The connector throws an error. What is the problem?
AComma-separated fields are not allowed
B'blacklist' is deprecated; should use 'excludes' instead
CThe fields to drop must be specified as 'whitelist'
DThe transform type is incorrect for dropping fields
Step-by-Step Solution
Solution:
  1. Step 1: Check ReplaceField config keys

    'blacklist' is deprecated; the correct key is 'excludes' to drop fields.
  2. Step 2: Identify cause of error

    Using 'blacklist' causes config validation failure and connector error.
  3. Final Answer:

    'blacklist' is deprecated; should use 'excludes' instead -> Option B
  4. Quick Check:

    Use 'excludes' to drop fields, not 'blacklist' [OK]
Quick Trick: Use 'excludes' instead of deprecated 'blacklist' to drop fields [OK]
Common Mistakes:
MISTAKES
  • Using deprecated config keys
  • Confusing 'whitelist' with dropping fields
  • Incorrect field list formatting

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes