Learn to prompt LLMs for ops work: classify alerts with few-shot examples, reason from symptoms to hypotheses, and return JSON automation can trust.
A prompt is the spec your AI step runs on, and a vague spec produces vague work.
A good ops prompt has four parts: who the model is, what it needs to know, what to do, and what shape to answer in.
Classification is the best first use of an LLM in triage because the answer is small and checkable.
For root cause work, ask the model for a ranked list of hypotheses with evidence and a next check, not a single confident answer.
Automation can trust model output only after it has been parsed and validated against a schema, with a plan for when that fails.
Alert text, log lines, and ticket bodies come from systems you do not fully control, so treat them as data and never as instructions.
A prompt is the spec your AI step runs on, and a vague spec produces vague work.
A good ops prompt has four parts: who the model is, what it needs to know, what to do, and what shape to answer in.
Classification is the best first use of an LLM in triage because the answer is small and checkable.
For root cause work, ask the model for a ranked list of hypotheses with evidence and a next check, not a single...
Automation can trust model output only after it has been parsed and validated against a schema, with a plan for when...
Alert text, log lines, and ticket bodies come from systems you do not fully control, so treat them as data and never as...
A prompt is trustworthy only after you have scored it on labelled examples, because a prompt that reads well can still...
This lab scores a zero-shot and a few-shot classifier on labelled alerts, then runs the reasoning prompt on the pool...
Roles that use the skills in this module.
AIOps Engineer
₹$130k Average a year
Site Reliability Engineer
₹$145k Average a year
ML Engineer
₹$140k Average a year
Not a software engineer sheet. Every problem comes from real DevOps, SRE, Platform and Cloud interviews, from your first script to a system you build yourself.
Open the Coding SheetFew-shot prompting means putting a handful of labelled example alerts inside the prompt so the model copies the pattern. It helps most on the boundary cases, such as telling a downstream symptom from a root cause. Start with three examples and add more only if a measured error needs one.
Automation needs fields it can branch on, such as severity, and free text cannot be parsed reliably. JSON checked against a schema either passes or fails loudly. A failure can trigger a retry or a human page instead of a silent wrong action.
Three to five is a good range for classification. Each example costs input tokens on every call, so an example must earn its place by fixing an error you measured. Never reuse your evaluation alerts as examples.
For a fixed label set and clear rules, often yes, but small models vary. Measure accuracy on your own labelled alerts before trusting one. If it falls short, improve the prompt first and consider a larger model second.