AWS Lambda Supported Languages

Instruction: List some of the programming languages supported by AWS Lambda and mention any limitations you know of.

Context: This question evaluates the candidate's familiarity with AWS Lambda's support for different programming languages and any associated constraints, showcasing their technical breadth.

Updated

Official answer

Lambda provides managed language runtimes for Node.js, Python, Java, .NET and Ruby. The supported versions and deprecation dates change, so select a version from the current runtime table rather than treating a language name as a permanent support guarantee.

Go and Rust commonly use an OS-only runtime such as provided.al2023 with a compiled Linux binary and a Lambda runtime interface client. They are not managed language runtimes in the same sense as Python or Node.js. A custom runtime can support another language, but the application owner must maintain the language runtime and its dependencies.

A Lambda-compatible container image is another packaging option. It still must implement the Lambda Runtime API and satisfy Lambda's operating-system and architecture requirements; packaging an arbitrary long-running server in an image does not make it a compatible handler.

Choose x86_64 or arm64 deliberately and build native dependencies for the target Linux environment. Check library availability, package/resource limits, initialization behavior and the selected compute mode's execution limits. Benchmark the actual workload instead of assuming one language is universally fastest or cheapest.

Managed runtime updates do not update every dependency bundled with the application. For container images and custom language components, plan rebuilds, vulnerability fixes and regression tests explicitly.

Supported runtimes, OS-only runtimes, container requirements

Related Questions