Other Computer Services: EC2, Lambda, Batch, Lightsail Flashcards

1
Q

What is docker?

A

Docker is a software development platform to deploy apps. Scales up and down

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

What are apps in docker?

A

They run the same regardless of where they’re run

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

Can you run multiple docker apps running on a single EC2 instance?

A

Yes

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

Where are docker images stored?

A

Docker Repositories

  1. Public: Docker Hub
  2. Private: Amazon ECR (Elastic Container Registry)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Docker vs virtual machine?

A

Resources are shared with the host => many containers on one server

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

What is ECS?

A

Elastic Container Service. Used to launch docker containers on AWS

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

What is your responsibility with ECS?

A

You must provision and maintain the infrastructure (the EC2 instances)

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

What is AWS’s responsibility with ECS?

A

AWS takes care of starting/stopping containers

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

Does EC2 have integrations with ALB?

A

Yes

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

What is Fargate?

A

Used to launch docker containers on AWS, but you do not need to provision the infrastructure. (server-less)

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

What is ECR?

A

Elastic Container Registry. Private Docker Registry on AWS. You store your images here so you can run them on ECS or Fargate

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

What is serverless?

A

Server-less is a new paradigm in which the developers don’t have to manage servers anymore. Includes anything that is managed.

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

Does server-less mean there are no servers?

A

No, you just don’t manage / provision / see them

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

Which of these are server-less?

  1. Amazon S3
  2. DynamoDB
  3. Fargate
  4. Lambda
  5. EC2
  6. RDS
A
  1. Amazon S3
  2. DynamoDB
  3. Fargate
  4. Lambda
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Why use AWS Lambda over EC2?

A
  1. No functions to manage
  2. Limited by time - short executions
  3. Run on-demand
  4. Scaling is automated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Benefits of AWS Lambda?

A
  1. Pay per request and compute time
  2. Free tier of 1 million AWS Lambda requests and 400k GBs of compute time
  3. Event-driven: functions get invoked by AWS when needed
  4. Integrated with many programming languages
  5. Easy monitoring through AWS CloudWatch
  6. Easy to get more resources per functions (up to 3GB of RAM)
  7. Increasing RAM will also improve CPU and network
17
Q

What is lambda container image runtime?

A

Allows you to run docker container images on top of lambda. EC2 and Fargate is preferred for running arbitrary Docker images

18
Q

What is lambda container image runtime?

A

Allows you to run docker container images on top of lambda. EC2 and Fargate is preferred for running arbitrary Docker images

19
Q

What is lambda pricing?

A

Pay for call, with first million free
Pay for duration (in increment of 1 ms).
Very cheap

20
Q

What is Amazon API Gateway?

A

Fully managed service for developers to easily create, publish, maintain, monitor, and secure APIs. Server-less and scalable. Supports RESTful APIs and WebSocket APIs. Support for security, user auth, API throttling, API keys, monitoring…

21
Q

Give an example of how Amazon API Gateway works?

A
  1. Client uses REST API to ask for data
  2. Request hits API Gateway
  3. Proxy request goes to lambda
  4. Crud to DynamoDB
  5. proxy request goes to API Gateway
  6. Response goes to client
22
Q

What is AWS Batch?

A

Fully managed batch processing at any scale

23
Q

What is a batch job?

A

A job with a start and an end (opposed to continuous). Will dynamically launch EC2 Instances or Spot Instances. Defined as Docker Images and run on ECS

24
Q

Why use batch jobs?

A

Big cost savings and less focus on infrastructure

25
Q

Batch vs lambda?

A

Lambda: time limit, limited runtime, limited temporary disk space, server-less

Batch: no time limit, any runtime as long as it’s packaged as a docker image, rely on EBS / instance store for disk space, relies on EC2 (can be managed by AWS)

26
Q

What is Amazon Lightsail?

A

Virtual servers, storage, databases, and networking with low and predictable pricing.

27
Q

Who is Amazon Lightsail for?

A

For people with little cloud experience. No auto-scaling, but has high availability

28
Q

How do you get charged in AWS Lambda?

  1. Per programming language
  2. Per number of functions
  3. Per call and per duration
  4. Per inactive time
A

Per call and per duration

29
Q

You would like a server-less service to launch Docker containers with no infrastructure to provision. Which AWS service should you use?

  1. EC2
  2. Fargate
  3. ECR
  4. Lambda
A

Fargate

30
Q

A complete cloud beginner would like to create a simple application with predictable pricing. What service should this person use?

  1. EC2
  2. Lambda
  3. Lightsail
  4. EasyStart
A

Lightsail

31
Q

What is the name of the software development platform that allows you to run applications the same way, regardless of where they are run?

  1. Dolphin
  2. Shark
  3. Docker
  4. ECS
A

Docker

32
Q

How would you best describe ‘event-driven’ in AWS Lambda?

  1. Happens on a certain day
  2. Happens at a certain time
  3. Happens on a regular basis
  4. Happens when needed
A

Happens when needed

33
Q

Which AWS service allows you to launch Docker containers on AWS, but requires you to provision and maintain the infrastructure?

  1. ECR
  2. EC2
  3. ECS
  4. Fargate
A

ECS

34
Q

Which of the following statements is INCORRECT regarding the definition of the term ‘server-less’?

  1. Server-less allows you to deploy functions as a service
  2. There are no servers
  3. You don’t need to manage servers
  4. Lambda is the server-less pioneer
A

There are no servers

35
Q

Which of the following statements is NOT a feature of AWS Lambda?

  1. Integration with the whole AWS suite of services
  2. Virtual functions
  3. Automated and continuous scaling
  4. Definition of a maximum and minimum of EC2 Instances running
A

Definition of a maximum and minimum of EC2 Instances running

36
Q

A company needs to run thousands of jobs but would like to NOT manage the compute resources. What service can it use?

  1. ECS
  2. EC2 Spot Instances
  3. EC2 Instances
  4. Batch
A

Batch

37
Q

Where should you store your private Docker images so that they can be run by ECS or Fargate?

  1. Elastic Docker Registry
  2. Elastic Docker File Registry
  3. Elastic Container Registry
  4. Elastic Private Container Registry
A

Elastic Container Registry

38
Q

Which AWS server-less service can be used by developers to create APIs?

  1. ECR
  2. Lambda
  3. API Gateway
A

API Gateway