D1: Unit Testing & AWS SAM Local
AWS Associate AWS Certified Developer – Associate exam practice questions · 10 flashcards
Question
AWS SAM?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Unit Testing & AWS SAM Local practice questions and answers
- AWS SAM?Serverless Application Model: IaC shorthand for Lambda, API Gateway, DynamoDB plus CLI for build/test/deploy.
- sam local invoke?Run a Lambda function locally in a container with a test event.
- sam local start-api?Run API Gateway + Lambda locally for HTTP testing.
- sam local generate-event?Create sample event payloads (S3, SQS, API Gateway, etc.).
- sam build?Builds dependencies and prepares deployment artifacts.
- sam deploy --guided?Interactively deploys and saves config to samconfig.toml.
- sam sync?Quickly syncs code/infrastructure changes to the cloud during development (--watch).
- How to unit test Lambda code?Separate business logic from handler, mock AWS SDK calls (moto, stubs), run with pytest/jest.
- sam remote invoke?Invoke a deployed Lambda in the cloud from the CLI.
- sam logs?Fetch CloudWatch logs for deployed functions.