Serverless Flashcards

1
Q

How is Lambda priced?

A

Lambda is priced based on the Number of Requests and Duration of the process.

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

How many requests are free with Lambda?

A

The first 1 million Lambda requests are free

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

How does Lambda scale?

A

Lambda scales out, not up

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

What service allows you to debug your complex Lambda services?

A

X-Ray allows you to debug your Lambda services

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

What is SAM?

A

SAM is Serverless Application Model

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

What is SAM used for?

A

The AWS Serverless Application Model (SAM) is an open-source framework for building serverless applications.

SAM provides shorthand syntax to express functions, APIs, databases, and event source mappings. With just a few lines per resource, you can define the application you want and model it using YAML.

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

What is a container?

A

A container is a package that contains an application, libraries, runtime and tools required to run it

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

What is a popular container engine?

A

Docker is a popular container engine

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

What is the benefit to containers over virtualisation?

A

Containers provide the benefits of virtualisation with less overhead and give faster starts than VMS

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

What is ECS?

A

ECS is a managed container orchestration service. It takes all the heavy lifting out of deploying, managing and scaling containers

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

What instances can ECS manage?

A

ECS can manage EC2 and Fargate instances

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

What are the components of ECS?

A

The components of ECS are:

  • Cluster
  • Task Definition
  • Container Definition
  • Task
  • Service
  • Registry
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is an ECS Cluster?

A

An ECS Cluster is a logical collection of ECS resources - either ECS EC2 instances or Fargate instances

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

What are ECS Task Definitions?

A

ECS Task Definitions are similar to a Dockerfile that enables you to define your application running on containers in ECS.

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

What is ECS Container Definition?

A

ECS Container Definition is inside a Task Definition and it defines the individual containers a task uses.

Container Defintion controls CPU and memory allocation and port mappings

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

What are ECS Tasks?

A

ECS Tasks are single running copies of any containers defined by a task definition.

A Task is one working copy of an application

17
Q

What is an ECS Service component?

A

An ECS Service component allows task definitions to be scaled by adding tasks.

The service defines minimum and maximum values

18
Q

What is the ECS Registry?

A

The ECS Registry is storage for container images

19
Q

What is AWS Fargate?

A

Fargate is a serverless compute service and eliminates the need to provision and manage servers.

Fargate works with both ECS and EKS

20
Q

When would you choose EC2 over Fargate?

A

You would choose EC2 over Fargate if:

  • there are compliance requirements
  • you require broader customisations
  • if you require GPUs
21
Q

What is EKS?

A

EKS is Elastic Kubernetes Service.

Amazon EKS is a managed option for Kubernetes workloads (a popular container orchestration tool) which provides you with all the familiarity of using a Kubernetes environment, with the inherent scalability and availability the cloud provides.

22
Q

What is Kubernetes?

A

Kubernetes is an open-source software that lets you deploy and manage containerised applications at scale

23
Q

How are Containers grouped in EKS?

A

In EKS Containers are grouped in pods

24
Q

ECS supports both EC2 and Fargate, does EKS also support both?

A

Yes, EKS supports both EC2 and Fargate

25
Q

Why would you use EKS over ECS?

A

You would use EKS over ECS if you are already using K8s or if you want to migrate your K8s to AWS

26
Q

What is ECR?

A

Amazon Elastic Container Registry (Amazon ECR) is an AWS managed container image registry service that is secure, scalable, and reliable.

27
Q

What is an instance role vs a task role?

A

An instance role would apply a policy to all tasks within an instance whereas a task role will apply to a single task only

28
Q

What are the synchronous triggers for Lambda functions?

A

ALB, Alexa, API Gateway, Cognito, CloudFront, Lex, and Kinesis Data Firehose are all valid direct (synchronous) triggers for Lambda functions.

S3 is one of the valid asynchronous triggers.

29
Q

What is the difference between Fargate and Lambda?

A

AWS Lambda charges you per invocation and duration of each invocation whereas AWS Fargate charges you for the vCPU and memory resources of your containerised applications use per second.