Create and Manage ARM Virtual Machines (20-25%) Flashcards

1
Q

OS Disk type?

A

VHD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Whats a resource Group?

A

A container that holds related resources.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Whats the Temporary disk?

A

his disk is stored on a physical drive on the host machine. It is not saved in Azure Storage, and might be deleted during reboots and other VM lifecycle events. Use this disk only for temporary data, such as page or swap files.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Whats a Network Security Group (NSG)?

A

Used to allow/deny network traffic to the subnet. You can associate an NSG with an individual NIC or with a subnet. If you associate it with a subnet, the NSG rules apply to all VMs in that subnet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

CLI: List Available VM sizes in a given region

A

azure vm sizes –location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

CLI: Enable VM Dignostics

A

azure vm enable-diag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

CLI: Enable VM Diagnostics

A

azure vm enable-diag

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

CLI: Deallocate a VM

A

azure vm deallocate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

If you delete a VM what happens to the VHDs?

A

If you delete a VM, the VHDs are not deleted. That means you can safely delete the VM without losing data. However, you will still be charged for storage.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What Storage Tiers are needed for Azure Managed Disks?

A

Standard or Premium

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are Azure Managed Disks?

A

simplifies disk management for Azure IaaS VMs by managing the storage accounts associated with the VM disks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Benefit(s) of Azure Managed Disks?

A
  1. No need to worry about Storage Account IOPS limits
  2. Simple and Scalable vM deployment
  3. better Reliability for Availability Sets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What performance storage tier is needed for SSD?

A

Premium

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the 2 Encryption options for Managed Disks?

A
  1. Storage Service Encryption (SSE) - Encryption at rest

2. Azure Disk Encryption (ADE) - OS and Data Disk Encryption

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Azure Cloud Shell?

A

The Azure Cloud Shell is a free Bash shell that you can run directly within the Azure portal. It has the Azure CLI preinstalled and configured to use with your account. Click the Cloud Shell button on the menu in the upper-right of the Azure portal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

CLI: Create a resource group

A

az group create –name –location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

CLI: Create a Linux VM with SSH keys

A

az vm create –resource-group myResourceGroup –name myVM –image UbuntuLTS –generate-ssh-keys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

CLI: Open Port

A

azure vm open-port –port –resourcegroup –name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

CLI: Remove all VM and related resources

A

az group delete –name ResourceGroup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

2 Type of Authentication for a Linux VM

A
  1. SSH Public Key

2. Password

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

PS: Log into Azure

A

Login-AzureRmAccount

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

PS: Create a Resource Group

A

New-AzureRmResourceGroup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

PS: Create a Subnet Config

A

New-AzureRmVirtualNetworkSubnetConfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

PS: Create a Virtual Network

A

New-AzureRmVirtualNetwork

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

PS: Create a Public IP

A

New-AzureRmPublicIpAddress

26
Q

PS: Create a Network Security Group

A

New-AzureRmNetworkSecurityGroup

27
Q

PS: Create a Network Security Group Rule

A

New-AzureRmNetworkSecurityRuleConfig

28
Q

PS: Create a network card

A

New-AzureRmNetworkInterface

29
Q

PS: Create a VM

A

New-AzureRmVM

30
Q

PS: Get Public IP of VM

A

Get-AzureRmPublicIpAddress

31
Q

PS: Create Virtual Machine Configuration

A

New-AzureRmVMConfig

32
Q

PS: Virtual Machine Configuration for OS

A

Set-AzureRmVMOperatingSystem

33
Q

PS: Virtual Machine Configuration for Image

A

Set-AzureRmVMSourceImage

34
Q

PS: Remove the resource group, VM, and all related resources.

A

Remove-AzureRmResourceGroup -Name myResourceGroup

35
Q

CLI: Create a Virtual network and subnet

A

az network vnet create \

- -resource-group myResourceGroup \
- -name myVnet \
- -address-prefix 192.168.0.0/16 \
- -subnet-name mySubnet \
- -subnet-prefix 192.168.1.0/24
36
Q

CLI: Create Public IP

A

az network public-ip create \

- -resource-group myResourceGroup \
- -name myPublicIP \
- -dns-name mypublicdns
37
Q

CLI: Create a network security group

A

az network nsg create \

- -resource-group myResourceGroup \
- -name myNetworkSecurityGroup
38
Q

CLI: Create Network Security Group Rule

A

az network nsg rule create \

- -resource-group myResourceGroup \
- -nsg-name myNetworkSecurityGroup \
- -name myNetworkSecurityGroupRuleSSH \
- -protocol tcp \
- -priority 1000 \
- -destination-port-range 22 \
- -access allow
39
Q

CLI: Show NSG

A

az network nsg show –resource-group myResourceGroup –name myNetworkSecurityGroup

40
Q

CLI: Create virtual nic

A

az network nic create \

- -resource-group myResourceGroup \
- -name myNic \
- -vnet-name myVnet \
- -subnet mySubnet \
- -public-ip-address myPublicIP \
- -network-security-group myNetworkSecurityGroup
41
Q

What is a fault domain?

A

Fault domains define a grouping of virtual machines that share a common power source and network switch. By default, the virtual machines that are configured within your availability set are separated across up to three fault domains. A hardware issue in one of these fault domains does not affect every VM that is running your app.

42
Q

What is an Update Domain?

A

Update domains indicate groups of virtual machines and underlying physical hardware that can be rebooted at the same time. During planned maintenance, the order in which update domains are rebooted might not be sequential, but only one update domain is rebooted at a time.

43
Q

Max number of fault domains?

A

3 per region

44
Q

Max number of Update domains?

A

Up to 20

45
Q

CLI: Create Availability Set

A

az vm availability-set create \

- -resource-group myResourceGroup \
- -name myAvailabilitySet
46
Q

CLI: Export as a Template

A

az group export –name myResourceGroup > myResourceGroup.json

47
Q

CLI: Create an Environment from a Template

A

az group deployment create \

- -resource-group myNewResourceGroup \
- -template-file myResourceGroup.json
48
Q

CLI: Log into Azure

A

azure login

49
Q

CLI: Upload Image to Azure

A

azure vm image create `

- -blob-url // `
- -os Linux
50
Q

CLI: Create VM from Image

A

azure vm create

51
Q

Tool Used to generalize Windows VMs?

A

Sysprep

52
Q

What is the Azure Load Balancer?

A

The Azure Load Balancer distributes traffic between multiple virtual machines.

53
Q

Default number of update domains?

A

5

54
Q

PS: Create Availability Set

A

New-AzureRmAvailabilitySet

55
Q

What are the 3 load balancing methods available in Azure?

A
  1. Failover
  2. Performance
  3. Round Robin
56
Q

What are virtual machine scale sets (vmss) in Azure?

A

VM Scale Sets enable you to deploy and manage multiple VMs as a set. Instead of provisioning multiple individual VMs, you provision a Scale Set based on an image, just like a regular VM. The Azure platform then provisions and de-provisions VMs based on that image as needed.

57
Q

PS: Create Auto Scale Rule

A

New-AzureRmAutoScaleRule

58
Q

PS: Create Auto Scale Profile

A

New-AzureRmAutoScaleProfile

59
Q

What are the 4 Options for Storage Replication?

A
  1. Locally Redundant
  2. Geo-Redundant
  3. Read-Access Geo Redundant
  4. Zone Redundant
60
Q

What is Azure Redis Cache?

A

It gives you access to a secure, dedicated Redis cache, managed by Microsoft, and accessible from any application within Azure. (Recommended)

61
Q

What is Azure In-Role Cache?

A

This feature enables you to create a cache that’s specific to a cloud service. The cache is hosted by instances of a web or worker role, and can only be accessed by roles that are operating as part of the same cloud service deployment unit. The cache is clustered, and all instances of the role within the same deployment unit that hosts the cache become part of the same cache cluster. However, this option is no longer recommended and is only provided to support existing applications that have been built to use it.

Use Azure Redis Cache instead

62
Q

What is Azure Managed Cache?

A

This service is based on the Azure Service Fabric Cache engine. It enables you to create a distributed cache that can be shared by loosely-coupled applications. The cache is hosted on high-performance servers running in an Azure datacenter. However, this option is no longer recommended and is only provided to support existing applications that have been built to use it. For all new development, use Azure Redis Cache instead