Which `kubectl` command is used to run a pod named `apache` using the image `httpd:latest`?
1.8 - Pods, Services and Deployments

Quiz
•
Computers
•
University
•
Hard
Jhonny Pong
Used 2+ times
FREE Resource
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
10 questions
Preguntas sobre Docker Labs

Quiz
•
University
10 questions
Semana 6 - SA B

Quiz
•
University
8 questions
Big Data Analytics Introduction

Quiz
•
University - Professi...
10 questions
S04 - Big Data Analytics

Quiz
•
University
9 questions
Week 9 - Big Data Streaming

Quiz
•
University
6 questions
Big Data Analytics - Week 3 Data Streaming

Quiz
•
University - Professi...
9 questions
Parcial N°1 PP2-2024

Quiz
•
University
10 questions
Voyaging the Cloud Native Seas | Quiz

Quiz
•
University - Professi...
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade