VCP-CMA 2024 Question 235
Select 3A cloud administrator is tasked with deploying a virtual machine (VM) using VMware vRealize Automation. The deployment requires a custom configuration to install a web server and configure its homepage. The administrator decides to use CloudConfig with Cloud-Init during the blueprint design. Which of the following configurations must the administrator include in the CloudConfig section to achieve this?
- A
A package installation command to install the web server
- B
A command to start the web server service after installation
- C
A user creation script to add an administrative user to the VM
- D
A network configuration to define a static IP for the VM
- E
A script to customize the homepage content of the web server
Show answer and explanation
Correct answers: A, B, E
Explanation
To customize a deployment using CloudConfig with Cloud-Init, the administrator must include the necessary configurations to install the web server, ensure the service is started, and apply the required customizations (e.g., modifying the homepage). User and network configurations, while achievable through CloudConfig, are not relevant to this specific scenario.
- A. Correct.
Correct: Installing the web server package (e.g., Apache or Nginx) is essential for setting up the web server. This is a key step that can be achieved using CloudConfig.
- B. Correct.
Correct: After the installation, starting the web server service ensures it is running and ready to serve requests. This can also be specified in CloudConfig.
- C. Incorrect.
Incorrect: While adding users can be done via CloudConfig, it is unrelated to the task of setting up a web server and customizing the homepage.
- D. Incorrect.
Incorrect: Network configuration can be performed in CloudConfig, but it is unrelated to the specific objective of installing and configuring a web server.
- E. Correct.
Correct: Customizing the homepage is directly related to the task. CloudConfig can include scripts to modify webpage content after the web server is installed.