Serverless Computing Flashcards

1
Q

Q: What is serverless computing?

A

A: A cloud computing model where the cloud provider dynamically manages server resources, enabling developers to focus on writing code without managing infrastructure.

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

Q: What are the key benefits of serverless computing?

A

A: Reduced operational overhead, automatic scaling, cost efficiency (pay-as-you-go), and faster development cycles.

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

Q: What is AWS Lambda?

A

A: A compute service that runs code in response to events and automatically manages the underlying compute resources.

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

Q: What are some common triggers for AWS Lambda?

A

A: S3 events, DynamoDB streams, API Gateway, CloudWatch Events, and SQS messages.

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

Q: What runtimes does AWS Lambda support?

A

A: Examples include Python, Node.js, Java, .NET, Go, Ruby, and custom runtimes via Lambda Layers.

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

Q: What is the execution environment for AWS Lambda?

A

A: A secure, isolated runtime environment with pre-configured memory, CPU, and ephemeral storage.

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

Q: What are some key limits of AWS Lambda?

A

A: Maximum memory: 10 GB, max timeout: 15 minutes, and max payload size: 6 MB (synchronous) or 256 KB (asynchronous).

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

Q: How is AWS Lambda priced?

A

A: Based on the number of requests and the duration (execution time multiplied by allocated memory).

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

Q: What is Amazon API Gateway?

A

A: A service for creating, deploying, and managing APIs as a gateway for Lambda functions or other backend services.

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

Q: What is event-driven architecture in serverless computing?

A

A: A design paradigm where services react to events, enabling asynchronous and loosely coupled systems.

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

Q: What are AWS Step Functions?

A

A: A serverless workflow service that coordinates the execution of multiple AWS services using a visual workflow.

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

Q: Why is DynamoDB commonly used in serverless applications?

A

A: DynamoDB is a fully managed NoSQL database with auto-scaling and high availability, ideal for event-driven use cases.

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

Q: How is Amazon S3 used in serverless computing?

A

A: As a trigger for Lambda functions, a static website host, or a scalable storage solution.

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

Q: What is the AWS Serverless Application Model (SAM)?

A

A: A framework for building serverless applications using templates to define resources and configurations.

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

Q: How does CloudFormation support serverless applications?

A

A: By defining infrastructure as code, including Lambda functions, API Gateway, and DynamoDB resources.

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

Q: What is AWS Amplify?

A

A: A serverless platform for building and deploying scalable web and mobile applications with features like authentication and analytics.

17
Q

Q: What is AWS Fargate?

A

A: A serverless compute engine for containers that eliminates the need to manage EC2 instances for ECS or EKS.

18
Q

Q: What are Lambda Layers?

A

A: A feature that allows you to share common code or dependencies across multiple Lambda functions.

19
Q

Q: What is Lambda@Edge?

A

A: A feature that allows you to run Lambda functions at AWS CloudFront edge locations to handle content delivery closer to users.

20
Q

Q: What is AWS App Runner?

A

A: A fully managed service that makes it easy to build and deploy web applications and APIs using containers.

21
Q

Q: How is Amazon Kinesis used in serverless architectures?

A

A: For real-time data streaming and triggering Lambda functions for analytics or processing.

22
Q

Q: What is Amazon EventBridge?

A

A: A serverless event bus service for routing events between AWS services, SaaS apps, and custom applications.

23
Q

Q: How is CI/CD implemented in serverless applications?

A

A: Using CodePipeline, CodeBuild, and SAM CLI to automate deployment and testing of serverless apps.

24
Q

Q: What are best practices for securing serverless applications?

A

A: Use least privilege in IAM roles, enable VPC access, use encryption, and monitor with CloudWatch.

25
Q

Q: What is a cold start in AWS Lambda?

A

A: A delay when a function is invoked for the first time or after being idle, as the runtime environment is initialized.

26
Q

Q: What is a warm start in AWS Lambda?

A

A: When a Lambda function is invoked and an already initialized runtime environment is reused, reducing latency.

27
Q

Q: What is the Serverless Framework?

A

A: An open-source framework for building and deploying serverless applications across multiple cloud providers.

28
Q

Q: How do you monitor serverless applications?

A

A: Using CloudWatch for metrics and logs, X-Ray for tracing, and third-party tools like Datadog.

29
Q

Q: Why would you connect a Lambda function to a VPC?

A

A: To access private resources like RDS or Elasticache in a VPC.

30
Q

Q: What are common use cases for serverless computing?

A

A: Real-time data processing, REST APIs, IoT backends, chatbots, and static website hosting.

31
Q

Q: What are some disadvantages of serverless computing?

A

A: Cold starts, vendor lock-in, limited execution time (e.g., Lambda’s 15-minute limit), and debugging challenges.

32
Q

Q: How is CodePipeline used in serverless computing?

A

A: To automate the deployment and testing of serverless applications.

33
Q

Q: How is SQS used in serverless applications?

A

A: As a message queue for decoupling and triggering Lambda functions asynchronously.