Your question is Parse and Aggregate Log Data. 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).
Given a log file, parse it to extract/aggregate information (log-parsing exercise). Asked in the coding stage. Cloud Infrastructure Engineer coding round. Explain your parsing assumptions, handle malformed or unexpected records, and describe the time and space complexity of your approach. Provide an implementation that is clear, testable, and suitable for processing a large file without unnecessarily loading the entire file into memory.