var indexCollection = function(db) {return co(function*() {…});}; const results = yield db.table(‘restaurants’).createIndex({“name”: 1}, null); return results; const results = yield[...]
Category: LinkedIn NoSQL Assessment Answers
Which command do you use to add a value to a Redis stream named mystream?Which command do you use to add a value to a Redis stream named mystream?
ADD mystream * sensor-id 1234 temperature 19.8 1518951480106-1 UPDATE mystream * sensor-id 1234 temperature 19.8 1518951480106-3 XADD mystream * sensor-id[...]
Which statement accurately describes global secondary indexes in DynamoDB?Which statement accurately describes global secondary indexes in DynamoDB?
The global secondary indexes in DynamoDB are consistent, and are not guaranteed to return correct results. The global secondary indexes[...]
Which method shows you whether MongoDB uses any indexes when running a query, and how the indexes are used?Which method shows you whether MongoDB uses any indexes when running a query, and how the indexes are used?
detailQueryExecution() showPlan() explain() describe()[...]
You need to generate a unique, sequential identifier for each value stored in a Redis cluster. What do you do?You need to generate a unique, sequential identifier for each value stored in a Redis cluster. What do you do?
Implement a SortedSet object to generate a value. Use the GUID keyword to generate a value. Implement a List object[...]
You need to encrypt data at rest in DynamoDB. Which action do you take?You need to encrypt data at rest in DynamoDB. Which action do you take?
You assign a default AWS encryption key to your table to encrypt data. You create an AWS encryption key and[...]
Database availability is measured by which metric?Database availability is measured by which metric?
the amount of service calls the number of minutes the amount of service costs the number of nines[...]
Which statement retrieves an item from the MusicCollection table in DynamoDB?Which statement retrieves an item from the MusicCollection table in DynamoDB?
aws dynamodb query –table-name MusicCollection –key file://key.json aws dynamodb get-item –table-name MusicCollection –key file://key.json aws dynamodb select –table-name MusicCollection –key[...]
You need to store an unordered collection of name-value pairs with differing data types in DynamoDB. Which data type should you choose?You need to store an unordered collection of name-value pairs with differing data types in DynamoDB. Which data type should you choose?
map set list stack[...]