
Answer-first summary for fast verification
Answer: Redeploy the API to an existing stage or to a new stage
Redeploy the API to an existing stage or to a new stage After creating your API, you must deploy it to make it callable by your users. To deploy an API, you create an API deployment and associate it with a stage. A stage is a logical reference to a lifecycle state of your API (for example, dev, prod, beta, v2). API stages are identified by the API ID and stage name. Every time you update an API, you must redeploy the API to an existing stage or to a new stage. Updating an API includes modifying routes, methods, integrations, authorizers, and anything else other than stage settings. Incorrect options: Developers need IAM permissions on API execution component of API Gateway - Access control access to Amazon API Gateway APIs is done with IAM permissions. To call a deployed API or to refresh the API caching, you must grant the API caller permissions to perform required IAM actions supported by the API execution component of API Gateway. In the current scenario, developers do not need permissions on "execution components" but on "management components" of API Gateway that help them to create, deploy, and manage an API. Hence, this statement is an incorrect option. Enable Lambda authorizer to access API - A Lambda authorizer (formerly known as a custom authorizer) is an API Gateway feature that uses a Lambda function to control access to your API. So, this feature too helps in access control, but in the current scenario its the developers and not the users who are facing the issue. So, this statement is an incorrect option. Use Stage Variables for development state of API - Stage variables are name-value pairs that you can define as configuration attributes associated with a deployment stage of a REST API. They act like environment variables and can be used in your API setup and mapping templates. Stage variables are not connected to the scenario described in the current use case.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As a Senior Developer leading a team in building multiple APIs using AWS API Gateway, you have encountered an issue in the development environment. Your team has reported that modifications they make to the APIs are not visible or effective when the APIs are actually called.
Given this scenario, as a Developer Associate, which of the following solutions would you recommend to resolve this issue?
A
Developers need IAM permissions on API execution component of API Gateway
B
Use Stage Variables for development state of API
C
Redeploy the API to an existing stage or to a new stage
D
Enable Lambda authorizer to access API
No comments yet.