⚡ ~/naveed Interview Prep
⚡ Portfolio Home ✍️ Engineering Blog Deep Dives 🎯 Interview Hub 998+ Scenarios ☸️ Kubernetes Mastery Hub 24 Modules 🎮 DevOps Arcade & Quizzes Subnet Blitz ⚡ 🗺️ DevOps Roadmaps PDFs & Guides 🤖 Morpheus Analysis AI Quant ↗ 🛠️ Developer Tools Utilities 🧪 Labs & Experiments 📄 Interactive CV & Certs 🔗 All Links & Socials ⚡ Join The Dispatch (Weekly SRE Newsletter) →
Senior DevOps / SRE [L2] General DevOps General DevOps — Scenario-Based Interview Questions Production Scenario [L2]

Q: A critical infrastructure configuration was manually modified via the AWS Console at 3 AM to fix an outage (Configuration Drift). The next morning, a CI pipeline runs `terraform apply` for an unrelated change. What happens and how do you reconcile this?

Because Terraform is declarative, it compares the desired state (the code) with the actual state (the AWS environment). When terraform ap...

#General DevOps #General DevOps — Scenario-Based Interview Questions #L2 #DevOps #SRE #Architecture
🎙️ Candidate Opening & Architectural Context
""In our engineering organization, DevOps culture meant aligning developer speed with site reliability. The interviewer is testing: Infrastructure as Code drift, declarative state reconciliation.. I structure my answer around systematic triage first, root cause analysis second, and permanent remediation third.""
Advertisement

🛠️ Production Runbook & Step-by-Step Resolution

1️⃣

Production Solution & Architecture

Because Terraform is declarative, it compares the desired state (the code) with the actual state (the AWS environment). When terraform apply runs, it will detect the 3 AM manual CLI/Console change, mark it as drift, and destroy the manual fix to revert the infrastructure back to exactly what is defined in the .tf files. To reconcile this: The manual change must be codified *before* anyone runs apply. A developer needs to write the equivalent Terraform code matching the manual 3 AM fix, run terraform plan to ensure zero changes are pending (meaning the code now perfectly matches reality), and then merge that code to main.

💡 The Senior SRE Gold Nugget (Key Architectural Takeaway)
"Pro-Tip: Because Terraform is declarative, it compares the desired state (the code) with the actual state (the AWS environment). When terra."
⚡ 60-Second Elevator Pitch Talking Points
  • Immediate Triage: Because Terraform is declarative, it compares the desired state (the code) with the actual stat
  • Run targeted verification commands before modifying configuration.
  • Automate permanent guardrails (CI check, alerts, IaC policy) to prevent recurrence.
Advertisement
Want more General DevOps scenarios?
Explore our complete collection of scenario-based General DevOps interview runbooks.
Browse All General DevOps Questions →

📚 Related Production Scenarios in General DevOps