DVA-C02 · Question #684
A company runs an application on an Amazon ECS cluster behind an Application Load Balancer (ALB). The company deploys an Amazon API Gateway HTTP API in front of the ALB. The company configures a…
The correct answer is C. Create a new API Gateway integration. Add a request parameter that maps with the required. To append a fixed HTTP header only for the /testing route, creating a new API Gateway integration specific to that route and adding a request parameter that maps to the required header allows precise control without affecting other routes.
Question
A company runs an application on an Amazon ECS cluster behind an Application Load Balancer (ALB). The company deploys an Amazon API Gateway HTTP API in front of the ALB. The company configures a single integration with the ALB for all routes. The company enables the auto-deploy option for the HTTP API. The company is testing the application in a staging environment. The company wants to append a fixed HTTP header to all incoming requests for the /testing route. Which solution will meet this requirement?
Options
- AModify the API Gateway integration to add a request parameter that maps with the required
- BModify the API Gateway integration to add a response parameter that maps with the required
- CCreate a new API Gateway integration. Add a request parameter that maps with the required
- DCreate a new API Gateway integration. Add a response parameter that maps with the required
How the community answered
(35 responses)- A6% (2)
- B3% (1)
- C83% (29)
- D9% (3)
Explanation
To append a fixed HTTP header only for the /testing route, creating a new API Gateway integration specific to that route and adding a request parameter that maps to the required header allows precise control without affecting other routes.
Community Discussion
No community discussion yet for this question.