Which of the following is not a stop on the cloud native trailmap?
Correct Answer: A
https://github.com/cncf/landscape#trail-map
Question 97
You are building a cloud-native application that uses a combination of Kubernetes, Istio, and Prometheus. You want to ensure that your application's logs, metrics, and traces are correlated for easy troubleshooting. What approach would you take to achieve this correlation?
Correct Answer: B
The correct answer is B . Istio's Mixer allows you to integrate Jaeger with Istio and Prometheus. This integration enables you to enrich tracing data with relevant metrics and log information captured from Istio's traffic management capabilities. This approach provides a unified platform for correlating logs, metrics, and traces. The other options are not as effective for achieving correlation: A : This approach focuses only on logs and does not provide a way to link logs to metrics or traces. C : While Istio can capture logs, sending them to Prometheus is not an ideal solution for correlation. D : A centralized logging system like Fluentd can collect logs, but it does not inherently provide mechanisms to correlate them with metrics or traces. E : Manually correlating logs, metrics, and traces using 'kubectl logs is tedious and prone to errors, especially in a dynamic environment like Kubernetes.
Question 98
You are deploying a microservices application in Kubernetes. Each microservice has its own deployment and service. How can you enforce network policy rules to restrict communication between these microservices, allowing only authorized communication?
Correct Answer: D
The most effective way to enforce network policy rules for microservices in Kubernetes is to use network policies. Network policies allow you to define specific rules for communication between pods or groups of pods. By creating network policies, you can specify which pods are allowed to communicate with each other, based on their labels, namespaces, or other criteria. This allows you to restrict communication between microservices, ensuring that only authorized communication is allowed. While namespaces can help to isolate microservices logically, they do not provide granular network control. Configuring ports and services can restrict access to specific services, but it does not provide the level of control needed to enforce communication rules between microservices.
Question 99
Your application relies on a backend database service. Using Istio, you want to configure a circuit breaker pattern to prevent cascading failures if the database becomes unresponsive. How would you implement this?
Correct Answer: A
Istio's VirtualService and DestinationRule features allow you to configure fallback services. In the case of the database being unavailable, you can define a fallback service or mechanism to handle the request. Option B helps test circuit breaker behavior but doesn't implement it. Option C could be used for retries, but doesn't address the circuit breaker pattern. Option D is related to request timeouts, not circuit breaking. Option E is a manual approach, while Istio provides a more integrated solution.
Question 100
Explain the difference between a container image and a container runtime?
Correct Answer: A
A container image is a blueprint for creating a container, while a container runtime is the software that executes the container. A container image contains all the necessary components, libraries, and dependencies to run an application in a container. It's a snapshot of a specific point in time. Container runtimes, such as Docker, containerd, or CRI-O, are responsible for loading the image, creating a container, and managing its lifecycle. They provide the environment and resources for the container to run.