A city inspection Lambda is invoked by API Gateway proxy events and by SQS. The team wants CI to invoke the function the same way every build. Where should the JSON test event payloads live?
Select an answer to reveal the explanation.
Short Explanation
Same script, same cue cards—every rehearsal. Keep API Gateway and SQS test event JSON beside the SAM template so CI hits a known shape. Console typing and raw prod logs are flaky or unsafe.
Full Explanation
Automating deployment testing includes creating and versioning application test event payloads for Lambda, API Gateway, and queue triggers. Storing those JSON fixtures with the SAM project lets CI invoke functions consistently across builds. Manual console events, unredacted production logs, or package-only checks do not provide repeatable, safe trigger coverage.