You need to decommission a server safely. What's your checklist?
IntermediateScenarioMigrations, performance and fleet operations
Answer
Situation read → Make sure nothing depends on it, then remove all traces.
What I'd do →
- Check active connections over days (
ss -tn, flow logs) and DNS references. - Remove from LB, monitoring and backup jobs; stop services and leave powered off for a period (scream test).
- Take a final backup/snapshot as policy requires.
- Remove DNS records, config management inventory, firewall rules, certificates and secrets it used.
- Wipe disks or delete volumes; record it in the CMDB.
Why → Orphaned DNS, firewall rules and credentials are security risks after the host is gone.
Interview tip → Mention dangling DNS records leading to subdomain takeover.
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