Compute - AWS Lambda Flashcards

1
Q

What is AWS Lambda?

A
  • AWS Lambda is a serverless compute service.
  • It allows you to run application code without managing EC2 instances.
  • Compute resources are managed and provisioned by AWS.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does “serverless” mean in the context of AWS Lambda?

A
  • Serverless means not worrying about provisioning and managing compute resources.
  • AWS manages the compute resources, starting, stopping, and scaling as needed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How is AWS Lambda priced?

A
  • AWS Lambda charges for compute power per 100 milliseconds of use.
  • You only pay when your code is running and for the number of times it runs.
  • Sub-second metering provides cost optimization.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the steps involved in the operation of AWS Lambda?

A
  • Upload or write code within Lambda.
  • Configure Lambda functions to execute code upon triggers.
  • When a trigger occurs, Lambda runs the code using the required compute power.
  • AWS records compute time and function invocations for cost calculation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the key constructs of an AWS Lambda application?

A
  • Lambda function: Your own code invoked by Lambda.
  • Event source: AWS service that triggers Lambda functions.
  • Trigger: Operation from an event source that invokes the function.
  • Downstream resources: Resources used during function execution.
  • Log streams: Recorded events and logs in CloudWatch.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you create a Lambda function via the AWS Management Console?

A
  • Select a blueprint, which is a preconfigured Lambda function template.
  • Customize the blueprint as necessary.
  • Configure triggers, such as an S3 put request.
  • Upload or edit code, define resources, execution timeout, IAM Role, and Handler Name.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the benefits of using AWS Lambda?

A
  • Serverless and scalable compute service.
  • Cost optimization compared to managing EC2 instances.
  • Pay only for compute power while the code is running and for function invocations.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly