CompTIA Cloud+ (CV0-004)DeploymentHard
A cloud engineer is using a template to deploy a new virtual machine. The template specifies the operating system image, instance type, and network configuration. However, the engineer needs to provide different values for the VM's name and IP address for each deployment. Which feature of templates allows the engineer to customize these values without modifying the template file itself?
- AHardcoded values
- BOutput parameters
- CResource dependencies
- DInput parameters
Show answer & explanationAnswer & explanation
Correct answer: D. Input parameters
Input parameters (or template parameters/variables) allow users to specify custom values for specific properties (like VM name, IP address, instance count, etc.) at the time of deployment, without altering the underlying template file. This promotes template reusability and flexibility.
Why the other options are wrong
- A. Hardcoded values are fixed within the template and cannot be changed at deployment time, contradicting the requirement.
- B. Output parameters are used to export values from the deployed stack, not to customize input during deployment.
- C. Resource dependencies define the order in which resources are created, not for customizing values during deployment.
Template Input Parameters
Variables defined within an Infrastructure as Code (IaC) template that allow users to provide custom values at deployment time.
- Enhance template reusability and flexibility.
- Enable customization without modifying the template file.
- Can have default values and validation rules.
Memory trick: Templates Use Parameters for Customization.