0
0
AWScloud~10 mins

API Gateway throttling 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 set the maximum requests per second in API Gateway throttling.

AWS
api_gateway = AwsApiGateway()
api_gateway.throttling.rate_limit = [1]
Drag options to blanks, or click blank then click option'
Athrottle_limit
Brequests_per_second
C1000
Dmax_connections
Attempts:
3 left
💡 Hint
Common Mistakes
Using descriptive strings instead of numeric values.
Confusing rate limit with connection limits.
2fill in blank
medium

Complete the code to configure burst limit in API Gateway throttling settings.

AWS
api_gateway.throttling.burst_limit = [1]
Drag options to blanks, or click blank then click option'
Aburst_capacity
B500
Cmax_burst
Dthrottle_burst
Attempts:
3 left
💡 Hint
Common Mistakes
Using variable names instead of numeric values.
Confusing burst limit with rate limit.
3fill in blank
hard

Fix the error in the code to correctly apply throttling settings to a stage in API Gateway.

AWS
stage = api_gateway.create_stage('prod')
stage.[1] = api_gateway.throttling
Drag options to blanks, or click blank then click option'
Athrottling_settings
Bthrottle_settings
CthrottleConfig
Dthrottling
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect property names like 'throttle_settings' or 'throttling'.
Missing underscores or plural forms.
4fill in blank
hard

Fill both blanks to create a throttling policy with rate and burst limits in API Gateway.

AWS
throttle_policy = {
  'rateLimit': [1],
  'burstLimit': [2]
}
Drag options to blanks, or click blank then click option'
A1000
B500
C2000
D100
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping rateLimit and burstLimit values.
Using values that are too low or too high for typical throttling.
5fill in blank
hard

Fill all three blanks to define a usage plan with throttling and quota limits in API Gateway.

AWS
usage_plan = {
  'throttle': {
    'rateLimit': [1],
    'burstLimit': [2]
  },
  'quota': {
    'limit': [3],
    'period': 'MONTH'
  }
}
Drag options to blanks, or click blank then click option'
A2000
B1000
C100000
D500
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up burstLimit and rateLimit values.
Setting quota limit too low or too high.