nerdexam
Microsoft

DP-100 · Question #307

Drag and Drop Question You are using a Git repository to track work in an Azure Machine Learning workspace. You need to authenticate a Git account by using SSH. Which three actions should you…

The correct answer is Generate a public/private key pair; Add the public key to the Git account; Clone the Git repository by using an SSH repository URL. The question tests the ability to correctly sequence the steps for setting up SSH key-based authentication with a Git repository.

Design and prepare a machine learning solution

Question

Drag and Drop Question You are using a Git repository to track work in an Azure Machine Learning workspace. You need to authenticate a Git account by using SSH. Which three 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 #307 exhibit

Answer Area

Drag items

Generate a public/private key pairAdd the private key to the Git accountClone the Git repository by using an SSH repository URLAdd the public key to the Git accountCreate a new Azure Key Vault resource

Correct arrangement

  • Generate a public/private key pair
  • Add the public key to the Git account
  • Clone the Git repository by using an SSH repository URL

Explanation

The question tests the ability to correctly sequence the steps for setting up SSH key-based authentication with a Git repository.

Approach. The correct interaction is to drag the following three actions into the 'Answer Area' and arrange them in this specific order:

  1. Generate a public/private key pair: SSH authentication fundamentally relies on a pair of cryptographic keys-one public and one private. This is always the initial step.
  2. Add the public key to the Git account: The public key is then uploaded to the Git hosting service (e.g., GitHub, Azure DevOps, GitLab). This allows the Git service to recognize and verify the client that presents the corresponding private key during an SSH connection attempt.
  3. Clone the Git repository by using an SSH repository URL: Once the public key is registered with the Git account and the key pair is set up on the client, the repository can be cloned using its SSH URL. The SSH client will automatically use the private key to authenticate with the Git server.

This sequence ensures that the necessary cryptographic keys are created, the server is informed of the client's public key, and then the SSH protocol can be used for secure repository access.

Common mistakes.

  • common_mistake. 1. Adding the private key to the Git account: This is a critical security misunderstanding. The private key must always remain secure on the client machine and should never be uploaded to a remote Git account or server. Sharing the private key compromises the security of the SSH authentication.
  1. Creating a new Azure Key Vault resource: While Azure Key Vault can be used for securely storing secrets, including SSH private keys, it is not a direct or mandatory step in the process of authenticating a Git account using SSH. The question specifically asks for the actions to authenticate the Git account, not to secure the key in an Azure service.
  2. Incorrect order of remaining correct steps: Attempting to clone the repository before generating the keys or adding the public key to the Git account would fail because the necessary authentication mechanisms would not be in place.

Concept tested. SSH key-based authentication for Git repositories, including the roles of public and private keys, the correct sequence for setting up SSH access, and basic security best practices for private keys.

Topics

#Git Integration#Azure Machine Learning#SSH Authentication#Version Control

Community Discussion

No community discussion yet for this question.

Full DP-100 Practice