Skip to main content

SY0-801 practice question · Threats, Vulnerabilities, and Attacks

A developer accidentally pushes a cloud access key to a public code repository and removes it in a new commit twenty…

A developer accidentally pushes a cloud access key to a public code repository and removes it in a new commit twenty minutes later. Which two actions should the team take NEXT? (Choose two.)

Select 2 answers.

  • AClose the issue, since the key is gone from the latest version
  • BMake the repository private and keep using the same key
  • CRevoke the exposed key and issue a replacement
  • DReset the password for the developer's workstation
  • EReview cloud audit logs for any use of the key
Show the answer and explanation

Correct answers: C) Revoke the exposed key and issue a replacement; E) Review cloud audit logs for any use of the key

Secrets leaked to public repositories persist in history and are harvested quickly: revoke and rotate them, then check logs for misuse.

Why each option is right or wrong

  • A) Incorrect. The key remains in the commit history, and automated scrapers harvest public repositories within minutes. Removal does not make it safe.
  • B) Incorrect. The key may already have been copied while the repository was public, so it must be treated as compromised.
  • C) Correct. Any secret published publicly must be assumed stolen. Revoking it is the only way to make copies useless.
  • D) Incorrect. The workstation password was not exposed. The leaked secret is the cloud access key.
  • E) Correct. Checking logs shows whether an attacker already used the key during the exposure window and what they touched.
Exam domain
Threats, Vulnerabilities, and Attacks · 24% 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%.