How to Prepare for Your DevOps Interview

DZone 's Guide to

How to Prepare for Your DevOps Interview

Here's the interview prep you should conduct to be ready for the DevOps hotseat.

· DevOps Zone ·
Free Resource

Interview table and chairs

So, why should they hire you?

Over the past decade, DevOps has emerged as a new tech culture and career that marries the rapid iteration desired by software development with the rock-solid stability of the infrastructure operations team. For system administrators, operations engineers, and others with strong systems and software backgrounds, there’s perhaps no better time than the present to transition into DevOps. As of August 2019, there are currently over 50,000 LinkedIn DevOps job listings in the United States alone. For a good overview of what DevOps entails and how to transition, check out this blog post.

You may also enjoy:  10 DevOps Interview Answers

Let’s say you’ve learned the fundamentals and are ready to start your job hunt. How do you ace your DevOps interview? DevOps Engineers must be both good software developers and infrastructure experts and, as such, they are expected to know Linux infrastructure, networking, algorithms, and DevOps tools such as Terraform, Docker, and Kubernetes. Interviews can range from standard software engineer coding questions to questions on system design, Linux debugging, and DevOps tools.

This is an intimidating list, but have no fear! At Insight, the DevOps Fellowship has launched the careers of many individuals with transferrable skills into highly desired industry DevOps positions. Here’s how we prepare them for interviews.


Motivation is a great start, but you’ll need the discipline to prepare effectively. I’ve written this guide to help you develop a disciplined interview preparation routine. Interviewing can really suck — it’s random and can make you feel bad about yourself. There’s so much you can’t control in the process, but you can control how you prepare.

There is a lot here to chew on, so don’t expect to be able to learn everything all at once. Maybe one day you’ll choose one topic to focus on. Maybe you’ll focus on another topic for a week straight. In general, though, you should pick two or three activities to do habitually each day, rotating through different topics so your mind stays fresh and engaged. These categories are listed in order of importance:

  1. Linux Fundamentals
  2. Data Structures and Algorithms
  3. System Design
  4. Parsing
  5. DevOps Tools

It’s good to develop a wide, shallow base of knowledge first, so load balance across topics in a round-robin fashion at first. That will widen your conceptual framework of the DevOps space so that you can more easily put new information into context. The activities within each category are ranked more or less in order of importance as well. Certain activities lend themselves to daily practice, like CodeSignal problems or OverTheWire challenges. Others lend themselves to deep study.

If you want to go fast, go alone. But if you want to go far, go together. Create a study group with your peers. Hold each other accountable. Do weekly or daily check-ins and info-sharing sessions. During those time that you feel unmotivated, remember that doing something is much better than doing nothing. During those times when you are too motivated, remember that sleep and exercise are every bit as important to your success as anything else. These activities are the stepping stones to the next phase of your life, but remember to allow yourself to become fascinated with the shape of each stone.

Linux Fundamentals

As a DevOps Engineer, you’re expected to know Linux as well as the back of your hand. Any questions about Linux is fair game, from the kernel to networking to command line commands.

Example Questions

  • What is the sequence of steps that occur when a Linux computer is powered up?
  • What happens when you type google.com into your browser that causes a web page to return to you? What if the web page doesn’t appear — how do you debug the problem?
  • How do you check if your filesystems are running out of space? How do you print a list of the largest files? How do you delete all .mov files larger than 1 GB?


  • Work through The Linux Command Line book
  • Work through the OverTheWire wargames. These are fun scavenger hunts through Linux systems that are well-designed to teach you the fundamental concepts. At least get through the Bandit levels. Don’t be afraid to Google solutions if you get stuck. I highly suggest you document your progress in GitHub as you go.
  • Learn vim by simply using the vimtutor command. It’s just the best editor ever and don’t let anyone convince you otherwise.
  • Consider paying for acloudguru or Linux Academy courses to get certifications in Linux fundamentals (Linux+, RedHat, etc.). It’s true that a pound of certifications is less valuable than an ounce of experience, but when you are low on experience, certifications can help fill in gaps in your knowledge and prove that you have a basic understanding.


  • The best reference manual for Linux commands is tldr.sh. I highly suggest you download the tl;dr mobile app for quick reference. This has helped me on phone interviews where I didn’t know a command off the top of my head.
  • devhints.io is a great source for all manner of cheat sheets.
  • It doesn’t look flashy, but the Advanced Bash Scripting Guide is a goldmine.

Data Structures and Algorithms

Remember that DevOps is Development + Operations, so you’re expected to know how to code. Choose a language of your choice (not Bash — if you don’t have a strong preference, I recommend Python) and practice, practice, practice. It’s not just about finding an optimal solution — you must clearly communicate the parameters of the problem with your interviewer, convey your thought process as you go along, and calculate the time and space complexity of different algorithms.

Example questions

  • Remove all duplicates from a list.
  • Find the missing IP in a file containing all possible IPs except one.
  • Sort all nodes of a binary tree.


  • Khan Academy has a really nice data structures and algorithms primer. It’s in Javascript, but don’t hold that against it. This curriculum was made in partnership with Tom Cormen, the author of the definitive book on data structures and algorithms that’s definitely worth owning a copy of.
  • LeetCode has a large repository of problems that are close to real interview questions. In fact, many companies will directly ask you LeetCode questions! Do at least 10 easy and medium questions of each type of algorithms. You can start to feel prepared when you’ve done 100 problems and can actually solve each without looking anything up.
  • Work through the interview prep material daily on CodeSignal. I suggest Python, but you can work in any language. Copy and paste your code into files and version control it with GitHub. Each day, look through the code you did yesterday and document it in detail. Writing code is easier than reading your old code and trying to remember what’s going on. Revisiting your old code after a day or two will force you to synthesize the concepts you are learning.
  • Work through CodeSignal’s Python Arcade. It is a nice tour of all the important standard Python libraries. Some of the exercises really miss the mark but, overall, this is a nice playlist.
  • Research Dynamic Programming, Directed Acyclic Graphs, Topological Sort.
  • Everyone needs a little SQL. No need to spend large amounts of time on this, but you should sign up for a free account on Mode Analytics and make use of their great interactive SQL tutorials that use real public databases.
  • As you get more comfortable with your coding skills, use Pramp to practice live technical interviews. This is an important component. Nothing quite prepares you for technical phone screens like practicing technical phone screens.
  • Remember that the only knowledge that counts is what you can demonstrate in front of the interviewer, either on the whiteboard or live coding. If you tend to freeze up in high-pressure situations, you’re far from the only one — be sure to do lots of practice with peers.


System Design

The system design interview tests your big-picture thinking, ability to architect complex infrastructure, and communication skills. Be sure to practice a top-down design approach with clear infrastructure diagrams and DevOps considerations.

Example Question

  • Design a microblogging message-based social network like Twitter. How would you ensure high availability across different regions?


  • Chip away at the System Design Primer. One fun thing to do is to pick a topic and ask a friend to pick another topic, then spend 2 hours researching your topic before coming back together for an hour or two to share. Take turns playing the roles of interviewer and interviewee.
  • Read the Google SRE Book. This is a must-read book for modern DevOps.


Sysadmins frequently analyze system outputs and logs to obtain system insights and debug issues. Command-line parsing with tools like grep, awk, and sed is an important skill for the DevOps arsenal.

Example Questions

  • Given an Apache web server log, how many requests are made per day? Which IPs are the most frequent visitors? Which pages and images are the most requested?


  • Work through the exercises in Insight’s parsing workshop materials. Focus on awk. The chapter materials are good, but the exercises are the most important part to do.


  • LearnXinYminutes: Another great example-driven reference — this time for awk.
  • Regexr: The best regular expression reference.

DevOps Tools

Docker, Terraform, and Kubernetes are essential DevOps tools, and you can’t go wrong learning them thoroughly. You should also know at least one CI/CD tool, such as Jenkins. It’s highly recommended that you learn these tools on at least one of the big three clouds: AWS, GCP, or Azure.

Example Question:

  • Deploy a Docker application onto a new AWS EC2 instance using Terraform.


  • You need to learn Kubernetes. In order to learn Kubernetes, you need to learn about containerization and Docker.
  • Work through the Docker for Beginners lab
  • Work through the Play With Docker Classroom
  • Kubernetes (concept: container orchestration)
  • Read through Kubernetes concepts
  • Work through the Kubernetes Basics tutorial
  • For a deeper dive, work through the Katacoda course
  • Work through an introductory Jenkins tutorial or two to learn more about CI/CD (concept: deployment pipeline as code). I honestly don’t know that much about Jenkins, so I don’t know better resources for this.
  • Use Vagrant to declaratively define a VM, and then use VirtualBox or Packer to export that VM as an OVA file (concepts: immutable infrastructure, configuration as code).
  • Terraform (concept: infrastructure as code)
  • Read Terragrunt’s Comprehensive Guide to Terraform
  • Work through the Terraform Tutorial
  • Ansible (concept: configuration as code)
  • Watch the intro video
  • For some hands-on labs, I think Linux Academy might be the best bet (not free)
  • Do the Honeycomb Quickstart to give a flavor of monitoring/tracing tools (concept: full-stack tracing)
  • Work through the Consul tutorial (concept: service discovery).
  • Work through the Vault tutorial (concept: enterprise-scale secrets management)
  • Play with Linkerd (concept: service mesh)
  • Apache Kafka (concept: fault-tolerant, high throughput event streaming)
  • Shameless plug for Apache Kafka — find the free Confluent Training course on the site to get a nice set of videos about Kafka fundamentals
  • Check out the operations training repo to get your own local docker-compose Kafka cluster up and start playing with Kafka


  • Ansible: The User Guide.
  • Want to do something specific in Kubernetes? Check the Tasks section of the docs. There are many task-specific guides.
  • Docker’s Samples page has good examples of fully built applications as well as some good hands-on tutorials. I like the Django+Postgres sample.

Other High-Value Items


  • Listen regularly to the Software Engineering Daily podcast. This is by far the best way to keep a finger on the pulse of the DevOps world. I suggest getting the app so that you can easily search through old episodes for in-depth talks about the technologies and concepts you are studying. In the DevOps Tools section, I gave keywords for the concepts behind each tool. You can use these keywords to search SEdaily for relevant podcasts.
  • Read about Kanban boards and use them to enhance your focus and productivity. GitHub has a simple kanban board you can use to keep yourself productive. I also personally like bullet journaling and the Pomodoro Method.
  • Dig deep into the technical details of some of your favorite tools. Start with the documentation. Pair up and share your takeaways from the technical deep-dives.
  • Consider paying for Linux Academy or acloudguru courses to get AWS, GCP, or Azure certifications.


  • Digital Ocean has great tutorials. When I Google, I tend to try “<research topic> site:digitalocean.com” first. This is especially helpful when you are first learning to install something manually.

Credit to Insight DevOps alum Chuck Larrieu Casias for writing this blog.

Interested in transitioning to a career in DevOps engineering? Learn more about the Insight Fellows program and start your application today.

 Further Reading

Questions to Ask in a DevOps Interview

What to Expect From a DevOps Interview

devops ,interview prep ,devops interview ,devops tools ,linux fundamentals

Published at DZone with permission of John Taylor . See the original article here.

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}