Topic 1 of 5
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.
Contents
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, semi-structured, or unstructured.
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).
| ID | Name | |
|---|---|---|
| 1 | Joe Jones | joe@litware.com |
| 2 | Samir Nadoy | samir@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.
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.
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.
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.
| Structured | Semi-structured | Unstructured | |
|---|---|---|---|
| Schema | Fixed, the same for every row | Flexible, varies between instances | No specific structure |
| Typical shape | Tables with rows and columns | JSON, XML documents | Binary files |
| Example | Product table with prices | Customer profiles with optional fields | Images, audio, video |
| Usual store | Relational database | Document database or JSON files | File or object storage (BLOB) |
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.
| Situation | Data type | Why |
|---|---|---|
| A customer table where every row has the same columns | Structured | Fixed, tabular schema. |
| Customer JSON documents: some have two emails, others none | Semi-structured | There is structure, but it varies between instances. |
| Product photos, call recordings, and scanned PDFs | Unstructured | They have no specific structure. |
| Numeric representations of text used by AI to find similar content | Vector data (embeddings) | They enable semantic similarity search. |
| Orders that reference the customer by key | Structured, in a relational model | Tables relate through keys. |
| An XML file with nested tags | Semi-structured | Tags describe the structure. |
| Security camera videos | Unstructured | Binary data an app must interpret. |
❓ 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?
Original questions, each with a full explanation.
Start a mock examSign in to save your progress.