Compute Services Flashcards

1
Q

What are the 3 main compute options?

A

Virtual machines
Containers
Azure functions

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

What is a virtual machine and what is the ideal use case?

A

A virtual machine is infrastructure as a service where you can use a virtual server. You can customise the software running it. It is ideal for when you want:
Total control of the OS
The ability to run custom software
To use custom hosting configs.

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

Despite not needing to buy and maintain physical hardware, what do you still need to do on an ongoing basis?

A

Configure, update and maintain the software that runs on VMs

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

How can you rapidly deploy a VM?

A

Make use of a VM image - a template to create a VM that may include OS, development tools or web hosting environments.

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

What is a VM scale set?

A

A VM scale sets let you create and manage a group of identical, load-balanced VMs.

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

What are VM availability sets for and in what 2 ways can they be grouped?

A

Availability sets are another tool to help build resiliency and availbility into your cloud services. They’re designed to stagger updates and have varied power and network connectivity so you don’t lose all VMs with a single failure.

They can be grouped by:
Update domain - this groups VMs that can be rebooted at the same time. This allows you to apply updates while knowing that only one group will be offline at a time.

Fault domain - groups CMS by common power source and network switch.

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

What are 4 common use cases for using VMs?

A

During testing and development - easily create different OS and app configs

While running apps in the cloud - huge economic benefits to handling demand

When extending your datacenter to the cloud e.g. to extend the capabilities of any on prem infra.

During disaster recover - If a primary, on prem datacenter goes down then you can rapidly deploy critical apps in the cloud and then shut down when the on prem is back online.

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

What specs can you request in a VM resource?

A

Size (purpose, number of cores, RAM)
Storage (hard disk drives, SSDs)
Networking (virtual network, public IP)

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

What is Azure Virtual Desktop?

A

A desktop and application virtualisation service that runs on the cloud. You can use the cloud-hosted version of Windows from any location.

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

What are the benefits of Azure Virtual Desktop?

A

Security - no files are stored and can be accessed locally using Azure Active Directory and multi-factor authentication
Access - access the files from any device with internet
Savings - you can have multiple users on the same VM

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

What are containers and why are they useful?

A

Containers are virtualisation environments that allow you to run multiple instances of an application on a single host machine. Virtual machines on their own can only run with one OS/ On VMs you have to maintain the OS whereas with containers.

Furthermore, typically, a single app isn’t going to utilise a VM more than 10% which is a waste of money. You can deploy multiple apps in different OSs and drive up the VM utilisation. The boundary between apps can partition CPU and storage but it’s not a security boundary.

Large apps are moving towards providing microservices within them. E.g. Search, customer service, streaming. These might all be built in different languages therefore deployment can become complex. You can use docker containers to deploy each microservice in.

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

What is Kubernetes?

A

Kubernetes is a container orchestrator meaning they have an API that you can push your containers to and they will push them onto VMs in a much more efficient manor.

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

What are Azure spot VMs?

A

If you are processing a bunch of records, for example, or doing a job that can be interrupted at any time then spot instances allow you to make use of Azure’s available capacity at a discount. Azure will kick you off however if the VMs are needed elsewhere..

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

How long can you reserve an instance for?

A

1 or 3 years

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

What are good solution design principles for maximising availability in azure?

A

Maximising the chance that apps are available when user need them. Use availability sets and scale sets. You can create a scale set and distribute an app across multiple AZs.

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

What are good solution design principles for maximising scalability in azure?

A

Ensuring you can handle a growth in users, traffic or data size without no impact on performance. Increase VM size, use scale sets or load balancers

17
Q

What is vertical and horizontal scaling?

A

Vertical is scaling up the VM by it’s size, power, memory etc.
Horizontal is deploying more instances which is easier, doesn’t have limits and improves availability.

18
Q

How do Load Balancers help with resiliency?

A

Load balancers will detect if there’s a fault with a server and not send requests to it. Instead it will send traffic to other instances.

19
Q

What can you use to keep costs down

A

Auto scaling (elasticity), reservations and spot instances

20
Q

What are features of AKS (Azure Kubernetes Service)?

A

Auto scaling
Service discover - so microservices can find one another
Load balancing
Self healing - conducts health checks and replaces failing instances
Zero downtime deployments - release new versions with no downtime

21
Q

What is meant by “serverless” development?

A

No visibility of infrastructure, only focus on code. You only pay for use and incl. scaling. You pay for requests and not for servers. For AWS, this is AWS Lambda. In Azure this is Azure Functions.

22
Q

What is charged for in Azure Functions?

A

Number of requests, duration of requests, memory consumed.