1.3 - Containerized Solutions Flashcards

1
Q

Your company has deployed an Azure Kubernetes cluster named “cloudcluster”. The cluster is part of a resource group named “cloudgrp”. You have to deploy an application to the cluster using a deployment file named “appdeploy.yml”. Which of the following command would you use to deploy the application to the cluster?

A

kubectl apply -f appdeploy.yml

You have to use the kubectl command to work with a Kubernetes cluster.

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

You have to deploy an Azure Kubernetes cluster using the Azure command line interface. You have to complete the below snippet for this purpose. The details of the cluster are given below

a) Resource Group name – azuredemo
b) Cluster name – stagingcluster
c) Initial number of nodes in the cluster – 3
d) Monitoring should be enabled
e) Service Principal needs to be in place for the cluster

Fill Area 1, 2 and 3 in the picture

A

Area 1: aks create
Here we have to issue the “az aks create” command to create the cluster

Area 2: –node-count
Here we have to specify the number of initial nodes in the cluster to 3

Area 3: –enable-addons monitoring

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

What is the standard VM size that Azure wants to use when you create an AKS cluster?

A

Standard DS2

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

How many nodes does Microsoft recommend are minimum for an AKS cluster for resiliency? What is the minimum number of AKS nodes you can create using the Azure Portal?

A

3

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

How many vCPUs does a 5-node AKS cluster running using DS2 v2 instances have?

A

10 (DS2 is a 2 vCPU instance, and 5 of them make 10 vCPUs)

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

What is the name of the command line tool used to communicate with an AKS cluster?

A

kubectl

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

What does the command “kubectl apply -f azure-vote.yaml” do?

A

Executes the YAML file and deploys the code to the cluster

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

How do you instantiate the AKS Dashboard?

A

To start the Kubernetes dashboard, use the az aks browse command

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

Why do you need to install Docker on your local machine?

A

In order to create, develop and package docker images that can be pushed to the AKS cluster. You need docker on your local to create your own container images

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