AWS Lambda | AWS Lambda functions in Node.js Flashcards

1
Q

What is the JVM environment Lambda uses for execution of my function?

AWS Lambda functions in Node.js

AWS Lambda | Compute

A

Lambda provides the Amazon Linux build of openjdk 1.8.

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

Can I use packages with AWS Lambda?

AWS Lambda functions in Node.js

AWS Lambda | Compute

A

Yes. You can use NPM packages as well as custom packages. Learn more here.

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

Can I execute other programs from within my AWS Lambda function written in Node.js?

AWS Lambda functions in Node.js

AWS Lambda | Compute

A

Yes. Lambda’s built-in sandbox lets you run batch (“shell”) scripts, other language runtimes, utility routines, and executables. Learn more here.

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

Is it possible to use native modules with AWS Lambda functions written in Node.js?

AWS Lambda functions in Node.js

AWS Lambda | Compute

A

Yes. Any statically linked native module can be included in the ZIP file you upload, as well as dynamically linked modules compiled with an rpath pointing to your Lambda function root directory. Learn more here.

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

Can I execute binaries with AWS Lambda written in Node.js?

AWS Lambda functions in Node.js

AWS Lambda | Compute

A

Yes. You can use Node.js’ child_process command to execute a binary that you’ve included in your function or any executable from Amazon Linux that is visible to your function. Alternatively several NPM packages exist that wrap command line binaries such as node-ffmpeg. Learn more here.

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