Brains4Cloud
ESEN
Practice

Topic 1 of 5

D1 · Core data concepts

Ways to represent data

Before choosing a database or an Azure service, you need to know what shape the data has. The exam starts here: telling structured, semi-structured, and unstructured data apart, and recognizing each type in a scenario. It's the foundation for everything that follows.

What is data?

Data is a collection of facts (numbers, descriptions, observations) used to record information. It's organized into structures that usually represent entities important to the organization: customers, products, orders. Each entity has one or more attributes: a customer has a name, an address, a phone number.

Entity

Something you store information about: Customer, Product, Order.

Attribute

A characteristic of the entity: name, price, date.

Instance

A specific case: the customer Joe Jones, order 1001.

Depending on how closely it follows a structure, data is classified as .

Structured data

Data that adheres to a fixed schema: all of it has the same fields or properties.

Most commonly the schema is tabular: one or more tables with rows (each instance of the entity) and columns (each attribute).

IDNameEmail
1Joe Jonesjoe@litware.com
2Samir Nadoysamir@northwind.com

It's usually stored in a database in which multiple tables reference one another using key values, following the relational model. For example, an order stores the key of the customer who placed it instead of repeating all their details.

Semi-structured data

Information that has some structure, but allows for some variation between entity instances.

Example: most customers have an email address, but some have several and some have none. A common format is JSON (JavaScript Object Notation):

// Customer 1: phone and email
{
  "firstName": "Joe",
  "lastName": "Jones",
  "contact": [
    { "type": "home",  "number": "555 123-1234" },
    { "type": "email", "address": "joe@litware.com" }
  ]
}

// Customer 2: email only, plus a "unit" field in the address
{
  "firstName": "Samir",
  "lastName": "Nadoy",
  "address": { "streetAddress": "123 Elm Pl.", "unit": "500" },
  "contact": [
    { "type": "email", "address": "samir@northwind.com" }
  ]
}

Both documents describe customers, but the specific fields change. JSON isn't the only option: XML also represents semi-structured data. What matters is the flexibility, not the syntax.

Unstructured data

Not all data has structure. Documents, images, audio, video, and binary files might not have a specific structure: this is unstructured data.

Documents

PDF contracts, presentations

Images

Product photos, scans

Audio

Call recordings

Video

Cameras, recorded training

This kind of content is usually stored as binary files (BLOBs) that an application must interpret and render.

Vector data (embeddings)

Organizations increasingly work with vector data, also called embeddings: a numerical representation of content such as text or images.

What they're for

AI applications use vectors to find semantically similar content: for example, returning documents about "returns" even when the question says "refund". Two texts with similar meaning have vectors that are close together.

Comparing the three types

StructuredSemi-structuredUnstructured
SchemaFixed, the same for every rowFlexible, varies between instancesNo specific structure
Typical shapeTables with rows and columnsJSON, XML documentsBinary files
ExampleProduct table with pricesCustomer profiles with optional fieldsImages, audio, video
Usual storeRelational databaseDocument database or JSON filesFile or object storage (BLOB)

Where data is stored

Organizations store data to record entities (customers, products), events (sales), or other information in documents and images, and then retrieve it for analysis. There are two broad categories of data store:

File stores

Data is stored as files in a shared file system, increasingly in the cloud. The file format depends on the type of data and on who will read it.

Databases

A dedicated system for managing data records, relational or non-relational, that are queried and updated.

The following articles in this domain explain file formats, database types, and which Azure service fits each case.

Exam scenarios

SituationData typeWhy
A customer table where every row has the same columnsStructuredFixed, tabular schema.
Customer JSON documents: some have two emails, others noneSemi-structuredThere is structure, but it varies between instances.
Product photos, call recordings, and scanned PDFsUnstructuredThey have no specific structure.
Numeric representations of text used by AI to find similar contentVector data (embeddings)They enable semantic similarity search.
Orders that reference the customer by keyStructured, in a relational modelTables relate through keys.
An XML file with nested tagsSemi-structuredTags describe the structure.
Security camera videosUnstructuredBinary data an app must interpret.

Common exam traps

❓ Does a JSON file always contain unstructured data?

No. JSON is the classic example of semi-structured data: it has structure, but fields can vary.

❓ If a column can be empty (NULL), does the data stop being structured?

No. It still has the same schema; an empty value doesn't change the columns.

❓ Are images semi-structured because they have metadata?

No. Images, audio, and video are considered unstructured data.

❓ What type of data does an AI application use to find texts with similar meaning?

Vector data (embeddings), numerical representations of the content.

❓ Does structured data have to live in a database?

Not necessarily. It can also be stored in files, such as a CSV, which follows a tabular schema.

❓ What are the two broad categories of data store?

File stores and databases.

Did you get this topic?

Test what you just learned

A store keeps customer profiles in JSON documents. Some profiles have several addresses and others have none. What type of data is this?

Ready to test "Ways to represent data"?

Original questions, each with a full explanation.

Start a mock exam