ExamQuestions.com

Register
Login
AWS Certified Developer Associate Exam Questions

Amazon

AWS Certified Developer Associate

323 / 474

Question 323:

You have to create a DynamoDB table called Customers which will have two attributes. One is the ID which will be the partition key, and the other is the Name which will be the sort key. Which of the following is the right definition for the CLI command that would be used to create the table?

Answer options:

A.aws dynamodb create-table \
 --table-name Customers \
 --attribute-definitions \
 AttributeName=ID,AttributeType=N \ 
 AttributeName=Name,AttributeType=S \
 --key-schema \
 AttributeName=ID,KeyType=HASH \
 AttributeName=Name,KeyType=RANGE \
 --provisioned-throughput \
 ReadCapacityUnits=10,WriteCapacityUnits=5
B.aws dynamodb create-table \ 
 --table-name Customers \
 --attribute-definitions \ 
 AttributeName=ID,AttributeType=N \
 AttributeName=Name,AttributeType=S \
 --provisioned-throughput \ 
 ReadCapacityUnits=10,WriteCapacityUnits=5
C.aws dynamodb create-table \
--table-name Customers \
--attribute-definitions \
AttributeName=ID,AttributeType=N \
AttributeName=Name,AttributeType=S \ 
--key-schema \
AttributeName=Name,KeyType=HASH \ 
AttributeName=ID,KeyType=RANGE \
--provisioned-throughput \
ReadCapacityUnits=10,WriteCapacityUnits=5
D.aws dynamodb set-table \
--table-name Customers \
--attribute-definitions \
 AttributeName=ID,AttributeType=N \ 
 AttributeName=Name,AttributeType=S \
--key-schema \
 AttributeName=ID,KeyType=HASH \
 AttributeName=Name,KeyType=RANGE \
--provisioned-throughput \ 
 ReadCapacityUnits=10,WriteCapacityUnits=5