H13-531_V3.0 practice questions, page 5 of 6, with answer review and explanations.
Question 21
When using a Dockerfile to build a container image, which of the following commands should be used if /tmp/test in the container needs to be mapped to the host?
VOLUME /tmp/test
ADD /tmp/test
CP /tmp/test
COPY /tmp/test
Question 22
In Kubernetes, pod probing can be performed before or after startup. Probing before startup prevents containers from being repeatedly restarted. Probing after startup prevents containers from exiting abnormally.
TRUE
FALSE
Question 23
Which of the following Kubernetes commands can be used to update an object? (Choose all that apply.)
kubectl patch
kubectl edit
kubectl apply
kubectl change
Question 24
In Kubernetes, if an object is created using a YAML file, which of the following statements about deleting this object is true?
When using a YAML file to create an object, you can use the YAML file or specify the object name to delete the object.
When using a YAML file to create an object, if you want to delete the object, you need to use the -f flag to specify the object and then delete it.
When using a YAML file to create an object, you can use the YAML file to delete it, but before that, you need to grant the execute permissions on the YAML file.
When using a YAML file to create an object, you need to use the same YAML file to delete the object.
Question 25
Which of the following statements about Kubernetes workflows are true? (Choose all that apply.)
kubelet creates pods as requested.
kube-scheduler finds out the best-fit worker node according to the requests stored in etcd and the kubelet status.
kube-apiserver receives pod creation requests and saves the requests in etcd.
controller-manager checks whether the created pod meets the requirements.