
EC-CouncilCertified DevSecOps Engineer
Domain 2Objective 2
Pre-Commit Code Evaluation ECDE Practice Questions (Page 5)
Part of the Plan Stage: Threat Modeling and Pre-Commit Security domain, which makes up ~19% of our current practice bank.
50questions here
10free pages
10concepts
Questions 21–25
- 21
A company is migrating a legacy application to a modern CI/CD pipeline. The application has a large number of dependencies, many of which are outdated and have known vulnerabilities. The security team wants to enforce a policy that no new critical vulnerabilities are introduced, but they cannot fix all existing vulnerabilities immediately. The development team wants to be able to merge new features without being blocked by pre-existing issues. Which strategy best balances these constraints?
Select an answer first - 22
A team is integrating a SAST tool into their CI pipeline. The tool is very accurate but takes 20 minutes to run. The team has a policy that all pull requests must pass the CI pipeline before merging. Developers are complaining that the 20-minute wait is too long and is slowing down their workflow. Which approach best addresses the developers' concern while maintaining the security policy?
Select an answer first - 23
A team is adopting pre-commit hooks for a JavaScript project. They want to enforce security anti-patterns such as using eval() and detecting hardcoded secrets. They also want developers to receive clear feedback on how to fix issues. Which combination of tools and configuration best achieves this?
Select an answer first - 24
A financial services company must comply with PCI DSS, which requires that cardholder data is not stored in source code. They use a monorepo with multiple teams. They want to enforce this policy automatically at the point of commit. What is the most robust way to enforce this policy?
Select an answer first - 25
A development team is using a SAST tool in their CI pipeline. The tool has identified a SQL injection vulnerability in a new feature branch. The developer who wrote the code is unsure how to fix it and is asking for guidance. What is the most effective way to provide actionable feedback?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by EC-Council. “ECDE” is a trademark of its owner, used for identification only.