Serverless Flashcards

1
Q

Lambda

A

global

compute service; allows you to upload your code and create a lambda function

takes care of provisioning and managing the servers that you use to run the code

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

traditional vs serverless architecture

A

API gateway is frontend for serverless requests

usually a loadbalancer is the frontend for traditional

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

lambda language support

A
node.js
java
ptyhon
c#
go
powershell
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Serverless services

A

Aurora
DynamoDB
API Gateway

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

AWS X-ray

A

X-ray allows you to debug what happens with Lambda

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

Lambda triggers

A
Alexa skill
Cognito
IoT rule
SNS
Kinesis
SQS
S3
DynamoDB
EventBridge
CloudWatch
API Gateway
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

SAM - acronym

A

serverless application model

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

SAM - definition

A

CloudFormation extension

framework that allows you to build serverless apps easily

can run serverless applications locally

can package and deploy with CodeDeploy

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

SAM types

A

functions
APIs
tables

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

ECS - acronym

A

elastic container service

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

ECS - definition

A

managed container orchestration service to allow you to run/scale containerized apps

ECS manages EC2 or Fargate instances

Creates clusters to manage fleets of container deployments

defines rules for CPU and memroy reqs

monitors resource utilization

FREE

Integration with: VPC, sec groups, EBS, ELB, Cloudwatch, CloudTrail

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

containerized application

A

package that contains an app, libraries, runtime, and tools required to run it

bundle that contains an app and all it’s dependencies

provides isolation benefits of virtualization w/ less overhead and faster starts than VMs

portable

runs on container engine (like Docker)

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

ECS components

A

Cluster - logical collection of ECS resources
Task definition - defines application. Can contain multiple containers
Container definition - inside task def. Defines individual containers a task uses; controls CPU/RAM allocation
Task - single running copy of any container defined by task def
Service - allows task defs to be scaled by adding tasks; defines min and max values
Registry - repository for container images. Used to download images to create containers

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

Fargate

A

serverless container engine
eliminates need to create/manage resource
Works with ECS and EKS(elastic kubernetes service)
Each workload runs in its own kernel

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

EC2 vs Fargate

A

Choose EC2 if:

  • Compliance reqs
  • Require broader customization
  • Require GPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

EKS - acronym

A

Elastick kubernetes service

17
Q

Kubernetes (K8)

A

open-source software that lets you deploy and manage containerized apps at scale

18
Q

EKS - definition

A

same toolset on-prem and in cloud

containers grouped in pods (similar to task in ECS)

supports EC2 and fargate

19
Q

EKS vs ECS

A

Choose EKS if:

  • already using K8s

- want to migrate to AWS

20
Q

ECR - acronym

A

elastic container registry

21
Q

ECR - definition

A
managed docker container registry in AWS
integrated w/ ECS and EKS
HA
integrated w/ IAM
Works w/ on-prem deployments
pay for storage and data transfer
22
Q

ECS + load balancing

A

ALB is preferred:

  • dynamic host port mapping
  • path based routing
  • priority rules

Supports all load balancers

23
Q

ECS EC2 instance role

A

applies policy to all tasks running on EC2 instance

24
Q

ECS task role

A

Apply policy on a per task basis

25
Q

API gateway

A

makes it easy for devs to publish, maintain, monitor, and secure APIs at scale

Acts as a front door to AWS resources like: EC2, Lambda, DynamoDB

26
Q

API gateway caching

A

reduce # of requests to API

caches responses for a TTL

27
Q

Same origin policy

A

A browser will allow scripts in webpage A to access data in webpage B ONLY if both webpages have the same origin (domain name)

Prevents XSS

28
Q

CORS - Cross-origin resource sharing

A

allows restricted resources on a web page to be requested from another domain outside of the domain from the first resource