# SRE interview question checklist

96 original question/topic entries, including repeated phrasings. Each links to its answer. Five earlier topic reminders and the linked coding exercise are listed separately.

## Networking: 23 entries

- [ ] Describe syn flood attack and mitigate it. [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#describe-a-syn-flood-and-how-to-mitigate-it)
- [ ] Descrive connection setup in tcp [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#describe-connection-setup-in-tcp)
- [ ] How can DNS be used to increase uptime and reliance of a service [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#how-can-dns-increase-service-uptime-and-resilience)
- [ ] Given dest IP adddrs, how OS determine next hop router [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#given-a-destination-ip-how-does-the-os-determine-the-next-hop-router)
- [ ] How does ARP works [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#how-does-arp-work)
- [ ] How does DHCP lease works [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#how-does-a-dhcp-lease-work)
- [ ] How does network boot works [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#how-does-network-boot-work)
- [ ] Traceroute output [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#how-do-you-interpret-traceroute-output)
- [ ] If my traffic will flow the same traceroute path [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#will-application-traffic-follow-the-same-traceroute-path)
- [ ] Determine if traffic is blocked by firewall [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#how-do-you-determine-whether-traffic-is-blocked-by-a-firewall)
- [ ] Firewall config of thousand of hosts how to manage [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#how-do-you-manage-firewall-configuration-across-thousands-of-hosts)
- [ ] Use of dedicated firewalls [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#what-is-the-use-of-dedicated-firewalls)
- [ ] Boot and dont have network connectivity. Tshoot it. [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#a-host-boots-without-network-connectivity-how-do-you-troubleshoot-it)
- [ ] Only 3 metrics to monitor and why on a server. [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#if-you-can-monitor-only-three-server-metrics-which-and-why)
- [ ] Metrics of a recently build service. [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#what-metrics-would-you-add-for-a-newly-built-service)
- [ ] ping www.google.com: Describe whats happening [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#ping-wwwgooglecom-what-happens)
- [ ] TCP vs UDP: Which one is easy to firewall at scale and why. [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#tcp-versus-udp-which-is-easier-to-firewall-at-scale-and-why)
- [ ] DIff layers of OSI layers. [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#what-are-the-different-osi-layers)
- [ ] TCP, IP, HTTP and Ethernet [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#how-do-tcp-ip-http-and-ethernet-relate)
- [ ] Purpose of Netmask in  LAN routing. [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#what-is-the-purpose-of-a-netmask-in-lan-routing)
- [ ] Discussion on DNS: Record types, primary and secondary DNS server works, replication and How can DNS reliability be improvement [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#dns-records-primarysecondary-servers-replication-how-do-these-work)
- [ ] How does OS determine which process to give packet [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#how-does-the-os-determine-which-process-gets-a-packet)
- [ ] Diagnose slow office traffic. [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#how-do-you-diagnose-slow-office-traffic)

## Coding and scripting: 9 entries

- [ ] Script to rename files in a directory in lower case. Handle edge cases. [Answer](https://everythingsre.com/concepts/sre-coding-interview-crash-course#how-do-you-rename-directory-files-to-lowercase-and-handle-edge-cases)
- [ ] Generate a unique root password and thousand SSH key value pairs for linux servers. [Answer](https://everythingsre.com/concepts/sre-security-interview-crash-course#generate-a-unique-root-password-and-1000-ssh-key-pairs-for-linux-servers)
- [ ] Keys need to be stored securely and should be accessible by other automations [Answer](https://everythingsre.com/concepts/sre-security-interview-crash-course#keys-must-be-stored-securely-and-accessible-to-other-automations-how)
- [ ] Method to protect keys in rest and in transit. [Answer](https://everythingsre.com/concepts/sre-security-interview-crash-course#how-do-you-protect-keys-at-rest-and-in-transit)
- [ ] Write script to return usernames for all duplicate UIDs in /etc/passwd. [Answer](https://everythingsre.com/concepts/sre-coding-interview-crash-course#how-do-you-return-usernames-for-all-duplicate-uids-in-etcpasswd)
- [ ] Write a script to system upgrade a set of hosts and even reboot if required. Script should health check and make sure that system do come up online after the upgrade. [Answer](https://everythingsre.com/concepts/sre-coding-interview-crash-course#how-do-you-upgrade-hosts-reboot-when-required-and-verify-they-return)
- [ ] Baby sitter process to restart if a webserver stops. [Answer](https://everythingsre.com/concepts/sre-coding-interview-crash-course#how-do-you-write-a-babysitter-that-restarts-a-stopped-webserver)
- [ ] Top 10 used words in a file. [Answer](https://everythingsre.com/concepts/sre-coding-interview-crash-course#how-do-you-find-the-ten-most-used-words-in-a-file)
- [ ] Directory with 1K video file, print names of dupes file and safely remove duplicate files. [Answer](https://everythingsre.com/concepts/sre-coding-interview-crash-course#with-1000-video-files-how-do-you-print-duplicates-and-safely-remove-them)

## Linux and troubleshooting: 46 entries

- [ ] Troubleshoot CPU, Memory and Filesytem [Answer](https://everythingsre.com/concepts/sre-troubleshooting-interview-crash-course#how-do-you-troubleshoot-cpu-memory-and-filesystem-problems)
- [ ] NFS mounting and unmounting and options. [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#how-do-nfs-mounting-unmounting-and-options-work)
- [ ] Linker and loader [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-are-a-linker-and-a-loader)
- [ ] The internal workings of the `ls` command on unix [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-are-the-internal-workings-of-the-ls-command-on-unix)
- [ ] how virtual memory is managed on Linux [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#how-is-virtual-memory-managed-on-linux)
- [ ] what will happen when we type ls in terminal [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-happens-when-we-type-ls-in-a-terminal)
- [ ] System calls [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-are-system-calls)
- [ ] Memory Management [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#how-does-linux-memory-management-work)
- [ ] VFS/ File system implementation [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#how-does-vfs-or-filesystem-implementation-work)
- [ ] Explain pagination(might be different wordings) [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#explain-pagination-or-paging)
- [ ] What does the command uname -r do? [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-does-uname--r-do)
- [ ] Systems internals, vmstat, netcat, shell scripting [Answer](https://everythingsre.com/concepts/sre-troubleshooting-interview-crash-course#systems-internals-vmstat-netcat-shell-scripting-how-do-you-use-them-together)
- [ ] How does strace work [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#how-does-strace-work)
- [ ] List ways to catch a signal for a program that you don't have source code for. [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#list-ways-to-catch-a-signal-for-a-program-without-source-code)
- [ ] What part of the tcp header does traceroute modify? [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#what-part-of-the-tcp-header-does-traceroute-modify)
- [ ] How do you make a process a service? [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#how-do-you-make-a-process-a-service)
- [ ] What is a zombie process? [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-is-a-zombie-process)
- [ ] What happens during the boot process from the moment you turn on the machine until you get a login prompt? [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-happens-during-boot-from-power-on-to-a-login-prompt)
- [ ] what the "uname" command does [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-does-uname-do)
- [ ] What information is not in the inode ? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-information-is-not-in-the-inode)
- [ ] In Linux, if we have 0 and 1 what is 2 [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#in-linux-if-we-have-0-and-1-what-is-2)
- [ ] How a network process is termintaed? [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#how-is-a-network-process-terminated)
- [ ] Can you kill a zombie processs? [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#can-you-kill-a-zombie-process)
- [ ] How do you load a Linux kernel [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#how-do-you-load-a-linux-kernel)
- [ ] What is the swap area, regarding memory? [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-is-swap-space)
- [ ] Create a protocol similar to memcached (Networking)? [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#how-would-you-create-a-protocol-similar-to-memcached)
- [ ] Name three states a process can be in. [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#name-three-states-a-process-can-be-in)
- [ ] In IPv6 what is the A record equivalent? [Answer](https://everythingsre.com/concepts/networking-interview-crash-course#in-ipv6-what-is-the-equivalent-of-an-a-record)
- [ ] How ls * works? [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#how-does-ls-work)
- [ ] Journaling file system [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-is-a-journaling-filesystem)
- [ ] What argument size is too large? [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-argument-size-is-too-large)
- [ ] xargs -I ls {} [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-does-xargs--i-ls-mean)
- [ ] Sectors on a disk [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-are-sectors-on-a-disk)
- [ ] IPC [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-is-ipc)
- [ ] Mount a new disk,  format and enable NFS. [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#how-do-you-mount-a-new-disk-format-it-and-enable-nfs)
- [ ] Size limit of a pipe [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-is-the-size-limit-of-a-pipe)
- [ ] Limit on number of pipes [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-limits-the-number-of-pipes)
- [ ] fork() vs clone() system call [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#fork-versus-clone-what-differs)
- [ ] Different types for exec calls [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-are-the-different-types-of-exec-calls)
- [ ] What is DMA? [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-is-dma)
- [ ] Check Slabtop [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-should-you-check-in-slabtop)
- [ ] All types of files in linux. [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-are-all-the-types-of-files-in-linux)
- [ ] Read about sysfs [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-is-sysfs)
- [ ] Explain taskset. [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#explain-taskset)
- [ ] Kernel parameters [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#what-are-kernel-parameters)
- [ ] Can use sysctl to set these params. [Answer](https://everythingsre.com/concepts/linux-internals-interview-crash-course#can-sysctl-set-these-parameters)

## Filesystem revision: 18 entries

- [ ] What is an inode? What kind of information does it store? Does it store the file name? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-is-an-inode-what-information-does-it-store-does-it-store-the-filename)
- [ ] Describe the steps the kernel takes to resolve a path like /home/aman/report.txt to the actual data blocks on disk. [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#resolve-homeamanreporttxt-to-its-actual-data-blocks)
- [ ] How does the kernel keep track of open files? What is the relationship between file descriptors, file objects, dentries, and inodes? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#how-does-the-kernel-track-open-files-relate-descriptors-file-objects-dentries-and-inodes)
- [ ] What is the purpose of the /proc and /sys filesystems? Are they backed by disk? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-are-proc-and-sys-are-they-backed-by-disk)
- [ ] You use ln file1 file2. What kind of link is created? How is this different from a symbolic link (ln -s)? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-does-ln-file1-file2-create-how-is-ln--s-different)
- [ ] How can you view the block allocation (block map) of a file on ext4? What command would you use? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#how-can-you-view-a-files-block-allocation-on-ext4)
- [ ] What is the difference between a hard link and a soft (symbolic) link? Can you create a hard link across different filesystems? Why or why not? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#hard-link-versus-soft-link-can-a-hard-link-cross-filesystems-and-why)
- [ ] Suppose a file’s data is spread across non-contiguous blocks (fragmented). How does the file system “find” all the pieces when you open the file? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#how-does-the-filesystem-find-a-fragmented-files-pieces)
- [ ] What is the superblock? What sort of information does it store? How can you display its contents for a partition? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-is-the-superblock-and-how-do-you-display-it)
- [ ] Describe what happens when you delete a file that is still open by a process. Is the space immediately freed? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#delete-a-file-still-open-by-a-process-is-space-freed-immediately)
- [ ] What is the purpose of fsync() and sync? How do they differ from simply writing a file and closing it? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-are-fsync-and-sync-how-do-they-differ-from-writing-and-closing)
- [ ] Explain what a “mount point” is. What happens if you mount a filesystem over a directory that already contains files? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-is-a-mount-point-what-happens-to-existing-files-beneath-it)
- [ ] What command can be used to check and repair a file system in Linux? What does the “-n” flag do for this command? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#which-command-checks-and-repairs-a-linux-filesystem-what-does--n-mean)
- [ ] How does the kernel determine if two file paths (possibly with different names or links) refer to the same file? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#how-can-two-paths-be-checked-for-the-same-file)
- [ ] What does the df command show you? How does it differ from du? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-does-df-show-how-does-it-differ-from-du)
- [ ] What are “indirect blocks” in the context of an inode? When do they come into play? [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-are-indirect-blocks-when-do-they-come-into-play)
- [ ] Explain what journaling is and how it helps maintain filesystem integrity. [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#how-does-journaling-maintain-filesystem-integrity)
- [ ] What is the difference between ext3 and ext4? List two improvements that ext4 offers. [Answer](https://everythingsre.com/concepts/linux-filesystems-interview-crash-course#what-is-the-difference-between-ext3-and-ext4-give-two-improvements)

## Five additional topic reminders

- [ ] Linux System security: Google for this if time permits. [Answer](https://everythingsre.com/concepts/sre-security-interview-crash-course#what-linux-system-security-should-you-revise)
- [ ] Troubleshooting Disk Usage In Linux [Answer](https://everythingsre.com/concepts/sre-troubleshooting-interview-crash-course#how-do-you-troubleshoot-disk-usage-in-linux)
- [ ] Troubleshooting High Load Average on Linux [Answer](https://everythingsre.com/concepts/sre-troubleshooting-interview-crash-course#how-do-you-troubleshoot-high-load-average)
- [ ] Troubleshoot Network Slow Problems In Linux [Answer](https://everythingsre.com/concepts/sre-troubleshooting-interview-crash-course#how-do-you-troubleshoot-slow-networking-in-linux)
- [ ] Troubleshoot high iowait issue on Linux [Answer](https://everythingsre.com/concepts/sre-troubleshooting-interview-crash-course#how-do-you-troubleshoot-high-iowait)

## Linked coding exercise

- [ ] Kth-largest value in a stream, including duplicate ranks, invalid k, and changing-k complexity. [Answer](https://everythingsre.com/concepts/sre-coding-interview-crash-course#the-linked-stream-question-add-numbers-and-return-kth-largest)

## Implementation depth

The fleet-upgrade answer gives pseudocode and required checks, not an executable fleet-upgrade tool. Duplicate-file detection has runnable code; deletion is explained as a revalidation/quarantine workflow. Password generation has runnable code; bulk SSH-key provisioning is an orchestration explanation and OpenSSH example. The other short answers are revision material rather than full labs.

## Unresolved note

"Check mane’s document" did not identify a document or an answerable question. No answer has been invented. Book, video, and preparation-site titles are reading resources rather than additional question entries.
