Practice Assessment Flashcards
You plan to use the metrics and Key Performance Indicators (KPIs) of Azure DevOps projects to validate that your team is meeting its goals and expectations.
You need to identify the KPI that is used to measure the quality and security associated with a project in Azure DevOps.
Which KPI should you identify?
- Application Performance
- Lead Time
- Mean time to recover
- Server to Admin Ratio
Mean time to recover
Mean time to recover is an example of a quality and security metric. Server to Admin Ratio and Application Performance are examples of efficiency metrics. Lead Time is an example of a faster outcome metric.
You have an Azure Boards project.
You plan to track the work status of items based on different service-level classes.
You need to add items to a Kanban board.
Which Azure Boards feature should you use?
Select only one answer.
- card customization
- definition of done
- split columns
- swimlanes
swimlanes
You can add swimlanes to the Kanban board to visualize the status of work that supports different service-level classes. You can create an expedite swimlane to track high-priority work. Customize cards allow you to update a field without opening the work item. Split columns allow only “doing and done” without showing expedited work stages. The Definition of Done criteria defines what “done” means inside of each project.
You plan to use the metrics and Key Performance Indicators (KPIs) for Azure DevOps projects.
You need to identify the KPI that represents a faster outcome metric associated with a project in Azure DevOps.
Which KPI should you identify?
Select only one answer.
- Lead Time
- Mean time to detection
- Mean time to recover
- Retention rates
Lead Time
Only Lead Time is an example of a faster outcome metric associated with an Azure DevOps project. Mean time to detection and Mean time to recover are examples of a quality and security metric. Retention rates is an example of a culture metric.
You plan to create a project wiki in Azure DevOps.
You need to format the wiki pages to include headers, bulleted lists, and italicized font.
Which language should you use to format the pages?
Select only one answer.
- HTML
- JSON
- Markdown
- XML
Markdown
Azure DevOps wikis are written in Markdown, not HTML, JSON, or XML.
You plan to create a project wiki in Azure DevOps.
You need to create a diagram on the wiki page.
Which syntax element should you use to designate the end of the diagram?
Select only one answer.
- >
- }
- :::
- ###
:::
The ::: symbol designates the beginning and end of a Mermaid element when using Markdown. The > symbol designates an element when using XML, } designates an element when using JSON, and ### is used to designate a header.
You plan to implement a measurement indicator for a new project in Azure DevOps.
You need to recommend a Key Performance Indicator (KPI) to measure how long it takes for a work item to be completed.
Which KPI should you recommend?
Select only one answer.
- Lead Time
- Mean time to recover
- Retention rates
- Server to Admin Ratio
Lead time
Lead Time is recommended to measure how long it takes from the creation of a work item until completion.
Incorrect: Server to Admin Ratio is used to measure whether the project is reducing the number of administrators required for a given number of servers.
Incorrect: Mean time to recover is used to measure how quickly an implementation can recover from a failure.
Incorrect: Retention rates relates to the measurement of losing staff.
You plan to design an Azure DevSecOps security validation process for your company.
You need to identify which stage in the process will include a passive penetration test.
Which stage should you identify?
Select only one answer.
- continuous deployment
- continuous integration
- IDE/pull requests
- nightly test runs
Continuous deployment
Continuous deployment should include passive penetration tests as well as SSL and infrastructure scans. Nightly test runs should include infrastructure scans and active penetration tests. Continuous integration should include an Open Source Software (OSS) vulnerability scan. The integrated development environment/pull request step should include static code analysis and code reviews.
You have an Azure DevOps organization.
You plan to use caching in Azure Pipelines.
You need to identify which types of pipelines you can use.
Which pipeline types should you identify?
- classic build and classic release only
- sic release only
- YAML and classic build only
- YAML only
YAML and classic build only.
Caching is available in YAML and classic build pipelines. It is unavailable in classic release pipelines.
You have an Azure App Service web app named app1.
You plan to track the availability of app1 by leveraging native Azure capabilities.
You need to identify which type of Azure resource you should use to implement the tracking mechanism. The solution must minimize implementation efforts.
Which Azure resource type should you use?
Select only one answer.
- Azure App Configuration
- Azure Automation
- Azure DevTest Labs
- Azure Functions
Azure functions
Azure Functions provides the ability to create and run custom availability tests by relying on the TrackAvailability() method (included in the Azure SDK for .NET). Azure Automation can potentially be used in this case, but this would require significantly more effort. Azure DevTest Labs and Azure App Configuration do not provide this functionality.
- https://learn.microsoft.com/azure/azure-monitor/app/availability-azure-functions
- https://learn.microsoft.com/training/modules/configure-provision-environments/6-set-up-run-availability-tests?ns-enrollment-type=learningpath&ns-enrollment-id=learn.wwl.az-400-design-implement-release-strategy
You have a project in Azure DevOps that contains a build pipeline for a .NET Core application. The pipeline includes the Microsoft Visual Studio Test task.
You are reviewing the pipeline run summary in the Azure DevOps portal.
You plan to download the .coverage files to be used for code coverage analysis in Visual Studio.
You need to identify which section of the pipeline run summary you should use to access the .coverage files.
Which section of the pipeline run summary should you identify?
Select only one answer.
- Related
- Repository and version
- Tests
- Tests and Coverage
Related
From Related, you can download coverage extension files to be used as evidence of code coverage. Tests and Coverage can be used to configure tests and coverage or to see the general results of coverage but not to generate evidence by using the Visual Studio Test task. Tests are used to see test results but not to get evidence about code coverage. Repository and version provides information about the repository used for the pipeline.
- https://learn.microsoft.com/azure/devops/pipelines/test/review-code-coverage-results?view=azure-devops#artifacts
- https://learn.microsoft.com/training/modules/run-quality-tests-build-pipeline/6-perform-code-coverage
You have a project in Azure DevOps named Project1 that contains a release pipeline named pipeline1. All users use Microsoft Teams.
A user named User1 does not have access to Project1. User1 must be able to use Teams to provide approval for initiating a run of pipeline1.
You need to identify the Azure DevOps mechanism that will allow User1 to provide the approval.
Which mechanism should you identify?
Select only one answer.
- a post-deployment gate
- a pre-deployment gate
- manual intervention
- manual validation
Pre-deployment gate
Approval integration can be implemented to allow users in Teams approve a pipeline run by using a pre-deployment gate without providing direct access to Azure DevOps. A post-deployment gate is executed after a release is executed. Manual intervention is used to prompt for values or parameters or to edit the release. Manual validation is similar to manual intervention, with the capability to notify users and a timeout option.
- https://learn.microsoft.com/azure/devops/pipelines/integrations/microsoft-teams?view=azure-devops#approve-deployments-from-your-channel
- https://learn.microsoft.com/azure/devops/pipelines/integrations/microsoft-teams?view=azure-devops#approve-deployments-from-your-channel
- https://learn.microsoft.com/azure/devops/pipelines/integrations/microsoft-teams?view=azure-devops#approve-deployments-from-your-channel
- https://learn.microsoft.com/training/modules/create-release-pipeline-devops/
- https://learn.microsoft.com/azure/devops/pipelines/release/approvals/gates?view=azure-devops
You have a project in Azure DevOps named Project1 that contains a continuous integration pipeline named Pipeline1.
You plan to use Windows-based self-hosted agents for UI tests in Pipeline1.
You need to identify the option you must configure for to apply to the agents.
Which option should you identify?
Select only one answer.
- Enable Autologon.
- Run a screen resolution task.
- Run a unit test.
- Run tests in parallel.
Enable autologon
When self-hosted agents are used, autologon must be enabled to allow UI tests to run. A screen resolution task allows additional configurations to be performed, but an autologon configuration is needed first to allow the test to run. To reduce the duration of the test activities, running tests in parallel can be useful, but this strategy does not address this scenario. A unit test is the first step to adding testing to the development process.
- https://learn.microsoft.com/azure/devops/pipelines/test/ui-testing-considerations?view=azure-devops&tabs=mstest#provisioning-agents-in-azure-vms-for-ui-testing
- https://learn.microsoft.com/training/modules/run-quality-tests-build-pipeline/
You have a project in Azure DevOps that uses packages from NuGet and Maven public registries.
You need to verify that project-level package feeds use original packages rather than copies.
Which Azure Artifacts feature should you implement?
Select only one answer.
- public feeds
- security policies
- upstream sources
- WinDbg
Upstream sources.
One of the advantages of upstream sources is the control over which package is downloaded, allowing you to verify that project-level package feeds use original packages. Public feeds are used to show and control packages, but upstream sources are not allowed. A security policy is used inside of a project-scoped feed, allowing you to control how you can access the feed, but does not provide public registry access or control. To debug Azure Artifacts by using symbol servers, you can use WinDbg. This feature does not provide upstream source control.
- https://learn.microsoft.com/azure/devops/artifacts/concepts/upstream-sources?view=azure-devops#advantages
- https://learn.microsoft.com/azure/devops/artifacts/concepts/upstream-behavior?view=azure-devops&tabs=nuget%2Cget
- https://learn.microsoft.com/training/modules/explore-package-dependencies/
You plan to create a project in Azure DevOps.
You need to identify which Azure DevOps feature enables the sharing of arbitrary values across all the definitions in the project.
Which Azure DevOps feature should you identify?
Select only one answer.
- predefined variables
- release pipeline variables
- stage variables
- variable groups
Variable groups
Variable groups provide the ability to share arbitrary values across all the definitions in the same project. The values of predefined variables are assigned automatically, while the stage and pipeline variables have a smaller scope than the entire project.
- https://learn.microsoft.com/training/modules/manage-modularize-tasks-templates/4-explore-variables-release-pipelines
- https://learn.microsoft.com/training/modules/manage-modularize-tasks-templates/4-explore-variables-release-pipelines
- https://learn.microsoft.com/azure/devops/pipelines/artifacts/nuget?view=azure-devops&tabs=yaml
You have a project in Azure DevOps that contains build and release pipelines.
You need to change the number of parallel jobs that will be available to the agent pool allocated to the project.
At which level should you add the parallel jobs?
Select only one answer.
- build pipeline
- organization
- project
- release pipeline
Organization level.
Parallel jobs are added at the organization level, not the project, build pipeline, or release pipeline levels.
- https://learn.microsoft.com/azure/devops/pipelines/licensing/concurrent-jobs?view=azure-devops&tabs=ms-hosted
- https://learn.microsoft.com/training/modules/describe-pipelines-concurrency/2-understand-parallel-jobs
You have an Azure DevOps organization.
You plan to build two configurations, one for x86 Windows computers and the other for x64 Windows computers.
You need to identify which Azure DevOps component will allow you to build the configurations with the minimum number of duplicate elements.
What should you include in the solution?
Select only one answer.
- two jobs in the same pipeline
- two pipelines in the same project
- two projects in the same organization
- two stages in the same pipeline
two jobs in the same pipeline
Including two jobs allows you to perform two separate builds with the minimum amount of duplication. Two pipelines in the same project or two projects in the same organization to create two separate builds can be done, but this is unnecessary. Builds take place in a build pipeline, rather than in a release pipeline, so including two stages does not meet the requirement.
- https://learn.microsoft.com/training/modules/explore-azure-pipelines/4-understand-key-terms
- https://learn.microsoft.com/azure/devops/pipelines/get-started/key-pipelines-concepts?view=azure-devops
What’s the definition of a Trigger?
A trigger is set up to tell the pipeline when to run. You can configure a pipeline to run upon a push to a repository at scheduled times or upon completing another build. All these actions are known as triggers.
What’s the definition of a task?
A task is the building block of a pipeline. For example, a build pipeline might consist of build and test tasks. A release pipeline consists of deployment tasks. Each task runs a specific job in the pipeline.
What’s the definition of a stage?
Stages are the primary divisions in a pipeline: “build the app,” “run integration tests,” and “deploy to user acceptance testing” are good examples of stages.
What’s the definition of a release?
When you use the visual designer, you can create a release or a build pipeline. A release is a term used to describe one execution of a release pipeline. It’s made up of deployments to multiple stages.
What’s the definition of a pipeline?
A pipeline defines the continuous integration and deployment process for your app. It’s made up of steps called tasks.
It can be thought of as a script that describes how your test, build, and deployment steps are run.
What’s the definition of a job?
A build contains one or more jobs. Most jobs run on an agent. A job represents an execution boundary of a set of steps. All the steps run together on the same agent.
For example, you might build two configurations - x86 and x64. In this case, you have one build and two jobs.
What’s the definition of a deployment target?
A deployment target is a virtual machine, container, web app, or any service used to host the developed application. A pipeline might deploy the app to one or more deployment targets after the build is completed and tests are run.
What’s the definition of continuous integration?
Continuous integration (CI) is the practice used by development teams to simplify the testing and building of code. CI helps to catch bugs or problems early in the development cycle, making them more accessible and faster to fix. Automated tests and builds are run as part of the CI process. The process can run on a schedule, whenever code is pushed, or both. Items known as artifacts are produced from CI systems. The continuous delivery release pipelines use them to drive automatic deployments.
What’s the definition of continuous delivery?
Continuous delivery (CD) (also known as Continuous Deployment) is a process by which code is built, tested, and deployed to one or more test and production stages. Deploying and testing in multiple stages helps drive quality. Continuous integration systems produce deployable artifacts, which include infrastructure and apps. Automated release pipelines consume these artifacts to release new versions and fix existing systems. Monitoring and alerting systems constantly run to drive visibility into the entire CD process. This process ensures that errors are caught often and early.
What’s the definition of a build?
A build represents one execution of a pipeline. It collects the logs associated with running the steps and the test results.
What’s the definition of a artifact?
An artifact is a collection of files or packages published by a build. Artifacts are made available for the tasks, such as distribution or deployment.
You plan a versioning strategy for a NuGet package.
You need to implement a unique prerelease label based on the date and time of the package.
Which semantic versioning should you use?
Select only one answer.
- custom scheme
- a generated script
- $(Major).$(Minor).$(Patch).$(date:yyyyMMdd)
- $(Major).$(Minor).$(rev:.r)
A custom scheme
In a case where a unique label is required, a custom scheme must be implemented by using date and time as unique values. $(Major).$(Minor).$(Patch).$(date:yyyyMMdd) uses variables for major, minor, patch, and date. It does not generate unique values. A script can be used to generate the version in the build pipeline. $(Major).$(Minor).$(rev:.r) is a format of semantic versioning that uses variables. It does not generate unique values based on date and time.
- https://learn.microsoft.com/azure/devops/pipelines/artifacts/nuget?view=azure-devops&tabs=yaml#package-versioning
- https://learn.microsoft.com/training/modules/integrate-azure-pipelines/