NCP-MCA · Question #47
An administrator wants to create a blueprint for a development environment that uses an existing on-premise GitLab repository. Every new development environment requires a new user in the GitLab…
The correct answer is A. Create an HTTP pre-create task to create the user in GitLab via REST API. B. Create runtime-editable variables for user and password in the blueprint. To automate the creation of a new user in GitLab for every new development environment, the administrator should perform the following tasks within a Calm blueprint: Create an HTTP pre-create task to create the user in GitLab via REST API. This task will send an HTTP request to…
Question
An administrator wants to create a blueprint for a development environment that uses an existing on-premise GitLab repository. Every new development environment requires a new user in the GitLab repo. Which two tasks should the administrator perform within a Calm blueprint to automate this process? (Choose two.)
Options
- ACreate an HTTP pre-create task to create the user in GitLab via REST API.
- BCreate runtime-editable variables for user and password in the blueprint.
- CAdd a task within the service in order to ask for user and password at runtime.
- DCreate a task script in order to login with ssh to GitLab and create a random user and password.
How the community answered
(17 responses)- A76% (13)
- C6% (1)
- D18% (3)
Explanation
To automate the creation of a new user in GitLab for every new development environment, the administrator should perform the following tasks within a Calm blueprint: Create an HTTP pre-create task to create the user in GitLab via REST API. This task will send an HTTP request to the GitLab server with the user information and credentials, and receive a response with the user ID and status. The administrator can use the response to verify the user creation and store the user ID as a variable for later use. Create runtime-editable variables for user and password in the blueprint. These variables will allow the administrator to specify the user name and password for the new GitLab user at the time of launching the blueprint. The variables can be passed as parameters to the HTTP pre- create task and used in the REST API call.
Topics
Community Discussion
No community discussion yet for this question.