Bird
0
0

You want to automate disk space alerts to prevent outages. Which approach is best?

hard📝 Application Q8 of 15
Linux CLI - Disk and Storage
You want to automate disk space alerts to prevent outages. Which approach is best?
AWrite a script that runs df -h, checks usage, and emails if above threshold
BManually check disk space once a month
CIgnore disk space and reboot weekly
DDelete random files daily to free space
Step-by-Step Solution
Solution:
  1. Step 1: Identify automation goal

    Automate monitoring and alerting to catch disk issues early.
  2. Step 2: Evaluate options

    Script with df -h and email alerts is proactive and reliable.
  3. Final Answer:

    Write a script that runs df -h, checks usage, and emails if above threshold -> Option A
  4. Quick Check:

    Automate alerts = Prevent outages [OK]
Quick Trick: Automate disk checks and alerts to avoid surprises [OK]
Common Mistakes:
  • Relying on manual checks only
  • Ignoring disk space until failure
  • Deleting files without strategy

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes