AZ-400 Flashcards
In Azure DevOps pipelines, what does type: github refer to in this example?
- repository: MyRepo type: github endpoint: MyServiceConnection name: MyOrgOrUser/MyGitHubRepo
GitHub.com
In Azure DevOps pipelines, what needs to be changed to use Github Enterprise?
- repository: MyRepo type: github endpoint: MyServiceConnection name: MyOrgOrUser/MyGitHubRepo
type: githubenterprise
To what folder and sub folder does code get checked out when using Azure DevOps Pipelines?
For single repo:
“s” subfolder of (Agent.BuildDirectory)
For multi repo:
Subfolder named as the repo, in a subfolder called “s” in a subfolder of (Agent.BuildDirectory)
What two methods can you use to authenticate Azure CLI in a Github Action?
Azure Login action with OpenID Connect
Azure Login action with a service principal secret
What permission is required to manually validate builds?
Queue builds permission
Your company uses self-hosted build agents with Azure Pipelines for projects across the organization. The self-hosted build agents run in Azure Virtual Machines Scale Sets (Azure VMSS) in Ubuntu-based machines. You need to regularly update the tooling installed in the self-hosted build agents to support new projects and security patches by creating a new virtual machine image.
You need to automate the process of building new virtual machine images.
What should you use?
Packer
You use Azure DevOps services to build and release software.
You need to implement dynamic security scanning against a running web application as part of the continuous delivery (CD) pipeline.
Which tool should you integrate with your delivery pipelines?
OWASP
You should use Web Application Security Project Zed Attack Proxy (ZAP). OWASP ZAP is a nonprofit foundation that works to improve the security of software. OWASP ZAP is an extension that allows you to perform a dynamic security scan against a running web application. OWASP ZAP requires a continuous delivery pipeline to be in place. The extension pretends to be an attacker and it fiddles the web application with requests to try to identify vulnerabilities.
You need to implement a mechanism to allow continuous monitoring of your DevOps release pipeline throughout the software development lifecycle, which will allow you to create appropriate alert mechanisms, and gate or roll back a deployment until an alert is resolved.
What should you integrate with your DevOps pipelines?
Azure Monitor Application Insights
A developer uses Service Hooks for a specific consumer service on successful completion of a build process. The developer wants to track the diagnostics settings for troubleshooting event matching using the Azure DevOps Services REST API 6.0 Diagnostics API version 6.0.
You need to implement a solution to meet the requirement.
Which SubscriptionDiagnostics diagnostics setting should you use?
You should use the evaluationTracing diagnostics setting.
You are using Azure DevOps services to manage complex software development projects.
You want to perform statistical analysis and visualize results in a chart to identify trends.
You need to author advanced queries in Kusto Query Language.
What should you integrate with your DevOps pipelines?
Azure Data Explorer
You should integrate Azure Data Explorer with your Azure pipelines. Azure Data Explorer - Pipeline Tools is the Azure Pipelines task that enables you to create release pipelines and deploy your database changes to your Azure Data Explorer databases. This extension includes three basic tasks: 1) Azure Data Explorer Command - Run Admin Commands against an Azure Data Explorer cluster, 2) Azure Data Explorer Query - Run Queries against an Azure Data Explorer cluster and parse the results and 3) Azure Data Explorer Query Server Gate - Agentless task to Gate releases depending on the query outcome.
When testing with NUnit, does tests with an Order(n) attribute execute before or after tests without this attribute?
Before. Ordered test always executes before non-ordered tests.
What is Chef Infra?
Chef Infra is an IaC automation solution that you can use to manage how your infrastructure is configured according to your policies. The Chef server stores all configuration definitions for your infrastructure in cookbooks. Each node managed by this Chef server has a Chef Client agent installed. The agent ensures that the node complies with the configuration stored on the server and corrects or updates the node configuration if necessary.
You must ensure that Infrastructure as a Service (IaaS) resources have a specific configuration, such as which services are installed in the virtual machine (VM). What should you use?
Chef Infra
You are building an Azure pipeline for a new project. The pipeline requires a Linux self-hosted agent. The pipeline must run twice a day and should take about 15 minutes to complete.
You need to use a compute service that runs this self-hosted agent while minimizing costs.
What should you choose?
Azure Container Instances (ACI)
Why can Microsoft-hosted agents be slower than self-hosted agents?
Microsoft-hosted agents create a fresh VM for each run so there is no caching, and configurations are not saved. Therefore, MS-hosted agents will be slower than self-hosted agents.
Your company has an Android application and a backend API in Azure App Service.
The backend API has an Application Insights account that centralizes the application logs. The Android application is configured with the App Center Software Development Kit (SDK) to report events to App Center Analytics.
You need to centralize the standard analytics data from the Android app in the Application Insights account.
Which two actions should you perform? Each correct answer presents part of the solution.
Link the Azure subscription with the App Center
Export App Center Analytics to Application Insights
You should link the Azure subscription with the App Center. This will integrate App Center with your Azure subscription and allow you to use a standard export for Application Insights or Blob Storage.
You should also export App Center Analytics to Application Insights. This centralizes the Android Application logs with the Backend Application Insights account.
You are designing a traceability strategy for an Azure DevOps project based on the Capability Maturity Model Integration (CMMI) process.
Which type of work item can be used?
A Change request form work item can be defined to track changes and implement traceability.
You have a project in Azure DevOps that contains a YAML pipeline.
You need to configure the pipeline to update work items.
Which pipeline action should you configure?
Settings
Using the Settings option in a YAML based pipeline, you can configure how the integration with work items will be implemented, which branch will be affected, among other configurations.
Which key performance indicator (KPI) represents a faster outcomes metric associated with an Azure DevOps project?
Only Lead Time is an example of a faster outcomes metric associated with an Azure DevOps project
You are creating a project wiki in Azure DevOps.
You need to designate the beginning of a Mermaid element.
What should you use?
:::
You need to implement a Git hook that will be triggered automatically in response to a Git commit being run on a Windows server.
To what should you set the first line of the predefined Git hook script so that you can execute the script?
!C:/Program\ Files/Git/usr/bin/sh.exe
Your team is working on an Azure DevOps project using a Git repository. The generation of personal access tokens (PAT) are not allowed.
You need to define an authentication method to allow other services and applications to access your Azure DevOps account.
Which authentication method should you implement?
SSH
SSH authentication is used when Git Credential Manager or PATs are not allowed.
OAuth is used for REST APIs only.
You need to quickly reduce the size of a GitHub repository by deleting all files that are larger than 50 MB and automatically updating all commits and tags.
What should you use?
he BFG utility is the only one that can quickly delete a subset of repository files based on criteria such as size, as well as automatically update all commits and tags.
You need to reduce the size of a GitHub repository that contains a single branch with a long history of changes.
Which two commands should you run? Each correct answer presents a complete solution.
The git filter-branch and git filter-repo commands supports rewriting history on a specific branch, which allows for significantly reducing the repository size in this scenario.
You have an Azure DevOps project named MyProject that contains an Azure Repos Git repository named MyRepo and a YAML pipeline. Which protocol prefix must be used? (git or https)
git://
You are evaluating the capabilities of Azure Pipelines for use in creating release pipelines.
Which types of Azure Pipelines support release gates?
Release gates are available only in classic release pipelines. They are not available in classic build pipelines and YAML pipelines.