Implementing advanced authorization with AWS Lambda for endpoint-specific access

When handling more complex authorization patterns, we can implement the necessary logic using Cognito Lambda triggers and authorizer functions.
1. The scenario
I’m working on a maths contest...