Kcna Kubernetes And Cloud Native Associate · Free Practice Question Easy

Question 3

Which Kubernetes resource would you use to expose a set of related microservices as a single API by merging multiple API definitions into one?

  • A

    ConfigMap

  • B

    Deployment

  • C

    API Gateway

  • D

    Service

Reveal correct answer

Correct answer: C

A.

A ConfigMap is used to store non-sensitive configuration data in key-value pairs. It is not designed to act as an API Gateway or to merge multiple API definitions.

B.

A Deployment in Kubernetes is used to manage replicas of Pods, ensuring that a specified number of identical Pods are running at all times. While it is crucial for running applications, it is not designed to expose sets of related microservices as a single API.

C.

An API Gateway is a specialized layer that handles API-related concerns by aggregating various services into a single API. In the context of Kubernetes, an API Gateway can be implemented to merge multiple API definitions from different services into one, providing a single entry point for external clients. Other options are Kubernetes resources, but they don't serve the specialized function of aggregating multiple APIs into a single API.

D.

A Service in Kubernetes is a way to expose an application running in a set of Pods as a network service. While it does expose services for network access, it doesn't have the capability to merge multiple API definitions into a single API.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need