AZ-400: Designing and Implementing Microsoft DevOps solutions
100%
28 QUESTIONS AS TOTAL
Question 21
You are currently defining a release strategy for an app, named APP-01.
The strategy should allow you to keep the time it takes to deploy new releases of the app to a minimum.
The strategy should also allow you to roll back in the shortest time required.
Which of the following is the release strategy you should use?
Red/Black deployment
Rolling deployment
Big Bang deployment
Canary deployment
Answer is Red/Black deployment
Red/black = Blue/Green = 0X111/ 0X000
Its done with deployment slots which takes the time to minimum, and can be reversed at the same pace using swap operation.
This technique can eliminate downtime because of app deployment. Besides, blue-green deployment reduces risk: if something unexpected happens with your new version on the green, you can immediately roll back to the last version by switching back to blue.
You are preparing to deploy an Azure resource group via Terraform.
To achieve your goal, you have to install the necessary frameworks.
Which of the following are the frameworks you should use? (You can select more than one)
Yeoman
Vault
Terratest
Tiller
Answers are; Terratest and Yeoman
You can use the combination of Terraform and Yeoman. Terraform is a tool for creating infrastructure on Azure. Yeoman makes it easy to create Terraform modules.
Terratest provides a collection of helper functions and patterns for common infrastructure testing tasks, like making HTTP requests and using SSH to access a specific virtual machine. The following list describes some of the major advantages of using Terratest:
- Convenient helpers to check infrastructure - This feature is useful when you want to verify your real infrastructure in the real environment.
- Organized folder structure - Your test cases are organized clearly and follow the standard Terraform module folder structure.
Test cases are written in Go - Many developers who use Terraform are Go developers. If you're a Go developer, you don't have to learn another programming
language to use Terratest.
- Extensible infrastructure - You can extend additional functions on top of Terratest, including Azure-specific features.
You run the Register-AzureRmAutomationDscNode command in your company's environment.
You need to make sure that your company's test servers remain correctly configured, regardless of configuration drift.
Solution: You set the -ConfigurationMode parameter to ApplyOnly.
Does the solution meet the goal?
Yes
No
Answer is No
ApplyOnly: DSC applies the configuration and does nothing further unless a new configuration is pushed to the target node or when a new configuration is pulled from a service. After initial application of a new configuration, DSC does not check for drift from a previously configured state.
You run the Register-AzureRmAutomationDscNode command in your company's environment.
You need to make sure that your company's test servers remain correctly configured, regardless of configuration drift.
Solution: You set the -ConfigurationMode parameter to ApplyAndMonitor.
Does the solution meet the goal?
Yes
No
Answer is No
ApplyAndMonitor: This is the default value. The LCM applies any new configurations. After initial application of a new configuration, if the target node drifts from the desired state, DSC reports the discrepancy in logs.
You run the Register-AzureRmAutomationDscNode command in your company's environment.
You need to make sure that your company's test servers remain correctly configured, regardless of configuration drift.
Solution: You set the -ConfigurationMode parameter to ApplyAndAutocorrect.
Does the solution meet the goal?
Yes
No
Answer is Yes
ApplyAndAutoCorrect: DSC applies any new configurations. After initial application of a new configuration, if the target node drifts from the desired state, DSC reports the discrepancy in logs, and then re-applies the current configuration.
Your company makes use of Azure SQL Database Intelligent Insights and Azure Application Insights for monitoring purposes.
You have been tasked with analyzing the monitoring using ad-hoc queries. You need to utilize the correct query language.
Solution: You use the Contextual Query Language (CQL).
Does the solution meet the goal?
Yes
No
Answer is No
Azure Application Insights, you would use the Application Insights Analytics query language. This query language is based on a subset of the Kusto Query Language (KQL) and allows you to perform advanced analytics and querying on your application telemetry data.
Azure Monitor Logs is based on Azure Data Explorer, and log queries are written by using the same Kusto Query Language (KQL). This rich language is designed to be easy to read and author, so you should be able to start writing queries with some basic guidance.
Your company makes use of Azure SQL Database Intelligent Insights and Azure Application Insights for monitoring purposes.
You have been tasked with analyzing the monitoring using ad-hoc queries. You need to utilize the correct query language.
Solution: You use the Transact-SQL.
Does the solution meet the goal?
Yes
No
Answer is No
Azure Monitor Logs is based on Azure Data Explorer, and log queries are written by using the same Kusto Query Language (KQL). This rich language is designed to be easy to read and author, so you should be able to start writing queries with some basic guidance.
Your company makes use of Azure SQL Database Intelligent Insights and Azure Application Insights for monitoring purposes.
You have been tasked with analyzing the monitoring using ad-hoc queries. You need to utilize the correct query language.
Solution: You use Azure Log Analytics.
Does the solution meet the goal?
Yes
No
Answer is No
Asking for the right query language. Azure Log Analytics is NOT a query language.
Azure Log Analytics is a service that allows you to collect, store, and analyze log data from various sources, such as Azure SQL Database Intelligent Insights and Azure Application Insights. The primary query language used in Log Analytics is called Kusto Query Language (KQL), which is designed for ad-hoc queries and data exploration.
By using Azure Log Analytics, you can consolidate the monitoring data from both Azure SQL Database Intelligent Insights and Azure Application Insights in one place. This enables you to perform ad-hoc queries and analyze the data using KQL. This solution meets the goal of analyzing the monitoring data using the correct query language.
In summary, Azure Log Analytics allows you to collect and analyze log data from multiple sources, including Azure SQL Database Intelligent Insights and Azure Application Insights, using the Kusto Query Language for ad-hoc queries and data exploration.
You have created an Azure DevOps project for a new application that will be deployed to a number of Windows Server 2016 Azure virtual machines.
You are preparing a deployment solution that allows for the virtual machines to maintain a uniform configuration, and also keep administrative effort with regards to configuring the virtual machines to a minimum.
Which of the following should be part of your solution? (Choose two.)
Azure Resource Manager templates
The PowerShell Desired State Configuration (DSC) extension for Windows
Azure pipeline deployment groups
The Custom Script Extension for Windows
Azure pipeline stage templates
Answers are;
A. Azure Resource Manager templates
B. The PowerShell Desired State Configuration (DSC) extension for Windows
The primary use for the Azure Desired State Configuration (DSC) extension for Windows PowerShell is to bootstrap a VM to the Azure Automation State Configuration (DSC) service. This service provides benefits that include ongoing management of the VM configuration and integration with other operational tools, such as Azure Monitor. You can use the extension to register your VMs to the service and gain a flexible solution that works across Azure subscriptions.