Your question is Flag Duplicate and Corrupt Feed Records. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
You're working on a daily financial data pipeline and want a reliable way to catch bad records before they affect reporting or downstream analysis. The feed can contain exact duplicates, near-duplicates, malformed rows, and values that do not match expected business rules.
How would you design an automated process to flag duplicate or corrupt records in a daily financial data feed?