Bird
0
0

You want to monitor multiple services and send a single email alert listing all stopped services. Which approach is best?

hard📝 Workflow Q8 of 15
PowerShell - Automation Patterns
You want to monitor multiple services and send a single email alert listing all stopped services. Which approach is best?
ACollect stopped services in a list, then send one email with all names
BSend an email immediately for each stopped service found
CUse Write-Host to display stopped services instead of email
DRestart services automatically without sending email
Step-by-Step Solution
Solution:
  1. Step 1: Understand monitoring multiple items

    Collecting all stopped services first avoids multiple emails.
  2. Step 2: Compose single email

    Sending one email with all stopped services is efficient and clear.
  3. Final Answer:

    Collect stopped services in a list, then send one email with all names -> Option A
  4. Quick Check:

    Batch alerts = one email [OK]
Quick Trick: Batch alerts into one email for clarity [OK]
Common Mistakes:
  • Sending multiple emails causing alert fatigue
  • Using Write-Host which doesn't notify remotely
  • Restarting services without alerting

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes