InterviewStack.io LogoInterviewStack.io

Infrastructure as Code and Configuration Management Questions

Infrastructure as Code and Configuration Management covers designing, implementing, and operating infrastructure defined as code and the practices that keep that infrastructure consistent and auditable. Topics include Infrastructure as Code principles and patterns, declarative versus imperative approaches, idempotency, state management, module and template design for reusable infrastructure, version control integration, testing and validation of infrastructure code, drift detection and remediation, safe rollout and rollback strategies, policy as code and Git operations for infrastructure, and how to scan and remediate infrastructure misconfigurations. This topic also encompasses integration points with system configuration tools and considerations for managing secrets and secure defaults within infrastructure definitions.

EasyTechnical
32 practiced
Explain the relationship between Infrastructure as Code tools (Terraform, CloudFormation) and configuration management tools (Ansible, Chef, Puppet). For a typical service that needs both provisioning and in-guest configuration, explain a recommended separation of responsibilities and lifecycle integration.
HardSystem Design
26 practiced
Design a CI/CD validation platform for Terraform that can process thousands of changes per day with low latency. The platform must run quick pre-merge checks, policy evaluations, and schedule heavier integration tests, while preventing resource sprawl, controlling cost, and providing actionable developer feedback.
EasyTechnical
24 practiced
Describe common safe rollout strategies for infrastructure changes (canary, blue-green, progressive expansion, feature flags for infra). Explain the trade-offs between speed, complexity, and safety and give examples of when each should be used in cloud infra rollouts.
MediumTechnical
31 practiced
Your CI needs to run Terraform for PRs, but you must avoid exposing credentials or allowing untrusted forked PRs to access organization secrets. Propose a secure CI pattern for running Terraform plan and apply stages, including how to safely provide secrets, limit access, and prevent secrets leakage in logs.
MediumTechnical
27 practiced
You run Terraform and discover Terraform plan shows 200 resources drifted after a manual maintenance window. How would you assess which drifts to accept (adopt), which to revert, and the safest automated remediation approach to apply at scale without causing downtime? Describe your step-by-step operational plan.

Unlock Full Question Bank

Get access to hundreds of Infrastructure as Code and Configuration Management interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.