Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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