AZ-400 Test 1 — Questions and Answers
Question 1: You have a Contoso Azure DevOps organization and a Contoso Azure subscription with an Azure virtual machine scale set named VMSS1 that is setup for autoscaling. <br> <br> You create a web app named Appl with Azure DevOps and deploy it to VMSS1. Appl is heavily utilized and has weekly usage patterns that change. <br> <br> You must propose a technique for detecting an unusual increase in the number of unsuccessful requests to Appl. The solution must require the least amount of administrative effort. <br> <br> What should your advice include?
- the Smart Detection feature m Azure Application Insights (Correct answer)
- an Azure Service Health alert
- an Azure Monitor alert that uses an Azure Log Analytics query
- the Failures feature in Azure Application Insights
Correct answer: the Smart Detection feature m Azure Application Insights
The Smart Detection feature in Azure Application Insights automatically identifies unusual performance patterns and failures in your application. It uses machine learning to learn the normal behavior of your application and proactively alerts you to significant deviations, such as an unusual increase in unsuccessful requests. This approach requires minimal administrative effort as it doesn't necessitate manual configuration of thresholds or complex alert rules.
Question 2: Your firm is developing a mobile app for Android and iOS devices. <br> <br> All work items and release cycles are managed by your team using Azure DevOps. <br> <br> You must propose a solution to complete the following tasks: <br> <br> Gather crash reports in order to investigate the problem. <br> <br> Make beta releases available to your testers. <br> <br> Obtain customer input on new app functionality.
- Azure Application Insights widgets
- the Microsoft Test & Feedback extension (Correct answer)
- Jenkins integration
- Microsoft Visual Studio App Center integration
Correct answer: the Microsoft Test & Feedback extension
The Microsoft Test & Feedback extension (formerly Test Explorer) is a valuable tool within Azure DevOps for exploratory testing and gathering feedback. While it is primarily browser-based and doesn't directly handle mobile app distribution or crash reporting, it excels at collecting structured input from testers. Testers can provide feedback, including screenshots and annotations, on new app functionality, which can then be linked directly to Azure DevOps work items for tracking and investigation.
Question 3: On Azure App Service, you have a web app. Data is stored in an Azure SQL database by the web app. <br> <br> When there are 10,000 simultaneous connections to the database, you must generate an alert. The solution must need the least amount of development time. <br> <br> In the database's Diagnostics settings, which option should you choose? <br> <br> What should your advice include?
- Archive to a storage account
- Send to Log Analytics (Correct answer)
- Stream to an event hub
Correct answer: Send to Log Analytics
To generate an alert for a specific condition like 10,000 simultaneous connections to an Azure SQL database with minimal development time, sending diagnostic logs to Log Analytics is the most efficient option. Once the database metrics and logs are streamed to a Log Analytics workspace, you can use Kusto Query Language (KQL) to define custom queries. These queries can then be used to create Azure Monitor alerts, triggering when the connection count exceeds the specified threshold.
Question 4: A team is currently working on a repository for handling all of the source code in Azure repositories. Due to the large number of feature requests, it is difficult to keep track of the changes to the master branch. <br> <br> You must implement a technique that: <br> - Allows for the consolidation of all commit histories <br> - Merges all changes into a single commit <br> You make the decision to use a git fetch request. <br> Would this suffice as a solution?
- Incorrect (Correct answer)
- Correct
Correct answer: Incorrect
No, `git fetch` alone would not suffice. `git fetch` only downloads changes from the remote repository to your local repository without integrating them into your current branch. To consolidate all commit histories and merge changes into a single commit, you would typically use `git rebase -i` to squash multiple commits into one, or perform a squash merge during a pull request, which is a different operation than a simple fetch.
Question 5: Your team is preparing an Azure DevOps environment. Several development environments will be created on Azure as part of the setup. To establish the various development environments, several Azure Resource Manager templates will be used. You must keep track of all control-plane events. <br> <br> You decide to monitor all control-plane activity with Azure Storage Analytics. <br> <br> Would this suffice as a solution?
- Incorrect (Correct answer)
- Correct
Correct answer: Incorrect
No, Azure Storage Analytics would not suffice for monitoring control-plane events. Azure Storage Analytics is designed to monitor operations and access logs for Azure Storage accounts (e.g., blobs, queues, tables). Control-plane events, such as the creation, update, or deletion of Azure resources via Azure Resource Manager templates, are recorded in the Azure Activity Log. To monitor these events, you should configure Azure Monitor to collect and alert on data from the Activity Log.
Question 6: A team wishes to use Azure Pipelines to deliver applications in a continuous manner. The applications must be installed on a collection of Azure virtual machines. <br> <br> Which of the following methods can be used to get the virtual machines ready?
- Release builds
- Azure Pipeline Agent extension (Correct answer)
- Release gates
- Deployment groups
Correct answer: Azure Pipeline Agent extension
To enable Azure Pipelines to deploy applications to a collection of Azure virtual machines, an Azure Pipelines agent must be installed on each target VM. This agent software acts as a communication bridge, allowing the pipeline to execute tasks and scripts directly on the VM. Installing and configuring this agent (which can be thought of as extending the VM's capabilities for pipelines) is the fundamental step to 'get the virtual machines ready' for continuous delivery.
Question 7: For the following requirement, which of the following Application Insights would you use? <br> <br> "What areas of the program do users abandon the most?"
- Impact
- Funnels
- User Flows (Correct answer)
- Cohorts
Correct answer: User Flows
The User Flows feature in Azure Application Insights is specifically designed to visualize how users navigate through your application. It maps out the common paths users take, identifies popular entry and exit points, and, most importantly, highlights where users tend to drop off or abandon the application. This directly answers the question of which areas users abandon the most, providing insights into potential usability issues.
Question 8: For the following requirement, which of the following in Application Insights would you use? <br> <br> "Are page load speeds influencing a user's decision to keep using the app?"
- Impact (Correct answer)
- Funnels
- Retention
- Cohorts
Correct answer: Impact
The Impact feature in Azure Application Insights helps you understand how various performance metrics, such as page load speeds, influence user behavior and business outcomes. It correlates performance data with user actions, like conversion rates or retention, allowing you to determine if slow page load times are negatively affecting a user's decision to continue using the application. This provides actionable insights into the real-world effect of performance.
Question 9: Your business intends to use Azure DevOps. Only devices linked to their on-premises network will be able to access the Azure DevOps environment, according to the business. <br> <br> Which of the following can be used to fulfill this criterion?
- Configure Azure Active Directory for high-risk sign-ins.
- Make sure that all users have the Stakeholder access level.
- In Azure Active Directory, set up conditional access. (Correct answer)
- Configure Azure DevOps project security
Correct answer: In Azure Active Directory, set up conditional access.
To restrict access to Azure DevOps only to devices linked to an on-premises network, you should set up conditional access in Azure Active Directory (Azure AD). Conditional Access policies allow you to define specific conditions, such as requiring access from a trusted network location or a compliant device, before granting access to cloud resources. This ensures that only authorized devices from the specified network can connect to your Azure DevOps environment.
You have a Contoso Azure DevOps organization and a Contoso Azure subscription with an Azure virtual machine scale set named VMSS1 that is setup for autoscaling.
You create a web app named Appl with Azure DevOps and deploy it to VMSS1.
Appl is heavily utilized and has weekly usage patterns that change.
You must propose a technique for detecting an unusual increase in the number of unsuccessful requests to Appl.
The solution must require the least amount of administrative effort.
What should your advice include?