You are using Azure Pipelines and want to run Static Application Security Testing (SAST) on your code. You configure the SonarQube tasks in your pipeline. In which exact order must the SonarQube tasks be placed for a .NET application?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Prepare Analysis Configuration -> Build Task -> Run Code Analysis -> Publish Quality Gate Result

For compiled languages like .NET or Java, SonarQube requires the analysis environment to be prepped before compilation begins. The correct sequence is: 1) Prepare Analysis Configur...

๐Ÿ“‹Part of Microsoft Certified: DevOps Engineer Expert (AZ-400) ยท Azure Certification Practice
Real Exam ScenarioDevSecOps

You are using Azure Pipelines and want to run Static Application Security Testing (SAST) on your code. You configure the SonarQube tasks in your pipeline. In which exact order must the SonarQube tasks be placed for a .NET application?

โœ“ Correct Answer & ExplanationDevSecOps

Correct Answer

Prepare Analysis Configuration -> Build Task -> Run Code Analysis -> Publish Quality Gate Result

Why This Answer Is Correct

For compiled languages like .NET or Java, SonarQube requires the analysis environment to be prepped before compilation begins. The correct sequence is: 1) Prepare Analysis Configuration, 2) Build the code (MSBuild hooks into the prep), 3) Run Code Analysis (analyzes the compiled output), 4) Publish Quality Gate Result.

๐Ÿ“š What This Question Tests

This question evaluates your knowledge of DevSecOps โ€” a core concept tested in Microsoft Certified: DevOps Engineer Expert (AZ-400). Understanding DevSecOps is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.