InterviewStack.io LogoInterviewStack.io

Operating System Fundamentals Questions

Comprehensive knowledge of operating system concepts and practical administration across Linux, Unix, and Windows platforms. Core theoretical topics include processes and threads, process creation and termination, scheduling and context switching, synchronization and deadlock conditions, system calls, kernel versus user space, interrupt handling, memory management including virtual memory, paging and swapping, and input and output semantics including file descriptors. Practical administration and tooling expectations include file systems and permission models, user and group account management, common system utilities and commands such as grep, find, ps, and top, package management, service and process management, startup and boot processes, environment variables, shell and scripting basics, system monitoring, and performance tuning. Platform specific knowledge should cover Unix and Linux topics such as signals and signal handling, kernel modules, initialization and service management systems, and command line administration, as well as Windows topics such as the registry, service management, event logs, user account control, and graphical and command line administration tools. Security and infrastructure topics include basic system hardening, common misconfigurations, and an understanding of containerization and virtualization at the operating system level. Interview questions may probe conceptual explanations, platform comparisons, troubleshooting scenarios, or hands on problem solving.

HardSystem Design
69 practiced
Design a highly-available architecture for a stateful service on Linux that requires automatic failover with minimal downtime. Discuss how you would use systemd service units (and watchdog), cluster managers (Pacemaker/Corosync), keepalived/VRRP, shared storage solutions (DRBD/NFS), split-brain prevention, fencing/stonith, and health checks. Explain how configuration and deployment updates should be handled safely.
MediumTechnical
73 practiced
A Linux server fails to boot after a kernel update and drops to an initramfs shell (busybox) saying "unable to find root device" or the GRUB menu no longer shows the older kernel. Describe the actionable recovery steps you would take to boot the server, restore access (for example via rescue media or single-user mode), regenerate initramfs or dracut, reinstall or update GRUB, and ensure the system boots reliably on subsequent reboots.
HardTechnical
80 practiced
Produce a comprehensive OS hardening checklist for both Linux and Windows to meet common compliance goals (CIS benchmarks). Include package minimization, patching, account policies, SSH/RDP hardening, firewall configuration, auditing and logging, file integrity monitoring, kernel parameters, service hardening, and how to automate checks and remediation (e.g., OpenSCAP, PowerShell DSC). Also outline a validation process and how to handle exceptions.
MediumTechnical
63 practiced
Explain the Completely Fair Scheduler (CFS) in Linux and how it differs from real-time scheduling classes such as SCHED_FIFO and SCHED_RR. How do niceness and ionice affect scheduling, and what commands and precautions would you use to safely promote a process to real-time priority on a production server?
HardSystem Design
75 practiced
Design an approach to minimize cold-start time for containers scheduled on Kubernetes nodes. Focus on OS-level optimizations (image distribution and caching strategies, filesystem snapshotters and overlayfs tuning, pre-pulling images, tmpfs for startup files), kubelet settings (concurrency, image GC), node preparation (pre-warmed containers/pools), and security trade-offs involved with preloading or sharing images.

Unlock Full Question Bank

Get access to hundreds of Operating System Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.