TFLint Interview Guide

🟢 Easy (Basics)

1. TFLint?
Terraform linter for correctness & best practices.
2. Init & run?
tflint --init, then tflint.
3. Plugins?
Provider plugins add resource‑specific rules.
4. Config?
.tflint.hcl to tune rules.
5. CI?
Fail on errors; warn on style.

🟡 Medium (Hands‑on)

1. Custom rules?
Author plugins in Go.
2. Perf?
Cache plugins; scope to changed paths.
3. Pair with tfsec?
Lint for correctness; tfsec for security.
4. Detect unused?
Rules can catch unused vars/locals.
5. Version drift?
Warn on deprecated args.

🔴 Hard (Advanced)

1. Scale across teams?
Standard config, pin versions, required checks.
2. Golden modules?
Embed examples/tests to reduce lint noise.

🧪 Scenario Questions & Answers

1. Many lint warnings.
Triage by severity; provide fix‑it guides.
2. Provider API changes.
Pin providers; update modules; CI catches drift.
3. Multi‑cloud repos.
Enable multiple plugins; split configs.

Generated for quick interview revision — basics, hands-on, advanced, and scenarios.