Bird
0
0

You ran this command to deploy your API stage:

medium📝 Debug Q14 of 15
AWS - API Gateway
You ran this command to deploy your API stage:
aws apigateway create-stage --rest-api-id abc123 --stage-name test --deployment-id dep789
But you get an error saying the deployment ID does not exist. What is the likely cause?
AThe deployment ID 'dep789' was not created before creating the stage
BThe stage name 'test' is invalid
CThe rest-api-id 'abc123' is incorrect format
DYou must create the stage before creating the deployment
Step-by-Step Solution
Solution:
  1. Step 1: Understand the dependency between deployment and stage

    A stage must point to an existing deployment. If deployment ID does not exist, stage creation fails.
  2. Step 2: Identify the error cause

    The error indicates deployment 'dep789' was not created or is invalid before stage creation.
  3. Final Answer:

    The deployment ID 'dep789' was not created before creating the stage -> Option A
  4. Quick Check:

    Stage needs existing deployment ID [OK]
Quick Trick: Create deployment before stage with deployment ID [OK]
Common Mistakes:
  • Assuming stage name format causes error
  • Thinking API ID format is the issue
  • Believing stage must be created before deployment

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes