Launch price: every exam for $29.99 a year, for the first 300 buyers. See the price

CertStreak
Menu

Describe features of common data stores including databases

A worked example

Single answer

A developer is choosing a database for a customer-profile application. The requirements are:

  • The database must not apply a relational schema to the data.
  • Data must be stored as rows and columns.
  • Columns must be arranged into named groups, each holding columns that are logically related, such as a group for contact details and a group for preferences.

Which type of database meets all the requirements?

Choose one answer
Why

The application needs a nonrelational store that still holds tabular rows and columns and groups related columns together. A column family database does exactly this: it is a nonrelational database storing rows and columns, with columns divided into column families of logically related columns. A relational database fails the no-relational-schema requirement, and graph, key-value and document databases do not store data as rows with grouped columns.

  • Not correct: Document database. A document database stores each value as a JSON document; it does not organise data into rows with columns divided into column families.
  • Not correct: Relational database. A relational database stores data in tables with a relational schema, which the first requirement rules out.
  • Not correct: Key-value database. A key-value database stores each record as a unique key with an associated value, not as rows and columns grouped into column families.
  • Correct: Column family database. A column family database is nonrelational, stores tabular data in rows and columns, and divides columns into column families of logically related columns, so it meets every requirement.
  • Not correct: Graph database. A graph database stores entities as nodes with links between them, not as rows and columns.

Practise this topic until it's automatic.

Ten questions a day, every answer explained, and misses that come back until you beat them.

Start free