Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
CompTIA Security+ · CompTIA
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
A common cause of accidental corporate credential exposure is when developers store or commit credentials (API keys, passwords, tokens) into public or poorly secured code repositories (e.g., GitHub, GitLab, Bitbucket). Attackers often scan these repositories for secrets.
A. Code repositories Explanation: Code repositories (such as GitHub, GitLab, or Bitbucket) are frequently used for storing and sharing code, but they are often mishandled. Developers sometimes inadvertently upload sensitive information like API keys, passwords, or private credentials into these public or even private repositories. This can lead to accidental exposure, especially if the repository is not properly secured or if access controls are misconfigured.
A. Code repositories Code repositories often contain hardcoded credentials, API keys, or other sensitive information that developers may accidentally commit without proper security measures. This can expose these credentials when the code is shared or made public, leading to unintentional leakage of corporate credentials in cloud environments.