ECR Flashcards

1
Q

ECR

A

A managed AWS Docker registry service. Amazon ECR is a regional service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True/False. ECR supports Docker Registry HTTP API V2 allowing you to use Docker CLI commands or your preferred Docker tools in maintaining your existing development workflow.

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

True/False. ECR stores the containers you create and but not container software you buy through AWS Marketplace.

A

False. ECR STORES BOTH the containers you create and any container software you buy through AWS Marketplace.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does ECR store container images?

A

S3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How can you define and organize repositories in your registry?

A

Using namespaces.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What protocol is used to transfer your container images to and from ECR?

A

HTTPS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Registry?

A

A registry is provided to each AWS account; you can create image repositories in your registry and store images in them.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the default registry URL?

A

The URL for your default registry is https://aws_account_id.dkr.ecr.region.amazonaws.com. You must be authenticated before you can use your registry.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is an Authorization Token used for?

A

Your Docker client needs to authenticate to ECR registries as an AWS user before it can push and pull images. The AWS CLI get-login command provides you with authentication credentials to pass to Docker.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is a Repository?

A

An image repository contains your Docker images.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How do you specify access to ECR?

A

ECR uses resource-based permissions to let you specify who has access to a repository and what actions they can perform on it.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How do you manage the lifecycle of the images in your repository?

A

ECR lifecycle policies enable you to specify the lifecycle management of images in a repository.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is a repository policy?

A

You can control access to your repositories and the images within them with repository policies.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

True/False. You can push and pull Docker images to your repositories. You can use these images locally on your development system, or you can use them in ECS task definitions.

A

True.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

True/False. You can’t replicate images in your private repositories across AWS regions.

A

False. You CAN replicate images in your private repositories across AWS regions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

By default, what permissions do users have with ECR resources?

A

By default, IAM users don’t have permission to create or modify Amazon ECR resources or perform tasks using the Amazon ECR API.

17
Q

How do you grant permissions to ECR resources?

A

Use IAM policies to grant or deny permission to use ECR resources and operations.

18
Q

True/False. ECR partially supports resource-level permissions.

A

True.

19
Q

True/False. ECR supports the use of customer master keys (CMK) managed by AWS Key Management Service (KMS) to encrypt container images stored in your ECR repositories.

A

True.

20
Q

How are you charged for ECR?

A

You pay only for the amount of data you store in your repositories and data transferred to the Internet.