ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 61 - NCP-MCA discussion

Report
Export

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.)

A.
Create an HTTP pre-create task to create the user in GitLab via REST API.
Answers
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.
Answers
B.
Create runtime-editable variables for user and password in the blueprint.
C.
Add a task within the service in order to ask for user and password at runtime.
Answers
C.
Add a task within the service in order to ask for user and password at runtime.
D.
Create a task script in order to login with ssh to GitLab and create a random user and password.
Answers
D.
Create a task script in order to login with ssh to GitLab and create a random user and password.
Suggested answer: A, B

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.

The other two options are not correct because:

Adding a task within the service to ask for user and password at runtime is redundant and unnecessary, as the runtime-editable variables can already provide this functionality.

Creating a task script to login with ssh to GitLab and create a random user and password is not a good practice, as it exposes the GitLab server to security risks and does not use the REST API that GitLab provides for user management.Reference:

Nutanix Certified Professional - Multicloud Automation (NCP-MCA) 6.5 Exam, page 17

Nutanix Calm User Guide, section ''HTTP Task''

GitLab API Documentation, section ''Create user''

asked 23/09/2024
Arnaud Dutel
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first