1.8 - Pods, Services and Deployments

1.8 - Pods, Services and Deployments

University

6 Qs

quiz-placeholder

Similar activities

CCE Huawei Cloud Services

CCE Huawei Cloud Services

University

11 Qs

Optativa Cloud

Optativa Cloud

University

4 Qs

Section 2: Imperative Commands with Kubectl

Section 2: Imperative Commands with Kubectl

University

11 Qs

WWW Grundlagen

WWW Grundlagen

University - Professional Development

8 Qs

3. Section 5: Application Lifecycle Management (21-28)

3. Section 5: Application Lifecycle Management (21-28)

University

9 Qs

Tema 1 - AW - Parte 2

Tema 1 - AW - Parte 2

University

10 Qs

Server local & WordPress

Server local & WordPress

University - Professional Development

10 Qs

AL2TP

AL2TP

4th Grade - University

11 Qs

1.8 - Pods, Services and Deployments

1.8 - Pods, Services and Deployments

Assessment

Quiz

Computers

University

Hard

Created by

Jhonny Pong

Used 2+ times

FREE Resource

6 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which `kubectl` command is used to run a pod named `apache` using the image `httpd:latest`?

kubectl create pod apache --image=httpd:latest

k run apache --image=httpd:latest

k deploy apache --image=httpd:latest

kubectl run apache --image=nginx:latest

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which `kubectl` command is used to create a deployment named `apache` using the image `httpd:latest`?

kubectl run deploy apache --image httpd:latest

k create deployment apache --image=httpd:latest

kubectl create deploy apache --image httpd:latest

k deploy apache --image=httpd:latest

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which `kubectl` command is used to scale the `apache` deployment to 5 replicas?

k scale pod apache --replicas 5

k scale deploy apache --replicas 5

k create replicas apache --replicas 5

kubectl scale deploy nginx --replicas 5

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which `kubectl` command is used to switch the current context to `kubernetes-admin@kubernetes`?

kubectl context set kubernetes-admin@kubernetes

kubectl use-context kubernetes-admin@kubernetes

kubectl set-context kubernetes-admin@kubernetes

kubectl config use-context kubernetes-admin@kubernetes

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which `kubectl` command is used to expose a pod `nginx-pod` as a service named `nginx-service`?

k run pod nginx-pod --expose --name nginx-service

k expose deployment nginx-pod --name nginx-service

k expose pod nginx-pod --name nginx-service

k create service pod nginx-pod --name nginx-service

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which `kubectl` command is used to forward the local port 80 to the port 80 of the service `nginx-service`?

k port-forward pod/nginx-service 80:80

k expose svc/nginx-service --port=80 --target-port=80

k forward svc/nginx-service 80:80

k port-forward svc/nginx-service 80:80