Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Parse and Aggregate Log Data

HardExecution00:00
Practice interviewer
In session
5 left
00:00

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).

You need to log in / sign up to chat or submit.

Problem

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.