Real-life challenges for technical interviews.
Broken systems, each on a real machine, with a bug, an outage or a slow page the way production has them. Put one in a test, and the candidate finds the cause and fixes it with a terminal, an editor and a clock.
88 of 2,000+ challenges
Containers and Kubernetes 13
Docker15 min
Container exits right after start
The container starts and then immediately shows up as
Exited (0). It never stays up.$docker ps -aDocker15 min
Container fails before running the app
The container never gets past startup: Docker cannot launch the entrypoint (
permission denied).$docker ps -aDocker15 min
Every source edit reinstalls all npm dependencies
Every tiny edit under
src/triggers a fullnpm installon rebuild, even though the dependencies have not changed. Builds take far longer than they should.$cd /home/easyenv/appDocker10 min
Postgres forgets everything on restart
Every time the stack is recreated (or the host reboots), all data in
dev-dbis gone. Each fresh start gives you an empty database.$docker exec dev-db psql -U dev -d app -c "CREATE TABLE IF NOT EXISTS t(id int); INSERT INTO t VALUES(1);"Docker15 min
Python app exits with an error
The image builds fine, but the container exits straight away. The logs show Python complaining that it cannot find
app.py.$docker ps -aDocker15 min
Web container is up but curl fails
The container is up and
docker psshows port8080published, butcurl http://127.0.0.1:8080/gets a reset or an empty reply.$docker psKubernetes15 min
Pod never becomes ready
The
nginx-proxyPod never reaches Running, so nothing is serving.$kubectl get pod nginx-proxyKubernetes20 min
Frontend cannot reach backend Redis
From
frontend/api, DNS forredis.backendresolves, but TCP connects to port 6379 hang until they time out.$kubectl -n frontend exec deploy/api -- getent hosts redis.backend.svc.cluster.localKubernetes15 min
Pod keeps restarting
Pod
cache-nodeis in a restart loop.$kubectl get pod cache-nodeKubernetes15 min
Pods stuck in pending
Both
cpu-hogPods sit inPendingand never start.$kubectl -n default get pods -l app=cpu-hogKubernetes15 min
Service returns connection refused
Requests to
api-loadbalancer:80from inside the cluster come back withconnection refused, even though the Service has a ready endpoint.$kubectl get pod backend-apiKubernetes15 min
App cannot reach the database service
The
client-connectorlogs never showaccepting connections; everypg_isreadyattempt fails.$kubectl -n dev logs client-connector --tail=20Kubernetes15 min
Service has no backing pods
Requests to
internal-serviceon port 80 time out, even though theweb-appPods are Running.$kubectl get deploy web-app
Python and Django 11
Django30 min
Dashboard shows another user's data
Customers are shown someone else's name and orders on
/dashboard/, and a minute later the page is right again. Support's ticket is inproject/TICKET.md.Django25 min
Requests not reaching views
Since that middleware went in, every request to the API answers
500.$curl -i http://localhost:8000/api/orders/1/Django20 min
Each new user gets two welcome emails
Marketing reports that new members get two welcome emails. Their ticket is in
/home/easyenv/app/TICKET.md.$cd /home/easyenv/appDjango REST30 min
Background job runs twice per request
Some customers were charged twice. Operations' ticket is in
project/TICKET.md; every queued job is recorded inproject/queue.log.$curl -s -X POST http://localhost:8000/api/process/ \Django REST25 min
A bad ID crashes the endpoint
Production answers
500 Internal Server Errorfor a steady stream of order links. The on-call ticket is inproject/TICKET.md, with a sample of the failing requests.$curl -i http://localhost:8000/api/orders/1/Django REST30 min
Listing posts is unexpectedly slow
The endpoint is slow now that there are a hundred posts. The ticket is in
project/TICKET.md.$curl -s http://localhost:8000/api/posts/ | head -c 600Django REST30 min
Completed orders can still be edited
A completed order was overwritten through the API. The ticket is in
project/TICKET.md.$curl -s http://localhost:8000/api/orders/Python10 min
Upload report crashes and miscounts file types
The report crashes with an
IndexErrorbefore printing anything, and a coworker saysget_extensiongives the wrong piece for some names even when it does not crash.$cd /home/easyenv/project && python3 main.pyPython15 min
Validator accepts weak passwords and rejects strong ones
Support says the validator gives the wrong answer for almost every password. Strong passwords come back
INVALIDand obviously weak ones come backVALID.$cd /home/easyenv/project && python3 main.pyPython10 min
Metric labels keep growing on each call
A coworker noticed that the labels keep growing: the second call's list still has the first call's
service=label in it, the third has both, and so on.$cd /home/easyenv/project && python3 main.pyPython10 min
Health board says every service is down
The board says
NOT OKfor every service, all the time. The on-call engineer checked by hand just after the last checks in the log:apiwas answering fine.$cd /home/easyenv/project && python3 main.py
Linux and web servers 10
Apache15 min
Site bounces between endless redirects
Users behind the load balancer are stuck in an endless redirect loop. Every request comes back with another
301tohttps://, even after the browser follows it.$curl -sI http://localhost/HAProxy15 min
Half of requests return errors
Users are reporting that the site works on one click and fails on the next. About half of every batch of requests comes back as an error.
$for i in $(seq 1 10); do curl -s -w " %{http_code}\n" http://localhost/; doneLinux10 min
apt-get update fails on several sources
apt-get updatedoes not finish cleanly.$sudo apt-get updateLinux15 min
The cron job that never produces output
The backup directory has been empty for days, even though syslog shows cron firing the job on schedule. No tarball ever shows up and no error surfaces anywhere obvious.
$crontab -u easyenv -lLinux10 min
App cannot reach
rediseven though the service is upThe app's healthcheck times out when it dials
redis:6379, while Redis's own check is green.$nc -vz redis 6379Nginx3 min
Site unreachable from outside the box
From inside the box, curling the site returns
200 OK. From the outside world (or the Port View in your browser), the page never loads.$curl -I http://localhost/Nginx3 min
403 forbidden on a static page
Visitors say the home page works but clicking through to
/secret.htmlreturns403 Forbidden.$curl -I http://localhost/Nginx15 min
Backend sees every request as 127.0.0.1
The product team says every log line shows
ip=127.0.0.1. The real client IP never makes it through to the app, even when the load balancer in front sends anX-Forwarded-Forheader.$curl -sH 'X-Forwarded-For: 8.8.8.8' http://localhost/Nginx3 min
404 on a page that exists on disk
Visitors say that clicking the "About" link returns a 404. Support's note is in
~/TICKET.md.$curl -I http://localhost/Nginx4 min
502 because the backend lives on another box
Every request to the proxy comes back
502 Bad Gateway.$curl -v localhost/orders/1001
CI/CD 10
GitLab CI25 min
A later stage cannot find the build
The site builds fine on every run, but the pipeline has never finished. Building locally works, and the stages after
buildare the ones failing.GitLab CI15 min
Pipeline broken after a config clean-up
Since the latest CI clean-up landed, pushing to
mainno longer gives a working pipeline. Nobody touched the application code.GitLab CI25 min
Merges are landing in production
On Tuesday an ordinary merge to
main, the Apple Pay button, went straight to production before anyone had approved it. The team also says staging has not changed in weeks.GitLab CI20 min
A patch release that will not publish
Snapshots from
mainpublish fine. The 2.4.1 patch release onrelease/2.4fails at the publish step, and customers are waiting for it.GitLab CI20 min
A new project's jobs never start
Every storefront pipeline sits in *pending* and never starts. legacy-reports builds normally.
Jenkins20 min
The nightly build never starts
The nightly build has not produced a report since it was set up. It never fails; it just never starts.
Jenkins20 min
The report upload stopped working
After this week's changes to the Jenkinsfile the job fails and the finance team has had no report since. Security has also asked for this job's build logs to be reviewed before it goes back into service.
Jenkins15 min
Every build fails since the jenkinsfile clean-up
Since yesterday's Jenkinsfile clean-up, every build fails. The application code did not change.
Jenkins25 min
A shared library step that does not exist
The payments team added a checksum next to the release bundle so customers can verify downloads. Since then
release-bundlefails every time.Jenkins25 min
A green deploy that ships nothing new
Release 1.4.0 (order tracking) went out yesterday. Jenkins shows the build green from start to finish, but the website still shows release 1.3.0.
JavaScript and React 10
Next.js15 min
Add to cart button does nothing
Clicking the green
Add to Cartbutton on a product card does not change anything. The card does not switch to the+ / -quantity controls, the cart badge in the navbar stays at zero, and the browser console shows no error.$cd /home/easyenv/projectNext.js15 min
Product links return 404
Clicking a product card title or image, or visiting
/products/1directly, lands on the built-in Next.js 404 page.$cd /home/easyenv/projectNext.js15 min
Filters do not sync with browser back
Pick a value from the
All Categoriesdropdown (for exampleElectronics), then press the browser Back button. The URL drops the?category=...query, but the dropdown is still set toElectronicsand the product list stays filtered. The visible state and the URL are out of sync until you reload.$cd /home/easyenv/projectNext.js20 min
Home page logs a console warning
The page renders, but the browser console fires
Hydration failed because the initial UI does not match what was rendered on the server.$cd /home/easyenv/appNode.js20 min
Greeting shows an undefined name
npm testfails:greet(7)comes back asHello undefinedinstead of the user's name.$cd /home/easyenv/appNode.js20 min
Missing order crashes the API
Asking for an order number that does not exist answers
500instead of a clean404.$cd /home/easyenv/appNode.js20 min
Cart total comes out wrong
npm testfails: the total is a long string of digits rather than a number of euro.$cd /home/easyenv/appReact15 min
Cart display one step behind
Click
Add to Carta few times. The navbar badge bumps up right away, but the blue banner is always one click behind.$cd /home/easyenv/projectReact15 min
Form changes not being saved
Open the Profile page, click
Edit Information, change a field (for exampleFirst Name), and clickSave. The confirmation alert and the saved profile both show the OLD value, not what you just typed.$cd /home/easyenv/projectReact15 min
Search results show wrong query
Type
phonein the search box, wait a moment, then clear it and quickly typebook. The list flickers and can settle on results for an earlier query, so what you see no longer matches what is in the search box.$cd /home/easyenv/project
Go, Java and Ruby 9
Go20 min
Nightly event tally comes up short
The nightly tally is short, and it is not the same number from one run to the next.
go test -race ./...fails.$cd /home/easyenv/appGo20 min
HTTP server memory grows on every request
After a batch of requests the goroutine count jumps and never drops back down, and memory grows on every batch.
$cd /home/easyenv/app && go run .Go15 min
Word counter panics on every run
go run .crashes with apanicbefore printing anything, andgo test ./...fails.$cd /home/easyenv/appJava20 min
Merchant totals come out low
The merchant totals come out low, and two runs over the same file do not agree:
./run.shends withFAIL: two runs over the same file disagree.$cd /home/easyenv/app && ./run.shJava15 min
Paid orders flagged as mismatched
Orders that were paid in full are reported as
MISMATCH.$cd /home/easyenv/appJava20 min
Batch job crashes with OutOfMemoryError
The batch prints progress for about a hundred requests, then dies with
Terminating due to java.lang.OutOfMemoryError: Java heap spaceand never prints itsOKline.$cd /home/easyenv/app && ./run.shRuby15 min
Nightly export prints nothing
The export prints nothing at all: no references, no summary. Nothing raises and it exits 0, so the nightly job looks green.
$ruby /home/easyenv/app/report.rbRuby15 min
respond_to? returns false for methods that work
Running the check script raises
RuntimeError: respond_to?(:theme) should be trueand exits non-zero, even thoughs.themeitself returns"dark"just fine.$ruby /home/easyenv/app/proxy.rbRuby15 min
Log summary gives every level the same count
Every level comes back with the same count, the total number of lines, and
levels seenis empty.$ruby /home/easyenv/app/group.rb
Configuration management 8
Ansible15 min
The restart that won't stop
Every run of the playbook reports
changed, and/var/log/demo-service.loggets a new entry each time, even though nobody changed a setting.$cd /home/easyenv/playAnsible20 min
Tuned settings land twice in the config
The play finishes green, but the two settings are not changed in place: the vendor's lines stay and a second copy of each lands at the bottom of the file. The service's own config check rejects the result.
$cd /home/easyenv/playAnsible20 min
Rendered config still has unfilled placeholders
The play runs green, but the binary refuses to start:
config /etc/webapp/webapp.conf contains unrendered placeholders.$cd /home/easyenv/playAnsible20 min
group_vars override has no effect on the rendered configs
The playbook runs green, but every rendered config still shows
port = 8080, and so does the debug task at the end. The operator override is silently ignored.$cd /home/easyenv/playAnsible15 min
One user's password renders as
FalseThe play runs green, but one row in the rendered file shows
Falseas the password. No task failed, so the bug is silent.$cd /home/easyenv/playPuppet20 min
The orders app restarts every few minutes
The orders app drops its connections every few minutes. Its journal shows a fresh start each time, and nobody is deploying anything.
Puppet25 min
This node stopped getting its catalog after the server rename
Since the switch, every Puppet run on this node fails before it gets a catalog. Nothing has been applied here since.
Puppet20 min
New nodes never get their status page
New nodes never get their status page. Puppet reports errors on them, and the page stays down. This node is in the same state.
Working with AI 8
Vibe Coding60 min
Add the missing endpoint
Add
GET /tasks/<id>so it returns the matching task as JSON with200, or a JSON404when no task has that id. Keep the existing endpoints working. The suite intests/test_acceptance.pyis the exact contract.$cd /home/easyenv/projectVibe Coding60 min
Bank reconciler
Build a command line tool that pairs up two lists of money movements (
bank.csvandledger.csv) and reports what does not line up.SPEC.mdin~/projectis the technical contract.$cd /home/easyenv/projectVibe Coding60 min
Booking slots
Build a booking page. A day has a fixed set of slots, some already taken over the phone (
slots.json), people take one, and a taken slot cannot go twice.SPEC.mdin~/projectis the technical contract.$cd /home/easyenv/projectVibe Coding60 min
Build a validated signup
Add
POST /signupthat: - requires anemail(must contain@) and apassword(at least 8 characters), - returns400with a JSON error when either is invalid, - on success stores the user and returns it with201, and never returns the password. The suite intests/test_acceptance.pyis the exact contract.$cd /home/easyenv/projectVibe Coding60 min
Product search
Build a product list people can search and filter. The catalogue is the warehouse's export in
products.json.SPEC.mdin~/projectis the technical contract.$cd /home/easyenv/projectVibe Coding60 min
Add filters without breaking the API
Extend
GET /productswith optional query filters: -?category=returns only products in that category (unknown category returns an empty list), -?max_price=returns only products at or below that price, - the two combine, - with no query params, it still returns every product (do not break this). The suite intests/test_acceptance.pyis the exact contract, including the existingtest_all_productsregression check.$cd /home/easyenv/projectVibe Coding60 min
URL shortener
Build a link shortener. Paste a long URL, get a short code, follow the code back to the original.
SPEC.mdin~/projectis the technical contract, andold-links.csvholds the links from the shortener this one replaces.$cd /home/easyenv/projectVibe Coding60 min
Waitlist signup
Build a waitlist app. A page where someone enters their email, and an API that keeps the list.
SPEC.mdin~/projectis the technical contract, andearly-signups.csvholds the people who are already in line.$cd /home/easyenv/project
Databases 4
MySQL15 min
Container exits right after start
The container shows
Exiteda few seconds after start, so the database is never available.$docker ps -aMySQL20 min
Duplicate signups keep appearing
The same email shows up on several user rows, and the app can still insert more of them.
$docker exec users-db mysql -uroot -proot app -e "SELECT email, COUNT(*) c FROM users GROUP BY email HAVING c > 1"MySQL25 min
The /orders endpoint storms the database
Every load of
/orderssends a burst of queries toorders-db, and the page slows down as the order count grows.$time curl -s http://localhost:5000/orders > /dev/nullMySQL15 min
Report query scans the whole table
EXPLAINreports access typeALLand rows in the hundreds of thousands, so every run of the report reads the whole table to count a small result, and that cost grows as the table does.$docker exec metrics-db mysql -uroot -proot metrics -e "EXPLAIN SELECT COUNT(*) FROM events WHERE user_id=42 AND created_at > NOW() - INTERVAL 7 DAY"
Git 3
Git15 min
Commits stranded on a detached HEAD
git statussays "HEAD detached". Those two commits are on no branch, so the next checkout loses them.$git -C /home/easyenv/repo statusGit15 min
Commits disappeared from the branch
git logonmainshows the initial commit and a release-notes commit, and nothing of the work in between.$git -C /home/easyenv/repo log --onelineGit15 min
Repository is stuck mid-merge
Git refuses to commit in the repo, and
app.pyno longer runs: Python stops with aSyntaxErroron its first lines.$git -C /home/easyenv/repo status
Customer-facing engineering 2
Customer Integration15 min
The CRM sync misses most contacts
The customer's sales team says the portal shows only a fraction of their contacts, and some appear twice.
$cd ~/integration && ./run-nightly.shCustomer Portal20 min
Down since last night's change
The branches get an error page from the portal.
$curl -s -i localhost/api/orders/1001