ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 156 - DVA-C02 discussion

Report
Export

A company runs a batch processing application by using AWS Lambda functions and Amazon API Gateway APIs with deployment stages for development, user acceptance testing and production A development team needs to configure the APIs in the deployment stages to connect to third-party service endpoints.

Which solution will meet this requirement?

A.
Store the third-party service endpoints in Lambda layers that correspond to the stage
Answers
A.
Store the third-party service endpoints in Lambda layers that correspond to the stage
B.
Store the third-party service endpoints in API Gateway stage variables that correspond to the stage
Answers
B.
Store the third-party service endpoints in API Gateway stage variables that correspond to the stage
C.
Encode the third-party service endpoints as query parameters in the API Gateway request URL.
Answers
C.
Encode the third-party service endpoints as query parameters in the API Gateway request URL.
D.
Store the third-party service endpoint for each environment in AWS AppConfig
Answers
D.
Store the third-party service endpoint for each environment in AWS AppConfig
Suggested answer: B

Explanation:

API Gateway Stage Variables: These are designed for configuring dynamic values for your APIs in different deployment stages (dev, test, prod). Here's how to use them for third-party endpoints:

In the API Gateway console,access the 'Stages' section of your API.

For each stage,create a stage variable named something likethirdPartyEndpoint.

Set the value of this variable to the actual endpoint URL for that specific environment.

When configuring API requests within your API Gateway method,reference this endpoint using${stageVariables.thirdPartyEndpoint}.

Why Stage Variables Excel Here:

Environment Isolation:This approach keeps the endpoint configuration specific to each deployment stage,ensuring the right endpoints are used during development,testing,and production cycles.

Ease of Management:You manage the endpoints directly through the API Gateway console without additional infrastructure.

Amazon API Gateway Stage Variables:https://docs.aws.amazon.com/apigateway/latest/developerguide/stage-variables.html

asked 16/09/2024
Julian Mohabir
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first