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.
Question
Exhibit
Answer Area
Drag items
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:
- Run the ssh-keygen command. This is the initial command that starts the key generation process in the terminal.
- 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). - Verify that the default location is '/home/azureuser/.ssh/' and press Enter. Following the acceptance of the filename, the
ssh-keygenutility (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. - Type a secure passphrase. The final step in the
ssh-keygenprocess 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-keygenfirst: Without executing thessh-keygencommand, 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
Community Discussion
No community discussion yet for this question.
