Discussions

DevOps interviews coding questions?
We don't require live-coding during our interviews, primarily because we're not software developers, and they're intimidating for people being interviewed. We offer candidates an option of live-coding interview if they want it, or a take-home assignment instead which most people take. We need some way to know that people applying can do what they're talking about (i.e. they have practical knowledge not just theoretical knowledge), so that's why some form of coding is required during the interview process. Our take-home / live coding is generally terraform / ansible / bash, maybe some minimal python. On my team, most engineers can't write well-optimized python code, since they have an IT background (not a CS background) and didn't learn things like time and space complexity, multithreading / multiprocessing and advanced data structures. It's going to depend on where you work if you need more than just basic python knowledge to land a job, depending generally on how much automation your team needs to write. I do most of the python automation on our team since I have both IT and programming background, and we don't have enough automation workload that multiple engineers are required. We would rather have additional engineers that can do more common tasks for our org, such as advanced networking, kubernetes, etc. Not every engineer is going to know everything. More on reddit.com
๐ŸŒ r/devops
31
22
December 31, 2023
DevOps Technical Interview (Python)

lmao are you the guy I am interviewing in 4 days?

if so, you should know enough Docker to dockerize a low-effort json microservice in some language of your choice, and then enough kubernetes to create a k8s manifest to let us test your results with a simple kubectl apply, and for extra credit know how to use terraform, and above all else demonstrate the ability to document your work intelligently (briefly, concisely) and communicate with coworkers and client engineers

More on reddit.com
๐ŸŒ r/devops
3
3
September 19, 2021
DevOps Interview questions
Google has a very nice video on doing interview with them - https://www.youtube.com/watch?v=XKu_SEDAykw Note that the most important part is not to give the right answer right away, but to talk through how you are thinking about the problem. Also keep in mind that in most of the places it's totally acceptable to ask interviewer a question if you forgot something, some places are even totally cool with you googling your way through the question. If interview is remote (which it most likely is), you will be doing with peer programming site - like codeshare or something similar, make sure you are familiar with how it works. Some of them have quite good web editors with support for common shortcuts, some will run your code for you - just make sure you are comfortable with technology before the interview. More on reddit.com
๐ŸŒ r/devops
13
38
October 24, 2022
Coding prep for DevOps & SRE Interviews - Request Guidance
Coding exercises are pretty much basic. Here is a template, parse it and replace some key values with a prefix derived from some rule. E.G. use the folder name of the repo. Real world use case is to dynamically create a helm chart. Parse these logs for only 5x0 errors. There will be some 5xx littered for things in the log like USER agent and size, the 5x0 we want are between the METHOD and user agent in a regular Apache or NGINX http server log.Then pipe those referrer IP to a CSV so you can auto-ban those people and call an API to get geolocation to block BRIC countries (non friendly countries). The second script should consume that CSV and call the Firewall to with payload of which IPs/Subnet to ban. A lof of reading files, parsing, manipulating, and calling a regular API (to get geo location).So basically a mid-level developer. They can choose BASH, Python or Go. We don't do Powershell as we are not a Window shop. Those are fairly basic type questions. I may even do something like I want a password strength validator base on this logic. 8 chars, special characters, and mix of upper/lowercase. Walk me through how you tackle this. Choose any language you want. A more experience engineer would just write a oneline regex versus someone who writes 60 line code with a lot of if-thens. And you can tell who uses ChatGPT because we are not looking for the code but how they think. More on reddit.com
๐ŸŒ r/devops
9
6
October 20, 2023
๐ŸŒ
DevOpsSchool.com
devopsschool.com โ€บ home โ€บ top 50 python interview questions and answers
Top 50 Python Interview Questions and Answers - DevOpsSchool.com
April 13, 2022 - Add a semicolon towards the end of the value if itโ€™s not present and then type %PYTHON_HOME% ... Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at Cotocus.
๐ŸŒ
Glassdoor
glassdoor.com โ€บ Interview โ€บ python-devops-interview-questions-SRCH_KO0,13.htm
Python devops Interview Questions | Glassdoor
1. Project/Profile introduction 2. List out the tools you are working on 3. Can you explain how octopus deploy work? 4. explain what is azure Devops, how you integrate differnt tools into it? 5. Have you worked on Ansible ? what are different roles in ansible 6.
๐ŸŒ
Medium
medium.com โ€บ @priyankar9805 โ€บ interview-coding-questions-answers-python-878af839497f
Interview Coding Questions & Answers โ€” Python | by Priyankar Prasad | Medium
November 13, 2021 - Python is used to write scripts to automate repetitive or manual tasks of engineers. So that, I wrote some simple yet most commonly asked python questions in DevOps or SRE interviews.
๐ŸŒ
YouTube
youtube.com โ€บ playlist
Python Interview Questions for DevOps - YouTube
This series is dedicated to all those people who face challenges when it comes to coding/scripting questions in DevOps/SRE interviews. As we know that DevOps...
๐ŸŒ
ThinkCloudly
thinkcloudly.com โ€บ home โ€บ blog โ€บ shell scripting and python interview questions for devops engineers
Shell Scripting and Python Interview Questions for DevOps Engineers - ThinkCloudly
January 6, 2026 - Explain how you would use Python for log analysis. You can read and parse large log files to identify errors: ... This kind of automation scripting question is common in interviews, testing your ability to monitor and troubleshoot systems.
Call ย  +1 646-980-6267
Address ย  21 Iceboat Terr, ON M5V 4A9, Toronto
Find elsewhere
๐ŸŒ
bitarray
bitarray.io โ€บ python-interview-questions
Python Interview Questions - bitarray for SRE, DevOps -
October 21, 2019 - Python is a very popular language and its popularity is growing. Expectations of the interviewer are also growing. In this article, we will learn commonly asked python Question and its answers. Question1: What is python? Answers: Python is a general-purpose purpose programming language which ...
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ devops โ€บ devops-interview-questions
Top 50+ DevOps Interview Questions and Answers (2025) - GeeksforGeeks
2 weeks ago - DevOps is a high-demand field and ... Ansible, Terraform, Git, monitoring tools (Prometheus, Grafana), and scripting (Python, Shell, Bash). The following 35 DevOps interview questions are suitable for freshers because these questions will provide basic information about ...
๐ŸŒ
Learnsteps
learnsteps.com โ€บ devops-interview-questions-important-python-questions
DevOps Interview Questions: Important Python questions. - Learn Steps
March 27, 2021 - DevOps Interview Question: How will you set up a CI/CD pipeline? When we talk about python involvement in DevOps, it is very much important as in the basic day to day automation can be easily automated.
๐ŸŒ
Woven Teams
woventeams.com โ€บ home โ€บ demand articles โ€บ devops coding questions: a guide for engineering leaders
DevOps Coding Questions: A Guide for Engineering Leaders - Woven Teams
January 31, 2024 - Try to avoid Python tricky interview questions or Python interview questions for engineers with five yearsโ€™ experience with these folks. Instead, youโ€™ll want to ask concise and clear questions like: Describe a DevOps engineer, their skills, and roles.
๐ŸŒ
GitHub
github.com โ€บ bregman-arie โ€บ devops-exercises
GitHub - bregman-arie/devops-exercises: Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions ยท GitHub
Linux, Jenkins, AWS, SRE, Prometheus, Docker, Python, Ansible, Git, Kubernetes, Terraform, OpenStack, SQL, NoSQL, Azure, GCP, DNS, Elastic, Network, Virtualization. DevOps Interview Questions - bregman-arie/devops-exercises
Starred by 82.2K users
Forked by 19.3K users
Languages ย  Python 66.1% | Shell 13.3% | HCL 12.9% | HTML 6.0% | Groovy 1.7%
๐ŸŒ
Medium
medium.com โ€บ @madhuchilipi โ€บ devops-interview-questions-python-for-devops-f3c7f014b972
DevOps Interview Questions: Python for DevOps | by madhu chilipi | Medium
October 1, 2025 - ๐Ÿ‘‰ Interview tip: Say โ€œPython is glue in DevOps โ€” it connects tools, automates workflows, and enhances pipelines.โ€ ยท Add a pipeline stage to run Python scripts.
๐ŸŒ
InterviewBit
interviewbit.com โ€บ devops-interview-questions
Top DevOps Interview Questions and Answers (2025) - InterviewBit
Find top DevOps interview questions asked. Explore basic, intermediate, and advanced level questions.
๐ŸŒ
Quora
quora.com โ€บ What-kind-of-coding-questions-could-be-asked-during-a-DevOps-interview
What kind of coding questions could be asked during a DevOps interview? - Quora
DevOps interviews test coding ability across scripting, automation, systems programming, cloud APIs, CI/CD and infrastructure-as-code. The following categorized list covers typical question types, example prompts, expected focal points, and brief notes on what interviewers evaluate. Scripting and automation (bash, Python, PowerShell)
๐ŸŒ
Hashnode
chandreshpatle.hashnode.dev โ€บ day-16-interview-questions-beginner-and-intermediate-and-real-world-python-in-devops
python for devops interview question - Chandresh Patle's Blog
December 30, 2023 - ๐Ÿ”ถ Introduction Welcome to Day 16 of our Python for DevOps series! Today, we'll dive into some interview questions for both beginners and intermediate Python developers. Additionally, we'll discuss a real-world example of using Python to solve a DevO...
๐ŸŒ
Reddit
reddit.com โ€บ r/devops โ€บ devops interviews coding questions?
r/devops on Reddit: DevOps interviews coding questions?
December 31, 2023 -

Hey guys two questions:

First is - are you guys getting tasked with coding questions (like leet code) in your interviews for DevOps roles? If so what have they consisted of?

Second is - my current role as a devops engineer primarily consists of Terraform, bash scripting, yaml files for workflows and few ansible playbooks (in terms of scripting/coding). I have Python knowledge (intermediate at best) but never really use it in my day to day, so my question is - is it worth enhancing my knowledge of python, or is it worth picking up Go and learning that? If so what are use cases in your current role of using something like Go? As the title DevOps is very wide and mine leans more towards the cloud infra side of responsibilities (most of my day to day revolves around AWS).

Thanks in advance!

Top answer
1 of 12
12
If an interview requires live coding i just nope out of it because I have not written serious code in like 5 years. I would get better with python, but Go is often used for writing kubernetes admission controllers, so if that is something you want to get into then Go would be a good option.
2 of 12
8
We don't require live-coding during our interviews, primarily because we're not software developers, and they're intimidating for people being interviewed. We offer candidates an option of live-coding interview if they want it, or a take-home assignment instead which most people take. We need some way to know that people applying can do what they're talking about (i.e. they have practical knowledge not just theoretical knowledge), so that's why some form of coding is required during the interview process. Our take-home / live coding is generally terraform / ansible / bash, maybe some minimal python. On my team, most engineers can't write well-optimized python code, since they have an IT background (not a CS background) and didn't learn things like time and space complexity, multithreading / multiprocessing and advanced data structures. It's going to depend on where you work if you need more than just basic python knowledge to land a job, depending generally on how much automation your team needs to write. I do most of the python automation on our team since I have both IT and programming background, and we don't have enough automation workload that multiple engineers are required. We would rather have additional engineers that can do more common tasks for our org, such as advanced networking, kubernetes, etc. Not every engineer is going to know everything.