DevOps- test - K8s - Part 1
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Hard
Intern undefined
Used 3+ times
FREE Resource
Student preview

40 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which field in a Pod YAML definition specifies the container image to use?
spec.containers.image
metadata.image
spec.image
containers.image
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command is used to create a Pod from a YAML file?
kubectl create -f pod.yaml
kubectl run pod.yaml
kubectl apply -f pod.yaml
kubectl start pod.yaml
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if a field is incorrectly specified in a YAML file while creating a Pod?
The Pod will be created with default values
Kubernetes will ignore the incorrect field
Kubernetes will throw a validation error
The Pod will be created but in a CrashLoopBackOff state
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command would you use to add a label to an existing Pod?
kubectl label pod mypod app=frontend
kubectl annotate pod mypod app=frontend
kubectl apply label pod mypod app=frontend
kubectl set label pod mypod app=frontend
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a key characteristic of Kubernetes labels?
They must be unique across the entire cluster
They can be used to select a group of objects
They are automatically applied by Kubernetes
They are used for storing secrets
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you define the number of replicas in a Deployment YAML file?
How do you define the number of replicas in a Deployment YAML file?
spec.template.spec.replicas
spec.replicas
metadata.replicas
spec.template.replicas
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command scales a Deployment to 5 replicas?
kubectl scale deployment mydeployment --replicas=5
kubectl set replicas deployment mydeployment 5
kubectl apply deployment mydeployment --replicas=5
kubectl replicate deployment mydeployment 5
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Other
20 questions
Black History Month Trivia Game #1
Quiz
•
Professional Development
100 questions
Screening Test Customer Service
Quiz
•
Professional Development
20 questions
90s Cartoons
Quiz
•
Professional Development
10 questions
Reading a ruler in Inches
Quiz
•
4th Grade - Professio...
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
12 questions
Valentines Day Trivia
Quiz
•
Professional Development