0
0
DynamoDBquery~10 mins

API Gateway to DynamoDB - Interactive Code Practice

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

Complete the code to specify the HTTP method for the API Gateway integration.

DynamoDB
"HttpMethod": "[1]"
Drag options to blanks, or click blank then click option'
APOST
BGET
CPUT
DDELETE
Attempts:
3 left
💡 Hint
Common Mistakes
Using POST instead of GET for data retrieval.
2fill in blank
medium

Complete the code to specify the DynamoDB action for reading an item.

DynamoDB
"Action": "dynamodb:[1]"
Drag options to blanks, or click blank then click option'
AUpdateItem
BPutItem
CGetItem
DDeleteItem
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing PutItem with GetItem.
3fill in blank
hard

Fix the error in the integration request template to correctly pass the partition key.

DynamoDB
"Key": {"id": {"S": "$input.path('$.[1]')"}}
Drag options to blanks, or click blank then click option'
Aid
Bkey
CpartitionKey
Dpartition_key
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect attribute names like 'partitionKey' instead of 'id'.
4fill in blank
hard

Fill both blanks to correctly configure the API Gateway integration type and the DynamoDB table name.

DynamoDB
"Type": "[1]",
"TableName": "[2]"
Drag options to blanks, or click blank then click option'
AAWS_PROXY
BMyDynamoDBTable
CAWS
DUserDataTable
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'AWS_PROXY' instead of 'AWS' for DynamoDB integration.
5fill in blank
hard

Fill all three blanks to complete the IAM role policy allowing API Gateway to access DynamoDB.

DynamoDB
"Effect": "[1]",
"Action": "dynamodb:[2]",
"Resource": "arn:aws:dynamodb:region:account-id:table/[3]"
Drag options to blanks, or click blank then click option'
AAllow
BGetItem
CUserDataTable
DDeny
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Deny' instead of 'Allow' in the policy.