Serverless Flashcards

1
Q

What is Serverless?

A

Focus on running code, and no need to manage the compute infrastructure

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

What are 3 benefits of Serverless?

A
  1. Pay as you go
  2. event based processing
  3. easy to use
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What tools do you want to focus on in the exam?

A

Pick managed tools and favor serverless over unmanaged tools like EC2 and OS

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

What is AWS Lambda?

A

Service that lets you run code without needing to manage any underlying compute servers

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

What permissions to Lambda need?

A

It needs a role with whatever access needed to do work and basic lambda execution

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

What is the max memory and cpu for Lambda?

A

Max 10 GB, CPU scale proprotinately

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

How are you billed with Lambda?

A

Billed by lambda duration and resource configuration

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

What is the time max limit for Lambda?

A

15 minutes

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

What are good use cases for Lambda?

A

Microservices, short running code, need to trigger to start/stop instances or remove entries in SG (add features or enforce things)

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

What do you need to do if you want Lambda to make private api calls or talk to a db?

A

You need to have the lambda run in a VPC/subnet with SG, otherwise it can run outside that

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

What is the difference between containers and vm?

A

Containers run ontop of the guest os instead of having to duplicate the OS for each application/VM

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

What are containers?

A

Packaging of an application and all its depdencies for a standardized setup for different environments

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

What are containers seen as on the exam? When should you pick containers?

A

Seen as flexible

Pick when you need flexibility, moving around different environments, portable between on-prem and aws

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

What is ECS?

A

A managed AWS service that orchestrates at scale running thousands of containers, placing containers where appropriate

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

What is ECS vs EKS?

A

ECS is AWS proprieteary but is simple to use

EKS is open source Kubernetes, that can be hybrid on-prem but has more setup

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

When should you pick EKS on the exam?

A

If the exam mentions opensource, on-prem, Kubernetes

17
Q

Why use Fargate over ECS?

A

Fargate takes out the work of managing the underlying servers that containers run on.

18
Q

What kind of applications is ECS good for?

A

Long running or short running applications

19
Q

What must be used with Fargate?

A

EKS or ECS

20
Q

When should you use ECS EC2 vs Fargate?

A

EC2 for long running applications, when you want to use the EC2 cost savings, you are okay with container sharing same host
Fargate for short running tasks, billing based on resource and time, you need an isolated env

21
Q

When should you use Lambda vs. Fargate?

A

Use Lambda for short running and simple functions, inconsistent workloads
Fargate is good for longer running applications, consistent workloads

22
Q

What do you configure for Event Bridge?

A

You configure Rules that define a condition to trigger the rule and an action of where to send the event.