AZ-400 Question 36
Select 2You work at an organization that regularly deploys a microservices application using Azure DevOps. Leadership wants to measure two key delivery metrics: (1) the lead time from code commit to production deployment, and (2) the overall code coverage of each release. You have been tasked with creating queries and dashboards in Azure DevOps to visualize these metrics. Which two approaches would best help you capture and display this information accurately?
- A
Create a Work Item query to measure the average time from when a feature task is created to when it is moved to the 'Done' state.
- B
Use Azure DevOps Analytics to track the time from the first successful build associated with each commit until the application is deployed in production.
- C
Enable code coverage in continuous integration, store results in Azure DevOps Test Runs, and use a dashboard widget that displays the coverage percentage for each build and release.
- D
Ask the development team to manually record deployment times in a shared document and calculate average duration on a monthly basis.
Show answer and explanation
Correct answers: B, C
Explanation
To accurately measure the lead time from commit to production, you should use Azure DevOps Analytics or similar automated telemetry that correlates commits to deployment events. For code coverage, enabling coverage in your CI/CD pipeline and publishing test results to Azure DevOps Test Runs allows you to visualize coverage in real time through built-in dashboard widgets. For more information, refer to Microsoft� official documentation on Azure DevOps Analytics and Code Coverage (https://learn.microsoft.com/azure/devops/report/analytics/overview and https://learn.microsoft.com/azure/devops/pipelines/test/coverage).
- A. Incorrect.
Option 1 is incorrect. While measuring task completion time is useful for tracking work item resolution, it does not specifically capture the lead time from code commit to production deployment. This only shows how quickly the team moves work items through their board, which is not the same metric leadership is asking for.
- B. Correct.
Option 2 is correct. By leveraging the Azure DevOps Analytics capabilities, you can create a metric that measures the time from the initial successful build (linked to a commit) all the way to production deployment. This approach directly focuses on the lead time of changes.
- C. Correct.
Option 3 is correct. Enabling code coverage in the CI pipeline and publishing coverage data to Azure DevOps Test Runs allows you to display coverage metrics in Azure Dashboards. This directly addresses leadership� request for tracking coverage metrics per build and release.
- D. Incorrect.
Option 4 is incorrect. Manual recording in a shared document is not a reliable or scalable mechanism for gathering precise metrics such as lead time and coverage. It introduces human error and lacks real-time insight.