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.
EasyTechnical
0 practiced
Implement a parser for a simple key=value configuration file in Python. The file allows comments starting with '#', blank lines, keys with alphanumeric and underscore characters, and values that can be quoted strings (single or double) or unquoted tokens. Return a dict of key->value. Handle quoted values with escaped quotes and preserve surrounding whitespace rules.
EasyTechnical
0 practiced
Write a utility function that normalizes timestamps supplied in multiple common ISO8601 variants into UTC epoch seconds (integer). Input examples: '2024-04-05T12:30:45Z', '2024-04-05T08:30:45-04:00', '20240405T123045Z'. Implement in your language of choice, support missing timezone by assuming UTC, and handle fractional seconds.
HardTechnical
0 practiced
Implement a thread-safe in-memory rate limiter that supports token-bucket and leaky-bucket algorithms. Requirements: per-key limits, a global fallback limit, high concurrency (many goroutines), and low latency. Provide a Go implementation with appropriate locking or sharding and describe trade-offs between algorithms.
MediumTechnical
0 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
0 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.
Unlock Full Question Bank
Get access to hundreds of Automation Relevant Coding Problems interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.