Configuration Management and Desired State Questions

Managing server and system configuration at scale with tools like Ansible, Puppet, Chef, and Salt. Covers the desired-state model, idempotency, convergence, inventory and role organization, secrets handling, and how configuration management differs from and complements provisioning. Keeping fleets consistent and reproducible over time.

MediumTechnical
51 practiced

Create an Ansible Jinja2 template for /etc/myapp/config that consumes variables: environment, db_host, log_level and includes placeholders for secrets to be retrieved at runtime. Explain how you'd provide variables securely in CI, and how you'd test rendering locally without exposing secrets.

MediumSystem Design
61 practiced

Design a drift-detection system for a fleet of 50,000 Linux VMs across multiple regions. Requirements: detect near-real-time drift for critical settings (SSH configuration, important package versions), minimize false positives, scale efficiently, and integrate with automated remediation and alerting pipelines.

MediumTechnical
54 practiced

You run an autoscaling group where instances fetch configuration at boot from a central service. Describe how to design bootstrapping so it is idempotent and race-free, how to prevent the config service from being overwhelmed during scale-outs, and how to ensure consistent configuration across short-lived instances.

MediumSystem Design
60 practiced

Design an automated validation and rollback strategy for configuration changes that touch multiple microservices. Define canary rollout criteria, health indicators to watch, automatic rollback triggers, and mechanisms to coordinate rollbacks across dependent services to prevent cascading failures.

EasyTechnical
51 practiced

Compare configuration management tools Puppet, Chef, and Ansible from an SRE perspective. Discuss their architectures (agent vs agentless), push vs pull models, templating capabilities, idempotency guarantees, scaling characteristics, and typical operational trade-offs for large fleets.

Unlock Full Question Bank

Get access to all 38 Configuration Management and Desired State interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.