Skip to main content

SY0-801 practice question · Security Operations

A developer finds that a cloud access key was committed to the company's shared Git repository three months ago, and the…

A developer finds that a cloud access key was committed to the company's shared Git repository three months ago, and the key is still active. Which two actions should the team take? (Choose two.)

Select 2 answers.

  • ADelete the file containing the key in a new commit
  • BRevoke the exposed key and issue a replacement
  • CRequire developers to sign all of their commits
  • DTurn on secrets scanning with push protection
  • ERun a network vulnerability scan of the build servers
Show the answer and explanation

Correct answers: B) Revoke the exposed key and issue a replacement; D) Turn on secrets scanning with push protection

Treat any secret committed to a repository as compromised: revoke and replace it, then use secrets scanning to catch new ones before they are pushed.

Why each option is right or wrong

  • A) Incorrect. A new commit removes the file from the latest version only. The key remains in the repository history, and it stays valid.
  • B) Correct. Anyone who cloned or read the repository in three months may have the key. Revoking it is the only way to make the leaked copy useless.
  • C) Incorrect. Signed commits prove who made a change. They do not stop a credential from being committed or invalidate the leaked one.
  • D) Correct. Secrets scanning detects keys, tokens and passwords in code, and push protection stops new ones from reaching the shared repository.
  • E) Incorrect. A network scan looks for missing patches and open services on hosts. It does not find or fix a credential leaked in source control.
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%.