Lambda Flashcards

1
Q

AWS Lambda

A

serverless and event-driven compute service.

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

Lambda function

A

source code along with all dependencies. memory: 128-1536MB. run between 1 to 300 seconds. default configured timeout for a lambda function is 3 seconds.

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

Parameters

A

Maximum execution time – UP TO 5 MINUTES;
IAM ROLE:
Handler name: the method name to be used by Lambda.

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

Lambda function invocation types

A

synchronous and asynchronous. can be only specified at the time of manually executing a lambda function.

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

Lambda function over VPC

A

by default, Lambda function code is deployed in a private VPC. AWS Lambda does not support connecting to resources within dedicated tenancy VPCs.

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

Stream-based services

A

Amazon Kinesis Streams and Amazon DynamoDB

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

Best Practice

A

write a lambda function in a stateless style.
Persistent sate should be stored in another cloud service, such as Amazon S3 or DynamoDB.
separate core logic from Lambda handler.
when deploying, avoid DNS resolution for a public hostname. specify at least one subnet in each AZ with lambda function configuration.
make sure sufficient subnet IPs are free to allow lambda functions to scale.
using static initialization or constructor to help improve the performance.
when possible, keep alive and reuse connections such as database or HTTP that were established in an earlier invocation.
use environment variables; …

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