Kubernetes and Cloud Native Associate (KCNA) — Question 155
How can you extend the Kubernetes API?
Answer options
- A. Adding a CustomResourceDefinition or implementing an aggregation layer.
- B. Adding a new version of a resource, for instance v4beta3.
- C. With the command kubectl extend api, logged in as an administrator.
- D. Adding the desired API object as a kubelet parameter
Correct answer: A
Explanation
The correct answer is A because extending the Kubernetes API can be achieved by adding CustomResourceDefinitions or implementing an aggregation layer, which allows for more complex API structures. Options B, C, and D are incorrect as simply adding a new version does not extend the API, the kubectl command mentioned does not exist, and kubelet parameters are not a method for extending the API.