Question 320
During an operational security assessment at a public-sector technology agency, the team documents this issue: The pipeline publishes release artifacts even when a required assertion fails. The affected delivery process supports citizen applications and reusable infrastructure; accountability and service availability depend on controlled delivery. Which TWO responses form a sound implementation-and-verification pair for this issue? (Select TWO.)
Explanation
Correct Answers
Correct corrective action. Run required unit tests in Azure Pipelines before artifact publishing and propagate nonzero failure status to the pipeline result. The action targets the recorded failure (The pipeline publishes release artifacts even when a required assertion fails), and is intended to reduce the corresponding risk: Compilation success without executed assertions allows functional regressions into deployable artifacts.
Correct verification. A deliberately failing unit test stops the build stage and is visible in the published test report. The measurement or controlled test provides evidence for the issue (The pipeline publishes release artifacts even when a required assertion fails) and complements the selected corrective action rather than simply repeating a recommendation.
Incorrect Answers
Use standardized, versioned build/test agent images with required runtimes and test tools, and isolate incompatible test workloads appropriately. The unit test gates with azure pipelines implementation and safeguard are still missing.
A change affecting a critical branch shows targeted tests and a reproducible coverage report before PR approval. This does not supply the required unit test gates with azure pipelines action-and-control pair.
Run representative load tests before production and enforce agreed latency, throughput and error-rate thresholds in the release process. The two-part unit test gates with azure pipelines control remains unsatisfied.