Exam CV0-004 Topic 1 Question 444 Discussion

Actual exam question for CompTIA's CV0-004 exam
Question #: 444
Topic #: 1
A developer at a small startup company deployed some code for a new feature to its public repository. A few days later, a data breach occurred. A security team investigated the incident and found that the database was hacked. Which of the following is the most likely cause of this breach?

Suggested Answer: B Vote an answer

The most likely cause of the data breach is hard-coded credentials being exposed in the public repository. If the developer accidentally included database usernames and passwords in the code and pushed it to a publicly accessible repository, attackers could easily find and use them to gain unauthorized access. This is a common security oversight that leads to database compromises.
Attackers often scan public repositories for sensitive information using automated tools, making hard-coded credentials a significant risk. Best practices include using environment variables, secret management tools (e.g., AWS Secrets Manager, HashiCorp Vault), and removing credentials from source code before committing.

by Ternence at Sep 30, 2026, 08:56 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10