exam questions

Exam AWS Certified Database - Specialty All Questions

View all questions & answers for the AWS Certified Database - Specialty exam

Exam AWS Certified Database - Specialty topic 1 question 151 discussion

Exam question from Amazon's AWS Certified Database - Specialty
Question #: 151
Topic #: 1
[All AWS Certified Database - Specialty Questions]

An online advertising company uses an Amazon DynamoDb table as its data store. The table has Amazon DynamoDB Streams enabled and has a global secondary index on one of the keys. The table is encrypted using an AWS Key Management Service (AWS KMS) customer managed key.
The company has decided to expand its operations globally and wants to replicate the database in a different AWS Region by using DynamoDB global tables.
Upon review, an administrator notices the following:
✑ No role with the dynamodb: CreateGlobalTable permission exists in the account.
✑ An empty table with the same name exists in the new Region where replication is desired.
✑ A global secondary index with the same partition key but a different sort key exists in the new Region where replication is desired.
Which configurations will block the creation of a global table or the creation of a replica in the new Region? (Choose two.)

  • A. A global secondary index with the same partition key but a different sort key exists in the new Region where replication is desired.
  • B. An empty table with the same name exists in the Region where replication is desired.
  • C. No role with the dynamodb:CreateGlobalTable permission exists in the account.
  • D. DynamoDB Streams is enabled for the table.
  • E. The table is encrypted using a KMS customer managed key.
Show Suggested Answer Hide Answer
Suggested Answer: BC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
RotterDam
Highly Voted 3 years, 3 months ago
Selected Answer: BC
BC is the correct Answer. A is NOT an issue. I've tested this by creating a different table name in a destination region with TWO GSIs one with the exact same name and indexes and one with a different name and index than the original table. GSIs are table specific. The Key constraint is a table with the same name should NOT exist and permissions to access should be there
upvoted 10 times
...
novice_expert
Highly Voted 3 years, 1 month ago
Selected Answer: AC
A. A global secondary index with the same partition key but a different sort key exists in the new Region where replication is desired. If global secondary indexes are specified, then the following conditions must also be met: The global secondary indexes must have the same name. The global secondary indexes must have the same hash key and sort key (if present). https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_CreateGlobalTable.html The table must have the same name as all of the other replicas. (means B is out) C. No role with the dynamodb:CreateGlobalTable permission exists in the account. To create and maintain global tables in DynamoDB, you must have the dynamodb:CreateGlobalTable permission to access each of the following: The replica table that you want to add. Each existing replica that's already part of the global table. The global table itself. https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/gt_IAM.html
upvoted 7 times
khchan123
3 years ago
Yes, A and C.
upvoted 1 times
JasonZhu
1 year, 8 months ago
BC for me. A is not right. As long as same index_name don't exist & it will create new 2nd index. B. it can't create a new table if the table with the same name is existed.
upvoted 1 times
jitesh_k
1 year, 6 months ago
B is not an issue. "None of the new or existing replica tables in the global table can contain any data." from: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables_reqs_bestpractices.html
upvoted 1 times
...
...
...
...
kyo
Most Recent 1 year, 3 months ago
AC "Requirements for adding a new replica table" If you want to add a new replica table to a global table, each of the following conditions must be true: The table must have the same partition key as all of the other replicas. The table must have the same write capacity management settings specified. The table must have the same name as all of the other replicas. The table must have DynamoDB Streams enabled, with the stream containing both the new and the old images of the item. None of the new or existing replica tables in the global table can contain any data. If global secondary indexes are specified, the following conditions must also be met: The global secondary indexes must have the same name. The global secondary indexes must have the same partition key and sort key (if present). https://docs.aws.amazon.com/ja_jp/amazondynamodb/latest/developerguide/globaltables_reqs_bestpractices.html
upvoted 1 times
...
MultiAZ
1 year, 5 months ago
Selected Answer: AC
AC An empty table is not a problem
upvoted 1 times
...
yogitadb
1 year, 6 months ago
To create and maintain global tables in DynamoDB, you must have the dynamodb:CreateGlobalTable permission to access each of the following: The global secondary indexes must have the same partition key and sort key (if present). https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables_reqs_bestpractices.html#globaltables_reqs_bestpractices.requirements
upvoted 1 times
...
pek77
1 year, 8 months ago
Selected Answer: AC
According doc: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables_reqs_bestpractices.html#globaltables_reqs_bestpractices.requirements 1. The global secondary indexes must have the same partition key and sort key (if present). . Thus, A B: Doc: None of the new or existing replica tables in the global table can contain any data. Thus, empty table with same name is OK
upvoted 1 times
...
sju
1 year, 11 months ago
BC: GSI allow distinct combination of partition and sort key so A is not a problem. D and E are not an issue.
upvoted 1 times
...
tsk9921
2 years, 1 month ago
BC for me
upvoted 1 times
...
sk1974
2 years, 3 months ago
Why not B & E . The CMK are region specific. There is no mention that there the DB specialst has the CMK for the new region --https://aws.amazon.com/about-aws/whats-new/2020/11/encrypt-your-amazon-dynamodb-global-tables-by-using-your-own-encryption-keys/
upvoted 1 times
Germaneli
1 year, 8 months ago
A CMK is not a hinderance, but a prerequisite for expanding into the new region. An Amazon owned key would not be possible because it cannot be shared across regions.
upvoted 1 times
...
...
rags1482
2 years, 7 months ago
Anser AB https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables_reqs_bestpractices.html Requirements for adding a new replica table If you want to add a new replica table to a global table, each of the following conditions must be true: The table must have the same partition key as all of the other replicas. The table must have the same write capacity management settings specified. The table must have the same name as all of the other replicas. The table must have DynamoDB Streams enabled, with the stream containing both the new and the old images of the item. None of the new or existing replica tables in the global table can contain any data. If global secondary indexes are specified, the following conditions must also be met: The global secondary indexes must have the same name. The global secondary indexes must have the same partition key and sort key (if present).
upvoted 1 times
miles_chong
2 years, 6 months ago
B is wrong as indicated "None of the new or existing replica tables in the global table can contain any data." so "An empty table with the same name exists in the new Region where replication is desired" should be acceptable.
upvoted 2 times
...
...
Jiang_aws1
2 years, 8 months ago
A. No issue : as long as same index_name don't exist & it will create new 2nd index
upvoted 1 times
Jiang_aws1
2 years, 8 months ago
Question asked : "creating a global table" so "A" not related ( about indexes etc )
upvoted 1 times
...
...
soyyodario
3 years, 4 months ago
Selected Answer: BC
B and C C: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/gt_IAM.html To create and maintain global tables in DynamoDB, you must have the dynamodb:CreateGlobalTable permission to access. B: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.tutorial.html The console checks to ensure that a table with the same name doesn't exist in the selected Region. If a table with the same name does exist, you must delete the existing table before you can create a new replica table in that Region.
upvoted 4 times
aviathor
2 years ago
Not only does the console check it, but the AWS CLI fails to enable replication if there is a pre-existing table in the replica region. aws dynamodb update-table --table-name my-table --cli-input-json \ '{ "ReplicaUpdates": [ { "Create": { "RegionName": "eu-central-1" } } ] }' \ --region=eu-west-3 An error occurred (ValidationException) when calling the UpdateTable operation: Failed to create a the new replica of table with name: ‘my-table’ because one o more replicas already existed as tables.
upvoted 1 times
...
...
Shunpin
3 years, 5 months ago
Selected Answer: AB
1. No role with DynamoDB, but Account with CreateGlobalTable permiession, so no issues to create Global table. 2. Change Sort key when replicate a table - don't think so 3. Name exists in another region - Error pop-up.
upvoted 2 times
...
Dantehilary
3 years, 5 months ago
BC!!!!!
upvoted 1 times
...
SMAZ
3 years, 5 months ago
B,C https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.tutorial.html From the Available replication Regions dropdown, choose US West (Oregon). The console checks to ensure that a table with the same name doesn't exist in the selected Region. If a table with the same name does exist, you must delete the existing table before you can create a new replica table in that Region.
upvoted 2 times
...
Sp230
3 years, 7 months ago
Should be A and C
upvoted 3 times
johnconnor
3 years, 6 months ago
You are right
upvoted 2 times
...
...
leunamE
3 years, 7 months ago
Options A and B.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...