DevOps Is Not for Beginners? The 6 Basics an Interviewer Asked For - Routing, Ports, a Slow Linux Machine, Stateful vs Stateless Firewalls, Web Servers and DNS - Each Answered on a Real Machine
TL;DR
- The claim "DevOps is not for beginners" came from an interviewer, not from a beginner. He could not fill a DevOps position and posted the basics his candidates could not explain.
- The six basics: how networking and routing work, what ports are, how to troubleshoot a slow Linux machine, what a firewall is and stateless versus stateful, what a web server does, what DNS and DNS records are.
- My answer in the video: partly true. You do not need to be an expert to start, but you do need these six, and you need to have done them, not read them.
- All six fit on one small Linux machine. I ran them on Ubuntu 24.04 on 2026-11-30; the commands and their real output are below:
ip route,ss -tlnp,top,vmstat, aniptablesrule set that hangs for 5 seconds without state and works with it, nginx 1.31.10, anddigagainst jhooq.com. - In the interview, lead with what you built and what broke, not with a definition. Each section ends with a way to open your answer.
- Thinking of collecting certificates first? Read should you do a cloud certification before you pay for one.
Table of Content
- Where the claim comes from
- How networking and routing work
- What ports are
- A slow Linux machine
- Stateless and stateful firewalls
- What a web server does
- DNS and DNS records
- What broke when I ran this
- Conclusion
1. Where the claim comes from
I came across a Reddit thread titled "DevOps is not for the beginner". Reading it, I realised the author was not a beginner at all: he was an experienced engineer who had done a lot of interviews for one DevOps position and still could not find a suitable candidate. He posted the questions he asks. My reaction, in the words of the recording (YouTube's automatic captions, so the grammar is the spoken one):
1[00:46] an experienced candidate should be able to answer those questions properly
2[02:11] no one expect you to provide a really straight answer but they are more of
3 a looking for an experience
4[02:11] instead of providing a bookish uh explanation try to provide more concrete
5 example
6[08:46] you don't need to have a really vast experience to experiment with these
7 concept
8[09:29] it doesn't require to be a super duper expert to begin with the devops
The times are the start of the caption block each line sits in. So I agree with the interviewer about the list and only partly with the headline: a fresh graduate who has done small projects on these six can start, and builds the rest, mostly troubleshooting skill, with experience.
The video gives the answers in words. What it does not do is show them, so I took a fresh Ubuntu 24.04.5 cloud VM (2 CPUs, 7.6 GiB of memory, kernel 7.0) on 2026-11-30 and did each one. The [exit N] lines in the outputs are printed by the small wrapper I ran the commands through.
2. How networking and routing work
A machine decides where to send a packet by looking up the destination in its routing table and taking the most specific match. That is the whole idea, on a laptop, in a data centre and in a VPC.
1$ ip -br addr | grep -v '^veth'
2lo UNKNOWN 127.0.0.1/8 ::1/128
3enp39s0 UP 10.0.139.121/20 metric 100 fe80::ff:ccff:fe9f:5c69/64
4docker0 DOWN 172.17.0.1/16
5
6$ ip route
7default via 10.0.128.1 dev enp39s0 proto dhcp src 10.0.139.121 metric 100
810.0.0.2 via 10.0.128.1 dev enp39s0 proto dhcp src 10.0.139.121 metric 100
910.0.128.0/20 dev enp39s0 proto kernel scope link src 10.0.139.121 metric 100
1010.0.128.1 dev enp39s0 proto dhcp scope link src 10.0.139.121 metric 100
11172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 linkdown
12
13$ ip route get 1.1.1.1
141.1.1.1 via 10.0.128.1 dev enp39s0 src 10.0.139.121 uid 1001
15 cache
16
17$ ip route get 172.17.0.5
18172.17.0.5 dev docker0 src 172.17.0.1 uid 1001
19 cache
Read it like this. The machine is 10.0.139.121 in the subnet 10.0.128.0/20. Anything inside that /20 is "scope link", reachable directly. 172.17.0.0/16 belongs to the Docker bridge. Everything else, such as 1.1.1.1, matches only the default route and goes to the gateway 10.0.128.1. ip route get (man page) asks the kernel which route it would pick, which beats guessing.
A cloud route table is this same table with a web console. In AWS the default via 10.0.128.1 line becomes 0.0.0.0/0 -> igw-... in a public subnet and 0.0.0.0/0 -> nat-... in a private one; the VPC walkthrough builds both, and the /20 notation is explained in what is CIDR.
A way to open your answer (with your own project in it): "I built a VPC with a public and a private subnet. The public route table sends 0.0.0.0/0 to the internet gateway, the private one to a NAT gateway, and the first thing that broke was ..."
3. What ports are
An IP address finds the machine; a port finds the program on it. Port numbers below 1024 are the well-known ones, and Linux keeps the list in a file:
1$ grep -E '^(ssh|http|https|domain|postgresql|mysql)[[:space:]]' /etc/services
2ssh 22/tcp # SSH Remote Login Protocol
3domain 53/tcp # Domain Name Server
4domain 53/udp
5http 80/tcp www # WorldWideWeb HTTP
6https 443/tcp # http protocol over TLS/SSL
7https 443/udp # HTTP/3
8mysql 3306/tcp
9postgresql 5432/tcp postgres # PostgreSQL Database
The everyday question is "what is listening on this machine, and which process is it?". I started a small web server on port 9000 and asked ss (man page):
1$ sudo ss -tlnp | awk 'NR==1 || /:22 |:9000 |:53 /' | cut -c1-150
2State Recv-Q Send-Q Local Address:Port Peer Address:PortProcess
3LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=712,fd=15))
4LISTEN 0 5 0.0.0.0:9000 0.0.0.0:* users:(("python3",pid=2195,fd=3))
5LISTEN 0 4096 0.0.0.0:22 0.0.0.0:* users:(("systemd",pid=1,fd=174))
6LISTEN 0 4096 127.0.0.54:53 0.0.0.0:* users:(("systemd-resolve",pid=712,fd=17))
7LISTEN 0 4096 [::]:22 [::]:* users:(("systemd",pid=1,fd=175))
8
9$ curl -s -m 5 http://127.0.0.1:9000/
10<h1>hello from port 9000</h1>
11[exit 0]
12
13$ curl -s -m 5 http://127.0.0.1:9001/
14[exit 7]
15
16$ nc -zv -w 3 127.0.0.1 9000; nc -zv -w 3 127.0.0.1 9001
17Connection to 127.0.0.1 9000 port [tcp/*] succeeded!
18nc: connect to 127.0.0.1 port 9001 (tcp) failed: Connection refused
Three things to say out loud from this. 0.0.0.0:9000 means the program accepts connections on every interface, while 127.0.0.53%lo:53 is reachable only from the machine itself; that difference is behind many "it works on the server but not from outside" problems. Port 9001 has no listener, so the kernel answers immediately with "Connection refused" (curl's exit code 7). And the client side uses a port too, a temporary one from the range sysctl net.ipv4.ip_local_port_range prints, 32768 to 60999 here. Remember that range; it comes back in section 5.
A way to open your answer: "A port is how the kernel hands a connection to the right process. When something is unreachable I check three things in order: is anything listening (ss -tlnp), on which address, and does a firewall drop it on the way."
4. A slow Linux machine
In the video I name the commands: top, htop, free, vmstat. Naming them is not the answer; the order and what you read from them is. I made the machine busy on purpose with two CPU-burning processes and one that holds 600 MB of memory:
1$ top -bn1 | head -12 | cut -c1-110
2top - 04:26:10 up 2 min, 0 user, load average: 0.62, 0.31, 0.12
3Tasks: 183 total, 3 running, 180 sleeping, 0 stopped, 0 zombie
4%Cpu(s): 30.4 us, 69.6 sy, 0.0 ni, 0.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
5MiB Mem : 7776.2 total, 5187.5 free, 1417.8 used, 1473.1 buff/cache
6MiB Swap: 3072.0 total, 3072.0 free, 0.0 used. 6358.4 avail Mem
7
8 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
9 2226 runner 20 0 6128 1976 1852 R 100.0 0.0 0:06.03 yes
10 2224 runner 20 0 6128 1972 1848 R 100.0 0.0 0:06.06 yes
11 1 root 20 0 22840 13956 9580 S 0.0 0.2 0:01.48 systemd
12 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
13 3 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pool_wo+
14
15$ free -h
16 total used free shared buff/cache available
17Mem: 7.6Gi 1.4Gi 5.1Gi 45Mi 1.4Gi 6.2Gi
18Swap: 3.0Gi 0B 3.0Gi
19
20$ vmstat 1 4
21procs -----------memory---------- ---swap-- -----io---- -system-- -------cpu-------
22 r b swpd free buff cache si so bi bo in cs us sy id wa st gu
23 4 0 0 5311604 54036 1454700 0 0 5096 3495 915 7 6 6 71 17 0 0
24 4 0 0 5312920 54036 1454944 0 0 0 0 2074 1781 33 68 0 0 0 0
25 3 0 0 5313032 54036 1454944 0 0 0 0 2077 1375 32 68 0 0 0 0
26 3 0 0 5313032 54036 1454944 0 0 0 0 2101 988 32 68 0 0 0 0
| Look at | In this output | What it tells me |
|---|---|---|
%Cpu(s) idle (id) | 0.0 | the CPUs are fully busy; with 2 CPUs and two processes at 100% that adds up |
wa (I/O wait) | 0.0 | the disk is not the bottleneck; a high wa sends me to iostat and df -h |
vmstat column r | 3 to 4 on 2 CPUs | more runnable tasks than CPUs: work is queueing |
free, column available | 6.2Gi of 7.6Gi | memory is fine; free alone (5.1Gi) undercounts because cache is reclaimable |
si / so (swap in/out) | 0 | no swapping; non-zero here on a slow box usually is the answer |
| the process list | two yes at 100% | who is doing it |
The order I follow is CPU, then memory and swap, then disk, then the process. On a real incident dmesg for "Out of memory" lines and df -h for a full disk come next; here dmesg had none and the root disk was at 80%. The vmstat man page explains every column.
A way to open your answer: "I look at top for idle and I/O wait first, because that tells me whether it is CPU, disk or neither. When I tried it on a test machine ..."
5. Stateless and stateful firewalls
In the video I describe a stateless firewall as a gatekeeper who checks each packet by itself, and a stateful one as a gatekeeper who remembers which conversations he already let in. That is easier to believe when you see a connection hang.
I made a small chain that sees only loopback traffic of my port-9000 server. First without state: one rule that allows packets going to port 9000, and a drop for the rest of that conversation, which is what a default-deny firewall does:
1$ sudo iptables -A DEMO -p tcp --dport 9000 -j ACCEPT
2$ sudo iptables -A DEMO -p tcp --sport 9000 -j DROP
3
4$ curl -s -m 5 http://127.0.0.1:9000/
5[exit 28]
6
7$ sudo iptables -L DEMO -v -n
8Chain DEMO (1 references)
9 pkts bytes target prot opt in out source destination
10 5 300 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9000
11 6 360 DROP 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:9000
The request was allowed, 5 packets. The server's replies come from port 9000 to the client's temporary port, they matched no allow rule, and 6 of them were dropped. curl waited its 5 seconds and gave up with exit code 28, a timeout. Nothing was refused; the answer simply never arrived. Now one stateful rule on top:
1$ sudo iptables -I DEMO 1 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
2
3$ curl -s -m 5 http://127.0.0.1:9000/
4<h1>hello from port 9000</h1>
5[exit 0]
6
7$ sudo iptables -L DEMO -v -n
8Chain DEMO (1 references)
9 pkts bytes target prot opt in out source destination
10 12 924 ACCEPT 0 -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
11 6 360 ACCEPT 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:9000
12 6 360 DROP 6 -- * * 0.0.0.0/0 0.0.0.0/0 tcp spt:9000
The firewall now tracks the connection. After the first packet was accepted by the port rule, everything that belongs to that connection, in both directions, is accepted by the first rule (12 packets), and the drop rule did not count a single new packet. The stateless way to fix the same thing is a second rule for the return direction, which I also ran: replacing the drop with --sport 9000 -j ACCEPT made curl work without any connection tracking.
That is exactly the difference between the two AWS firewalls, and it is the example I would give:
| Security group | Network ACL | |
|---|---|---|
| Kind | stateful | stateless |
| Return traffic | allowed automatically | needs its own rule |
| The rule people forget | none | outbound (or inbound) for the ephemeral ports, 32768-60999 on this Linux box |
| Symptom when wrong | "connection timed out" | "connection timed out", after you already "opened the port" |
| Docs | security groups | network ACLs |
The step-by-step with inbound and outbound rules in the console is in AWS security groups.
A way to open your answer: "Stateless means every packet is judged alone, so the reply needs its own rule. When I tried it with iptables, the request was accepted and the connection still timed out, because ..." (the iptables lines above are all it takes to be able to say that truthfully).
6. What a web server does
A browser sends a request, the web server maps it to a file or an application and sends back a status, headers and a body. I started nginx in a container, published on port 8080:
1$ curl -s -I http://127.0.0.1:8080/
2HTTP/1.1 200 OK
3Server: nginx/1.31.10
4Date: Mon, 30 Nov 2026 04:26:32 GMT
5Content-Type: text/html
6Content-Length: 896
7Last-Modified: Thu, 19 Nov 2026 19:39:06 GMT
8Connection: keep-alive
9ETag: "6aff505a-380"
10Accept-Ranges: bytes
11
12$ curl -s -o /dev/null -w '%{http_code} %{time_total}s\n' http://127.0.0.1:8080/nope
13404 0.000358s
14
15$ docker logs web 2>&1 | tail -3 | cut -c1-200
16172.17.0.1 - - [30/Nov/2026:04:26:32 +0000] "GET / HTTP/1.1" 200 896 "-" "curl/8.5.0" "-"
172026/11/30 04:26:32 [error] 31#31: *3 open() "/usr/share/nginx/html/nope" failed (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "GET /nop
18172.17.0.1 - - [30/Nov/2026:04:26:32 +0000] "GET /nope HTTP/1.1" 404 154 "-" "curl/8.5.0" "-"
Everything an interviewer wants to hear is in those lines. A status code (200, 404). An access log with client address, request, status and size. An error log that names the file nginx tried to open, /usr/share/nginx/html/nope, which is the root directory from its configuration plus the path of the URL. The configuration itself is three directives: listen 80;, server_name localhost; and root /usr/share/nginx/html; (nginx beginner's guide).
In the video I link the web server to the other topics, and that link is the point: it listens on a port, a firewall decides who reaches that port, and DNS gives it a name. Other servers you will meet do the same job: Apache httpd, Tomcat, and in Kubernetes an nginx ingress controller.
A way to open your answer: "It accepts HTTP requests on a port and returns a response. I ran nginx in a container, requested a page that does not exist, and the error log showed ..."
7. DNS and DNS records
My one-line version in the video: DNS is an open phone book, a readable name on one side and an IP address on the other. The records are the kinds of entries in that book. This site's own zone shows the common ones:
1$ dig +noall +answer jhooq.com A
2jhooq.com. 60 IN A 3.175.34.36
3jhooq.com. 60 IN A 3.175.34.23
4jhooq.com. 60 IN A 3.175.34.123
5jhooq.com. 60 IN A 3.175.34.47
6
7$ dig +noall +answer jhooq.com NS
8jhooq.com. 86400 IN NS ns-1414.awsdns-48.org.
9jhooq.com. 86400 IN NS ns-2044.awsdns-63.co.uk.
10jhooq.com. 86400 IN NS ns-541.awsdns-03.net.
11jhooq.com. 86400 IN NS ns-134.awsdns-16.com.
12
13$ dig +noall +answer jhooq.com MX
14jhooq.com. 3600 IN MX 20 mx2.zoho.com.
15jhooq.com. 3600 IN MX 50 mx3.zoho.com.
16jhooq.com. 3600 IN MX 10 mx.zoho.com.
17
18$ dig does-not-exist.jhooq.com A | grep -E 'status|AUTHORITY SECTION' -A1 | head -5
19;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 46262
20;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 1
21--
22;; AUTHORITY SECTION:
23jhooq.com. 900 IN SOA ns-541.awsdns-03.net. awsdns-hostmaster.amazon.com. 1 7200 900 1209600 86400
| Record | What it holds | In the output above |
|---|---|---|
| A | name to IPv4 address | four addresses with a TTL of 60 seconds |
| AAAA | name to IPv6 address | none; the query returned an empty answer |
| CNAME | name to another name | none here; www.jhooq.com answers with the same four A records |
| NS | which servers are authoritative for the zone | four awsdns servers, TTL 86,400 seconds (one day) |
| MX | where mail for the domain goes, with a priority | three mail servers; 10 is tried first |
| TXT | free text: SPF, domain verification | an SPF record and two verification strings |
| SOA | the zone's own record, returned with "no such name" | in the NXDOMAIN answer |
The second column is the number people skip: the TTL. The A records live 60 seconds in a resolver's cache, the NS records a full day. That is why changing where a site points takes effect in about a minute, and moving the whole zone to other name servers can take a day or more to settle. The format of all of this goes back to RFC 1035.
A way to open your answer: "DNS maps names to addresses through records. I bought a domain, pointed an A record at a server, added the MX and TXT records for mail, and waited for ..." That is the advice from the video: configure a domain of your own once, and the answer carries weight.
8. What broke when I ran this
The stateless test did not fail, it hung. I expected an error message. There was none: curl sat for the full 5 seconds and exited with 28. Compare that with the closed port in section 3, which failed instantly with exit 7, "Connection refused". Refused means the machine answered "nobody here". A timeout means a packet was dropped somewhere. In an interview and at 2 a.m. this distinction saves the first half hour: refused, look at the service; timeout, look at the firewalls and routes.
The load average said the machine was fine. With two CPUs pinned at 100%, uptime showed a load average of 0.62, and 12 seconds later 0.75. The load average is a moving average over 1, 5 and 15 minutes, and my test had been running for 6 seconds. If you judge a machine by uptime right after a spike starts, or right after a reboot, you will be wrong. top and vmstat 1 show the present.
The first line of vmstat is not "now". The first row shows 17% I/O wait and 5,096 blocks read per second, the next three rows show zero. The first row is the average since boot, and this machine had booted two minutes earlier. Always read from the second line.
The port did not belong to nginx. ss -tlnp for port 8080 shows docker-proxy, not nginx. The container's nginx listens on port 80 inside its own network namespace; on the host Docker's proxy holds the published port. Somebody looking for "the nginx process on 8080" with ss or lsof finds nothing by that name.
dig printed nothing, twice, for two different reasons. dig +noall +answer jhooq.com AAAA and the same for does-not-exist.jhooq.com both print an empty answer and exit 0. The first name exists and simply has no IPv6 record; the second does not exist at all. Only the header's status: NXDOMAIN tells them apart, so do not use +noall +answer when you are debugging.
The tool was missing but the feature worked. The conntrack command, which lists the kernel's connection table, was not installed on this Ubuntu image. The stateful rule worked anyway: connection tracking is in the kernel, the command is only a viewer.
9. Conclusion
My answer has not changed since the video: at a certain level DevOps is not for the complete beginner, but there is a way in. Do these six things once; they fit in one afternoon on one small Linux machine:
| Basic | Do this once | Know this cold |
|---|---|---|
| Routing | read ip route, predict ip route get for three addresses | most specific route wins; default route goes to the gateway |
| Ports | start a server, find it with ss -tlnp | listening address 0.0.0.0 versus 127.0.0.1; refused versus timeout |
| Slow machine | create load, read top, free, vmstat 1 | idle, I/O wait, run queue, available memory, swap |
| Firewalls | the three iptables rules of section 5 | stateful remembers; stateless needs the return rule |
| Web server | run nginx, request a missing page, read both logs | status code, access log, error log, root directory |
| DNS | dig A, NS, MX, TXT of a domain you own | record types and TTL |
Then answer each interview question with what you did and what surprised you. That is what the interviewer in the thread could not find, and it is not a matter of years.
Did this save you a debugging session? Stay in the loop -
- Subscribe on YouTube - every post here has a screen-recorded companion video.
- Code on GitHub - the repositories, Terraform and scripts behind these posts.