Automated Network Device Health Checks and Log-Based Root Cause Analysis with ML

Quick Overview

A system design question about automating health checks for network devices and building log-based root cause analysis, from collection and log templating to topology-aware alert correlation. A follow-up asks how to apply anomaly detection, similar-incident retrieval and LLM recommendations safely, with human confirmation.

Automated Network Device Health Checks and Log-Based Root Cause Analysis with ML

Company: Millennium

Role: Machine Learning Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

Design an automated system that checks the status of network devices and performs root cause analysis (RCA) from their logs. The interviewer then asked how you would bring in AI/ML to improve anomaly detection or to recommend actions. The device types, fleet size, available interfaces and whether a topology inventory exists were not reported; settle them with the interviewer before designing. ### Clarifying Questions - Which devices are in scope, and roughly how many: routers, switches and firewalls, servers, or all of them, across how many sites? - Which interfaces are available: SNMP, streaming telemetry, SSH/CLI, syslog, vendor APIs? Can agents run on the devices? - Is there a source of topology (an inventory system, or discovery protocols such as LLDP) that says which device connects to which? - What should RCA deliver: one grouped incident routed to the right team, a pinpointed failing device or link, or both? How soon after a failure? - Is automated remediation in scope, or only detection, diagnosis and recommendations? ### Part 1: Automated status checks and log-based root cause analysis Design the pipeline from devices to incidents: how device status is checked, how logs are collected and processed, how alerts are raised, and how the system points to a root cause when many alarms fire at once. ```hint One failure, many alarms When a core link fails, everything behind it alarms too. Think about what data would let the system tell the cause from the symptoms. ``` ```hint Free text is hard to count Raw log lines embed interface names, addresses and counters, so the same event rarely produces identical text twice. Think about what representation lets you count and compare events. ``` #### What This Part Should Cover - Collection by polling, streaming and syslog through a durable queue, including detection of devices that go silent - Parsing free-text logs into templates with parameters, and the stores chosen for metrics, logs and incidents - Alerting rules, plus topology- and time-based correlation that groups alarms into one incident with a ranked root cause - Scale, and the reliability of the monitoring system itself ### Part 2: AI/ML for anomaly detection and recommendations How would you use AI/ML to improve anomaly detection, or to suggest what operators should do next? ```hint Start from what you can label Incidents with recorded causes are rare. Decide which parts of the problem need labels and which can learn from normal behavior alone. ``` ```hint Keep a human on the trigger Consider what could go wrong if a model's suggestion were executed directly on production network devices. ``` #### What This Part Should Cover - Anomaly detection on log-template counts and metrics that respects daily and weekly patterns - Retrieval of similar past incidents, and LLM summaries and recommendations grounded in that evidence - Evaluation against past incidents, and human confirmation before any action runs ### What a Strong Answer Covers - A clear pipeline from devices to incidents, with each component and data store justified - Correlation by topology and time instead of paging alert by alert - ML methods matched to the data actually available, with a plan to measure whether they help - Safety for anything automated: confirmation, audit trail and rollback - Monitoring of the monitoring system, including telling silence apart from health ### Follow-up Questions - A device stops sending logs and metrics. How does your system tell "healthy and quiet" from "dead or cut off"? - A firmware upgrade changes the log format across one vendor's devices. What breaks in your pipeline, and how do you recover? - Your anomaly detector fires every weekday morning when traffic ramps up. How do you fix that without missing real incidents? - How would you measure whether the LLM's recommended steps actually help operators?

Overview: A system design question about automating health checks for network devices and building log-based root cause analysis, from collection and log templating to topology-aware alert correlation. A follow-up asks how to apply anomaly detection, similar-incident retrieval and LLM recommendations safely, with human confirmation.

Read the full Millennium Machine Learning Engineer interview experience this question came from

Millennium logo
Millennium
Nov 13, 2026
mediumMachine Learning EngineerTechnical ScreenSystem Design
1
0

Design an automated system that checks the status of network devices and performs root cause analysis (RCA) from their logs. The interviewer then asked how you would bring in AI/ML to improve anomaly detection or to recommend actions.

The device types, fleet size, available interfaces and whether a topology inventory exists were not reported; settle them with the interviewer before designing.

Clarifying Questions Guidance

  • Which devices are in scope, and roughly how many: routers, switches and firewalls, servers, or all of them, across how many sites?
  • Which interfaces are available: SNMP, streaming telemetry, SSH/CLI, syslog, vendor APIs? Can agents run on the devices?
  • Is there a source of topology (an inventory system, or discovery protocols such as LLDP) that says which device connects to which?
  • What should RCA deliver: one grouped incident routed to the right team, a pinpointed failing device or link, or both? How soon after a failure?
  • Is automated remediation in scope, or only detection, diagnosis and recommendations?

Part 1: Automated status checks and log-based root cause analysis

Design the pipeline from devices to incidents: how device status is checked, how logs are collected and processed, how alerts are raised, and how the system points to a root cause when many alarms fire at once.

What This Part Should Cover Guidance

  • Collection by polling, streaming and syslog through a durable queue, including detection of devices that go silent
  • Parsing free-text logs into templates with parameters, and the stores chosen for metrics, logs and incidents
  • Alerting rules, plus topology- and time-based correlation that groups alarms into one incident with a ranked root cause
  • Scale, and the reliability of the monitoring system itself

Part 2: AI/ML for anomaly detection and recommendations

How would you use AI/ML to improve anomaly detection, or to suggest what operators should do next?

What This Part Should Cover Guidance

  • Anomaly detection on log-template counts and metrics that respects daily and weekly patterns
  • Retrieval of similar past incidents, and LLM summaries and recommendations grounded in that evidence
  • Evaluation against past incidents, and human confirmation before any action runs

What a Strong Answer Covers Guidance

  • A clear pipeline from devices to incidents, with each component and data store justified
  • Correlation by topology and time instead of paging alert by alert
  • ML methods matched to the data actually available, with a plan to measure whether they help
  • Safety for anything automated: confirmation, audit trail and rollback
  • Monitoring of the monitoring system, including telling silence apart from health

Follow-up Questions Guidance

  • A device stops sending logs and metrics. How does your system tell "healthy and quiet" from "dead or cut off"?
  • A firmware upgrade changes the log format across one vendor's devices. What breaks in your pipeline, and how do you recover?
  • Your anomaly detector fires every weekday morning when traffic ramps up. How do you fix that without missing real incidents?
  • How would you measure whether the LLM's recommended steps actually help operators?