Bird
0
0

You want to automate API deployment to a stage and include a description. Which AWS CLI command is correct?

hard📝 Application Q9 of 15
AWS - API Gateway
You want to automate API deployment to a stage and include a description. Which AWS CLI command is correct?
Aaws apigateway deploy-api --api-id abc123 --stage dev --desc "Initial deploy"
Baws apigateway create-stage --rest-api-id abc123 --stage-name dev --desc "Initial deploy"
Caws apigateway create-deployment --rest-api-id abc123 --stage-name dev --description "Initial deploy"
Daws apigateway update-deployment --rest-api-id abc123 --stage-name dev --description "Initial deploy"
Step-by-Step Solution
Solution:
  1. Step 1: Identify correct command and parameters

    The 'create-deployment' command supports --description and --stage-name parameters.
  2. Step 2: Check other options for invalid commands or parameters

    Options A, C, and D use invalid commands or parameters not supported for deployment with description.
  3. Final Answer:

    aws apigateway create-deployment --rest-api-id abc123 --stage-name dev --description "Initial deploy" -> Option C
  4. Quick Check:

    Use create-deployment with --description [OK]
Quick Trick: Add --description to create-deployment for notes [OK]
Common Mistakes:
  • Using wrong commands
  • Wrong parameter names
  • Trying to update deployment instead of create

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes