Jump to another module Deployment (part 1 of 6) Deployment (part 2 of 6) Deployment (part 3 of 6) Deployment (part 4 of 6) Deployment (part 5 of 6) Deployment (part 6 of 6) Troubleshooting and Optimization (part 1 of 5) Troubleshooting and Optimization (part 2 of 5) Troubleshooting and Optimization (part 3 of 5) Troubleshooting and Optimization (part 4 of 5) Troubleshooting and Optimization (part 5 of 5) Security (part 1 of 4) Security (part 2 of 4) Security (part 3 of 4) Security (part 4 of 4) Development with AWS Services (part 1 of 3) Development with AWS Services (part 2 of 3) Development with AWS Services (part 3 of 3) Question 1 of 32 All questionsA company is developing an ecommerce application that uses Amazon API Gateway APIs. The application uses AWS Lambda as a backend. The company needs to test the code in a dedicated, monitored test environment before the company releases the code to the production environment.
Which solution will meet these requirements?
A A. Use a single stage in API Gateway. Create a Lambda function for each environment. Configure API clients to send a query parameter that indicates the environment and the specific Lambda function. B B. Use multiple stages in API Gateway. Create a single Lambda function for all environments. Add different code blocks for different environments in the Lambda function based on Lambda environment variables. C C. Use multiple stages in API Gateway. Create a Lambda function for each environment. Configure API Gateway stage variables to route traffic to the Lambda function in different environments. D D. Use a single stage in API Gateway. Configure API clients to send a query parameter that indicates the environment. Add different code blocks for different environments in the Lambda function to match the value of the query parameter.
Previous Check answer
A –D selectEnter check answerF flag← → move? all shortcuts