Skip to main content

SY0-801 practice question · Security Operations

A nightly script disables the accounts of employees listed as terminated in an HR export.

A nightly script disables the accounts of employees listed as terminated in an HR export. One night the export file was malformed, and the script disabled 3,800 active accounts, halting operations. Which two changes BEST reduce this process risk? (Choose two.)

Select 2 answers.

  • ARun the script as a domain administrator to avoid errors
  • BRun the script every hour instead of every night
  • CRequire human approval above a set number of changes
  • DDelete the accounts instead of disabling them
  • ECheck the export's format and record count first
Show the answer and explanation

Correct answers: C) Require human approval above a set number of changes; E) Check the export's format and record count first

Automation needs guardrails: validate inputs, cap the blast radius, and require human approval for unusual or high-impact runs.

Why each option is right or wrong

  • A) Incorrect. More privilege removes a natural limit and increases the damage the script can do when it goes wrong.
  • B) Incorrect. Running more often does not check the input. It only gives a bad file more chances to cause damage.
  • C) Correct. A threshold guardrail stops a runaway job at an unusual volume and asks a person to confirm, limiting the damage of bad input or bad logic.
  • D) Incorrect. Deletion is harder to reverse than disabling, so the same failure would have caused far worse harm.
  • E) Correct. Checking the input first lets the script abort on a malformed file instead of acting on wrong data.
Exam domain
Security Operations · 27% of SY0-801
Question type
Multiple response (choose 2)

Practise the full SY0-801 exam

This question is one of a small free sample from the CertRidge SY0-801 bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.

Original question written from the official exam guide. Not affiliated with CompTIA; never copied from the real exam.

Worth reading: Security+ passing score (750/900), 750 on a 100–900 scale for SY0-701, SY0-801 and the retired SY0-601, and why it isn't 83%.