Serverless Flashcards
How is Lambda priced?
Lambda is priced based on the Number of Requests and Duration of the process.
How many requests are free with Lambda?
The first 1 million Lambda requests are free
How does Lambda scale?
Lambda scales out, not up
What service allows you to debug your complex Lambda services?
X-Ray allows you to debug your Lambda services
What is SAM?
SAM is Serverless Application Model
What is SAM used for?
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.
What is a container?
A container is a package that contains an application, libraries, runtime and tools required to run it
What is a popular container engine?
Docker is a popular container engine
What is the benefit to containers over virtualisation?
Containers provide the benefits of virtualisation with less overhead and give faster starts than VMS
What is ECS?
ECS is a managed container orchestration service. It takes all the heavy lifting out of deploying, managing and scaling containers
What instances can ECS manage?
ECS can manage EC2 and Fargate instances
What are the components of ECS?
The components of ECS are:
- Cluster
- Task Definition
- Container Definition
- Task
- Service
- Registry
What is an ECS Cluster?
An ECS Cluster is a logical collection of ECS resources - either ECS EC2 instances or Fargate instances
What are ECS Task Definitions?
ECS Task Definitions are similar to a Dockerfile that enables you to define your application running on containers in ECS.
What is ECS Container Definition?
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