I think the issue here is that you are extending the scene session but trying to access property from global session.
In telegraf global session and scene session are different.
examId
will be available under ctx.scene.session.examId
Here are some useful examples of different scenes with sessions.