AWS Certified Developer Associate DVA-C02 Practice Question
A developer is working on an AWS Lambda function that integrates with Amazon S3 and needs to test the function without incurring costs or affecting production data. What AWS service or feature should they use to create a mock endpoint that simulates interactions with Amazon S3 during integration testing?
You selected this option
Amazon API Gateway with a mock integration
You selected this option
Perform the test directly in the Amazon S3 console with test files
You selected this option
Invoke the Lambda function with an event that has a fake S3 trigger
You selected this option
Use Amazon DynamoDB to simulate the S3 interaction
AWS provides the ability to simulate application endpoints using Amazon API Gateway. By setting up a mock integration, the developer can return a predefined response without actually sending the request to the backend service like Amazon S3. This allows testing the Lambda function's handling of calls and responses without touching any live resources. Using Lambda or S3 directly for mock testing is incorrect as it would imply either invoking the actual Lambda function or interacting with the real S3 service, thus incurring costs or affecting production data. While Amazon DynamoDB is part of the AWS ecosystem, it is not a tool for creating mock endpoints.
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 Amazon API Gateway and how does it work with AWS Lambda?
Open an interactive chat with Bash
What does a mock integration in API Gateway entail?
Open an interactive chat with Bash
Why is using the actual Lambda function or S3 services for testing a risk?
Open an interactive chat with Bash
AWS Certified Developer Associate DVA-C02
Deployment
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Oh snap!
Loading...
Loading...
Loading...
Information Technology Package Join Premium for Full Access