
Answer-first summary for fast verification
Answer: Use a schema registry and implement a mechanism to automatically detect and adapt to schema changes.
Option D is the correct approach as it involves using a schema registry to manage and track changes in the data schema and implementing a mechanism to automatically detect and adapt to schema changes. This approach ensures that the solution can handle schema drift and adapt to evolving data schemas without manual intervention. Option C is partially correct but lacks the automatic detection and adaptation mechanism. Options A and B are incorrect as they do not address the issue of schema drift.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
In a stream processing solution, you need to handle schema drift, which is the evolution of data schema over time. How would you approach this task to ensure that the solution can adapt to changes in the data schema?
A
Ignore the schema drift and process the data as is.
B
Manually update the schema in the solution whenever there is a change.
C
Use a schema registry to manage and track changes in the data schema.
D
Use a schema registry and implement a mechanism to automatically detect and adapt to schema changes.