NCP-AII Question 124
Select 4You are tasked with setting up an NGC command line interface (CLI) on a host machine to interact with NVIDIA's NGC platform. The host machine runs a Linux-based operating system. After installing the CLI, what steps must you perform to correctly configure it for use?
- A
Download and install the NGC CLI binary from the official NVIDIA NGC website.
- B
Use the 'ngc config set' command to configure the API key for authentication.
- C
Install Docker and ensure it is running, as NGC CLI requires Docker for container management.
- D
Set the 'HTTP_PROXY' and 'HTTPS_PROXY' environment variables; this is mandatory for NGC CLI to function.
- E
Verify the installation by running 'ngc --version' to check the CLI version.
Show answer and explanation
Correct answers: A, B, C, E
Explanation
To install and configure the NGC CLI on a Linux-based host, you must first download the binary from the official NVIDIA NGC website. After installation, you need to authenticate with the platform by setting up your API key using the 'ngc config set' command. The NGC CLI requires Docker for container management, so Docker must be installed and running. Finally, verifying the installation with 'ngc --version' ensures everything was set up correctly. Configuring proxy settings is only needed in specific environments and is not universally required.
- A. Correct.
Correct: Downloading and installing the NGC CLI binary is the first step in setting up the NGC CLI on a host machine.
- B. Correct.
Correct: Configuring the API key using the 'ngc config set' command is necessary for authenticating with the NGC platform.
- C. Correct.
Correct: Docker is required by the NGC CLI for managing containers, so it must be installed and running.
- D. Incorrect.
Incorrect: Setting 'HTTP_PROXY' and 'HTTPS_PROXY' is only necessary if you are working behind a proxy. It is not a mandatory step for all installations.
- E. Correct.
Correct: Verifying the installation ensures that the CLI has been correctly installed and is ready for use.