ECR Flashcards

This deck aims to help retain concepts related to the ECR service.

1
Q

Which AWS service provides a secure, scalable, and reliable managed container image registry?

A

Amazon Elastic Container Registry (ECR)

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

What types of ECR registries does each AWS account have?

A

Each AWS account has two types of registries:
- Public: Read-only by default, with read-write access requiring permissions
- Private: Both read-only and read-write access require permissions

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

What are the primary components of the ECR service?

A

The main components of ECR include:
- Public and Private Registries: Each registry can contain multiple repositories
- Repositories: Each repository can hold multiple images
- Images: Each image can have several tags (representing different versions)

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

Which ECR feature automatically scans container images for known software vulnerabilities?

A

Security Scanning, available in both basic and enhanced modes, with the enhanced mode using AWS Inspector

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

What are the primary features of the ECR service?

A
  • Supports cross-region and cross-account replication
  • Supports events via EventBridge
  • Integrated with IAM for access control
  • Provides near real-time metrics via CloudWatch
  • Logs API actions through AWS CloudTrail
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What option can be used to retag images stored in AWS ECR?

A

Use the --image-tag option with the put-image command:

aws ecr put-image \ --repository-name <name> \ --image-tag <tag> \ --image-manifest <manifest>

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

What does image tag immutability do in AWS ECR?

A

Prevents image tags from being overwritten

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

What error is returned if an existing image tag is pushed to an ECR repository with tag immutability enabled?

A

ImageTagAlreadyExistsException` error

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

What types of images can AWS ECR store?

A
  • Docker images
  • Open Container Initiative (OCI) images
  • OCI-compatible artifacts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Does Amazon ECR support multi-architecture images?

A

Yes, it supports pushing multi-architectural images to a private registry (experimental features need to be enabled)

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

What command is required to push multi-architecture images to Amazon ECR?

A

docker manifest push

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