2.4 Containers & Kubernetes Essentials (Badge IBM)
2.4 Containers & Kubernetes Essentials (Badge IBM)
Final Exam
Question 1
1/1 point (graded)
What does the Docker CLI build command do?
It builds a Dockerfile.
Question 2
1/1 point (graded)
In this sample Dockerfile, what does the FROM instruction do?
FROM alpine:3.9
COPY . /app
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a764… 1/12
30/09/2021 22:16 Final Exam | Final Exam | Material didático CC0201EN | Cognitive Class
It defines the virtualized host operating system on which the container will run.
It defines the minimum version of the operating system for the docker build
command to use.
It defines the operating system on which the docker build command must be run.
Question 3
1/1 point (graded)
Containers include a guest operating system in every instance.
True
False
Question 4
1/1 point (graded)
In this sample docker build command, what does the -t option do?
docker build -t my-app:v1 .
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a764… 2/12
30/09/2021 22:16 Final Exam | Final Exam | Material didático CC0201EN | Cognitive Class
y pp
It indicates that the version “v1” of “my-app” should be used when building the
image.
It tags the current working directory as the target location for the image being
built.
Question 5
1/1 point (graded)
You use the docker push command to distribute an image to a registry.
True
False
Question 6
1/1 point (graded)
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a764… 3/12
30/09/2021 22:16 Final Exam | Final Exam | Material didático CC0201EN | Cognitive Class
Question 7
1/1 point (graded)
Which of the following are container runtimes? Select all that apply.
Docker
Rocket Ship
CRI-O
DRunner
Kubelet
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a764… 4/12
30/09/2021 22:16 Final Exam | Final Exam | Material didático CC0201EN | Cognitive Class
Question 8
1/1 point (graded)
Which of the following Kubernetes objects can you use to segregate a cluster by team or
project?
Namespaces
ConfigMaps
Kubernetes controllers
Volumes
Question 9
1/1 point (graded)
Which Kubernetes object provides updates to Pods and ReplicaSets?
Deployment
ConfigMap
Secret
Patch
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a764… 5/12
30/09/2021 22:16 Final Exam | Final Exam | Material didático CC0201EN | Cognitive Class
You have
You areused
taking1 "Final
of 2 attempts
Exam" as a timed exam. The timer on
the right shows the time remaining in the exam. To receive
credit
Enviarfor problems, you must select "Submit" for each
problem before you select "End My Exam". Show Less
Finalizar Minha Avaliação 0:34:19
Question 10
1/1 point (graded)
In this sample kubectl command, what does create do?
kubectl create -f pod.json
Question 11
1/1 point (graded)
How are ReplicaSets often created?
By Adding a ReplicaSet: on flag to the Dockerfile used to build the container image.
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a764… 6/12
30/09/2021 22:16 Final Exam | Final Exam | Material didático CC0201EN | Cognitive Class
Question 12
1/1 point (graded)
Which of the following Kubernetes objects are used to run applications? Select all that
apply.
Plugins
ConfigMaps
ResourceSets
Service bindings
Deployments
Question 13
1/1 point (graded)
Which of the following are used to provide ConfigMaps to Pods and Deployments? Select
all that apply.
String literals
YAML fi i fil
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a764… 7/12
30/09/2021 22:16 Final Exam | Final Exam | Material didático CC0201EN | Cognitive Class
YAML configuration files
You are taking "Final Exam" as a timed exam. The timer on
the right shows the time remaining in the exam. To receive
credit for problems,
Container you must select "Submit" for each
runtimes
problem before you select "End My Exam". Show Less
Finalizar Minha Avaliação 0:34:19
Service bindings
Kubernetes schedulers
Question 14
1/1 point (graded)
What Kubernetes capabilities enable an application to increase the number of Pods based
on traffic? Select all that apply.
Service binding
Question 15
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a764… 8/12
30/09/2021 22:16 Final Exam | Final Exam | Material didático CC0201EN | Cognitive Class
1/1You
point
are(graded)
taking "Final Exam" as a timed exam. The timer on
What doesshows
the right the following command
the time remaining do?exam. To receive
in the
creditget
kubectl forsecrets
problems, you must select "Submit" for each
--namespace=default
problem before you select "End My Exam". Show Less
Finalizar Minha Avaliação 0:34:19
Retrieves the secrets in the “default” namespace.
Retrieves the IBM Cloud IAM API key for your Kubernetes cluster.
Retrieves the binding.password values for the services bound to your Kubernetes
cluster.
Question 16
1/1 point (graded)
What is the Istio service mesh used for? Select all that apply.
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a764… 9/12
30/09/2021 22:16 Final Exam | Final Exam | Material didático CC0201EN | Cognitive Class
True
False
Question 18
1/1 point (graded)
OpenShift can be run in which of the following environments? Select all that apply.
On premise
Public cloud
Private cloud
Hybrid cloud
Question 19
1/1 point (graded)
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a76… 10/12
30/09/2021 22:16 Final Exam | Final Exam | Material didático CC0201EN | Cognitive Class
Istio
CRD
Question 20
1/1 point (graded)
Which of the following build strategies injects application source code into builder images
without having to write a Dockerfile?
Docker
Source-to-image
Custom build
Image stream
Webhook
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a76… 11/12
30/09/2021 22:16 Final Exam | Final Exam | Material didático CC0201EN | Cognitive Class
Question 21
1/1 point (graded)
Image streams contain complete image data.
True
False
https://courses.cognitiveclass.ai/courses/course-v1:IBMDeveloperSkillsNetwork+CC0201EN+2020_T2/courseware/59588ad7e0a84a39b30a76… 12/12