Interview questions
DevOps and SRE interview questions
Common questions for DevOps and SRE roles. Read, copy and practise.
Free with every account.
Practice questions from open collections and written with AI. Not reported from interviews.
Technical
Coding
Write a simple bash script (or pair of scripts) to backup and restore your system.
Write a get_prim method in python/perl/bash/pseudo.
Write a script to list all the differences between two directories.
Write an IAM policy for a user that is able to create another IAM users with limited permission scope.
System design
Design a URL shortening service.
Design a web-crawlers.
Design a photo sharing service (e.g. Google Photos)
Design a microblogging service (e.g. Twitter)
Design the LinkedIn profile page.
How would you design a highly available load balancing system for a global web service?
How would you design a high-availability infrastructure for a web application serving millions of users globally?
Explain how you would design an infrastructure that can handle sudden and unexpected traffic spikes.
Other technical questions
Give some examples of Linux distribution. What is your favorite distro and why?
What are the differences between Unix, Linux, BSD, and GNU?
What is your favorite shell and why?
What do the fields in ls -al output mean?
How do you get a list of logged-in users?
Running the command as root user. It is a good or bad practices?
How to check memory stats and CPU stats?
What is load average?
Show 491 more other technical questions
Where is my password stored on Linux/Unix?
How to recursively change permissions for all directories except files and for all files except directories?
Every command fails with command not found. How to trace the source of the error and resolve it?
You typing CTRL + C but your script still running. How do you stop it?
Explain the file content commands along with the description.
What does kill command do?
What is the difference between rm and rm -rf?
archive.tgz has ~30 GB. How do you list content of it and extract only one file?
What symbolic representation can you pass to chmod to give all users execute access to a file without affecting other permissions?
How can I sync two local directories?
You have to find all files larger than 20MB. How you do it?
Why do we use sudo su - and not just sudo su?
How to find files that have been modified on your system in the past 60 minutes?
What are the main reasons for keeping old log files?
What is an incremental backup?
Why would you want to mount servers in a rack?
What are the most important things to understand about the OSI (or any other) model?
List 5 common network ports you should know.
What POP and IMAP are, and how to choose which of them you should implement?
How to check default route and routing table?
What is the difference between 127.0.0.1 and localhost?
How to test port connectivity with telnet or nc?
Why should you avoid telnet to administer a system remotely?
What is the difference between wget and curl?
What is SSH and how does it work?
Most tutorials suggest using SSH key authentication rather than password authentication. Why it is considered more secure?
What is a packet filter and how does it work?
What are the advantages of using a reverse proxy server?
Explain the function of each of the following DNS records: SOA, PTR, A, MX, and CNAME.
Why couldn't MAC addresses be used instead of IPv4/6 for networking?
What is the smallest IPv4 subnet mask that can be applied to a network containing up to 30 devices?
What are some common HTTP status codes?
Explain some basic git commands.
Explain a simple Continuous Integration pipeline.
What is a Security Misconfiguration?
Explain in a few points the boot process of the Linux system.
Why is a load of 1.00 not ideal on a single-core machine?
What does it mean when the effective user is root, but the real user ID is still your name?
Developer added cron job which generate massive log files. How do you prevent them from getting so big?
Explain the selected information you can see in top and htop. How to diagnose load, high user time and out-of-memory problems with these tools?
How would you recognize a process that is hogging resources?
You need to upgrade ntpd service at 200 servers. What is the best way to go about upgrading all of these to the latest?
When your server is booting up some errors appears on the console. How to examine boot messages and where are they stored?
Swap usage too high. What are the reasons for this and how to resolve swapping problems?
Explain the differences among the following umask values: 000, 002, 022, 027, 077, and 277.
What is the difference between a symbolic link and a hard link?
You are configuring a new server. One of the steps is setting the permissions to the app directories. What steps will you take and what mistakes to avoid?
How could you modify a text file without invoking a text editor?
Explain the /proc filesystem.
Describe your data backup process. How often should you test your backups?
Explain three types of journaling in ext3/ext4.
ls -l shows file attributes as question marks. What this means and what steps will you take to remove unused "zombie" files?
To LVM or not to LVM. What benefits does it provide?
How to increase the size of LVM partition?
What is a zombie/defunct process?
What is strace command and how should be used? Explain example of connect to an already running process.
Which algorithms are supported in /etc/shadow file?
What is the use of ulimit in Unix-like systems?
What are soft limits and hard limits?
You have configured an RSA key login but your server show Server refused our key as expected. Where will you look for the cause of the problem?
How to run script as another user without password?
Can you give a particular example when is indicated to use nobody account? Tell me the differences running httpd service as a nobody and www-data accounts.
Is there a way to redirect output to a file and have it display on stdout?
You must run command that will be performed for a very long time. How to prevent killing this process after the ssh session drops?
How to reload PostgreSQL after configuration changes?
You have added several aliases to .profile. How to reload shell without exit?
How to exit without saving shell history?
Is there an easy way to search inside 1000s of files in a complex directory structure to find files which contain a specific string?
How to find out the dynamic libraries executables loads when run?
You have the task of sync the testing and production environments. What steps will you take?
According to an HTTP monitor, a website is down. You're able to telnet to the port, so how do you resolve it?
Explain difference between HTTP 1.1 and HTTP 2.0.
What is handshake mechanism and why do we need 3 way handshake?
Why is UDP faster than TCP?
What is the purpose of Spanning Tree?
How to check which ports are listening on my Linux Server?
How to send an HTTP request using telnet?
How do you kill program using e.g. 80 port in Linux?
You get curl: (56) TCP connection reset by peer. What steps will you take to solve this problem?
How to allow traffic to/from specific IP with iptables?
How to block abusive IP addresses with pf in OpenBSD?
Analyse web server log and show only 5xx http codes. What external tools do you use?
Developer uses private key on the server to deploy app through ssh. Why it is incorrect behavior and what is the better (but not ideal) solution in such situations?
What is the difference between CORS and CSPs?
What are playbooks in Ansible?
What is NRPE (Nagios Remote Plugin Executor) in Nagios?
What is the difference between Active and Passive check in Nagios?
How to git clone including submodules?
What is XSS, how will you mitigate it?
HIDS vs NIDS and which one is better and why?
What is a WAF and what are its types?
What are the different types of kernels? Explain.
The program returns the error of the missing library. How to provide dynamically linkable libraries?
What is the advantage of synchronizing UID/GID across multiple systems?
Describe start-up configuration files and directory in BSD systems.
Explain each system calls used for process management in Linux.
Explain interrupts and interrupt handlers in Linux.
What fields are stored in an inode?
How do you run command every time a file is modified?
Tell me about the dangers and caveats of LVM.
What if kill -9 does not work? Describe exceptions for which the use of SIGKILL is insufficient.
Difference between nohup, disown, and &. What happens when using all together?
What are segmentation faults (segfaults), and how can identify what's causing them?
One of the processes runs slowly. How to check how long has been running and which tools will you use?
What is a file descriptor in Linux?
What is the difference between /sbin/nologin, /bin/false, and /bin/true?
What is the meaning of the error maxproc limit exceeded by uid %i ... in FreeBSD?
How to read a file line by line and assigning the value to a variable?
What does CPU jumps mean?
How do you trace a system call in Linux? Explain the possible methods.
How to remove all files except some from a directory?
How to check if a string contains a substring in Bash?
Explain differences between 2>&-, 2>/dev/null, |&, &>/dev/null, and >/dev/null 2>&1.
How to redirect stderr and stdout to different files in the same line?
Getting Too many Open files error for Postgres. How to resolve it?
What is the difference between encryption and hashing?
Should the root certificate go on the server?
How to log all commands run by root on production servers?
How to prevent dd from freezing your system?
How to limit processes to not exceed more than X% of CPU usage?
How mount a temporary ram partition?
How to kills a process that is locking a file?
Other admin trying to debug a server accidentally typed: chmod -x /bin/chmod. How to reset permissions back to default?
How to check whether the private key and the certificate match?
How to add new user without using useradd/adduser commands?
Why do we need mktemp command? Present an example of use.
What is the easiest, safest and most portable way to remove -rf directory entry?
What are salted hashes? Generate the password with salt for the /etc/shadow file.
If you try resolve hostname you get NXDOMAIN from host command. Your resolv.conf stores two nameservers but only second of this store this domain name. Why did not the local resolver check the second nameserver?
Is it possible to have SSL certificate for IP address, not domain name?
How do I measure request and response times at once using curl?
Does having Varnish in front of your website/app mean you don't need to care about load balancing or redundancy?
What are hits, misses, and hit-for-pass in Varnish Cache?
How are cookies passed in the HTTP protocol?
You should rewrite POST with payload to an external API but the POST requests loose the parameters passed on the URL. How to fix this problem (e.g. in Nginx) and what are the reasons for this behavior?
You need to block several IPs from the same subnet. What is the most efficient way for the system to traverse the iptables rule set or the black-hole route?
How to run scp with a second remote host?
How can you reduce load time of a dynamic website?
What types of dns cache working when you type api.example.com in your browser and press return?
What is the difference between Cache-Control: max-age=0 and Cache-Control: no-cache?
What are the security risks of setting Access-Control-Allow-Origin?
Explain 3 techniques for avoiding firewalls with nmap.
Explain how Flap Detection works in Nagios?
What are the advantages that Containerization provides over Virtualization?
You have to prepare a Redis cluster. How will you ensure security?
What is CSRF?
What is a false positive and false negative in case of IDS?
Explain what is Event-Driven architecture and how it improves performance?
An application encounters some performance issues. You should to find the code we have to optimize. How to profile app in Linux environment?
Write two golden rules for reducing the impact of hacked system.
Is there a way to allow multiple cross-domains using the Access-Control-Allow-Origin header in Nginx?
How to recover deleted file held open e.g. by Apache?
The team of admins needs your support. You must remotely reinstall the system on one of the main servers. There is no access to the management console (e.g. iDRAC). How to install Linux on disk, from and where other Linux exist and running?
What function does DNS play on a network?
What is HTTP?
What is an HTTP proxy and how does it work?
Describe briefly how HTTPS works.
What is SMTP? Give the basic scenario of how a mail message is delivered via SMTP.
Describe the general file system hierarchy of a Linux system.
Which difference have between public and private SSH key?
What is the name and the UID of the administrator user?
How to list all files, including hidden ones, in a directory?
What is the Unix/Linux command to remove a directory and its contents?
How to search for the string "my konfu is the best" in files of a directory recursively?
How to connect to a remote server or what is SSH?
I get "command not found" when I run ifconfig -a. What can be wrong?
What happens if I type TAB-TAB?
What command will show the available disk space on the Unix/Linux system?
What commands do you know that can be used to check DNS records?
What Unix/Linux commands will alter a files ownership, files permissions?
What does chmod +x FILENAME do?
What does the permission 0750 on a file mean?
How to add a new system user without login permissions?
How to add/remove a group from a user?
What is a bash alias?
How do you set the mail address of the root/a user?
What does CTRL-c do?
What does CTRL-d do?
What does CTRL-z do?
What is in /etc/services?
How to redirect STDOUT and STDERR in bash?
What is the difference between Telnet and SSH?
Explain the three load averages and what do they indicate. What command can be used to view the load averages?
Can you name a lower-case letter that is not a valid option for GNU ls?
What is a Linux kernel module?
What does an & after a command do?
What is Virtual Memory?
What is swap and what is it used for?
What is an A record, an NS record, a PTR record, a CNAME record, an MX record?
Are there any other RRs and what are they used for?
What is a Split-Horizon DNS?
What is the sticky bit?
What does the immutable bit do to a file?
How to force/trigger a file system check on next reboot?
What is a runlevel and how to get the current runlevel?
What is SSH port forwarding?
What is the difference between local and remote port forwarding?
What are the steps to add a user to a system without using useradd/adduser?
What is MAJOR and MINOR numbers of special files?
Describe the mknod command and when you'd use it.
Describe a scenario when you get a "filesystem is full" error, but 'df' shows there is free space.
Describe a scenario when deleting a file, but 'df' not showing the space being freed.
Describe how 'ps' works.
What happens to a child process that dies and has no parent process to wait for it and what’s bad about this?
Explain briefly each one of the process states.
How to know which process listens on a specific port?
You run a bash script and you want to see its output on your terminal and save it to a file at the same time. How could you do it?
Explain what echo "1" > /proc/sys/net/ipv4/ip_forward does.
Can you have several HTTPS virtual hosts sharing the same IP?
What is a wildcard certificate?
Which Linux file types do you know?
What is the difference between exec and fork?
What is "nohup" used for?
How many NTP servers would you configure in your local ntp.conf?
What does the column 'reach' mean in ntpq -p output?
How can you get Host, Channel, ID, LUN of SCSI disk?
How can you limit process memory usage?
What is bash quick substitution/caret replace(^x^y)?
What is a tarpipe (or, how would you go about copying everything, including hardlinks and special files, from one server to another)?
How can you tell if the httpd package was already installed?
How can you list the contents of a package?
How can you determine which package is better: openssh-server-5.3p1-118.1.el6_8.x86_64 or openssh-server-6.6p1-1.el6.x86_64?
Can you explain to me the difference between block based, and object based storage?
What is a tunnel and how you can bypass a http proxy?
What is the difference between IDS and IPS?
What is the Linux Standard Base?
What is an atomic operation?
Your freshly configured http server is not running after a restart, what can you do?
What kind of keys are in ~/.ssh/authorized_keys and what it is this file used for?
I've added my public ssh key into authorized_keys but I'm still getting a password prompt, what can be wrong?
Did you ever create RPM's, DEB's or solaris pkg's?
What does :(){ :|:& };: do on your system?
How do you catch a Linux signal on a script?
Can you catch a SIGKILL?
What's happening when the Linux kernel is starting the OOM killer and how does it choose which process to kill first?
Describe the linux boot process with as much detail as possible, starting from when the system is powered on and ending when you get a prompt.
What's a chroot jail?
When trying to umount a directory it says it's busy, how to find out which PID holds the directory?
What's LD_PRELOAD and when it's used?
You ran a binary and nothing happened. How would you debug this?
How can you remove/delete a file with file-name consisting of only non-printable/non-type-able characters?
How can you increase or decrease the priority of a process in Linux?
A running process gets EAGAIN: Resource temporarily unavailable on reading a socket. How can you close this bad socket/file descriptor without killing the process?
What do you control with swapiness?
What is localhost and why would ping localhost fail?
What is the similarity between "ping" & "traceroute"? How is traceroute able to find the hops.
What is the command used to show all open ports and/or socket connections on a machine?
Is 300.168.0.123 a valid IPv4 address?
Which IP ranges/subnets are "private" or "non-routable" (RFC 1918)?
What is a VLAN?
What is ARP and what is it used for?
What is the difference between TCP and UDP?
What is the purpose of a default gateway?
What is command used to show the routing table on a Linux box?
A TCP connection on a network can be uniquely defined by 4 things. What are those things?
When a client running a web browser connects to a web server, what is the source port and what is the destination port of the connection?
How do you add an IPv6 address to a specific interface?
You have added an IPv4 and IPv6 address to interface eth0. A ping to the v4 address is working but a ping to the v6 address gives you the response sendmsg: operation not permitted. What could be wrong?
What is SNAT and when should it be used?
Explain how could you ssh login into a Linux system that DROPs all new incoming packets using a SSH tunnel.
How do you stop a DDoS attack?
How can you see content of an ip packet?
What is IPoAC (RFC 1149)?
What will happen when you bind port 0?
How do you provide privileges to a user?
What is the difference between a "left" and a "right" join?
Explain briefly the differences between InnoDB and MyISAM.
Describe briefly the steps you need to follow in order to create a simple master/slave cluster.
Why should you run "mysqlsecureinstallation" after installing MySQL?
How do you check which jobs are running?
How would you take a backup of a MySQL database?
What is GIT?
What is a dynamically/statically linked file?
What does "./configure && make && make install" do?
What is puppet/chef/ansible used for?
What is Nagios/Zenoss/NewRelic used for?
What is Jenkins/TeamCity/GoCI used for?
What is the difference between Containers and VMs?
How do you create a new postgres user?
How do you print all strings of printable characters present in a file?
How do you find shared library dependencies?
What is Automake and Autoconf?
./configure shows an error that libfoobar is missing on your system, how could you fix this, what could be wrong?
What are the advantages/disadvantages of script vs compiled program?
What's the relationship between continuous delivery and DevOps?
What are the important aspects of a system of continuous integration and deployment?
How would you enable network file sharing within AWS that would allow EC2 instances in multiple availability zones to share data?
A careless sysadmin executes the following command: chmod 444 /bin/chmod - what do you do to fix this?
I've lost my root password, what can I do?
I've rebooted a remote server but after 10 minutes I'm still not able to ssh into it, what can be wrong?
If you were stuck on a desert island with only 5 command-line utilities, which would you choose?
You have deleted by error a running script, what could you do to restore it?
What will happen on 19 January 2038?
How to reboot server when reboot command is not responding?
Remove all "*.pyc" files from testdir recursively?
How to send an email without a mail client, just on the command line?
What is basic memory layout of a process?
Describe how processes are created.
What are the basic techniques for resource control?
What is POSIX?
What is the GNU Project?
What is the standard C library?
Describe an IPv6 packet.
What are some benefits of IPv6?
Describe how traceroute works.
Describe how ping works.
Describe how tcptraceroute works.
What are the 6 TCP flags?
What's the difference between a L2, L4, L7 load-balancer?
What are the various load-balancing methods?
How do TCP Sockets work?
How TCP backlog works in Linux?
Explain the advantage of a cloud over traditional data center.
What is shared responsibility model?
What is the difference between IaaS, PaaS and SaaS?
What is the difference between Public cloud and Private cloud?
What requirements should be met in order for physical datacenter to be considered as Private cloud?
Describe AWS Global infrastructure.
What is AWS partition?
What is region?
What is availability zone?
What is edge location?
What tool can be used in order to estimate AWS infrastrcture costs beforehand?
What storage options exist on AWS?
What services can be used for monitoring AWS resources?
What services can be used for automating provisioning process on AWS?
What components of AWS VPC are needed in order to establish network SSH connection to an EC2 instance?
What possible ways to connect to the web service running on AWS exist?
What HA Options are available for Direct connect?
Explain the difference between AWS WAF, security group and network ACL. What tool would you choose?
What options for connecting multiple VPCs are available. How do you make a decision about what particular option to choose?
How much total available space does Amazon S3 provide?
What is the maximum file size that can be uploaded to Amazon S3?
Is there any reason why we may need to split a file before starting to upload it to Amazon S3?
What is bucket policy?
What is object availability and object durability?
What Amazon S3 storage types exist?
What is object lifecycle management?
What encryption options exist in Amazon S3?
Amazon Glacier is an extremely low-cost cloud storage that can be used as a long-term backup. What risks should be considered before choosing AWS Glacier as a backup storage?
Access settings for your AWS account does not allow public S3 buckets but we still need to publish a static website hosted on Amazon S3. How can we acheive the goal without having to change public access settings?
How to share a file located in Amazon S3 with another AWS account?
How is the "t" instance type different from other instance types?
What is Auto-Scaling groups?
How does Amazon decides about what particular instance in an Auto-Scaling group should be terminated?
What can be done in order to prevent an isntance from being terminated during troubleshooting via SSH?
How to setup post-actions for instances that are terminated by Auto-Scaling?
What is the difference between relational and non-relational databases?
What are use cases for relational databases?
What relational database options are provided by AWS?
How to replicate an RDS instance to another availability zone?
What is the difference between Multi-AZ deployment and Read-Replica?
What else except for High-availability can be acheived using Read-Replicas and Multi-AZ?
What is the difference between manual and automated RDS snapshots?
In DynamoDB there is a "scan" command. Usually, it's not a good idea to run a table scan. Why?
What is the difference between local secondary index and global secondary index?
In what cases DynamoDB should NOT be used?
What major sections can be specified in CloudFromation template?
What is the only section mandatory in CloudFormation template?
What is the maximum number of parameters that can be passed to a single CloudFormation template?
What is the maximium number of resources that can be declared in a single CloudFormation template?
How to predict what happens with an AWS resource during CloudFormation stack update and avoid the risk of accidential deletion?
What other options are available to prevent accidental deletion of CloudFormation resources?
What basic steps should be performed in order to secure newly created AWS account?
You have created an IAM user and applied AdministratorPolicy policy to it. When trying to download a file from S3 you receive Access Denied. You are able to access other services. What could be the reason for the issue?
How to configure EC2 isntance to be able to connect to AWS services?
What governance and logging options are avilable on AWS?
What tools can be used in order to discover compromised AWS resources?
What steps should be performed in case of having an instance compromised?
What steps should be performed in order to encrypt an EC2 instance that already exists?
What steps should be performed in order to share encrypted EBS snapshot with another AWS account?
In what cases AWS Lambda should NOT be used?
How does AWS Lambda integrates with another AWS services?
Can you explain how DNS resolution works, from typing a URL to receiving an IP address?
Describe how TCP's three-way handshake operates and what each step accomplishes.
What DNS record types do you commonly use and what purposes do they serve?
Explain the concept of TCP congestion control and how it impacts network performance.
How do you monitor and troubleshoot DNS-related issues in a production environment?
Can you describe the difference between Layer 4 and Layer 7 load balancers and provide use cases for each?
What is a reverse proxy and how does it relate to load balancing?
How would you prevent DNS spoofing or cache poisoning attacks in a DNS infrastructure?
Explain how TCP ports and sockets work together to manage connections on a server.
When configuring a load balancer, how do you decide between session persistence and round-robin methods?
How do you check and modify file permissions in Linux using shell commands?
Explain how you would find all running processes consuming more than 50% CPU on a Linux server.
What shell scripting techniques do you use to handle error management and ensure scripts don't fail silently?
Describe the process and commands to add a new user and set appropriate permissions on their home directory.
How would you automate regular backups of a directory using a shell script and cron job?
How can you use shell commands to parse and extract specific information from a large log file efficiently?
Explain the differences between hard links and symbolic links in Linux and when you would use each.
How do you use environment variables in shell scripts to make them reusable across different environments?
What are the common Linux kernel parameters you tune for optimizing system reliability and performance?
Describe how you would troubleshoot a failing service starting at boot using logs and systemctl commands.
How do you ensure your shell scripts are portable and compatible across different Linux distributions?
Explain the difference between a Docker container and a virtual machine in terms of resource utilization and isolation.
How do you create a multi-stage Dockerfile to optimize image size? Describe its benefits and challenges.
Can you describe how Docker networking works and how you would troubleshoot container communication issues?
What are the key components of a Docker Compose file and how does it help manage multi-container applications?
How would you secure Docker containers in a production environment to minimize vulnerabilities?
Describe how you would implement persistent storage for stateful applications running in Docker containers.
What are some best practices for writing efficient Dockerfiles to speed up build and deployment pipelines?
How do you monitor resource usage and performance of Docker containers in a cluster?
Explain the use of Docker Swarm or Kubernetes in managing container orchestration and how you have worked with either.
How would you handle environment-specific configuration in containers to ensure consistency across dev, test, and prod?
Can you discuss the differences between Docker volumes, bind mounts, and tmpfs mounts and when to use each?
Can you explain the architecture of Kubernetes and the roles of its main components like the API server, controller manager, scheduler, and etcd?
How do you perform rolling updates on a Kubernetes Deployment without downtime?
What strategies would you use to manage persistent storage in Kubernetes for stateful applications?
Describe how Kubernetes handles service discovery and load balancing internally.
How would you troubleshoot a failing Pod that is stuck in a CrashLoopBackOff state?
How do resource requests and limits work in Kubernetes, and why are they important?
Explain how Kubernetes namespaces can be used to implement multi-tenant environments.
Can you describe how you would design a highly available Kubernetes cluster for production?
What monitoring and logging tools do you integrate with Kubernetes clusters to ensure observability?
How do you implement network policies in Kubernetes to secure communication between pods?
Can you describe the typical stages involved in a CI/CD pipeline and their purposes?
How do you implement rollback strategies in CI/CD pipelines to handle failed deployments?
What tools do you prefer for building CI/CD pipelines and why?
How do you ensure security and compliance in your CI/CD pipeline processes?
Explain how you would integrate automated testing within a CI/CD pipeline to maintain code quality.
How do you handle secrets management in CI/CD workflows?
Describe how you would optimize a CI/CD pipeline to reduce deployment time without sacrificing quality.
How do you monitor and alert on issues that occur during CI/CD pipeline execution?
Can you explain the differences between continuous integration, continuous delivery, and continuous deployment?
How do you approach versioning and artifact management in a CI/CD pipeline?
How do you manage and organize your Terraform configuration files for a large-scale infrastructure project?
Can you explain the differences between Terraform state files local vs remote backends and when to use each?
Describe a strategy to handle secrets and sensitive data securely within Terraform configurations.
What Terraform features do you use to ensure infrastructure changes are reviewed and approved before deployment?
Explain how Terraform’s 'plan' and 'apply' commands work together and why both are important.
How do you approach managing multiple environments (dev, staging, production) in Terraform?
Describe how Terraform handles resource dependencies and how you can explicitly define them.
In a multi-team organization, how do you coordinate Terraform state locking and prevent conflicts?
What is your experience integrating Terraform with CI/CD pipelines for automated infrastructure deployment?
How do you troubleshoot and resolve errors related to drift between Terraform state and actual infrastructure?
How do you design a monitoring strategy for a microservices architecture to ensure comprehensive coverage?
What metrics would you prioritize to monitor the health of a web application serving millions of users?
Can you explain the difference between logs, metrics, and traces in observability and how you use each?
How do you set alert thresholds to minimize false positives but still catch critical failures?
Describe how you would implement centralized logging for a distributed system with services written in multiple languages.
What tools and technologies have you used for log aggregation and what were the pros and cons?
How would you monitor and alert on the performance impact of a database query that suddenly slows down?
Explain how you would use anomaly detection in monitoring to improve alerting accuracy.
How do you approach alert fatigue in operations teams and what strategies have you found effective to reduce it?
How do you ensure compliance and security considerations are met when collecting and storing logs?
How do you decide between using AWS S3 and EBS for storing application data?
Can you explain the differences between AWS CloudFormation, Terraform, and Azure Resource Manager in managing cloud infrastructure?
Describe how you would secure sensitive environment variables in a multi-cloud deployment pipeline.
What strategies do you use to handle cost optimization in GCP when running high-availability services?
How do you architect a fault-tolerant application using Azure Availability Zones?
Explain how Kubernetes integrates with cloud providers like AWS EKS or GCP GKE to manage scaling and networking.
How do you monitor and alert on cloud resource usage to ensure SLAs are met in a multi-cloud environment?
Describe your experience automating infrastructure deployments using Azure DevOps pipelines and its integration with Azure services.
What considerations are critical when designing disaster recovery plans using cloud services like AWS or GCP?
What steps do you follow when conducting a postmortem after a service outage?
How do you ensure that incident response processes minimize downtime and impact on users?
What key metrics should be collected during an incident to aid analysis and resolution?
Describe how you prioritize tasks and communication during a high-severity incident.
How do you differentiate between root cause and contributing factors when writing a postmortem?
What tools or platforms have you used for incident detection, alerting, and tracking?
How do you incorporate learnings from postmortems into ongoing operational improvements?
Explain how you would set up an incident response plan for a newly deployed service.
What role does blameless culture play in effective incident response and postmortems?
How do you balance thorough incident analysis with the need for timely resolution and recovery?
How do you define and differentiate between SLAs, SLOs, and SLIs in a production environment?
Can you describe how you would set an error budget for a critical microservice and how it impacts deployment decisions?
Explain how capacity planning interacts with SLO targets when scaling infrastructure for a web application.
How would you design an alerting system that respects error budgets to minimize alert fatigue while maintaining reliability?
In what ways can a team use error budgets to balance innovation velocity with system reliability?
When predicting capacity needs, what factors and data sources do you consider to accurately forecast traffic and resource consumption?
How would you approach configuring SLOs for a multi-tenant SaaS platform with varying customer reliability requirements?
Can you explain the relationship between error budget burn rate and risk management during a deployment cycle?
Describe how you would use historical incident and performance data to adjust SLOs and capacity plans over time.
How do you securely manage and rotate API keys and passwords in a CI/CD pipeline?
Describe your experience with secrets management tools like HashiCorp Vault or AWS Secrets Manager and how you've integrated them.
What strategies do you use to prevent secrets from being exposed in application logs, error messages, or debugging output?
How would you design a system to enforce least privilege access to secrets in a microservices architecture?
Explain the risks associated with embedding secrets directly into container images and how to avoid them.
What methods do you implement to audit and monitor access to sensitive credentials in operational environments?
How would you secure environment variables that hold secrets in serverless function deployments?
Describe how you would implement secure secret injection during application startup without writing secrets to disk.
How do you ensure compliance with security policies when handling secrets in multi-cloud or hybrid cloud environments?
What strategies do you use to ensure fault tolerance in distributed systems?
Describe the role of monitoring and alerting in maintaining reliable infrastructure and how you implement them.
How do you approach capacity planning to avoid both over-provisioning and under-provisioning resources?
What techniques do you use to implement disaster recovery and data backup for critical systems?
Can you describe the differences between vertical and horizontal scaling in infrastructure design and when to use each?
How do you ensure infrastructure changes are reliable and don’t cause downtime during deployments?
What role does Infrastructure as Code (IaC) play in building reliable and repeatable infrastructure?
How do you balance cost efficiency with reliability when designing infrastructure for a startup versus a large enterprise?
What are the key metrics and SLIs you track to ensure your site reliability objectives are met?
Domain knowledge
What is the main purpose of the intermediate certification authorities?
What is compliance?
What is the difference between policies, processes and guidelines?
Behavioral
Motivation
Why we must choose you?
What motivates you to leave your current role?
What motivates you to specialize in managing cloud infrastructure for reliability and scalability?
What motivates you to prioritize security best practices for secrets management in your DevOps workflows?
Other behavioral questions
The Junior dev accidentally destroyed production database. How can you prevent such situations?
Tell me about the last major Linux project you finished.
Tell me about the biggest mistake you've made recently and how you would do it differently today. What did you learn from this experience?
Can you describe your workflow when you create a script?
Tell me about a creative way that you've used SSH.
Tell me about a recent project you are proud of.
Tell me about a design decision you made that you later regretted.
Tell me about a disagreement or conflict between you and a coworker.
Show 13 more other behavioral questions
Describe your ideal day at work.
What do you want to achieve in your career in the next 5 years?
Describe a stressful situation at work and how you handled it.
How do you get buy-in on another team/ group working with you?
How do you bring out the best in the people who work around you?
How do you handle co-workers who aren't performing?
Describe a time when you improved an existing CI/CD pipeline and the impact it had on your team or project.
Can you discuss a challenging infrastructure problem you solved using Terraform and how you approached it?
Can you describe a time when your monitoring and alerting system helped prevent a major incident?
Can you describe a recent major incident you managed and your role in the response?
Describe a time when an error budget was exhausted in your team; how did you respond operationally and strategically?
Can you describe a time when a secrets leak occurred in your environment and how you handled the remediation?
Describe a challenging incident where infrastructure reliability was compromised and how you resolved it.
By company
Shaped by a company.
More DevOps and SRE questions, shaped by what each of these companies publicly builds.
Next
When the interview comes.
Transcribe
Live transcription of a call, readable on any phone as it happens.
Learn moreInterview copilot
Suggested answers during your interview, from your resume and the role.
Learn more