Question

In: Computer Science

What are the core components of DynamoDB

What are the core components of DynamoDB

Solutions

Expert Solution

The core components of DynamoDB are:

1) Tables, Items & Attributes

2) Primary Key

3) Secondary Indexes

4) DynamoDB Streams

1) Tables, Items & Attributes:

- A table can be visualized as a group of items, for eg. In employee records, items like Employee ID, Employee Name, Address etc will be grouped and stored in a table.

- An item is a set of attributes in a table, that is uniquely identifiable among all of the other items. For eg. in a cars table, each item represents one vehicle.

- An attribute is a fundamental data element, something that does not need to be broken down any further. For eg. in a department table an item might have attributes such as Department ID, Name, Manager etc.

2) Primary Key: A primary key is a unique attribute that is necessary while creating a table, it can't be null at any given point. A primary key attribute is a must. For eg, in an Employee table, Employee ID is a primary key. Two types of primary key are supported in DynamoDB.

i) Simple Primary Key: It's basically a single attribute, eg. Employee ID in an Employee records table.

ii) Composite Primary Key: It's also known as the Partition key and Sort key. The primary component is the partition key and the secondary component is the Sort key.

3) Secondary Indexes: A secondary indexes lets you query the data in the table using an alternate key. After you create a secondary index on a table, you can read data from the index in much the same way as you do from the table. Two types of indexes are supported in DynamoDB.

i) Global secondary index- This index is used to possess a partition and sort key, which can differ from table keys.

ii) Local secondary index- This index is used to possess a partition key identical to the table, however it's sort key differs.

4) DynamoDB streams: This is an optional feature that captures data modification events in DynamoDB tables. The data about these events appear in the stream in near-real time and in the order that the event occured. Each event is represented by a stream record. If you enable a stream on a table, DynamoDB stream writes a record whenever one of the following events occur:

i) A new item is added to the table

ii) An item is updated

iii) An item is deleted from the table.

Stream records have a lifetime of 24 hours after that, they are automatically removed from the system.


Related Solutions

What are the six core components to CM (Case Management) practice? The following scenarios are where...
What are the six core components to CM (Case Management) practice? The following scenarios are where CM would be beneficial. Comment on the goals of CM for these patients: a) patient who had a stroke during biopsy that is positive for cancer b) liver transplant patient readmitted for surgery for bowel blockage c) elderly depressed patient who has just had third surgery to manage low back pain
Both the core components and the peripheral, value-added supplemental components contribute to customer satisfaction and dissatisfaction....
Both the core components and the peripheral, value-added supplemental components contribute to customer satisfaction and dissatisfaction. If the core is good, it does not enhance satisfaction much, because the customer expects it to be good. But if the core is bad, it can affect dissatisfaction. By comparison, the supplemental services can affect satisfaction or dissatisfaction. How do core factors, cues to quality, and interpersonal factors of a product influence your buying decisions. What about the supplemental services' influence? Explain with...
What are the core concepts and methods of Kinematics? What are the core concepts and methods...
What are the core concepts and methods of Kinematics? What are the core concepts and methods of Dynamics? What are the core concepts and methods of Work-Energy relationships? How all of the above are related? How consideration of others perspectives changed or improved your thinking on all of the above?
Discuss the components of the common core of knowledge and identify which component poses the most...
Discuss the components of the common core of knowledge and identify which component poses the most difficulty for students to master. Explain why mastery is difficult for that component.
What is a core capability? What would you say are the core capabilities of Apple, Google,...
What is a core capability? What would you say are the core capabilities of Apple, Google, and Tesla? Your post should be 7-10 sentences, with proper spelling and grammar.
What is difference between core and non-core CPI (and other measures)?
What is difference between core and non-core CPI (and other measures)?
What is the core value of Marketing?
What is the core value of Marketing?
what are Macy’s core competencies?
what are Macy’s core competencies?
What does a company's core processes or core competencies consist of? Why is it important for...
What does a company's core processes or core competencies consist of? Why is it important for an operations manager to focus on this concept? Describe potential decisions resulting from this concept.
the authors have profiled the Toyota Production System (TPS) and its three core components: Continuous Improvement...
the authors have profiled the Toyota Production System (TPS) and its three core components: Continuous Improvement Respect for People Standard Work Practice The chapter has also explained the following concepts: Just-in-Time Systems Lean Operations In your own words, and with the help of the company’s website (www.tmmc.ca or www.toyota.ca), write a 2-3 page document explaining what you understand by these concepts, and how has Toyota used them to maintain an efficient manufacturing process, meet quality standards, empower its employees, satisfy...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT