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
33 practiced
Compare configuration management systems (Ansible, Puppet, Chef) with IaC provisioning tools (Terraform, CloudFormation, Pulumi). From a Systems Administrator perspective, explain how to use them together in a coherent workflow and give one concrete example workflow that uses both.
HardTechnical
30 practiced
You must create a governance model for IaC modules across the organization. Propose rules for semantic versioning, an internal module registry, acceptance test requirements, release automation, how to manage breaking changes and deprecations, and how to enforce module usage while enabling team autonomy.
EasyTechnical
31 practiced
What is configuration drift in IaC-managed environments? As a Systems Administrator, describe at least three practical methods to detect drift across cloud resources (including tooling or API approaches), and explain the trade-offs and operational cost of each method.
MediumTechnical
30 practiced
A critical RDS instance was created manually before you had IaC in place. As a Systems Administrator, describe the step-by-step process to import that RDS into Terraform state with minimal downtime: creating the resource block, running import, reconciling computed attributes, and validating the plan afterwards.
MediumTechnical
25 practiced
You are responsible for managing shared Terraform state in AWS. Provide an HCL backend configuration example for an S3 backend with DynamoDB for state locking. Explain the purpose of each option (bucket, key, region, encrypt, dynamodb_table) and IAM permissions required for safe operation.

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.