Deploy and Manage Azure Compute Resources Flashcards
Name the 7 basic elements of an ARM template
$schema
contentVersion
parameters
variables
functions
resources
outputs
What basic element of an ARM template provides source control to track changes made in the template ?
$schema contentVersion parameters variables functions resources outputs
contentVersion
If you are using expressions a lot, which element of the ARM template allows you to define expressions and reuse them across the template ?
$schema contentVersion parameters variables functions resources outputs
functions
Which element of the ARM template allows you to return values after a deployment ?
$schema contentVersion parameters variables functions resources outputs
outputs
This ARM template element creates an array of multiple objects, each defining the service it’s going to be deploying
$schema contentVersion parameters variables functions resources outputs
resource
Using ……………………. , users can define the various values that are passed at run time without changing the exact template file.
$schema contentVersion parameters variables functions resources outputs
parameters
The ………………………. are key elements when dealing with nested templates to pass the values from parent template to the child templates.
$schema contentVersion parameters variables functions resources outputs
parameters
…………….. define values which are used in your template to simplify template language.
Mostly, ……………….. are hard-coded values, but they also can be created dynamically using parameters or standard template functions.
$schema contentVersion parameters variables functions resources outputs
variables
In an ARM template, what does the dependsON declaration do ?
It determines which resource must be deployed first before a specific resource
What are the three building blocks for parametrizing your ARM templates ?
$schema contentVersion parameters variables functions resources outputs
parameters
variables
functions
To obtain user input for your ARM template, you need to use…
$schema contentVersion parameters variables functions resources outputs
paremeters
This section is used to keep a track of resources that are being deployed or updated.
$schema contentVersion parameters variables functions resources outputs
outputs
In an ARM template, how can you make your variables dynamic ?
use parameters and functions within declaration of variables
True or false : A VM must have a depandancy with the virtual network
False : A VM has a dependancy with a network interface. It doesn’t have to have a dependancy with a VNET, because the network interface already does
True or false : A VM has a dependancy with a network interface.
True
This element is where you set the size of the virtual machine.
In the resources section of the ARM template, which critical element is this ?
hardwareProfile
osProfile
storageProfile
networkProfile
hardwareProfile
This element at a basic level is where you set the computerName and adminUsername properties. (The adminPassword property is required if you do not specify an SSH key. )
In the resources section of the ARM template, which critical element is this ?
hardwareProfile
osProfile
storageProfile
networkProfile
osProfile
What are the three sub elements of the osProfile element of an ARM template, used for deploying VMs ?
windowsConfiguration
linuxConfiguration
secrets
This element is where OS image is specified, and the OS and data disk configuration are set.
In the resources section of the ARM template, which critical element is this ?
hardwareProfile
osProfile
storageProfile
networkProfile
storageProfile
This element is where the network interfaces for the virtual machine are specified.
In the resources section of the ARM template, which critical element is this ?
hardwareProfile
osProfile
storageProfile
networkProfile
networkProfile
ARM supports 2 deployment modes : …………………………. and …………………………
complete
incremental
In …………………………… mode, Azure Resource Manager deletes resources that exist in the resource group that are not in the template.
This is helpful if you need to remove a resource from Azure and you want to make sure your template matches the deployment.
complete
In …………………………….. mode, Azure Resource Manager leaves unchanged resources that exist in the resource group but aren’t in the template. It will update the resources in the resource group if the settings in the template differ from what is deployed.
incremental
When you are deploying ARM templates through either the Azure Portal, CLI tools, or through visual studio, what is the default mode of deployment
incremental mode
How can you deploy ARM templates in the complete mode ?
Either by using rest APIs or
“- Mode Complete” in powershell
or “– mode Complete” in shell
What are two options for configuring a VHD template ?
- Reference an image from the Azure Market Place
2. Reference an image you have previously created
In the resources section of an ARM template, where can you configure the VHD disk ?
storageProfile
To generate an ARM template, you can use the ………………………………. for the resource group. It generates a template that represents the current state of the resource group.
Automation Script menu option
Clicking the …………………………………… option allows you to paste in template code directly.
This allows you to author and then deploy templates using the Azure portal for simple testing.
Build Your Own Template In The Editor
When editing a template with in the Azure Portal / Template editor, what is the big advantage presented by the “edit parameters” option ?
A parameters file can be downloaded and is used to provide different behaviors for the template at deployment time without modifying the entire template.
What are three features of Azure that allow you to configure and build highly resilient and available systems ?
Availability zones
Availability sets
Load balancers
In an enabled region, what is the minimum number of availability zones ?
3 availability zones
………………….. are separate units - each with its own power, cooling, and network - which provide higher resiliency and protect applications and data from disruptions in the data centers
Availability Zones
A(n) ……………………………. represents a group of servers, which share power, cooling, and networking. A(n) ……………….. represents a group of servers that can be rebooted at the same time.
fault domain
update domain
When you create VMs in three availability zones, the VMs will automatically be distributed across how many fault domains ? How many update domains ?
3 fault domains
3 update domains
If you are unable to set an availability zone while creating the VM, what is the most likely problem ?
Most likely, Availability Zones are not yet available in the selected region
Each availability set can have up to ………….. update domains and …………… fault domains
20 update domains
3 fault domains
How many VMs are required in a single availability set in order to be able to provide redundancy ?
at least 2 VMs
What is a proximity placement group ?
A logical grouping of VMs to reduce latency by keeping them close together
When you create a VM, after selecting the region, what are the three options under “availability options” ?
How many may you select ?
“No infrastructure redundancy required”
“Availability Set
“Availability Zone”
Only one
What is an aligned availability set ?
When the VM uses managed disks and is placed in an availability set
A(n) …………………. ensures that all managed disks attached to a VM are within the same managed disk fault domain
aligned availability set
By default, a VMSS supports up to …………….. instances that are placed within a single …………….
100
placement group
How can you create a VMSS that supports up to 1000 instances ?
You need to place instances into multiple placement groups
Using multiple placement groups in a VMSS is commonly referred to as a(n) ………………………….
large scale set
You create a VMSS that will only need to scale up to 300 instances. Which should you use ?
A) Azure Load Balancer, basic SKU
B) Azure Load Balancer, standard SKU
C) Azure Application Gateway
Azure Load Balanacer, Basic SKU
It supports a max of 300 instances
Azure Load Balancer standard SKU and Azure Application Gateway can support 1000
True or false : All instances of a VMSS use the same OS disk image
True
What is a zone redundant scale set ?
A VMSS deployed to multiple availability zones
How can you create higher redundancy for a VMSS ?
Deploy the VMSS over multiple availability zones (zone redundant scale set)
The VMSS resource property “Upgrade policy” can be set to either automatic, rolling, or manual. Which option may cause downtime ? Which uses multiple batches ?
Automatic may cause downtime
Rolling uses multiple batches and helps avoid downtime
True or false : The Azure Portal creation process supports VM extensions for VMSS
False
They can be applied using CLI tools or an ARM template
What are the two spreading algorithms applicable to a VMSS ?
Max spreading
Fixed spreading
When doing advanced configurations for a VMSS, the …………………………………… decides how scale set instances will be placed in a fault domain
Spreading Algorithm
A VMSS with “Max spreading” distributes instances in …………
the maximum amount of fault domains possible for each availability zone used
A VMSS with a(n) ………………………….. restricts instances to exactly 5 fault domains
fixed spreading algorithm
For deploying a VMSS with multiple availability zones, which type of spreading algorithm is recommended ?
Max spreading algorithm
A VMSS is using a fixed spreading algorithm, and there are less than five fault domains available. What will happen ?
The deployment will fail
Why is the “health” tab important when creating a VMSS ?
Because you can enable health monitoring for the VMSS, which is necessary for automatic OS upgrades as well as other managed infrastructure features
What are the two most common virtual machine extensions ?
Windows PowerShell Desired State Configuration (DSC)
Custom Script Extension
The Windows PowerShell DSC extension defines the state of a VM using what language ?
It uses the PowerShell Desired State Configuration language
The Windows PowerShell DSC can perform continuous updates when integrated with the ………………………… service.
Azure Automation DSC service
The ………………………. extension can be used to execute an arbitrary command such as a bash file, regular PowerShell script, or a bash script
custom script