nerdexam
CompTIA

CAS-005 · Question #159

A security architect is implementing more restrictive policies to improve secure coding practices. Which of the following solutions are the best ways to improve the security coding practices?…

The correct answer is B. Deliver regular training for the software developers based on best practices. F. Implement a SAST tool along the pipeline for every new commit. The question asks for effective solutions to improve secure coding practices, focusing on both developer education and automated vulnerability detection early in the development lifecycle.

Submitted by mateo_ar· Mar 6, 2026Security Engineering

Question

A security architect is implementing more restrictive policies to improve secure coding practices. Which of the following solutions are the best ways to improve the security coding practices? (Choose two.)

Options

  • AHire a third-party company to perform regular software tests, including quality and unity tests.
  • BDeliver regular training for the software developers based on best practices.
  • CPerform regular vulnerability assessments on production software, defining tight SLAs for
  • DDefine security gates and tests along the CI/CD flow with strict exception rules.
  • EPerform regular code reviews and implement pair programming methodology.
  • FImplement a SAST tool along the pipeline for every new commit.

How the community answered

(46 responses)
  • A
    4% (2)
  • B
    74% (34)
  • C
    2% (1)
  • D
    13% (6)
  • E
    7% (3)

Why each option

The question asks for effective solutions to improve secure coding practices, focusing on both developer education and automated vulnerability detection early in the development lifecycle.

AHire a third-party company to perform regular software tests, including quality and unity tests.

Hiring a third-party for software testing (quality and unity tests) focuses on overall software quality and functionality, not specifically on improving internal secure coding practices or dedicated security testing.

BDeliver regular training for the software developers based on best practices.Correct

Delivering regular training for software developers based on best practices directly educates and upskills them in secure coding principles, significantly reducing the introduction of vulnerabilities from the start. This proactive approach fosters a security-first mindset within the development team.

CPerform regular vulnerability assessments on production software, defining tight SLAs for

Performing regular vulnerability assessments on production software is a reactive measure for deployed applications and does not directly improve the *coding practices* that lead to the vulnerabilities in the first place.

DDefine security gates and tests along the CI/CD flow with strict exception rules.

Defining security gates and tests along the CI/CD flow is a broader process control, but options B and F are more direct and specific methods for *improving coding practices* themselves.

EPerform regular code reviews and implement pair programming methodology.

Performing regular code reviews and implementing pair programming are valuable for quality and knowledge sharing, but they are manual processes that are less scalable and consistent in identifying all types of security vulnerabilities compared to automated SAST tools.

FImplement a SAST tool along the pipeline for every new commit.Correct

Implementing a Static Application Security Testing (SAST) tool along the pipeline for every new commit automates the identification of security vulnerabilities in the code early in the development lifecycle. This provides immediate feedback to developers, enforcing security standards continuously and preventing insecure code from progressing.

Concept tested: Secure Software Development Life Cycle (SSDLC) practices

Source: https://learn.microsoft.com/en-us/azure/security/develop/security-dev-overview

Community Discussion

No community discussion yet for this question.

Full CAS-005 Practice