---
title: Lambda function should use the latest runtime environment version
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: >-
  Docs > Datadog Security > OOTB Rules > Lambda function should use the latest
  runtime environment version
---

> For the complete documentation index, see [llms.txt](https://docs.datadoghq.com/llms.txt).

# Lambda function should use the latest runtime environment version
 
## Description{% #description %}

This control ensures that your Amazon Lambda Function is updated to the most recent production runtime environment version. It passes only for these runtimes: `nodejs24.x`, `python3.14`, `java25`, `dotnet10`, `ruby4.0`, and `provided.al2023`. Preview runtimes are excluded because AWS does not cover them under the Lambda SLA or Technical Support and advises against using them for production workloads. Regularly updating your Lambda functions to the latest runtime version is a best practice recommended by Amazon to incorporate security patches, bug fixes, and the latest features.

**Note:** AWS Lambda supports deployment via both container images and .zip file archives. For container images, the runtime is determined during base image creation and is not accessible through configuration data. This is consistent for AWS and Custom base images. Consequently, this check only applies to deployment packages of the `Zip` type.

For details on supported and recent runtimes, see [AWS Lambda Supported Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).

## Remediation{% #remediation %}

To learn how to update your Lambda function's runtime, refer to the [AWS Console Documentation](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html).
