Azure Containers Flashcards

1
Q

What is a container?

A

Package all code and dependencies together in 1 image which can be deployed and used anywhere that supports containers.

The difference between traditional deployments and using containers is that traditional deployments can take hires and a lot of configuration and manual steps whereas containers can be deployed in a few minutes with no manual steps and only optional configuration to set variables in the container runtime

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

What image options are there to deploy containers?

A
  • Azure kubernetes service
  • azure container instances
  • azure container apps
  • service fabric cluster
  • deploy a vm and manage docker on that machine yourself to run your container
  • app service web app option does have a docker container option to pass your application code to it
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is azure container instances?

A

A service which allows you to deploy single instances of an image on azure. This is not good for production as they are single instances without redundancy.

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

What are azure container apps?

A

It’s somewhere between the complexity of AKS and the simplicity of azure container instances. azure container apps are more robust than container instances.

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

What is service fabric cluster?

A

It’s another service which has a container option however this is not on the exam.

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

How Are ACI azure container instances linked to burst scaling?

A

Burst scaling uses ACI azure container instances to horizontally scale during burst scaling.

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

How to create an ACI azure container instance?

A

Create a resource->create container instance->add subscription, resource group,region,name,vm size and the image along with the restart policy, any networking options and tags.

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

What are the limitations of an ACI azure container instances?

A
  • there is very little in terms of settings or configuration
  • no scaling possible
    Only really good for poc demos and tests etc.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How can you scale an ACI azure container instances?

A

Deployed ACI azure container instances are immutable but you can create a new container with a larger sized vm to give you container more resources.

This is a hack mind.

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

What are ACI container groups?

A

A container group in Microsoft Azure is a collection of containers that runs on the same host. The resources, storage volumes, local network, and lifespan of a Azure container group are all shared by the containers in the group. In concept, it is analogous to a Kubernetes pod though without the capacity to scale horizontally.

An example could be a web front end accessible from the public internet which can communicate with a backend container which is not accessible from the public internet.

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

What is a virtual kubelet?

A

Kubelet plays an essential role in the Kubernetes framework, managing and coordinating pods and nodes. Its features include pod deployment, resource management, and health monitoring, all contributing considerably to a Kubernetes cluster’s operational stability.

Virtual Kubelet is an open-source Kubernetes kubelet implementation that masquerades as a kubelet. This allows Kubernetes nodes to be backed by Virtual Kubelet providers such as serverless cloud container platforms.

Virtual kubelets allow an AKS cluster to temporarily adopt and control burst scaled container instances.

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

What are

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

What bash commands are used to deploy the container group defined in an arm template using the azure cli tool?

A

Create a resource group:

az group create —name myRg —location eastus

Deploy the arm template to the created resource group:

az deployment group create —resource-group myRg —template-file myArm.json

Verify the deployment in the azure portal or using:

az container show —resource-group myRg —name myContainerGroup —output table

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

What are azure container apps?

A

Serverless containers, with some scalability of AKS but much less of its complexity.

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

What options are available when creating a container app?

A

Very few.

  • name
  • region
  • subscription
  • the image source
  • number of cores and memory available
  • http ingress enabled
  • Use an existing, managed vnet
  • enable zone redundancy
  • which logs analytics workspace to use
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What’s the difference between and ACI and an azure container app?

A

Once deployed there are more management options and services available in the container app such as secrets, http ingress traffic options, domains, health probes, environment variables, scaling options, authentication options etc.

Is simplified compared to AKS but less restrained than ACI.

17
Q

What is azure container registry?

A

It’s a private registry to store images for containers. It is private and has authentication and permission management, it supports automated deployment, version control, redundancy via availability zones (in premium plans)

18
Q

What is the difference between basic, premium and standard azure container registry plans?

A

Basic and standard are the same features but standard offers higher storage and bandwidth. Premium offers the most storage, bandwidth and concurrent operations for high volume scenarios S well as geo replication , signing images for trustable downloads and integration with private link and private endpoints to directly pull images with single purpose network connections and therefore greater security.

19
Q

Can you run containers on windows home edition?

A

No, you need windows professional or enterprise editions.

This means that when creating a container you must bear it in mind .

20
Q

When developing a container app in visual studio, how do you publish your image to a registry?

A

From the build menu drop down select publish and follow the wizard.

You can deploy from this menu directly to an azure container app which is nice.

It will build and then if the build is successful it will publish up your targeted location.

21
Q

Why might you get a 401 error when accessing the registry menu in the blade of the azure portal container registry ui?

A

You probably need to assign yourself at least reading permissions for the registry using the blades Access control IAM menu and add reader access to yourself.

22
Q

How to push a container images to container registry using powershell?

A

Connect-AzAccount

Get-AzSubscription

Set-AzContext —subscription <the></the>

Connect-AzContainerRegistry —name <registry></registry>

Note if login succeeded message doesn’t appear then you may need to go to settings-> access keys from the blade menu of the container registry and check ‘Admin User’ checkbox

docker pull nginx

docker run -it —rm -p 80:8080 nginx

Goto localhost:8080 to check its working

docker tag nginx <your></your>

docker push <your></your>