AI for DevOps
LLMs in the toolchain: incident summarization, runbook copilots, AIOps alert triage, reviewing AI-generated Terraform safely. What to adopt, what to distrust.
The mental model
An LLM in your toolchain is a brilliant, fast, confident intern who has read every blog post ever written and has no memory of yesterday.
That single analogy predicts almost everything about where AI helps and where it hurts in operations:
- Ask the intern to summarise 400 Slack messages into an incident timeline — excellent, and it takes 20 seconds instead of your 40 minutes.
- Ask the intern to write a Terraform module for an S3 bucket — good first draft, but check whether they left public access enabled.
- Ask the intern to run
terraform applyon production unsupervised — absolutely not. - Ask the intern why checkout latency spiked at 14:02 — they will give you a fluent, plausible, well-structured answer that may be entirely invented, because your architecture is not in the blog posts they read.
The organising principle: **AI is excellent at compression and translation, unreliable at ground truth, and must never hold the keys.** Compression means many tokens in, few tokens out — summarising logs, drafting a postmortem, explaining an error. Translation means one representation to another — English to a kubectl command, a stack trace to a plain-language cause, YAML to a diagram. Both are verifiable in seconds by a human who knows the system.
It goes wrong when output is not cheaply verifiable and the consequence is high. That is the boundary you defend in an interview and in a design review.
- Deep dive
- Internal architecture
- Real-world use cases
- Best practices
- Common mistakes
- Performance
- Security
- Production troubleshooting
- Advantages & disadvantages
- Alternatives
- Interview expectations
- Interview questions
- Facts to remember
- Cheat sheet
- Quick revision