Serverless Computing Flashcards
Q: What is serverless computing?
A: A cloud computing model where the cloud provider dynamically manages server resources, enabling developers to focus on writing code without managing infrastructure.
Q: What are the key benefits of serverless computing?
A: Reduced operational overhead, automatic scaling, cost efficiency (pay-as-you-go), and faster development cycles.
Q: What is AWS Lambda?
A: A compute service that runs code in response to events and automatically manages the underlying compute resources.
Q: What are some common triggers for AWS Lambda?
A: S3 events, DynamoDB streams, API Gateway, CloudWatch Events, and SQS messages.
Q: What runtimes does AWS Lambda support?
A: Examples include Python, Node.js, Java, .NET, Go, Ruby, and custom runtimes via Lambda Layers.
Q: What is the execution environment for AWS Lambda?
A: A secure, isolated runtime environment with pre-configured memory, CPU, and ephemeral storage.
Q: What are some key limits of AWS Lambda?
A: Maximum memory: 10 GB, max timeout: 15 minutes, and max payload size: 6 MB (synchronous) or 256 KB (asynchronous).
Q: How is AWS Lambda priced?
A: Based on the number of requests and the duration (execution time multiplied by allocated memory).
Q: What is Amazon API Gateway?
A: A service for creating, deploying, and managing APIs as a gateway for Lambda functions or other backend services.
Q: What is event-driven architecture in serverless computing?
A: A design paradigm where services react to events, enabling asynchronous and loosely coupled systems.
Q: What are AWS Step Functions?
A: A serverless workflow service that coordinates the execution of multiple AWS services using a visual workflow.
Q: Why is DynamoDB commonly used in serverless applications?
A: DynamoDB is a fully managed NoSQL database with auto-scaling and high availability, ideal for event-driven use cases.
Q: How is Amazon S3 used in serverless computing?
A: As a trigger for Lambda functions, a static website host, or a scalable storage solution.
Q: What is the AWS Serverless Application Model (SAM)?
A: A framework for building serverless applications using templates to define resources and configurations.
Q: How does CloudFormation support serverless applications?
A: By defining infrastructure as code, including Lambda functions, API Gateway, and DynamoDB resources.