{"id":482,"date":"2022-03-14T05:34:20","date_gmt":"2022-03-14T05:34:20","guid":{"rendered":"https:\/\/exampracticetests.com\/aws\/Database-Specialty\/aws-certified-database-specialty-question037\/"},"modified":"2022-03-14T05:34:20","modified_gmt":"2022-03-14T05:34:20","slug":"aws-certified-database-specialty-question037","status":"publish","type":"post","link":"https:\/\/exampracticetests.com\/aws\/Database-Specialty\/aws-certified-database-specialty-question037\/","title":{"rendered":"AWS Certified Database &#8211; Specialty &#8211; Question037"},"content":{"rendered":"<div class=\"question\">An online gaming company is planning to launch a new game with Amazon DynamoDB as its data store.<br \/>\nThe database should be designated to support the following use cases:<br \/>\n* Update scores in real time whenever a player is playing the game.<br \/>\n* Retrieve a player&#039;s score details for a specific game session.<br \/>\nA Database Specialist decides to implement a DynamoDB table. Each player has a unique user_id and each game has a unique game_id.<br \/>\nWhich choice of keys is recommended for the DynamoDB table?<br \/><strong><br \/>A.<\/strong> Create a global secondary index with game_id as the partition key<br \/><strong>B.<\/strong> Create a global secondary index with user_id as the partition key<br \/><strong>C.<\/strong> Create a composite primary key with game_id as the partition key and user_id as the sort key<br \/><strong>D.<\/strong> Create a composite primary key with user_id as the partition key and game_id as the sort key<\/div>\n<p><\/p>\n<style> .hidden-div{ display:none } <\/style>\n<p>\t\t\t\t\t\t\t<button onclick=\"getElementById('hidden-div').style.display = 'block'\"> Show Answer <\/button> <button onclick=\"getElementById('hidden-div').style.display = 'none'\">Hide Answer<\/button><\/p>\n<div class=\"hidden-div\" id=\"hidden-div\"><span style=\"\"><\/p>\n<div class=\"answer\">Correct Answer: <strong>B<\/strong><\/div>\n<p><strong>Explanation:<\/strong> <\/p>\n<div class=\"explanation\">\nReference: <a href=\"https:\/\/aws.amazon.com\/blogs\/database\/amazon-dynamodb-gaming-use-cases-and-design-patterns\/\" title=\"External link\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/aws.amazon.com\/blogs\/database\/amazon-dynamodb-gaming-use-ca&#8230;<\/a><\/div>\n<p><\/strong><\/span> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>An online gaming company is planning to launch a new game with Amazon DynamoDB as its data store. The database should be designated to support the following use cases: * Update scores in real time whenever a player is playing the game. * Retrieve a player&#039;s score details for a specific game session. A Database [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[3,251],"class_list":["post-482","post","type-post","status-publish","format-standard","hentry","category-aws-certified-database-specialty","tag-aws-certified-database-specialty","tag-question-037"],"_links":{"self":[{"href":"https:\/\/exampracticetests.com\/aws\/Database-Specialty\/wp-json\/wp\/v2\/posts\/482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exampracticetests.com\/aws\/Database-Specialty\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exampracticetests.com\/aws\/Database-Specialty\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Database-Specialty\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Database-Specialty\/wp-json\/wp\/v2\/comments?post=482"}],"version-history":[{"count":0,"href":"https:\/\/exampracticetests.com\/aws\/Database-Specialty\/wp-json\/wp\/v2\/posts\/482\/revisions"}],"wp:attachment":[{"href":"https:\/\/exampracticetests.com\/aws\/Database-Specialty\/wp-json\/wp\/v2\/media?parent=482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Database-Specialty\/wp-json\/wp\/v2\/categories?post=482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exampracticetests.com\/aws\/Database-Specialty\/wp-json\/wp\/v2\/tags?post=482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}