ECS, Fargate, ECR, EKS Flashcards

1
Q

What are 2 the uses cases for Docker?

A

microservices architecture
lift-and-shift apps from on- premises to the AWS cloud

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

What are the 4 AWS Docker Container Management??

A

ECS - Elastic Container Service
EKS - Elastic Kubernetes Service
Fargate
ECR - Elastic Container Registry

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

What are 2 Docker Image stores

A

Docker Hub
ECR - Elastic Container Registry

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

What are 2 ECS Launch Types?

A

EC2 Launch Type
Fargate Launch Type

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

Amazon ECS - Launch Type - you must provision & maintain the infrastructure

A

EC2 Launch Type

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

In Amazon ECS - EC2 Launch Type, who takes care of starting / stopping containers?

A

AWS

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

In Amazon ECS - EC2 Launch Type, Each EC2 Instance must run the ______________ to register in the ______________

A

ECS Agent
ECS Cluster

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

How to scale a Fargate LaunchType

A

just increase the number of tasks

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

Amazon ECS – LaunchType - You do not provision the infrastructure. It’s all Serverless

A

Fargate LaunchType

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

IAM Roles for ECS
* Used by the ECS agent ECS
* Makes API calls to ECS ser vice ECR
* Send container logs to CloudWatch Logs
* Pull Docker image from ECR
* Reference sensitive data in Secrets Manager or SSM Parameter Store

A

EC2 Instance Profile (EC2 Launch Type only)

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

IAM Roles for ECS
* Allows each task to have a specific role
* Use different roles for the different ECS Services you run
* Task Role is defined in the task definition

A

ECS Task Role

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

Which 3 types of Load Balancers are supported with ECS?

A

Application Load Balancer
Network Load Balancer
Classic Load Balancer

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

Amazon ECS – Load Balancer Integrations
supported and works for most use cases

A

Application Load Balancer

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

Amazon ECS – Load Balancer Integrations
recommended only for high throughput / high performance use cases, or to pair it with AWS Private Link

A

Network Load Balancer

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

Amazon ECS – Load Balancer Integrations
supported but not recommended (no advanced features – no Fargate)

A

Classic Load Balancer

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

Does EFS work for both EC2 and Fargate launch types?

A

YES

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

Tasks running in ________ AZ will share the same data in the EFS file system

A

ANY

18
Q

Fargate + EFS =

A

Serverless

19
Q

Amazon ECS – Data Volumes (EFS) use cases??

A

persistent multi-AZ shared storage for
your containers

20
Q

Amazon S3 ___________ be mounted as a file system

A

cannot

21
Q

What are 3 types of ECS Service Auto Scaling?

A

Target Tracking
Step Scaling
Scheduled Scaling

22
Q

ECS Service Auto Scaling - scale based on target value for a specific CloudWatch metric

A

Target Tracking

23
Q

ECS Service Auto Scaling - scale based on a specified CloudWatch Alarm

A

Step Scaling

24
Q

ECS Service Auto Scaling - scale based on a specified date/time (predictable changes)

A

Scheduled Scaling

25
Q

Is ECS Service Auto Scaling (task level) EQUAL TO EC2 Auto Scaling (EC2 instance level)

A

NO

26
Q

Is Fargate Auto Scaling easier to setup???? If so, why?

A

YES (because Serverless)

27
Q

What are the 3 metrics you can use when using AWS Application Auto Scaling??

A
  • ECS Service Average CPU Utilization
  • ECS Service Average Memory Utilization-Scale on RAM
  • ALB Request Count Per Target–metric coming from the ALB
28
Q
  • Used to automatically provision and scale the infrastructure for your ECSTasks
  • Capacity Provider paired with an Auto Scaling Group
  • Add EC2 Instances when you’re missing capacity (CPU, RAM…)
A

ECS Cluster Capacity Provider

29
Q
  • Scale your ASG based on CPU Utilization
  • Add EC2 instances over time
A

Auto Scaling Group Scaling

30
Q

Does EKS support EC2 if you want to deploy worker nodes or Fargate to deploy serverless containers??

A

YES

31
Q

What is the use case for EKS?

A

if your company is already using Kubernetes on-premises or in another cloud, and wants to migrate to AWS using Kubernetes

32
Q

For multiple regions, deploy one EKS cluster __________?

A

per region

33
Q

For EKS, How do you collect logs and metrics?

A

CloudWatch Container Insights

34
Q

Amazon EKS – Node Types (3)

A

Managed Node Groups
Self-Managed Nodes
AWS Fargate

35
Q

Amazon EKS – Node Types:
* Creates and manages Nodes (EC2 instances) for you
* Nodes are part of an ASG managed by EKS
* Supports On-Demand or Spot Instances

A

Managed Node Groups

36
Q

Amazon EKS – Node Types:
* Nodes created by you and registered to the EKS cluster and managed by an ASG
* You can use prebuilt AMI - Amazon EKS Optimized AMI
* Supports On-Demand or Spot Instances

A

Self-Managed Nodes

37
Q

Amazon EKS – Node Types:
* No maintenance required; no nodes managed

A

AWS Fargate

38
Q

For Amazon EKS – Data Volumes, what do you need to specify on your EKS cluster??

A

StorageClass manifest

39
Q

Amazon EKS – Data Volumes leverages _______

A

a Container Storage Interface (CSI) compliant driver

40
Q

What are the 4 supported Data Volumes for EKS?

A
  • Amazon EBS
  • Amazon EFS (works with Fargate)
  • Amazon FSx for Lustre
  • Amazon FSx for NetApp ONTAP
41
Q
  • Fully managed service that makes it easy to deploy web applications and APIs at scale
  • No infrastructure experience required
  • Start with your source code or container image
  • Automatically builds and deploy the web app
  • Automatic scaling, highly available, load balancer, encryption
  • VPC access support
  • Connect to database, cache, and message queue services
A

AWS App Runner

42
Q
A