
Answer-first summary for fast verification
Answer: Employ API Gateway stage variables to manage endpoint configurations per stage.
The correct answer is B. Storing third-party service endpoints in API Gateway stage variables that correspond to the stage is a best practice. Stage variables are key-value pairs that you can use to customize the behavior of a specific deployment stage. By using stage variables, you can manage different endpoints for development, user acceptance testing, and production environments easily and efficiently. This is more suitable than the other options, which either do not address the need for stage-specific configurations (A, C) or introduce unnecessary complexity (D).
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In an AWS environment using Lambda and API Gateway for a batch processing application, how should a development team configure APIs across different deployment stages to integrate with third-party service endpoints?
A
Utilize Lambda layers for storing endpoints specific to each stage.
B
Employ API Gateway stage variables to manage endpoint configurations per stage.
C
Incorporate endpoints into the API Gateway request URL as query parameters.
D
Leverage AWS AppConfig for endpoint storage across various environments.
No comments yet.