0
0
AWScloud~10 mins

API deployment and stages in AWS - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new API deployment in AWS API Gateway.

AWS
aws apigateway create-deployment --rest-api-id [1] --stage-name prod
Drag options to blanks, or click blank then click option'
Aapi-123abc
Bdeployment-456def
Cstage-prod
Dlambda-function
Attempts:
3 left
💡 Hint
Common Mistakes
Using deployment ID instead of API ID
Using stage name instead of API ID
2fill in blank
medium

Complete the code to create a new stage named 'dev' for an existing deployment.

AWS
aws apigateway create-stage --rest-api-id api-123abc --stage-name [1] --deployment-id dep-789xyz
Drag options to blanks, or click blank then click option'
Aprod
Bdev
Ctest
Drelease
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'prod' instead of 'dev'
Using deployment ID as stage name
3fill in blank
hard

Fix the error in the command to deploy an API stage with a description.

AWS
aws apigateway create-deployment --rest-api-id api-123abc --stage-name [1] --description "[2]"
Drag options to blanks, or click blank then click option'
Aproduction deployment
Bdev
Cprod
Ddevelopment deployment
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dev' stage name with production description
Mismatching stage and description
4fill in blank
hard

Fill both blanks to create a deployment and assign it to the 'test' stage with a description.

AWS
aws apigateway create-deployment --rest-api-id [1] --stage-name [2] --description "Test deployment"
Drag options to blanks, or click blank then click option'
Aapi-456def
Bprod
Ctest
Ddev
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up stage names
Using wrong API ID
5fill in blank
hard

Fill all three blanks to update the stage description and enable cache for the 'prod' stage.

AWS
aws apigateway update-stage --rest-api-id [1] --stage-name [2] --patch-operations op=replace,path=/cacheClusterEnabled,value=[3]
Drag options to blanks, or click blank then click option'
Aapi-789ghi
Bprod
Ctrue
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'false' instead of 'true' to enable cache
Wrong stage name or API ID