Topic 4: Mix Questions Set
Your company uses a Git repository in Azure Repos lo manage the source code of a web
application. The master branch is protected from direct updates. Developers work on new
features in the topic branches.
Because of the high volume of requested features, it is difficult to follow the history of the
changes to the master branch.
You need to enforce a pull request merge strategy. The strategy must meet the following
requirements:
A. Git fetch
B. no-fast-forward merge
C. squash merge
D. fast-forward merge
Explanation:
Squash merging is a merge option that allows you to condense the Git history of topic
branches when you complete a pull request. Instead of each commit on the topic branch
being added to the history of the default branch, a squash merge takes all the file changes
and adds them to a single new commit on the default branch.
A simple way to think about this is that squash merge gives you just the file changes, and a
regular merge gives you the file changes and the commit history.
Note: Squash merging keeps your default branch histories clean and easy to follow without
demanding any workflow changes on your team. Contributors to the topic branch work how
they want in the topic branch, and the default branches keep a linear history through the use of squash merges. The commit history of a master branch updated with squash
merges will have one commit for each merged branch. You can step through this history
commit by commit to find out exactly when work was done.
You have a private GitHub repository. You need to display the commit status of the repository on Azure Boards. What should you do first?
A. Create a GitHub action in GitHub
B. Add the Azure Pipelines app to the GitHub repository
C. Configure multi-factor authentication (MFA) for your GitHub account
D. Add the Azure Boards app to the repository.
Explanation:
To connect Azure Boards to GitHub.com, connect and configure from Azure Boards. Or,
alternatively, install and configure the Azure Boards app from GitHub. Both methods have
been streamlined and support authenticating and operating via the app rather than an
individual.
Note (see step 4 below):
Add a GitHub connection:
Sign into Azure Boards.
Choose (1) Project Settings, choose (2) GitHub connections and then (3) Connect
your GitHub account.
If this is your first time connecting to GitHub from Azure Boards, you will be asked
to sign in using your GitHub credentials. Choose an account for which you are an
administrator for the repositories you want to connect to.
The Add GitHub Repositories dialog automatically displays and selects all
GitHub.com repositories for which you are an administrator. Unselect any
repositories that you don't want to participate in the integration.
You have a multi-tier application. The front end of the application is hosted in Azure App Service. You need to identify the average load times of the application pages. What should you use?
A. the diagnostics logs of the App Service
B. Azure Application Insights
C. Azure Advisor
D. the activity log of the App Service
You have an app named App1 that uses Application Insights to monitor application performance. You need to analyze how often a page in App1 is accessed. Which pane in Application Insights should you use?
A. Events
B. Sessions
C. Impact
D. Users
You are monitoring the health and performance of an Azure web app by using Azure Application Insights. You need to ensure that an alert is sent when the web app has a sudden rise in performance issues and failures. What should you use?
A. custom events
B. Application Insights Profiler
C. usage analysis
D. Smart Detection
E. Continuous export
Explanation: Smart Detection automatically warns you of potential performance problems and failure anomalies in your web application. It performs proactive analysis of the telemetry that your app sends to Application Insights. If there is a sudden rise in failure rates, or abnormal patterns in client or server performance, you get an alert.
You store source code in a Git repository in Azure repos. You use a third-party continuous integration (CI) tool to control builds. What will Azure DevOps use to authenticate with the tool?
A. certificate authentication
B. a personal access token (PAT)
C. a Shared Access Signature (SAS) token
D. NTLM authentication
Personal access tokens (PATs) give you access to Azure DevOps and Team Foundation Server (TFS), without using your username and password directly.
Your company hosts a web application in Azure. The company uses Azure Pipelines for the build and release management of the application. Stakeholders report that the past few releases have negatively affected system performance. You configure alerts in Azure Monitor. You need to ensure that new releases are only deployed to production if the releases meet defined performance baseline criteria in the staging environment first What should you use to prevent the deployment of releases that fail to meet the performance baseline?
A. a trigger
B. an Azure function
C. a gate
D. an Azure Scheduler job
Your company develops an application named App1 that is deployed in production. As part of an application update, a new service is being added to App1. The new service requires access to an application named App2 that is currently in development. You need to ensure that you can deploy the update to App1 before App2 becomes available. You must be able to enable the service in App1 once App2 is deployed. What should you do?
A. Create a branch in the build
B. Implement a branch policy
C. Create a fork in the build
D. Implement a feature flag
You are designing a configuration management solution to support five apps hosted on
Azure App Service.
Each app is available in the following three environments: development, test, and
production.
You need to recommend a configuration management solution that meets the following
requirements:
A. Azure Cosmos DB
B. Azure App Service
C. Azure App Configuration
D. Azure Key Vault
Explanation:
The Feature Manager in the Azure portal for App Configuration provides a UI for creating
and managing the feature flags that you use in your applications.
App Configuration offers the following benefits:
App Configuration complements Azure Key Vault, which is used to store application
secrets.
Note: This question is part of a series of questions that present the same scenario.
Each question in the series contains a unique solution that might meet the stated
goals. Some question sets might have more than one correct solution, while others
might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a
result, these questions will not appear in the review screen.
A. Yes
B. No
Explanation: Instead you should deploy an Azure self-hosted agent to an on-premises server. Note: To build your code or deploy your software using Azure Pipelines, you need at least one agent. If your on-premises environments do not have connectivity to a Microsoft-hosted agent pool (which is typically the case due to intermediate firewalls), you'll need to manually configure a self-hosted agent on on-premises computer(s).
You have an Azure subscription that contains an Azure Pipelines pipeline named Pipeline1 and an app named App1. Pipeline1 is used to automate the building of App1. You have a Slack channel named App1chat that includes an incoming webhook. You need to ensure that when a successful build of App1 is created, a notification is sent to App1chat by using the webhook. What should you use?
A. an alert rule
B. a notification
C. an action group
D. a subscription
Your company has a project in Azure DevOps for a new application. The application will be
deployed to several Azure virtual machines that run Windows Server 2016.
You need to recommend a deployment strategy for the virtual machines. The strategy must
meet the following requirements:
A. Deployment YAML and Azure pipeline stage templates
B. Azure Resource Manager templates and the Custom Script Extension for Windows
C. Azure Resource Manager templates and the PowerShell Desired State Configuration (DSC) extension for Windows
D. Deployment YAML and Azure pipeline deployment groups
Explanation: The Custom Script Extension downloads and executes scripts on Azure virtual machines. This extension is useful for post deployment configuration, software installation, or any other configuration or management tasks. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run time. The Custom Script Extension integrates with Azure Resource Manager templates, and can be run using the Azure CLI, PowerShell, Azure portal, or the Azure Virtual Machine REST API.
Page 14 out of 41 Pages |
Previous |