Implementing DevOps Solutions and Practices Using Cisco Platforms (DEVOPS) — Question 28

Which Kubernetes object is used to create a ClusterIP or NodePort?

Answer options

Correct answer: A

Explanation

The correct answer is A, service, as it is specifically designed to expose applications running on a set of Pods as a network service. The other options, such as pod and deployment, are used for managing application containers and their lifecycle but do not provide the networking features associated with ClusterIP or NodePort.