InterviewStack.io LogoInterviewStack.io

Automation and Scripting Questions

Covers practical and architectural skills for writing production safe automation and operational scripts as well as building reusable automation systems. Topics include designing idempotent automation, safe retries, robust error handling, structured logging and observability, argument parsing and command line interface design, configuration management, and secure credential handling. Emphasis on testing and validation of scripts and automation code, packaging, documentation, deployment, and maintainability so automation can be operated by other team members. Includes integration with schedulers such as cron and systemd timers, continuous integration and continuous delivery pipelines, orchestration and configuration management systems, and common operational patterns such as log processing, backups, polling, multi step orchestration, provisioning, configuration changes, and routine maintenance. Also assesses language selection and trade offs among Python, Go, Bash and other tooling, concurrency and performance considerations, and at senior levels the design and architecture of reusable automation frameworks and strategies for scaling automation to reduce toil.

MediumTechnical
74 practiced
Implement or outline a reusable retry decorator in Python that supports exponential backoff with jitter, a configurable max attempts, and a predicate callback to classify retryable exceptions. The decorator should be usable on synchronous functions and support logging each attempt. Explain how idempotency assumptions affect your wrapper and where idempotency tokens should be applied when calling external APIs.
EasyTechnical
82 practiced
Compare cron with systemd timers for scheduling operational jobs. For a maintenance job that must run hourly and should not overlap if a previous run is still executing, which would you choose and why? Provide an example of a systemd unit/timer configuration (describe the key directives) and explain how logging and output should be handled to integrate with the journal.
MediumTechnical
132 practiced
A nightly cleanup automation started failing intermittently. Describe a structured troubleshooting approach to find root cause: what logs and metrics to collect, how to reproduce the issue safely, how to form and test hypotheses, and how to implement and roll out a fix with minimal user impact. Include communication and rollback plans.
HardSystem Design
81 practiced
Design a distributed job orchestrator capable of running approximately 100k scheduled automation tasks per day across multiple data centers with at-most-once execution semantics, retries, SLA targets, and cross-region failover. Discuss schedule storage, leader election model, deduplication, idempotency strategies, scaling approaches (sharding, worker pools), monitoring, and disaster recovery.
HardSystem Design
78 practiced
Design an orchestration engine for multi-service operations using the Saga (compensating transactions) pattern. Requirements: define step idempotency, compensation actions, durable transaction log, classification of errors (retryable vs irrecoverable), visibility into partial success, and operator controls (pause/resume/compensate manually). Explain how you would test compensation logic reliably.

Unlock Full Question Bank

Get access to hundreds of Automation and Scripting interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.