As a developer, you are setting up an application gateway to handle different backend configurations without the need to maintain distinct configurations for each environment. Your task is to control operational parameters such as service endpoints and logging verbosity. Which approach can you use to set these parameters uniquely for development, test, and production stages within a single deployment?
Create multiple deployment instances of your gateway, one for each environment, with individual configurations.
Utilize environment-specific parameters, such as stage variables, which can be applied to a single gateway setup to differentiate operational settings for each stage.
Implement function-specific environment variables that influence the gateway's behavior and manage different operational settings.
Manually adjust the configuration setup before processing each incoming request to the gateway, based on custom request criteria.