CAS-005 · Question #92
CAS-005 Question #92: Real Exam Question with Answer & Explanation
The correct answer is B: Pre-commit code linting. Pre-commit code linting: Linting tools analyze code for syntax errors and adherence to coding standards before the code is committed to the repository. This helps catch minor code issues early in the development process, reducing the likelihood of deployment failures. Automated r
Question
A company updates its cloud-based services by saving infrastructure code in a remote repository. The code is automatically deployed into the development environment every time the code is saved lo the repository. The developers express concern that the deployment often fails, citing minor code issues and occasional security control check failures in the development environment. Which of the following should a security engineer recommend to reduce the deployment failures? (Select two).
Options
- ASoftware composition analysis
- BPre-commit code linting
- CRepository branch protection
- DAutomated regression testing
- ECode submit authorization workflow
- FPipeline compliance scanning
Explanation
Pre-commit code linting: Linting tools analyze code for syntax errors and adherence to coding standards before the code is committed to the repository. This helps catch minor code issues early in the development process, reducing the likelihood of deployment failures. Automated regression testing: Automated regression tests ensure that new code changes do not introduce bugs or regressions into the existing codebase. By running these tests automatically during the deployment process, developers can catch issues early and ensure the stability of the development environment.
Community Discussion
No community discussion yet for this question.