Bird
0
0

Which AWS CLI command correctly deploys an API to a stage named 'prod' for REST API ID 'abc123'?

easy📝 Syntax Q3 of 15
AWS - API Gateway
Which AWS CLI command correctly deploys an API to a stage named 'prod' for REST API ID 'abc123'?
Aaws apigateway deploy-stage --rest-api abc123 --name prod
Baws apigateway create-deployment --rest-api-id abc123 --stage-name prod
Caws apigateway create-stage --api-id abc123 --stage prod
Daws apigateway deploy-api --api-id abc123 --stage prod
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct AWS CLI command for deployment

    The correct command to deploy an API is 'create-deployment' with parameters --rest-api-id and --stage-name.
  2. Step 2: Check other options for syntax errors

    Options A, B, and C use incorrect commands or parameters that do not exist in AWS CLI for API Gateway.
  3. Final Answer:

    aws apigateway create-deployment --rest-api-id abc123 --stage-name prod -> Option B
  4. Quick Check:

    Correct CLI deploy command = aws apigateway create-deployment --rest-api-id abc123 --stage-name prod [OK]
Quick Trick: Use create-deployment with --stage-name to deploy [OK]
Common Mistakes:
  • Using wrong CLI commands
  • Mixing up parameters
  • Assuming create-stage deploys API

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes