0
0
Kubernetesdevops~20 mins

Observability with service mesh in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Service Mesh Observability Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
What is the output of this Istio command?
You run the command istioctl proxy-status in your Kubernetes cluster. What does this command show?
Kubernetes
istioctl proxy-status
ADisplays the current CPU and memory usage of Istio components.
BLists all running pods in the cluster with their IP addresses.
CShows the synchronization status between Istio control plane and Envoy proxies.
DShows the logs of the Istio ingress gateway.
Attempts:
2 left
💡 Hint
Think about what 'proxy-status' might mean in the context of a service mesh.
🧠 Conceptual
intermediate
1:30remaining
Why use a service mesh for observability?
Which of the following best explains why a service mesh improves observability in microservices?
AIt automatically collects and reports metrics, logs, and traces from service-to-service communication.
BIt replaces the need for Kubernetes monitoring tools like Prometheus.
CIt encrypts all data stored in the cluster for security.
DIt schedules pods to optimize resource usage.
Attempts:
2 left
💡 Hint
Observability means understanding what happens inside your system.
Configuration
advanced
2:30remaining
Configure Istio to enable distributed tracing
Which YAML snippet correctly enables distributed tracing in Istio by configuring the istio-tracing addon with Jaeger?
A
apiVersion: v1
kind: ConfigMap
metadata:
  name: istio-tracing
  namespace: istio-system
data:
  enabled: "false"
B
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  components:
    ingressGateways:
    - name: istio-ingressgateway
      enabled: false
C
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: tracing
spec:
  hosts:
  - "*"
  http:
  - route:
    - destination:
        host: jaeger
D
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  addonComponents:
    tracing:
      enabled: true
      k8s:
        env:
        - name: JAEGER_ENDPOINT
          value: "http://jaeger-collector.istio-system:14268/api/traces"
Attempts:
2 left
💡 Hint
Look for enabling tracing in IstioOperator with correct environment variables.
Troubleshoot
advanced
2:00remaining
Troubleshoot missing telemetry data in Istio
You notice no telemetry data appears in your monitoring dashboard after deploying Istio. Which of the following is the most likely cause?
AThe application containers are running with root user.
BEnvoy sidecar proxies are not injected into the application pods.
CThe cluster nodes have insufficient CPU resources.
DThe Kubernetes API server is down.
Attempts:
2 left
💡 Hint
Telemetry depends on proxies capturing traffic.
🔀 Workflow
expert
3:00remaining
Order the steps to enable observability with Istio service mesh
Arrange these steps in the correct order to enable observability features like metrics and tracing in an Istio-enabled Kubernetes cluster.
A1,2,3,4
B2,1,3,4
C1,3,2,4
D3,1,2,4
Attempts:
2 left
💡 Hint
Think about what must be ready before deploying apps and collecting data.