VCP-VCF Administrator 2024 Question 94
Select 3You are tasked with automating the deployment of a new workload domain in VMware Cloud Foundation using the VMware Cloud Foundation APIs. Which steps are required to successfully complete this task?
- A
Generate an API token from the VMware Cloud Foundation SDDC Manager.
- B
Retrieve the workload domain specifications using the API endpoint
/v1/domains/templates. - C
Submit a POST request to the
/v1/domainsendpoint with the appropriate payload. - D
Manually configure the workload domain using the SDDC Manager interface.
- E
Verify the deployment status by querying the
/v1/tasks/{task_id}endpoint.
Show answer and explanation
Correct answers: B, C, E
Explanation
Deploying a workload domain using the VMware Cloud Foundation APIs involves retrieving the necessary specifications for the domain, sending a POST request to initiate the deployment, and monitoring the task's progress until completion. While manual configuration via the SDDC Manager is an alternative, it is not required in this API-driven workflow. Authentication via API tokens is not a prerequisite for this task.
- A. Incorrect.
Incorrect. VMware Cloud Foundation APIs do not require generating an API token from SDDC Manager. Authentication is typically handled via username and password or other supported methods.
- B. Correct.
Correct. The
/v1/domains/templatesendpoint provides templates or specifications for workload domain deployment, which are needed to construct the deployment payload. - C. Correct.
Correct. A POST request to the
/v1/domainsendpoint is required to initiate the deployment of a workload domain. The payload must include the necessary configuration details. - D. Incorrect.
Incorrect. While manual configuration is possible via the SDDC Manager interface, it is not required when automating the deployment using VMware Cloud Foundation APIs.
- E. Correct.
Correct. The
/v1/tasks/{task_id}endpoint allows you to track the status of the deployment to ensure it completed successfully.