The machine learning models are precisely stored either in Amazon S3 or Amazon EFS. Then again, they are an integral part of the Lambda function positioned as a container image and kept in Amazon ECR for safe storage.