Comprehensive developer toolkit implementing serverless best practices for AWS Lambda functions in Python
89
{
"context": "This criteria evaluates how effectively the engineer uses AWS Lambda Powertools' LambdaFunctionUrlResolver to implement HTTP endpoint routing, request/response handling, and error management for a Lambda Function URL-based service.",
"type": "weighted_checklist",
"checklist": [
{
"name": "LambdaFunctionUrlResolver initialization",
"description": "Creates an instance of LambdaFunctionUrlResolver with appropriate CORS configuration (allow_origin, allow_methods, allow_headers).",
"max_score": 15
},
{
"name": "GET route registration",
"description": "Uses the @app.get() decorator or app.get() method to register the GET /users/<user_id> route with path parameter support.",
"max_score": 15
},
{
"name": "POST route registration",
"description": "Uses the @app.post() decorator or app.post() method to register the POST /users route for creating users.",
"max_score": 15
},
{
"name": "PUT route registration",
"description": "Uses the @app.put() decorator or app.put() method to register the PUT /users/<user_id> route with path parameter support.",
"max_score": 15
},
{
"name": "Request data access",
"description": "Accesses request data using app.current_event.json_body for POST/PUT requests and extracts path parameters from route handler function arguments.",
"max_score": 15
},
{
"name": "Response handling",
"description": "Uses Response class from aws_lambda_powertools.event_handler to return structured HTTP responses with appropriate status codes (200, 201, 400, 404).",
"max_score": 15
},
{
"name": "Resolver integration",
"description": "Calls app.resolve(event, context) in the lambda_handler function to process incoming Function URL events and route them to the appropriate handler.",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-aws-lambda-powertoolsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10