Bird
0
0

You want to deploy a new version of your API to a 'prod' stage without affecting the current live API. Which sequence of AWS CLI commands should you use?

hard📝 Application Q15 of 15
AWS - API Gateway
You want to deploy a new version of your API to a 'prod' stage without affecting the current live API. Which sequence of AWS CLI commands should you use?
Aaws apigateway create-deployment -> aws apigateway create-stage with 'prod'
Baws apigateway create-stage with 'prod' -> aws apigateway create-deployment
Caws apigateway create-deployment -> aws apigateway update-stage with 'prod'
Daws apigateway update-stage with 'prod' -> aws apigateway create-deployment
Step-by-Step Solution
Solution:
  1. Step 1: Deploy new API version

    First, create a new deployment to capture the latest API changes.
  2. Step 2: Update existing 'prod' stage to point to new deployment

    Use update-stage to switch the 'prod' stage to the new deployment without creating a new stage.
  3. Final Answer:

    aws apigateway create-deployment -> aws apigateway update-stage with 'prod' -> Option C
  4. Quick Check:

    Deploy then update stage to switch versions [OK]
Quick Trick: Create deployment then update existing stage [OK]
Common Mistakes:
  • Creating a new stage instead of updating existing
  • Updating stage before deployment exists
  • Assuming create-stage can update existing stage

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes