Bird
0
0

Given this AWS CLI command:

medium📝 Predict Output Q4 of 15
AWS - API Gateway
Given this AWS CLI command:
aws apigateway create-deployment --rest-api-id xyz789 --stage-name test
What happens after running this command?
AThe 'test' stage is deleted
BA new deployment is created and the 'test' stage points to it
CThe API is deleted
DNothing happens until you manually assign the deployment
Step-by-Step Solution
Solution:
  1. Step 1: Understand create-deployment behavior

    This command creates a new deployment snapshot and assigns it to the specified stage, updating that stage.
  2. Step 2: Eliminate incorrect outcomes

    The command does not delete stages or APIs, nor does it require manual assignment after running.
  3. Final Answer:

    A new deployment is created and the 'test' stage points to it -> Option B
  4. Quick Check:

    Deployment updates stage immediately = A new deployment is created and the 'test' stage points to it [OK]
Quick Trick: Deployments update stages immediately [OK]
Common Mistakes:
MISTAKES
  • Thinking deployment deletes stages
  • Assuming manual assignment needed
  • Confusing deployment with deletion

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes