I would like to use AWS Lambda to run solutions to programming problems for an online courses website. So far, I use simple eval
in my lambda function. However, many posts (e.g. this and this) suggest that a comprehensive solution is needed to make sure that malicious code does not render havoc.
Since implementing any sort of a solution seems to involve a very steep learning curve for me, I am wondering whether I can avoid problems by limiting a student's code to only 1 second of execution time.
If limiting the execution time to 1 second is not effective, what are the other simplest measures I can take?