VCP-CMA 2024 Question 234
Select 2You are deploying a virtual machine using vRealize Automation and want to configure the hostname, install specific packages, and set up a user with SSH access during the initial boot process. Which of the following methods can you use to achieve this by customizing the deployment with CloudConfig/Cloud-Init?
- A
Include a CloudConfig section within the vRealize Automation blueprint to define the desired configurations.
- B
Use a custom PowerCLI script to modify the virtual machine after deployment.
- C
Embed a YAML-based Cloud-Init configuration in the vRealize Automation blueprint.
- D
Manually log in to the virtual machine after deployment and make the required changes.
- E
Attach a pre-configured ISO file containing the Cloud-Init configuration during deployment.
Show answer and explanation
Correct answers: A, C
Explanation
CloudConfig/Cloud-Init is a powerful tool for customizing virtual machine deployments in vRealize Automation. By including a CloudConfig section or embedding a YAML-based Cloud-Init configuration directly in the blueprint, you can automate tasks such as hostname configuration, package installation, and user setup. These methods align with the principles of automation and are directly supported by vRealize Automation, unlike manual or external scripting approaches.
- A. Correct.
Correct. vRealize Automation supports including a CloudConfig section in the blueprint to configure guest OS settings during deployment. This is a valid and automated method to customize deployments.
- B. Incorrect.
Incorrect. While PowerCLI can be used for automation, it is not related to CloudConfig or Cloud-Init and does not integrate with vRealize Automation's native capabilities for initial customization.
- C. Correct.
Correct. Embedding a YAML-based Cloud-Init configuration in the blueprint is a valid way to customize deployments. Cloud-Init uses YAML syntax to define configurations that are applied during the initial boot process.
- D. Incorrect.
Incorrect. Manually logging in and applying changes is not automated and does not leverage CloudConfig/Cloud-Init. This approach contradicts the automation principles of vRealize Automation.
- E. Incorrect.
Incorrect. Attaching an ISO file is not a supported or recommended method for using Cloud-Init with vRealize Automation. The preferred method is embedding configurations directly into the blueprint.