nerdexam
CompTIA

CAS-002 · Question #308

A company is in the process of implementing a new front end user interface for its customers, the goal is to provide them with more self service functionality. The application has been written by…

The correct answer is D. Perform grey box penetration testing over the solution E. Perform static code review over the front end source code. During the SDL test phase, grey box penetration testing combined with full static source code review provides the most comprehensive security coverage by pairing realistic simulated attacks with systematic code-level vulnerability identification. Together they cover both…

Enterprise Security

Question

A company is in the process of implementing a new front end user interface for its customers, the goal is to provide them with more self service functionality. The application has been written by developers over the last six months and the project is currently in the test phase. Which of the following security activities should be implemented as part of the SDL in order to provide the MOST security coverage over the solution? (Select TWO).

Options

  • APerform unit testing of the binary code
  • BPerform code review over a sampling of the front end source code
  • CPerform black box penetration testing over the solution
  • DPerform grey box penetration testing over the solution
  • EPerform static code review over the front end source code

How the community answered

(37 responses)
  • A
    3% (1)
  • B
    5% (2)
  • C
    11% (4)
  • D
    81% (30)

Why each option

During the SDL test phase, grey box penetration testing combined with full static source code review provides the most comprehensive security coverage by pairing realistic simulated attacks with systematic code-level vulnerability identification. Together they cover both runtime behavior and code quality.

APerform unit testing of the binary code

Unit testing of binary code validates functional correctness and does not reveal security vulnerabilities such as injection flaws or access control weaknesses; it is not a recognized SDL security activity for web front-end applications.

BPerform code review over a sampling of the front end source code

Reviewing only a sampling of source code leaves large portions of the codebase unanalyzed, making it significantly less effective than the full static code review described in choice E.

CPerform black box penetration testing over the solution

Black box penetration testing provides no visibility into application internals, resulting in lower vulnerability discovery rates compared to grey box testing where partial knowledge enables more targeted and effective test cases.

DPerform grey box penetration testing over the solutionCorrect

Grey box penetration testing gives testers partial knowledge of the system architecture, closely mimicking a real attacker's perspective and uncovering exploitable vulnerabilities in authentication flows, input handling, and business logic that black box testing would likely miss.

EPerform static code review over the front end source codeCorrect

Static code review of the entire front-end source code allows analysts to systematically identify all instances of insecure coding patterns - such as XSS, injection, and insecure direct object references - before deployment, providing coverage that no runtime test alone can achieve.

Concept tested: SDL security testing strategies during the test phase

Source: https://www.microsoft.com/en-us/securityengineering/sdl

Topics

#SDL#grey box testing#static code analysis#application security testing

Community Discussion

No community discussion yet for this question.

Full CAS-002 Practice