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
Related questions
A backend uses EventBridge to route events to multiple targets. You need to guarantee ordering for events with the same entity key while minimizing latency. Which design is most appropriate?
View question →
Which statement correctly describes how AWS Signature Version 4 (SigV4) impacts an authenticated request to API Gateway or AWS services?
View question →
A Lambda function processes S3 ObjectCreated events. You see occasional duplicate processing for the same key. The S3 bucket has versioning enabled. What is the best mitigation approach at the application level?
View question →
A service exposes an API through API Gateway + Lambda. The Lambda function receives requests with an incoming Authorization header. Which configuration most directly ensures that only validated JWT claims are trusted by the Lambda without extra custom parsing?
View question →
A developer wants to use Step Functions to orchestrate a workflow with compensation. They must handle retries with jitter and avoid duplicating side effects when activities are retried. What is the best practice?
View question →
You deploy a CloudFront distribution with an origin at an S3 bucket. You need signed URLs and must also support caching efficiently while preventing content leaks. Which strategy best satisfies both goals?
View question →