In AWS AppSync, you enable fine-grained authorization with resolvers that call Lambda. To prevent privilege escalation from client arguments, what is the most robust security control?

Answer

Validate and authorize within the Lambda using the Cognito/JWT claims from the resolver context, not user-provided arguments.

Explanation

Using trusted identity claims provided by AppSync (resolver context) and re-checking authorization in Lambda prevents clients from spoofing authorization inputs. Client-side filtering and argument trust are common privilege escalation paths.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list