Question 870
During an operational security assessment at a public-sector technology agency, the team documents this issue: An engineer marks a genuine alert dismissed without recording a justification or review. The affected delivery process supports citizen applications and reusable infrastructure; accountability and service availability depend on controlled delivery. Choose TWO statements that provide both the appropriate correction and a meaningful test of its success. (Select TWO.)
Explanation
Correct Answers
Correct corrective action. Enable CodeQL analysis in supported repositories and workflows with appropriate language configuration and actionable findings before merge. The action targets the recorded failure (An engineer marks a genuine alert dismissed without recording a justification or review), and is intended to reduce the corresponding risk: Security-sensitive code paths may contain vulnerabilities not found by functional tests when scanning is absent or incomplete.
Correct verification. A seeded insecure code pattern generates a CodeQL finding and a protected PR cannot dismiss it without the approved review process. The measurement or controlled test provides evidence for the issue (An engineer marks a genuine alert dismissed without recording a justification or review) and complements the selected corrective action rather than simply repeating a recommendation.
Incorrect Answers
Enable Dependabot alerts and appropriate dependency updates with reviewed lockfile changes and a policy for vulnerable packages. The paired controls concern GitHub code scanning with codeql, not that measure.
A test image with a critical flagged package fails the promotion gate and the approved corrected digest passes. The GitHub code scanning with codeql implementation and safeguard are still missing.
Connect supported DevOps repositories to Microsoft Defender for Cloud DevOps Security and evaluate findings in the correct subscription and project context. The two-part GitHub code scanning with codeql control remains unsatisfied.