AWS Certified Developer Associate DVA-C02 Practice Question
A developer is building a serverless application using the AWS Serverless Application Model (AWS SAM) and needs to test their Lambda function's logic on their local machine before deploying it to the AWS cloud. Which AWS SAM CLI command should the developer use to perform a single, local invocation of the function?
The correct command for a one-time local invocation of a Lambda function is sam local invoke. This command builds the function in a local container that emulates the AWS Lambda environment and then runs it once. sam local start-api is used to start a local server that emulates Amazon API Gateway, not for single function invocation. sam deploy is used to deploy the application to the AWS cloud, not for local testing. sam test is not a valid AWS SAM CLI command.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is AWS SAM?
Open an interactive chat with Bash
How does `sam local invoke` work?
Open an interactive chat with Bash
What are the benefits of testing Lambda functions locally?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access