2V0-71.23 Question 211
Single answerYou are managing a Kubernetes environment using VMware Tanzu and want to add new functionality to your cluster using Tanzu's package management feature. You need to deploy a package, ensure its dependencies are met, and manage its lifecycle. What is the correct sequence of steps you should follow to achieve this?
- A
Use the 'tanzu package available list' command to view available packages, then use 'tanzu package install' to deploy the package.
- B
Install a PackageRepository first using 'tanzu package repository add', then use 'tanzu package available list' to view packages and 'tanzu package install' to deploy the desired package.
- C
Directly download the package configuration from the package provider and apply it using 'kubectl apply'.
- D
Manually verify dependencies of the package and install them before deploying the package using 'tanzu package install'.
Show answer and explanation
Correct answer: B
Explanation
Tanzu's package management simplifies the deployment and lifecycle management of packages in Kubernetes. The correct workflow involves adding a PackageRepository to make packages available, listing available packages, and then installing the desired package. This approach ensures that the dependencies are resolved and the package lifecycle is managed efficiently through the Tanzu CLI.
- A. Incorrect.
This option is incorrect because it skips the required step of adding a PackageRepository, which is necessary to make the packages available for installation.
- B. Correct.
This option is correct because Tanzu's package management requires you to first add a PackageRepository to make the desired packages available. After that, you can view available packages using 'tanzu package available list' and deploy them with 'tanzu package install'.
- C. Incorrect.
This option is incorrect because Tanzu's package management uses its own CLI commands for managing packages, and directly applying configurations with 'kubectl apply' bypasses the benefits of Tanzu's package lifecycle management.
- D. Incorrect.
This option is incorrect because Tanzu package management automatically handles dependency resolution for packages. Manually verifying dependencies is not required.