I am currently writing an application that is going to be an adaptive quiz-like site for studying. The idea is a user is studying some topic and they are given questions on the site and enter their answers. As they enter in answers, the site's backend does some logic to compare the questions they missed with the rest of the question bank to decide what the best question to give them next.
My question is whether I should continue using the AWS Lambda backend I have been using for the rest of the site or whether I need some sort of stateful backend. My thoughts are that with a stateful backend, I could store some user session data that I can update with each question they do. With the lambda, I would have to store question in the database with each update and query the database each time because the backend holds no state.
Would these constant queries slow down my application? How much? I would like to keep my current lambda backend if it is possible but don't want to do so if it will lead me to issues later on.