Module 6 - Section 4,5,6

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/56

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

57 Terms

1
New cards

Containers are a method of what…

What do containers enable?

Operating system virtualization

Enables you to run an application and its dependencies in resource-isolated processes

Easily package an application’s code, configurations, and dependencies into easy-to-use building blocks that deliver environment consistency etc.

2
New cards

Benefits of containers…

  • Repeatable.

  • Environmental consistency

  • Self-contained environments.

  • Software runs the same in different environments.

    • Developer's laptop, test, production.

  • Faster to launch and stop or terminate than virtual machines

3
New cards

When you use containers, what does it help with?

You can easily package an application's code, configurations, and dependencies into easy-to-use building blocks that deliver environmental consistency, operational efficiency, developer productivity, and version control

4
New cards

Are containers smaller or bigger than virtual machines?

Smaller

5
New cards

Do containers contain an entire OS?

They do NOT contain an OS

6
New cards

How do containers run?

Containers run as a resource-isolated process and share a virtualized operating system

7
New cards

What is a Docker?

Software platform that enables you to build, test, and deploy applications quickly

8
New cards

What do you run on Dockers and what can a Docker do to affect the ________?

Containers

The Docker uses simple commands that you can use to build, start, or stop containers

  • Packages software (such as applications) into containers

9
New cards

How are containers created?

Created from a template called an image

10
New cards

Container has everything a software application needs to run (what are they)

Libraries

System Tools

Code

Runtime

11
New cards

When should a Docker be used as a solution?

  • Deploy and scale applications into any environment

  • Standardize environments

  • Reduce conflicts between language stacks and versions

  • Use containers as a service

  • Run microservices using standardized code deployments

  • Require portability for data processing

12
New cards

Difference between containers and virtual machines

Virtual machines run directly on a hypervisor

Containers can run on any Linux OS if they have the appropriate kernel feature support and the Docker daemon is present

13
New cards

Amazon ECS

A highly scalable, fast, container management service

14
New cards

Benefits of ECS:

  • Orchestrates the running of Docker container

  • Maintains and scales the fleet of nodes that run your containers

  • Removes the complexity of standing up the infrastructure

15
New cards

Essential Amazon ECS featured include the ability to:

  • Launch up to tens of thousands of Docker containers in seconds

  • Monitor container deployment

  • Manage the state of the cluster that runs the containers

  • Schedule containers by using a built-in scheduler or a third-party scheduler

16
New cards

Task Definition

Text file that describes one or more containers, up to a maximum of ten, that form your application

Can be thought of as a blueprint for your application

17
New cards

Task

Instantiation of a task definition within a cluster

Can specify the number of tasks that will run on your cluster (can run anywhere from one to ten containers, depending on the task definition you defined)

18
New cards

Amazon ECS task scheduler

Responsible for placing tasks within your cluster

19
New cards

ECS Cluster

Consists of a group of EC2 instances, each of which is running an Amazon ECS Container agent

20
New cards

If you want to manage the Amazon ECS cluster that runs the containers…

Create an Amazon ECS cluster backed by Amazon EC2 (provides virtual machines, more granular control over infrastructure)

21
New cards

If you don’t want to manage the Amazon ECS cluster that runs the containers…

Create an Amazon ECS cluster backed by AWS Fargate (easy to maintain, large focus on applications)

22
New cards

When you create an Amazon ECS cluster, you have three options:

  • A Networking Only cluster (powered by AWS fargate)

  • An EC2 Linux + Networking cluster

  • An EC2 Windows + Networking cluster

23
New cards

Kubernetes is what…

Open source software for container orchestration

24
New cards

What is Kubernetes and what can Kubernets do?

Open source software for container orchestration

  • Deploy and manage containerized applications at scale

  • The same toolset can be used on premises and in the cloud

25
New cards

What else can Kubernetes do?

Complements Docker

  • Docker enables you to run multiple containers on a single OS host

  • Kubernetes orchestrates multiple Docker hosts

Automates —

  • Container provisioning

  • Networking

  • Load distribution

  • Scaling

26
New cards

Containerized applications

You can run any type of application by using the same toolset in both on-premises data centers and the cloud

27
New cards

Nodes

Cluster of compute instances

28
New cards

Pods

Containers are run in logical groupings

Run and scale one or many containers together

Given an IP address and a single Domain Name System name, which Kubernetes uses to connect your services with each other and external traffic

29
New cards

Amazon EKS

Enables you to run Kubernetes on AWS

Certified Kubernetes conformant

Supports Linux and Windows containers

Compatible with Kubernetes community tools and supports popular Kubernetes add-ons

30
New cards

What should you use Amazon EKS for?

Manage clusters of Amazon EC2 compute instances

Run containers that are orchestrated by Kubernetes on those instances

31
New cards

Amazon ECR

Fully managed Docker container registry that makes it easy for developers to store, manage, and deploy Docker container images

32
New cards

Serverless computing

Enables you to build and run applications and services without provisioning or managing servers

33
New cards

Third approach to computing (this does NOT require you to provision or manage servers):

AWS Lambda (servless computing)

34
New cards

AWS Lambda is…

An event-driven, serverless compute service

Enables you to run code without provisioning or managing servers

Provides built-in fault tolerance and automatic scaling

35
New cards

Lambda function

AWS resource that contains the CODE that you upload

Set the Lambda function to be triggered, either on a scheduled basis or in response to an event

36
New cards

Principle of AWS Lambda:

You pay only for the compute time you consume

You are NOT charged when your code is not running

37
New cards

Benefits of Lambda

Supports multiple programming languages (Java, Go, PowerShell, Node.js, C#, Python, and Ruby)

Completely automated administration

Built-in fault tolerance

Supports the orchestration of multiple functions

Pay-per-use pricing

38
New cards

Event source

AWS service or a developer-created application that produces events that trigger an AWS Lambda function to run

39
New cards

What can you PULL records from and run a Lambda function for each fetched message?

Amazon Simple Queue Service (SQS)

40
New cards

Lambda can read events from…

Amazon DynamnoDB

41
New cards

What can invoke your Lambda function directly?

Elastic Load Balancing (Application Load Balancer)

Amazon API Gateway

Lambda Console

Lambda API

SKS, CLI, and toolkits

42
New cards

Automatically monitors Lambda functions using WHAT?

Amazon CloudWatch

43
New cards

What else does Lambda do about monitoring?

Automatically stores logs that are generated by your code through Amazon CloudWatch Logs

44
New cards

When you use the AWS Management Console to create a Lamda Function, you first give the function a name. Then, you specify:

  • The runtime environment (such as Python)

  • The execution role (to grant IAM permission to the function so that it can interact with other AWS services as necessary)

45
New cards

After you click Create Function, what is next?

  • Add a trigger (specifies one of the available event sources from the previous slide)

  • Add your function code (use the provided code editor or upload a file that contains your code)

  • Specify the memory in MB to allocate to your function

46
New cards

What is a Lambda deployment package?

ZIP archive that contains your function code and dependencies

47
New cards

Soft Limits per Region (AWS Lambda quotes):

  • Concurrent executions = 1,000

  • Function and layer storage = 75 GB

48
New cards

Hard limits for individual functions:

  • Maximum function memory allocation = 10,240 MB

  • Maximum run time = 15 minutes

  • Deployment package size = 250 MB unzipped, including layers

  • Container image code package size = 10 GB

49
New cards

Layer

ZIP archive that contains libraries, a custom runtime, or other dependencies

Use libraries in your function without needing to include them in your deployment package

50
New cards

Deployment package

Using layers can help you avoid reaching the size limit for deployment pakcages

51
New cards

Soft limits

An account can potentially be relaxed by submitting a suppor tticket and providing justification for the reqest

52
New cards

Hard limits

Cannot be increased

53
New cards

AWS Elastic Beanstalk

PaaS which provides an easy way to get web applications up and running

Enhances developer productivity

54
New cards

More about Elastic Beanstalk

A managed service that automatically handles —

  • Infrastructure provisioning and configuration

  • Deployment of your application

  • Load Balancing

  • Automatic Scaling

  • Health Monitoring

  • Analysis and debugging

  • Logging

No additional charge

  • Pay only for the resources that are USED

55
New cards

Elastic Beanstalk supports web applications written for common platforms such as…

Java, .NET, PHP, Node.js, Python, Ruby, Go, and Docker

56
New cards

AWS Elastic Beanstalk automatically…

Handles the deployment of your code (all you need to do is upload your code)

57
New cards

Benefits of Elastic Beanstalk

  • Fast and simple to start using

  • Developer productivity

  • Difficult to outgrow

  • Complete resource control