Bird
0
0

Which JSON snippet correctly defines an AWS::DynamoDB::Table resource named MyTable in the Resources section?

easy📝 Syntax Q3 of 15
AWS - CloudFormation
Which JSON snippet correctly defines an AWS::DynamoDB::Table resource named MyTable in the Resources section?
A{ "MyTable": { "Type": "AWS::S3::Bucket", "Properties": { "BucketName": "MyTable" } } }
B{ "MyTable": { "Type": "AWS::DynamoDB::Table", "Properties": { "TableName": "MyTable" } } }
C{ "MyTable": { "Type": "AWS::EC2::Instance", "Properties": { "InstanceType": "t2.micro" } } }
D{ "MyTable": { "Type": "AWS::Lambda::Function", "Properties": { "FunctionName": "MyTable" } } }
Step-by-Step Solution
Solution:
  1. Step 1: Identify the resource type

    The question asks for a DynamoDB table resource.
  2. Step 2: Check the JSON syntax

    { "MyTable": { "Type": "AWS::DynamoDB::Table", "Properties": { "TableName": "MyTable" } } } correctly uses "Type": "AWS::DynamoDB::Table" and defines a TableName property.
  3. Final Answer:

    { "MyTable": { "Type": "AWS::DynamoDB::Table", "Properties": { "TableName": "MyTable" } } } is the correct JSON snippet.
  4. Quick Check:

    Resource type matches DynamoDB table [OK]
Quick Trick: Match resource type and properties correctly [OK]
Common Mistakes:
  • Using wrong resource type for the service
  • Misnaming properties or resource logical IDs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More AWS Quizzes