Question 91 · 540 in bank
HOTSPOT - You have an Azure Kubernetes Service (AKS) pod. You need to configure a probe to perform the following actions: ✑ Confirm that the pod is responding to service requests. ✑ Check the status of the pod four times a minute. ✑ Initiate a shutdown if the pod is unresponsive. How should you complete the YAML configuration file? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

This is an interactive task on the real exam — a drag-and-drop, hotspot or ordering question. There is nothing to select here, so the answer is shown below for reference.
Show the answer figure
Answer: See figure below
Explanation
Box 1: readinessProbe: For containerized applications that serve traffic, you might want to verify that your container is ready to handle incoming requests. Azure Container Instances supports readiness probes to include configurations so that your container can't be accessed under certain conditions. Incorrect Answers: livenessProbe: Containerized applications may run for extended periods of time, resulting in broken states that may need to be repaired by restarting the container. Azure Container Instances supports liveness probes so that you can configure your containers within your container group to restart if critical functionality is not working. Box 2: periodSeconds: 15 - The periodSeconds property designates the readiness command should execute every 15 seconds. Reference: https://docs.microsoft.com/en-us/azure/container-instances/container-instances-readiness-probe
Source: Adapted from community discussion — k8smaster
References



