Security considerations must be taken into account in every line of code for any app developer, no matter what the application or where it is to run. This much is standard operating practice today. With serverless computing, however, it becomes even more important.
Serverless functions, delivering microservices, are modular pieces of code that behave in particular ways when provided with particular inputs.