Step 1: Identify the correct directive for DynamoDB
The @aws_dynamodb directive is used to link a DynamoDB table as a data source in AppSync.
Step 2: Check syntax correctness
type Query { getItem(id: ID!): Item @aws_dynamodb(tableName: "MyTable", region: "us-east-1") } correctly includes the tableName and region parameters, which are valid for specifying the DynamoDB data source.
Final Answer:
type Query { getItem(id: ID!): Item @aws_dynamodb(tableName: "MyTable", region: "us-east-1") } -> Option C
Quick Check:
@aws_dynamodb with tableName and region is correct syntax [OK]
Quick Trick:Look for @aws_dynamodb with tableName and region parameters [OK]
Common Mistakes:
MISTAKES
Using @aws_lambda instead of @aws_dynamodb for DynamoDB
Forgetting quotes around tableName value
Using @aws_s3 which is unrelated to DynamoDB
Master "with Serverless" in DynamoDB
9 interactive learning modes - each teaches the same concept differently