Docker, ECS, Fargate, ECR and EKS Flashcards

1
Q

What is ECS?

A

Amazon Elastic Container Service (ECS) is a highly scalable, high-performance container management service that supports Docker containers and allows you to easily run applications on a managed cluster of Amazon Elastic Compute Cloud (Amazon EC2) instances. Amazon ECS eliminates the need for you to install, operate, and scale your own cluster management infrastructure.

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

How many launch types are there?

A

Fargate launch type: You can use the Fargate launch type to run your containerized applications without the need to provision and managing the underlying infrastructure. AWS Fargate is the serverless way to host your Amazon ECS workloads. You just create the tasks, and the Fargate will do the rest.

EC2 launch type: You can use the EC2 launch type to run your containerized applications on Amazon EC2 instances that you register to your Amazon ECS cluster and manage yourself. Each of the instances should run the ECS agent and register in the ECS cluster. The application load balancer and Network load balancer are supported. NLB is recommended only for high throughput use cases.

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

Amazon ECS - data volume (EFS)

A

Amazon EFS volumes — Provides simple, scalable, and persistent file storage for use with your Amazon ECS tasks. With Amazon EFS, storage capacity is elastic. It grows and shrinks automatically as you add and remove files. Your applications can have the storage that they need when they need it. Amazon EFS volumes are supported for tasks that are hosted on Fargate or Amazon EC2 instances. For more information.

S3 can not be mounted as a file system on ECS

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

How does ECS Service Auto Scale?

A

Automatic scaling automatically increases or decreases the desired count of tasks in your Amazon ECS service. Amazon ECS leverages the Application Auto Scaling service to provide this functionality.

Amazon ECS publishes CloudWatch metrics with your service’s average CPU and memory usage. You can use these and other CloudWatch metrics to scale out your service (add more tasks) to deal with high demand at peak times and to scale in your service (run fewer tasks) to reduce costs during periods of low utilization.

Target Tracking - scale based on a target value for a specific Cloud Watch metric
Step Scaling - scale based on a specified CloudWatch Alarm
scheduled Scaling - scale based on a specified date/time.

The auto-scaling group scales your ASG based on CPU utilization and adds EC2 instances over time.

ECS cluster capacity provider is used to automatically provision and scale the infrastructure for your ECS task first of all capacity provider can be paired with the auto-scaling group. Add easy to instances when instances are having high CPU utilization and low memory. easiest cluster capacity provider is more advance than the autoscaling group.

Fargate Auto scaling is much easier to set up.

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

What is AWS ECR?

A

Amazon Elastic Container Registry (Amazon ECR) is an AWS managed container image registry service that is secure, scalable, and reliable. Amazon ECR supports private repositories with resource-based permissions using AWS IAM

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

What is Amazon EKS?

A

Amazon EKS is a managed Kubernetes service that makes it easy for you to run Kubernetes on AWS and on-premises. Amazon EKS automatically manages the availability and scalability of the Kubernetes control plane nodes responsible for scheduling containers, managing application availability, storing cluster data, and other key tasks. With Amazon EKS, you can take advantage of all the performance, scale, reliability, and availability of AWS infrastructure, as well as integrations with AWS networking and security services.

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

Does EKS support Fargate and EC2 launch types?

A

Yes

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

what is the use case for AWS EKS?

A

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

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

AWS EKS - Data Volume?

A

Amazon EKS leverages a container storage interface-compliant driver. it supports Amazon EBS, amazon EFS(Fargate only supports amazon EFS), amazon FSX for Luster and amazon FSX for NetApp ONTAP

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

how many node types are there in Amazon EKS?

A

(1) Managed node group: creates and manages nodes for you. Nodes are part of ASG (application scaling group) managed by EKS. It supports on-demand or spot instances.

(2) Self-manage nodes: notes created by you and registered to the EKS cluster and managed by an ASG. You can use prebuilt AMI - Amazon EKS Optimized AMI is available

(3) AWS Fargate- no maintenance required, no nodes managed

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

What is AWS App Runner?

A

AWS App Runner is a fully managed container application service that lets you build, deploy, and run containerized web applications and API services without prior infrastructure or container experience.

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

What is ElasticCache?

A

Amazon ElastiCache allows you to run in-memory data stores in the AWS cloud. Amazon ElastiCache is a popular choice for real-time use cases like Caching, Session Stores, Gaming, Geospatial Services, Real-Time Analytics, and Queuing.

Amazon ElastiCache can be used to significantly improve latency and throughput for many read-heavy application workloads (such as social networking, gaming, media sharing, leaderboard, and Q&A portals) or compute-intensive workloads (such as a recommendation engine) by allowing you to store the objects that are often read in the cache.

The data in ElasticCache is not persistent.

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