nerdexam
Microsoft

DP-100 · Question #381

Drag and Drop Question You need to implement source control for scripts in an Azure Machine Learning workspace. You use a terminal window in the Azure Machine Learning Notebook tab. You must authentic

The correct answer is Run the ssh-keygen command.; Press Enter when prompted to enter a file in which to save the key.; Verify that the default location is /home/azureuser/.ssh/ and press Enter.; Type a secure passphrase.. The question requires arranging four actions in sequence to generate a new SSH key using the ssh-keygen command in an Azure Machine Learning terminal, ensuring proper authentication for Git.

Design and prepare a machine learning solution

Question

Drag and Drop Question You need to implement source control for scripts in an Azure Machine Learning workspace. You use a terminal window in the Azure Machine Learning Notebook tab. You must authenticate your Git account with SSH. You need to generate a new SSH key. Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order. Answer:

Exhibit

DP-100 question #381 exhibit

Answer Area

Drag items

Generate a secure passphrase.Verify that the default location is /home/azureuser/.ssh/ and press Enter.Press Enter when prompted to enter a file in which to save the key.Run the ssh-keygen command.

Correct arrangement

  • Run the ssh-keygen command.
  • Press Enter when prompted to enter a file in which to save the key.
  • Verify that the default location is /home/azureuser/.ssh/ and press Enter.
  • Type a secure passphrase.

Explanation

The question requires arranging four actions in sequence to generate a new SSH key using the ssh-keygen command in an Azure Machine Learning terminal, ensuring proper authentication for Git.

Approach. To generate an SSH key using ssh-keygen, the actions must be performed in a specific, logical sequence based on the command's interactive prompts. The correct sequence, as shown in the solved image, is:

  1. Run the ssh-keygen command. This is the initial command that starts the key generation process in the terminal.
  2. Press Enter when prompted to enter a file in which to save the key. After initiating ssh-keygen, the first prompt asks where to save the key. Pressing Enter at this point typically accepts the default filename (e.g., id_rsa).
  3. Verify that the default location is '/home/azureuser/.ssh/' and press Enter. Following the acceptance of the filename, the ssh-keygen utility (or the specific environment in Azure ML) might prompt for confirmation of the directory, or this action refers to confirming the overall path that was displayed in the previous step. In an exam context, this separates the filename acceptance from the directory verification, requiring a second explicit confirmation for the default /home/azureuser/.ssh/ location.
  4. Type a secure passphrase. The final step in the ssh-keygen process is to set a passphrase for the private key, which adds an additional layer of security. The utility will prompt for the passphrase twice to confirm it.

Common mistakes.

  • common_mistake. Common mistakes include misordering the steps related to accepting the default file location and setting the passphrase. For example:
  • Not running ssh-keygen first: Without executing the ssh-keygen command, none of the subsequent prompts for file location or passphrase will appear.
  • Typing the passphrase before specifying the file: The passphrase prompt only appears after the utility has determined where to save the key files.
  • Incorrectly ordering the file path acceptance steps: While in standard ssh-keygen, verifying the default path and pressing Enter for the file are often conceptually a single interaction, the question breaks them into two distinct steps. Placing 'Verify that the default location is... and press Enter' (step 3) before 'Press Enter when prompted to enter a file...' (step 2) would be illogical, as you typically accept the filename first, then confirm the full path/directory, as per the exam's interpretation of these distinct actions.

Concept tested. Generating SSH keys, ssh-keygen command line utility, secure shell (SSH) for authentication, Git source control integration, and understanding interactive command-line prompts within a Linux-like terminal environment (specifically in Azure Machine Learning workspaces).

Topics

#SSH#Git#Azure Machine Learning Notebooks#Authentication

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice