AWS module 6.6 Container services Flashcards

(30 cards)

1
Q

What is a container and how does it differ from a virtual machine?

A

A container packages an application with its dependencies and runs on a shared OS.

VM:
* Includes full OS
* Heavier

Container:
* Lightweight
* Faster startup
* Shares host OS

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

Why are containers more efficient than virtual machines?

A

Because they share the host OS, reducing overhead and improving performance.

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

What is Amazon ECS?

A

Elastic Container Service is a managed container orchestration service used to run and manage containers.

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

What is container orchestration?

A

Managing deployment, scaling, networking, and lifecycle of containers automatically.

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

What are the key components of ECS architecture?

A
  • Cluster
  • Task definition
  • Task
  • Service
  • Container
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a task definition in ECS?

A

A blueprint that defines:
* Container image
* CPU/memory
* Ports
* Environment variables

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

What is a task in ECS?

A

A running instance of a task definition.

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

What is a service in ECS?

A

A component that ensures a specified number of tasks are running continuously.

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

What is an ECS cluster?

A

A logical group of resources (EC2 or Fargate) where containers run.

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

What is Amazon ECR?

A

Elastic Container Registry — a Docker image storage repository.

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

Why is ECR important in container workflows?

A

It stores container images so ECS can pull and run them.

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

Describe the flow of running a container using ECS.

A

Build container image
Push to ECR
Create task definition
Run task/service in ECS
ECS pulls image and runs container

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

What are the two launch types in ECS?

A
  • EC2 launch type
  • Fargate launch type
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is ECS EC2 launch type?

A

You manage EC2 instances that run containers.

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

What is ECS Fargate launch type?

A

Serverless container execution where AWS manages infrastructure.

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

Compare EC2 launch type vs Fargate.

A

EC2:
* More control
* Requires management

Fargate:
* No server management
* Easier but less control

17
Q

Why would a company choose Fargate over EC2?

A

To avoid managing servers and focus only on running containers.

18
Q

What is a key benefit of EC2 launch type over Fargate?

A

Greater control over infrastructure and cost optimisation.

19
Q

What is container scaling and how does ECS support it?

A

Increasing/decreasing number of running containers.

ECS supports scaling via:
* Services
* Auto Scaling

20
Q

What is load balancing in ECS?

A

Distributing traffic across multiple containers for performance and reliability.

21
Q

How does ECS achieve high availability?

A

By running containers across:
* Multiple instances
* Multiple Availability Zones

22
Q

What is the role of networking in ECS?

A

To allow containers to communicate internally and externally.

23
Q

Why is container portability important?

A

Containers can run anywhere consistently (dev, test, production).

24
Q

What is a Docker image?

A

A packaged file containing application code + dependencies used to create containers.

25
What happens if a container fails in ECS?
The service automatically restarts or replaces it.
26
A company wants full control over servers and cost optimisation. Which ECS launch type?
EC2 launch type
27
A startup wants minimal management and fast deployment. Which option?
Fargate
28
A system must always have 5 containers running. What ECS feature ensures this?
ECS Service
29
Why are containers ideal for microservices architecture?
Because they allow independent deployment, scaling, and isolation of services.
30
Explain how ECS, ECR, and Fargate work together in a containerised system.
* ECR stores container images * ECS manages deployment * Fargate runs containers without servers