From the course: Kubernetes and Cloud Native Associate (KCNA) Cert Prep

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Practice questions

Practice questions

- All right, we are at the end of this lesson again. Let's do some practice questions. All right, question number one, which of the following should not be stored in a ConfigMap? Is that startup parameters, or directories containing config files, or passwords, or API keys? The correct answers are passwords and API keys, because these are sensitive values. Sensitive values should be stored in secret. In case you're wondering, directories containing config files, yes, you can create a complete directory and put it in a ConfigMap. It will just create multiple key-value pairs containing the contents of all the configuration. We haven't seen that, but it's definitely possible to sort it in a ConfigMap. Next question. Which type of volume should be used in the Pod spec if flexible, cloud-native access to storage is required? Would that be decoupled, or PersistentVolumeClaim, or would you set it to None, or to Storageclass? Well, the answer is PersistentVolumeClaim, because…

Contents