Loading...

The Status Board

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
mid, senior

Problem

Our SRE team needs a quick health analysis from raw Nginx access logs. Write a function that parses combined-format log lines and returns two things: a dictionary counting occurrences of each HTTP status code, and a list of the top 3 most-requested resource paths (with query parameters stripped).

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.