Automation and AI in operations

7 free practice questions for the CompTIA® Security+® (SY0-801) exam, from the operations domain. Pick an answer, then open the explanation to check it.

Every question is original and written for Gapwise with AI. Two separate AI reviewers answered each one without seeing the answer key and checked it against the cited public sources. These are not real exam questions.

Question 1

At a regional bank, employees who transfer between departments keep the permissions from each previous job. Long-serving staff now hold far more access than their current duties require. The human resources (HR) system records every transfer on the day it takes effect. Which automation BEST fixes this?
  1. A. Disable any account that has gone 90 days without a single sign-in
  2. B. Email managers a quarterly HR report of staff permissions to review
  3. C. Let transferred staff request new permissions through a self-service portal
  4. D. Remove old and add new permissions automatically on each HR transfer
Show the answer and explanation

Answer: D. Remove old and add new permissions automatically on each HR transfer

Automated user provisioning should handle joiners, movers, and leavers, not just new hires. A transfer is a trigger to both remove and grant access, so the HR event should drive both changes. A quarterly review is the tempting choice, but it only finds the excess later. Hook: every move is a deprovision plus a provision.

Why each option is right or wrong

  • A. Incorrect. These employees sign in every day, so an inactivity rule never touches their accounts. It cleans up dormant accounts, not excess rights on active ones.
  • B. Incorrect. A periodic review can catch leftover access, but it is slow and depends on managers acting on the report. Access keeps piling up between reviews.
  • C. Incorrect. This only adds access. Nothing removes the old job's permissions, so the buildup of rights continues.
  • D. Correct. Tying provisioning to the HR transfer event removes the old job's rights and adds the new job's rights on the day of the move. That stops the buildup at its source.

References

Question 2 Multiple answers

A security operations center (SOC) manager is building the business case for a security orchestration, automation, and response (SOAR) platform. The vendor's quote covers only the software licenses. Which two costs of adopting the platform are missing from the quote? (Select two.)
  1. A. Analyst overtime the SOC currently pays during alert surges
  2. B. The purchase price of the log management system bought three years ago
  3. C. Engineering time to build and maintain integrations with existing tools
  4. D. Breach losses the platform is expected to help the company avoid
  5. E. Retraining analysts to work from the new automated workflows
Show the answer and explanation

Answers: C. Engineering time to build and maintain integrations with existing tools; E. Retraining analysts to work from the new automated workflows

Automation is rarely just a license fee. National Institute of Standards and Technology (NIST) SP 800-12 Rev. 1 describes direct costs, such as purchasing, installing, and administering a control, and indirect costs, such as retraining. A sound business case weighs all of these against benefits like analyst time saved and losses avoided. Hook: price the build, the upkeep, and the people, not just the license.

Why each option is right or wrong

  • A. Incorrect. Overtime is an existing cost that the platform may reduce. It belongs on the benefit side of the case, not among the platform's costs.
  • B. Incorrect. That money is already spent and does not change with this decision. Sunk costs do not belong in the cost of adopting a new platform.
  • C. Correct. Connecting the platform to existing security tools, and keeping those connections working as products change, is a direct cost of installing and administering it.
  • D. Incorrect. Avoided losses are the risk reduction the platform should deliver. They are a benefit to weigh against costs, not a cost.
  • E. Correct. Staff must learn the new workflows and how to troubleshoot them. Retraining is a classic indirect cost of introducing a new control.

Reference

Question 3 Multiple answers

A security engineering team has written an automation that disables user accounts when the identity provider reports impossible-travel sign-ins. The team is ready to move it into production. Which two practices BEST reduce the risk of deploying it? (Select two.)
  1. A. Enable it for every user at once so coverage is complete on day one
  2. B. Run it first in a separate test environment before it goes live
  3. C. Let the automation's author approve the change to save review time
  4. D. Keep the prior configuration version so the change can be rolled back
  5. E. Give its service account domain administrator rights to avoid failures
Show the answer and explanation

Answers: B. Run it first in a separate test environment before it goes live; D. Keep the prior configuration version so the change can be rolled back

Deploying automation is a change like any other, and it can fail at scale. National Institute of Standards and Technology (NIST) SP 800-53 calls for analyzing changes in a separate test environment before implementing them in operations. It also calls for keeping previous baseline versions to support rollback. Together these reduce the chance of a bad release and shorten recovery when one slips through. Hook: test before, roll back after.

Why each option is right or wrong

  • A. Incorrect. A full rollout means any logic error locks out the whole workforce at once. A staged rollout limits the damage while the automation proves itself.
  • B. Correct. Testing in an environment isolated from operations shows how the logic behaves, including false positives, without locking out real users.
  • C. Incorrect. Self-approval removes the independent review that catches logic errors before deployment. It weakens change control rather than reducing risk.
  • D. Correct. Retaining the previous version lets the team reverse the change quickly if the automation misbehaves after release.
  • E. Incorrect. Disabling accounts needs a narrow permission, not full domain control. Excess rights widen the damage if the automation or its credentials are misused.

References

Question 4

A company's email security gateway, endpoint detection and response (EDR) tool, and virtual private network (VPN) concentrator each send alerts to a separate console watched by a different team. A review of a recent intrusion finds a phishing alert, then a script alert on the same user's laptop, then a VPN sign-in for that user from an unusual country. Each alert was rated low severity and closed. Which change would MOST likely have exposed the intrusion sooner?
  1. A. Raise each tool's alert threshold so analysts see fewer alerts
  2. B. Feed all three tools into one platform that links alerts by user
  3. C. Assign a dedicated analyst to each console around the clock
  4. D. Replace the VPN concentrator with a product that records more detailed logs
Show the answer and explanation

Answer: B. Feed all three tools into one platform that links alerts by user

Each alert was minor on its own; together they told a clear story. NIST SP 800-53 SI-4(16) says correlating monitoring tools that typically work in isolation can provide an organization-wide view and may reveal otherwise unseen attack patterns. Integrating the feeds into a security information and event management (SIEM) or similar platform lets rules link events by user and host. More staff or more logs per tool keep the data siloed.

Why each option is right or wrong

  • A. Incorrect. Higher thresholds would have suppressed these low-severity alerts entirely. The problem was missing context, not too many alerts.
  • B. Correct. Correlating the alerts shows one user moving from phishing to endpoint compromise to remote access, a pattern no single console reveals. NIST notes that correlating tools that work in isolation can reveal otherwise unseen attack patterns.
  • C. Incorrect. More coverage of each console still leaves every alert judged on its own. Each one would still look like low severity.
  • D. Incorrect. More VPN detail doesn't connect the sign-in to the earlier email and endpoint alerts, so the chain stays hidden.

References

Question 5

Over five years, a company's operations team has built automation in three separate tools plus about 300 standalone scripts. Many scripts duplicate each other's jobs, each stores its own service credentials, and no one can say which still matter. Troubleshooting any failure takes days because jobs interact in undocumented ways. Which action BEST reduces the risk this creates?
  1. A. Add a fourth tool that monitors the other three tools and the scripts
  2. B. Give each script its own administrator account to avoid permission failures
  3. C. Freeze script changes until a full rewrite is funded next year
  4. D. Consolidate duplicate jobs onto one platform and retire unneeded scripts
Show the answer and explanation

Answer: D. Consolidate duplicate jobs onto one platform and retire unneeded scripts

Complexity is a real cost of automation: every extra tool, script, and credential is something that can fail, be misused, or be misunderstood. NIST SP 800-53 SA-8(7) states that a small and simple design is more understandable, more analyzable, and less prone to error, and that simpler systems contain fewer vulnerabilities. Consolidating and pruning attacks the cause. Adding tools or permissions makes the tangle larger.

Why each option is right or wrong

  • A. Incorrect. Another tool adds one more component to understand and maintain. It may spot failures but leaves the tangle of jobs and credentials in place.
  • B. Incorrect. Broad rights make each script a more valuable target and let a single faulty job do more damage. It adds risk without simplifying anything.
  • C. Incorrect. A freeze leaves the current sprawl and its stored credentials in place for a year, and it blocks needed fixes in the meantime.
  • D. Correct. Fewer, simpler components are easier to understand, test, and secure. Retiring unneeded scripts also removes their stored credentials.

References

Question 6

A manufacturer gives each outside contractor a directory account for the length of a project. Project managers are supposed to ask the help desk to disable each account when its project ends. A review finds 60 contractor accounts still enabled after their projects closed. One of them signed in to the virtual private network (VPN) last week, four months after its project ended. Which automation BEST fixes this?
  1. A. Set each account to expire on its project's end date when it is created
  2. B. Disable any contractor account that goes 30 days without a sign-in
  3. C. Email each project manager a monthly list of their contractors' accounts
  4. D. Require multifactor authentication (MFA) for all contractor VPN sign-ins
Show the answer and explanation

Answer: A. Set each account to expire on its project's end date when it is created

Contractor accounts are temporary by design, so their end date is known when they are created. Automating the disable step on that date removes the human reminder that kept failing here. An inactivity rule is a useful backstop, but it's the tempting wrong answer: it never fires on an account that someone keeps using.

Why each option is right or wrong

  • A. Correct. Contractor accounts are temporary, and temporary accounts should be disabled automatically after a set period. An expiry date fixed at creation ends access on time without anyone having to remember.
  • B. Incorrect. Wrong. An inactivity rule never fires on an account that someone keeps using, like the one that signed in last week. It also leaves every finished project's accounts open for at least 30 days.
  • C. Incorrect. Wrong. This still depends on a person remembering to act, which is what failed. Removal stays at someone's convenience instead of happening on a set date.
  • D. Incorrect. Wrong. MFA makes a stolen password harder to use, but it doesn't end access. A former contractor who still holds their own second factor could keep signing in.

References

Question 7

A threat-intelligence report lists indicators of compromise (IoCs) for an intrusion campaign that has targeted the company's industry for four months. The security operations center (SOC) automatically adds each new IoC to detection rules that check events as they arrive. Which additional automated step would BEST show whether the campaign has already reached the company?
  1. A. Block each new IoC at the firewall as soon as the feed delivers it
  2. B. Raise the new rules' severity so any match pages the on-call analyst
  3. C. Ask the feed provider to deliver its reports to the SOC more often
  4. D. Search stored historical logs for each new IoC as soon as it is added
Show the answer and explanation

Answer: D. Search stored historical logs for each new IoC as soon as it is added

Detection rules that watch only new events are reactive: they wait for the attacker's next move. Automating a search of historical logs whenever new indicators arrive makes the SOC proactive, hunting for compromise that may already be in place. Blocking is still worthwhile, but it can't reveal what happened before the report.

Why each option is right or wrong

  • A. Incorrect. Wrong. Blocking stops future contact with known attacker infrastructure. It says nothing about whether the attackers got in during the past four months.
  • B. Incorrect. Wrong. Faster paging helps only with future matches. Rules that check arriving events can't see activity from earlier months.
  • C. Incorrect. Wrong. Earlier reports could help with future campaigns. They don't answer whether this campaign, already four months old, reached the company.
  • D. Correct. The campaign predates the report, so any evidence would sit in older logs. Sweeping history for new indicators finds intrusions without waiting for the attacker to trip a live rule.

References