
EC-CouncilCertified DevSecOps Engineer
Domain 2Objective 2
Pre-Commit Code Evaluation ECDE Practice Questions (Page 8)
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 36–40
- 36
A DevOps team is integrating a SAST tool and a dependency scanner into their CI/CD pipeline. The pipeline currently runs on every push to a feature branch. The security team requires that any critical-severity vulnerability in a direct dependency or any SAST finding that matches a 'deny-list' rule must block the merge to the main branch. However, developers complain that the pipeline is too slow and blocks their work on feature branches. Which approach best satisfies both the security requirement and the developer workflow?
Select an answer first - 37
A Python web application team wants to catch SQL injection and cross-site scripting (XSS) vulnerabilities before code is committed. They currently run a linter for style only. They need a tool that analyzes source code without executing it and integrates with their existing Git pre-commit workflow. Which tool should they add to their pre-commit configuration?
Select an answer first - 38
A development team is integrating a SAST tool into their pre-commit pipeline. The tool is generating many false positives, causing developers to ignore the results. The security team wants to maintain security coverage while improving developer trust. What is the most effective strategy?
Select an answer first - 39
A Java application uses Maven to manage dependencies. The team wants to block commits that introduce a dependency with a known critical vulnerability. They also want to avoid slowing down the pre-commit hook significantly. Which approach best meets both requirements?
Select an answer first - 40
A team is using a linter as a pre-commit hook to enforce coding standards. The linter has a rule that flags the use of `eval()` in Python, which is a security anti-pattern. However, the team has a legitimate use case for `eval()` in a configuration parser. The team wants to allow this specific use case while still flagging other uses of `eval()`. Which approach is most appropriate?
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.