You need to make 300 servers' configuration consistent and prevent drift. What approach do you propose?
IntermediateScenarioMigrations, performance and fleet operations
Answer
Situation read → Declarative configuration management with regular enforcement.
What I'd do →
- Codify everything in Ansible roles in Git (users, packages, sysctl, sshd, agents).
- Run it on a schedule (AWX/Ansible Automation Platform, or
ansible-pullvia timer) in check mode to report drift, and apply mode to fix. - Changes go through pull requests and CI (
ansible-lint, Molecule tests). - Long term, immutable images: bake with Packer, replace instead of patching.
Why → Hand-made changes get overwritten or flagged, so the fleet matches Git.
Interview tip → Mention --check --diff to show exactly what would change.
More on Migrations, performance and fleet operations
You must migrate 2 TB of application data from an old server to a new one with less than 5 minutes of downtime. How?IntermediateThe new server has different UIDs for the same users than the old one. What breaks during migration and how do you handle it?IntermediateA server is "slow" according to users. What is your first 60 seconds of investigation?BeginnerYour team must capacity-plan for a server whose disk grows 4% per week. How do you predict when it fills?IntermediateYou need to replace a physical server with a VM without changing its IP or hostname. Plan the cutover.IntermediateMemory usage on a server shows 95% used but the app is fine. A manager is worried. How do you explain and verify?Beginner