InterviewStack.io LogoInterviewStack.io

Network Programming and Scripting Proficiency Questions

Show practical programming and automation skills focused on networking tasks, using languages such as Python, Go, or shell scripting. Topics include socket programming and protocol knowledge for TCP and UDP, HTTP and higher level APIs, automation of network devices and cloud platform APIs, use of client libraries and remote management protocols, writing maintainable scripts and tools with error handling and retries, testing and validation of network code, performance and scaling considerations for scripts and agents, debugging and logging strategies, and code review and collaboration practices for operational tooling. Candidates should be able to discuss examples of network automation, tooling, monitoring integrations, and how they handled reliability and performance trade offs.

MediumTechnical
0 practiced
Outline how you would instrument a network script/agent for observability. For a connection-oriented agent, list which metrics (counters, gauges, histograms), logs, and traces you would emit, and explain how each helps detect regressions against service-level objectives (SLOs).
EasyTechnical
0 practiced
Write a bash script (or provide clear pseudo-code) that tails /var/log/app.log across a list of servers contained in servers.txt via SSH, merges the outputs preserving timestamps, and handles transient network errors by retrying with exponential backoff. Explain how you ensure the merged stream remains ordered and how you avoid infinite reconnect loops.
HardTechnical
0 practiced
Implement a rate-limited socket writer in Python that enforces a limit of X bytes/sec per connection with token-bucket burst support. It must preserve message boundaries (do not split logical messages arbitrarily), minimize syscalls, and be safe under non-blocking sockets. Provide algorithm and clear pseudo-code.
EasyTechnical
0 practiced
Write a bash script that rotates a local log file /var/log/myapp/app.log when it exceeds 100MB: compress the rotated file with gzip, keep the last 7 compressed files, and perform rotation atomically to avoid losing logs. Handle errors and concurrent writers (explain use of flock).
HardTechnical
0 practiced
Design a persistent, on-disk queue format for an agent that must buffer unsent network events across reboots and crashes. The format must support fast append, fast consumer reads, efficient compaction, corruption detection, and crash-consistent recovery. Describe segmentization, indexing, checksums, and fsync strategies.

Unlock Full Question Bank

Get access to hundreds of Network Programming and Scripting Proficiency interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.