Network Engineer Interview Questions

8,710 network engineer interview questions shared by candidates

Coding exercise: Consider a monitoring system, which monitors X servers. Each server has Z CPUs. Each server generates a log for CPU usage every minute. The format is like this: timestamp IP cpu_id usage xxxxxxxxxx yyy.yyy.yyy.yyy 0 87 Please write a simulator to generate the logs for one day, say 2015-11-09, just use random numbers between 0% to 100% as CPU usage. The generator should write data to files in a directory. The timestamp is Unix time. Please create a command line tool which takes a directory of data files as a parameter and lets you query CPU usage for a specific CPU in a given time period. It is an interactive command line tool which reads a user’s commands from stdin. The tool may take several minutes to initialize, but the query result should be returned within 1 second. The tool should support two commands: One command will print results to stdout. Its syntax is QUERY IP cpu_id time_start time_end. Time_start and time_end should be specified in the format YYYY-MM-DD HH:MM where YYYY is a four digit year, MM is a two digit month (i.e., 01 to 12), DD is the day of the month (i.e., 01 to 31), HH is the hour of the day, and MM is the minute of an hour. The second command to support is EXIT. It will exit the tool.
avatar

Network Software Engineer

Interviewed at QUANTIL

3.6
Nov 9, 2015

Coding exercise: Consider a monitoring system, which monitors X servers. Each server has Z CPUs. Each server generates a log for CPU usage every minute. The format is like this: timestamp IP cpu_id usage xxxxxxxxxx yyy.yyy.yyy.yyy 0 87 Please write a simulator to generate the logs for one day, say 2015-11-09, just use random numbers between 0% to 100% as CPU usage. The generator should write data to files in a directory. The timestamp is Unix time. Please create a command line tool which takes a directory of data files as a parameter and lets you query CPU usage for a specific CPU in a given time period. It is an interactive command line tool which reads a user’s commands from stdin. The tool may take several minutes to initialize, but the query result should be returned within 1 second. The tool should support two commands: One command will print results to stdout. Its syntax is QUERY IP cpu_id time_start time_end. Time_start and time_end should be specified in the format YYYY-MM-DD HH:MM where YYYY is a four digit year, MM is a two digit month (i.e., 01 to 12), DD is the day of the month (i.e., 01 to 31), HH is the hour of the day, and MM is the minute of an hour. The second command to support is EXIT. It will exit the tool.

Viewing 7441 - 7450 interview questions

Glassdoor has 8,710 interview questions and reports from Network engineer interviews. Prepare for your interview. Get hired. Love your job.