QuestionQ28

Development with AWS Services

A company has an Amazon API Gateway REST API that integrates with an AWS Lambda function. The API’s development stage references a development alias of the Lambda function named dev.

A developer needs make a production alias of the Lambda function named prod available through the API.

Which solution meets these requirements?

  • A Create a new method on the API. Name the method production. Configure the method to include a stage variable that points to the prod Lambda function alias.
  • B Create a new method on the API. Name the method production. Configure an integration request on the API’s development stage that points to the prod Lambda function alias.
  • C Deploy the API to a new stage named production. Configure the stage to include a stage variable that points to the prod Lambda function alias.
  • D Deploy the API to a new stage named production. Configure an integration request on the API’s production stage that points to the prod Lambda function alias.
Explanation

Create a new API stage named 'production' and configure a stage variable to reference the prod Lambda alias. Stage variables enable environment-specific configurations without modifying the integration itself, following AWS best practices for managing multiple deployment environments through a single API.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!