Bird
0
0

Given the following AWS CLI command:

medium📝 Predict Output Q13 of 15
AWS - API Gateway
Given the following AWS CLI command:
aws apigateway create-stage --rest-api-id abc123 --stage-name prod --deployment-id dep456
What does this command do?
ACreates a new deployment named 'prod' for API 'abc123'
BCreates a new stage 'prod' linked to deployment 'dep456' for API 'abc123'
CDeletes the stage 'prod' from API 'abc123'
DUpdates the deployment 'dep456' with stage 'prod'
Step-by-Step Solution
Solution:
  1. Step 1: Analyze the command parameters

    The command is create-stage with parameters for API ID, stage name, and deployment ID.
  2. Step 2: Understand the effect of create-stage

    This creates a new stage named 'prod' that points to the deployment 'dep456' for the API 'abc123'.
  3. Final Answer:

    Creates a new stage 'prod' linked to deployment 'dep456' for API 'abc123' -> Option B
  4. Quick Check:

    create-stage + deployment-id = new stage linked to deployment [OK]
Quick Trick: create-stage links stage to deployment by deployment-id [OK]
Common Mistakes:
MISTAKES
  • Confusing stage creation with deployment creation
  • Thinking it deletes or updates instead
  • Mixing up stage name and deployment ID

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes