VCP-CMA 2024 Question 212
Select 3You are tasked with creating a VMware Aria Automation template to deploy a virtual machine that requires an NSX-T On-Demand network and custom inputs. The template must ensure the network is dynamically created during deployment. Which YAML syntax and constructs are required to define the On-Demand network in the template?
- A
Use the 'type: Cloud.NSX.Networks' with the 'onDemand: true' property.
- B
Include the 'properties: networkType: routed' under the network resource.
- C
Define an input property referencing the network resource using 'inputs: networkName'.
- D
Specify 'type: Cloud.NSX.Network' and set the 'existing: true' property.
- E
Add a dependency on the network resource in the virtual machine resource.
Show answer and explanation
Correct answers: A, B, E
Explanation
To create an NSX-T On-Demand network in a VMware Aria Automation template, you must use the 'type: Cloud.NSX.Networks' construct with 'onDemand: true' to dynamically create the network. Additionally, specifying 'properties: networkType: routed' ensures the network is routed, which is a common configuration for On-Demand networks. Declaring a dependency on the network resource in the virtual machine resource ensures the network is created before the virtual machine deployment. Inputs are optional for user-provided values, and 'existing: true' is only for referencing pre-existing networks.
- A. Correct.
Correct. The 'type: Cloud.NSX.Networks' with 'onDemand: true' is required to define an NSX-T On-Demand network in a VMware Aria Automation template.
- B. Correct.
Correct. The 'properties: networkType: routed' is necessary to specify the type of network being created dynamically.
- C. Incorrect.
Incorrect. Inputs can be used for user-provided values, but they do not directly define the On-Demand network construct.
- D. Incorrect.
Incorrect. 'type: Cloud.NSX.Network' with 'existing: true' is used for referencing existing networks, not for creating an On-Demand network.
- E. Correct.
Correct. A dependency on the network resource must be declared in the virtual machine resource to ensure proper order of resource creation.