AWS Certified Developer Associate · Free Practice Question Medium

Question 41

A Development team would like to migrate their existing application code from a GitHub repository to AWS CodeCommit.

What needs to be created before they can migrate a cloned repository to CodeCommit over HTTPS?

  • A

    An Amazon EC2 IAM role with CodeCommit permissions

  • B

    A GitHub secure authentication token

  • C

    A public and private SSH key file

  • D

    A set of credentials generated from IAM

Reveal correct answer

Correct answer: D

Explanation

The simplest way to set up connections to AWS CodeCommit repositories is to configure Git credentials for CodeCommit in the IAM console, and then use those credentials for HTTPS connections.

You can also use these same credentials with any third-party tool or individual development environment (IDE) that supports HTTPS authentication using a static user name and password. For examples, see For Connections from Development Tools.

CORRECT: "A set of credentials generated from IAM" is the correct answer.

INCORRECT: "A GitHub secure authentication token" is incorrect as this is not how you authenticated to CodeCommit.

INCORRECT: "A public and private SSH key file" is incorrect as that is required for accessing CodeCommit using SSH.

INCORRECT: "An Amazon EC2 IAM role with CodeCommit permissions" is incorrect as that would be used to provide access to administer CodeCommit. However, the question is asking how to authenticate a Git client to CodeCommit using HTTPS.

References:

https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-gc.html

Save time with our AWS cheat sheets:

https://digitalcloud.training/aws-developer-tools/

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need