0 votes
in AWS by

You have recently developed an AWS Lambda function to be used as a backend technology for an API gateway instance.

You need to give the API gateway URL to a set of users for testing. What must be done before the users can test the API?

1 Answer

0 votes
by

Prepare API Gateway URL

Question

You have recently developed an AWS Lambda function to be used as a backend technology for an API gateway instance.

You need to give the API gateway URL to a set of users for testing.

What must be done before the users can test the API?

Answers

Explanations

Click on the arrows to vote for the correct answer

A.  B.  C.  D. 

Answer - A.

This is also mentioned in the AWS Documentation.

In API Gateway, a deployment is represented by a Deployment resource.

It is like an executable of an API represented by a RestApi resource.

For the client to call your API, you must create a deployment and associate a stage to it.

A stage is represented by a Stage resource and represents a snapshot of the API, including methods, integrations, models, mapping templates, Lambda authorizers (formerly known as custom authorizers), etc.

Option B is incorrect since this is only required for cross-domain requests.

Option C is incorrect since this is only required when you want to use your code to call the API gateway, and there is no mention of that requirement in the question.

Option D is incorrect since this is only required if the request is not text-based.

...