H13-531_V3.0

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?

  1. VOLUME /tmp/test
  2. ADD /tmp/test
  3. CP /tmp/test
  4. 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.

  1. TRUE
  2. FALSE

Question 23

Which of the following Kubernetes commands can be used to update an object? (Choose all that apply.)

  1. kubectl patch
  2. kubectl edit
  3. kubectl apply
  4. 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?

  1. When using a YAML file to create an object, you can use the YAML file or specify the object name to delete the object.
  2. 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.
  3. 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.
  4. 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.)

  1. kubelet creates pods as requested.
  2. kube-scheduler finds out the best-fit worker node according to the requests stored in etcd and the kubelet status.
  3. kube-apiserver receives pod creation requests and saves the requests in etcd.
  4. controller-manager checks whether the created pod meets the requirements.