Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
An ecommerce application utilizes Amazon API Gateway and AWS Lambda. What is the recommended approach for testing the application in a separate, monitored environment before production deployment?
A
Implement a single API Gateway stage with distinct Lambda functions for each environment, using query parameters to select the appropriate function.
B
Utilize multiple API Gateway stages, employing one Lambda function across all environments, differentiated by environment variables within the Lambda code.
C
Adopt multiple API Gateway stages, with a unique Lambda function for each environment, leveraging stage variables to direct traffic to the correct Lambda function.
D
Employ a single API Gateway stage, directing environment-specific traffic through query parameters, with the Lambda function containing conditional code blocks based on the environment indicated by the parameter.