InterviewStack.io LogoInterviewStack.io

Shell Scripting and Automation Questions

Automating tasks with the command line: Bash and shell scripting, pipes and redirection, text processing, and writing custom tooling and monitoring scripts to glue systems together. Covers the scripting fundamentals infrastructure and platform engineers use daily, including automation-oriented use of general-purpose scripting. Distinct from application programming in its throwaway-to-durable tooling mindset.

HardTechnical
23 practiced

As a staff data engineer, propose a secure architecture and practical migration steps to manage and rotate secrets used by shell scripts across multiple teams and CI pipelines. Consider short-lived credentials, policy enforcement, audit logging, minimal privileges, and backward compatibility with existing scripts.

HardTechnical
24 practiced

You must submit and orchestrate multiple Spark jobs via spark-submit from the command line on YARN or Kubernetes, monitor their progress, fetch driver/executor logs, and handle retries or kills. Describe a CLI-based orchestration strategy using shell scripts: how to track application IDs, fetch logs, limit concurrency, and avoid overloading the cluster.

EasyTechnical
23 practiced

Explain environment variables in Unix shells: their scope, how to export them, and persistence methods. Show how to set a variable for a single command, for a user's session, and for all users system-wide. Give examples relevant to data tools (for example, JAVA_HOME or AWS_PROFILE).

HardTechnical
22 practiced

Implement an exponential backoff with jitter function in bash that retries a network POST via curl up to a configurable max attempts, supports per-attempt logging, uses capped exponential backoff with jitter, and exits non-zero after exhausting retries. Provide the code and explain how jitter prevents thundering herd.

HardSystem Design
19 practiced

Design a migration plan and shell toolchain to move a fleet of cron-based ETL scripts into Kubernetes CronJobs. Include steps to containerize scripts, handle environment variables and secrets, logging to stdout/stderr, concurrency policy, retries, and how to test and roll back safely.

Unlock Full Question Bank

Get access to all 40 Shell Scripting and Automation interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.