nerdexam
CompTIA

PT0-002 · Question #301

A penetration tester uncovers access keys within an organization's source code management solution. Which of the following would BEST address the issue? (Choose two.)

The correct answer is A. Setting up a secret management solution for all items in the source code management system E. Developing a secure software development life cycle process for committing code to the source. Finding hardcoded access keys in source code represents both an immediate exposure risk and a process failure. Setting up a secret management solution (A) - such as HashiCorp Vault, AWS Secrets Manager, or Azure Key Vault - directly remediates the root cause by providing a…

Vulnerability discovery and analysis

Question

A penetration tester uncovers access keys within an organization's source code management solution. Which of the following would BEST address the issue? (Choose two.)

Options

  • ASetting up a secret management solution for all items in the source code management system
  • BImplementing role-based access control on the source code management system
  • CConfiguring multifactor authentication on the source code management system
  • DLeveraging a solution to scan for other similar instances in the source code management system
  • EDeveloping a secure software development life cycle process for committing code to the source
  • FCreating a trigger that will prevent developers from including passwords in the source code

How the community answered

(55 responses)
  • A
    56% (31)
  • B
    22% (12)
  • C
    11% (6)
  • D
    4% (2)
  • F
    7% (4)

Explanation

Finding hardcoded access keys in source code represents both an immediate exposure risk and a process failure. Setting up a secret management solution (A) - such as HashiCorp Vault, AWS Secrets Manager, or Azure Key Vault - directly remediates the root cause by providing a secure, centralized location for secrets so they no longer need to appear in code. Developing a secure SDLC process (E) addresses the systemic process failure by instituting coding standards, developer training, and mandatory reviews that prevent secrets from being committed in the future. The other options - RBAC (B), MFA (C), and scanning (D) - are valuable controls but do not directly fix either the exposure or the broken development process. Option F (commit triggers) is a useful preventive control but alone does not address secrets already exposed or establish a comprehensive secure development culture.

Topics

#Secrets management#Secure SDLC#Source code security#Vulnerability mitigation

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice