Kcna Kubernetes And Cloud Native Associate · Free Practice Question Medium

Question 6

Your organization is shifting towards a cloud-native architecture and is exploring options for a central logging and monitoring solution. Which of the following is the best approach for implementing a unified logging solution for cloud-native applications?

  • A

    Use an API gateway to capture logs from incoming requests and send them to a central location.

  • B

    Use native logging mechanisms provided by each cloud provider where your applications are hosted.

  • C

    Use a log shipper like Fluentd to send logs to a central database.

  • D

    Implement custom logging within each microservice to write logs to a shared volume.

Reveal correct answer

Correct answer: C

A.

An API gateway might capture incoming request logs but won't cover all types of logs that might be generated by microservices.

B.

Using native logging mechanisms from each cloud provider would result in a fragmented logging solution that's hard to manage and analyze.

C.

A log shipper like Fluentd can aggregate logs from various sources, including multiple clouds and on-premises resources, and send them to a central database. This approach is scalable and aligns well with cloud-native principles.

D.

Custom logging within each microservice would require additional effort and might not be as reliable or unified as other options.

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