Exam CKAD Topic 2 Question 207 Discussion
Actual exam question for Linux Foundation's CKAD exam
Question #: 207
Topic #: 2
Question #: 207
Topic #: 2
You are developing a microservices application and want to deploy it to Kubernetes using Helm. You have two services: 'user-service and 'order-service. The 'order-service depends on the "user-service'. How would you use Helm to manage these deployments, ensuring that the 'order- service' only starts after the 'user-service' is successfully deployed and running?
Suggested Answer:
See the solution below with Step by Step Explanation.
Explanation:
Solution (Step by Step) :
1. Create a Helm Chart for Each Service:
- 'user-service' chart:
- Create a 'values.yamr file for the 'user-service' chart.
- Define the container image, resources, and any other necessary configurations for the 'user-service'.
- 'order-service' chart:
- Create a 'values-yamr file for the 'order-service' chart
- Define the container image, resources, and any other necessary configurations for the 'order-service'
- In tne 'values.yamr, add a dependency on the 'user-service' chart.

2. Configure Helm for Dependency Management: - Use the '-dependency-update' flag to ensure that Helm automatically updates the 'user-service chart before deploying the 'order-service' bash helm dependency update order-service 3. Deploy the Services Using Helm: - Deploy the 'user-service chart: bash helm install user-service Juser-service - Deploy the 'order-service' chart: bash helm install order-service ./order-service - Helm will automatically handle the dependency between the services, ensuring that the 'user-services is deployed before the 'order-service' 4. Verify Deployment and Dependency: - Use ' kubectl get pods -l app=user-service' and 'kubectl get pods -l app=order-service' to verify that the pods are running. - You Should observe that the 'user-service' pods are up and running before the 'order-services pods start. - You can also use 'kubectl describe pod' to see the pod events and confirm that the 'order-service' pod is waiting for the 'user-service' to be ready before starting.,
Explanation:
Solution (Step by Step) :
1. Create a Helm Chart for Each Service:
- 'user-service' chart:
- Create a 'values.yamr file for the 'user-service' chart.
- Define the container image, resources, and any other necessary configurations for the 'user-service'.
- 'order-service' chart:
- Create a 'values-yamr file for the 'order-service' chart
- Define the container image, resources, and any other necessary configurations for the 'order-service'
- In tne 'values.yamr, add a dependency on the 'user-service' chart.

2. Configure Helm for Dependency Management: - Use the '-dependency-update' flag to ensure that Helm automatically updates the 'user-service chart before deploying the 'order-service' bash helm dependency update order-service 3. Deploy the Services Using Helm: - Deploy the 'user-service chart: bash helm install user-service Juser-service - Deploy the 'order-service' chart: bash helm install order-service ./order-service - Helm will automatically handle the dependency between the services, ensuring that the 'user-services is deployed before the 'order-service' 4. Verify Deployment and Dependency: - Use ' kubectl get pods -l app=user-service' and 'kubectl get pods -l app=order-service' to verify that the pods are running. - You Should observe that the 'user-service' pods are up and running before the 'order-services pods start. - You can also use 'kubectl describe pod' to see the pod events and confirm that the 'order-service' pod is waiting for the 'user-service' to be ready before starting.,
by Jerome at Jul 27, 2026, 02:08 PM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).