Implement IaaS solutions, provision vms Flashcards

1
Q

How to create VM in Portal?

A

Search for “Virtual Machines” in global search. Click Add in Top Menu

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

What is meant by Image Size

A

Select a VM size to support the workload that you want to run. The size that you choose then determines factors such as processing power, memory, and storage capacity. Azure offers a wide variety of sizes to support many types of uses. Azure charges an hourly price based on the VM’s size and operating system.

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

How are VMs charged

A

Amount is based on Size, Charged Hourly

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

What is Azure Spot Instance

A

Using Spot VMs allows you to take advantage of our unused capacity at a significant cost savings. At any point in time when Azure needs the capacity back, the Azure infrastructure will evict Spot VMs. Therefore, Spot VMs are great for workloads that can handle interruptions like batch processing jobs, dev/test environments, large compute workloads, and more.

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

What are Inbound port rules

A

These configuration allows access to VM from public internet.

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

Security recommendation for VM inbound ports?

A

Deny all and change source port for required ports, e. g. switch 22 for ssh to something else.

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

What is Azure Hybrid Benefit

A

With Azure Hybrid Benefit its possible to save money on new Windows VMs when using existing licenses, up to 49%

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

What is Port 3389 usually used for

A

RDP

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

What is usually the RDP port when unchanged

A

3389

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

How to connect to VM via RDP

A

Via RDP, its possible to download a RDP Client configuration with “Connect” button in Portal. Then use localhost\ and to login

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

Powershell to Create VM?

A

New-AzVm `

- ResourceGroupName "myResourceGroup" `
- Name "myVM" `
- Location "East US" `
- VirtualNetworkName "myVnet" `
- SubnetName "mySubnet" `
- SecurityGroupName "myNetworkSecurityGroup" `
- PublicIpAddressName "myPublicIpAddress" `
- OpenPorts 80,3389
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How to Create a ResourceGroup with Powershell

A

New-AzResourceGroup -Name something -Location EastUS

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

Get public Ip from VM

A

Get-AzPublicIpAddress -ResourceGroupName “myResourceGroup” | Select “IpAddress”

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

How to launch the Cloud Shell

A

Top right corner of portal

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

Common steps required to conect to a new vm

A

Create a new Rg if not present, create a new vm and assign it to the desired rg, open the rdp port, get the public ip addres and connect with rdp client

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

What are marketplace images

A

Marketplace contains images that can be used to create new vms

17
Q

How does every powershell command start to interact with vm images

A

Get-AzVM (ImagePublisher, ImageOffer, ImageSku)

-AzVm

can be Get or New

18
Q

What parameter can be used to perform a VM creation as Background Task

A

Add -AsJob to create command

19
Q

How to retrieve information from a powershell command that is running in background

A

Get-Job

20
Q

How to List VM sizes that are available options in one Location via Powershell

A

Get-AzVmSize -Location “EastUS”. All isted can be used in that region option during create.

21
Q

How to get VM Size from existing VM/resource

A

Get-AzVmSize -ResourceGroupName “Rg” -Name “Vm”

So again unique identifier required the command

22
Q

General Concept of Updating a VM via Powershell?

A

Store vm object into variable using Get-AzVM, then change its propierties using the variable. When done, use Update-AzVM

23
Q

Is it possible to Update a VM via Powershell while it is running?

A

Yes, its possible (E.g. Size is possible). But still silent reboot is done. When a size Option is not availble in the cluster, a relocation will happen. For some changes it is required to stop the vm (Stop-AzVM), do the update (Update-AzVM) and when done, start it again (Start-AzVM)

24
Q

What are the VM power states

A

Starting, Running, Stopping, Stopped, Deallocating, Deallocated (Removed from Hypervisor, not charged) AND “-“ for unknown

25
Q

Ways to administer resources/VMs

A

Resource Manager, PowerShell, Azure CLI, Azure REST API, Azure Client SDK, Azure VM Extensions
, Azure Automation Services

26
Q

What are resource manager templates

A

JSON Files that define the resources for a VM. CLI, PS, and Rest API can be used to automate processing

27
Q

What is Azure Client SDK

A

Azure SDK to integrate azure administration in various programming languages. For example c# nuget packagel Also for Java and other

28
Q

Suppose you want to run a network appliance on a virtual machine. Which workload option should you choose?
- General purpose

  • Compute optimized
  • Memory optimized
  • Storage optimized
A

Compute optimized virtual machines are designed to have a high CPU-to-memory ratio. Suitable for medium traffic web servers, network appliances, batch processes, and application servers.

29
Q

True or false: Resource Manager templates are JSON files?

A

True

30
Q

True or false: for security reasons, you must use an image from the official Azure Marketplace when creating a new virtual machine.

A

False, Azure lets you configure your virtual machines to meet your needs. This includes support for using your own VM images.

31
Q

What is the effect of the default network security settings for a new virtual machine?

  • Neither outbound nor inbound requests are allowed.
  • Outbound request are allowed. Inbound traffic is only allowed from within the virtual network.
  • There are no restrictions: all outbound and inbound requests are allowed.
A

Outbound requests are considered low risk, so they are allowed by default. Inbound traffic from within the virtual network is allowed. By placing a VM in a virtual network, the VM owner is implicitly opting-in to communication among the resources in the virtual network.

32
Q

Suppose you have several Linux virtual machines hosted in Azure. You will administer these VMs remotely over SSH from three dedicated machines in your corporate headquarters. Which of the following authentication methods would typically be considered best-practice for this situation?

  • Username and password
  • Private key
  • Private key with passphrase
A

Private key with passphrase

33
Q

When creating a Windows virtual machine in Azure, which port would you open using the INBOUND PORT RULES in order to allow remote-desktop access?

HTTPS

SSH (22)

RDP (3389)

A

RDP (3389)

34
Q

Suppose you have an application running on a Windows virtual machine in Azure. What is the best-practice guidance on where the app should store data files?

The OS disk (C:)

The Temporary disk (D:)

An attached data disk

A

An attached data disk, Dedicated data disks are generally considered the best place to store application data files. They can be larger than OS disks and you can optimize them for the cost and performance characteristics appropriate for your data.

35
Q

What is the final rule that is applied in every Network Security Group?

Allow All

Deny All

You configure the final rule to your needs

A

Deny All