InterviewStack.io LogoInterviewStack.io

Automation Relevant Coding Problems Questions

Practice problems involving: parsing and transforming log data, working with strings and regular expressions, counting and aggregating data, basic system operations like file handling and simple data processing, sorting and searching through configuration data. These often appear in SRE interviews to test automation-relevant thinking and real-world problem application.

HardTechnical
57 practiced
Design and implement a deduplicating backup manifest generator: given a filesystem snapshot, produce a manifest that groups identical file contents by hash and outputs an efficient restore plan that avoids re-transmitting duplicate content. Requirements: support incremental snapshots, reasonably efficient scanning, and provide core code to compute file hashes and group duplicates.
MediumTechnical
47 practiced
Write a program to compute a minimal human-readable diff between two text configuration files: given old.conf and new.conf, output added/removed/changed lines in a concise summary rather than a full unified diff. Requirements: good performance on large files and intelligible summaries for operators.
MediumTechnical
54 practiced
Implement an alert deduplicator: given a stream of alert events (each with a fingerprint key, timestamp, and payload), collapse alerts with the same fingerprint that arrive within a dedupe window (e.g., 5 minutes) into a single aggregated alert containing count, first_timestamp, last_timestamp, and a representative payload. Requirements: streamable, memory-bounded, and able to expire old fingerprints.
EasyTechnical
61 practiced
Write a function in Go that extracts all IPv4 addresses from a given log line and returns a deduplicated list of addresses in the order they first appear. Requirements: use a compiled regex, avoid converting every match into an IP object unless necessary, and return results as strings. Show example input and expected output.
EasyTechnical
60 practiced
Implement a validator for an /etc/hosts-style file that detects duplicate hostnames mapped to different IP addresses and duplicate IPs mapped to multiple hostnames. Input lines are 'IP hostname [aliases]'. Requirements: ignore comments and whitespace, report filename and line numbers for conflicts, and support IPv4 and IPv6 entries.

Unlock Full Question Bank

Get access to hundreds of Automation Relevant Coding Problems interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.