The service mesh solution in SAP BTP, Kyma runtime is based on Istio, which is one of the most popular service mesh solutions. Istio uses the Sidecar proxy pattern, which means that a proxy is deployed as a sidecar container next to each service. This way, the proxy can intercept and manage the traffic between the services, without requiring any changes in the application code. The proxy also communicates with the Istio control plane, whichprovides configuration and policies for the service mesh. The other options are not valid proxy patterns for the service mesh solution in SAP BTP, Kyma runtime. References: Discovering the Service Mesh - SAP Learning, Istio Documentation - What is Istio?
Question 2
Which kubectl command lists pods with the exact label "env-dev"?
Options:
A.
kubectl get pods -L env
B.
kubectl get pods -I env
C.
kubectl get pods - env=dev
D.
kubectl get pods -L env-dev
Answer:
C
Explanation:
Explanation:
The kubectl command to list pods with the exact label “env-dev” is kubectl get pods -l env=dev. The -l or --selector flag allows you to filter pods by label selectors, which are key-value pairs that are attached to pods. The = operator matches pods that have the exact label value specified. The -L or --label-columns flag adds a column with the value of the specified label(s) to the output, but does not filter the pods. The -I or --ignore-not-found flag returns an exit code of 0 when no resources are found, but does not affect the output. The -l env-dev flag is invalid, as it does not specify a label value. References: 6, 7, 9
Question 3
Which command lists services in the current namespace?
Options:
A.
kubectl get services
B.
kubectl print services
C.
kubectl show services
D.
kubectl list services
Answer:
A
Explanation:
Explanation:
The command kubectl get services lists all the services in the current namespace1. The get command is used to display one or more resources in Kubernetes2. The services argument specifies the type of resource to list. To list services in a differentnamespace, you can use the --namespace or -n flag3. References: Kubectl commands to list services, deployments and pods from namespace …, kubectl Cheat Sheet | Kubernetes, How to get the current namespace of current context using kubectl - Stack Overflow