Unit summary
NoSQL databases (document, key-value, column family, graph) suit large and flexible data. The CAP theorem says a distributed system cannot give consistency, availability and partition tolerance together; BASE relaxes ACID. MongoDB CRUD uses insertOne, find, updateOne and deleteMany with operators like $gt, $in and $or. Hadoop stores and processes big data in batches; Cassandra gives high availability and write speed. Database security uses authentication, authorisation, GRANT and REVOKE, views, encryption and safe queries. A data warehouse stores integrated history built by ETL; OLAP analyses cubes; data mining finds patterns.
Glossary
| Term | Meaning |
|---|---|
| NoSQL | Non-relational databases for scale and flexible data |
| CAP theorem | Only two of consistency, availability, partition tolerance at once |
| BASE | Basically available, soft state, eventually consistent |
| Collection | MongoDB group of documents |
| HDFS | Hadoop distributed file system |
| MapReduce | Parallel map and combine processing model |
| DAC | Discretionary access control, owner gives privileges |
| ETL | Extract, transform, load |
| OLAP | Online analytical processing |
| Data mining | Finding patterns in large data |
Question bank
Short answer questions
- State the CAP theorem.
- Compare ACID and BASE.
- Write a MongoDB command to insert one document.
- What is SQL injection?
- What is ETL?
Long answer questions
- Explain NoSQL data models with examples.
- Explain MongoDB CRUD operations and operators.
- Explain Hadoop, MongoDB and Cassandra.
- Explain database security and access control.
- Explain data warehouse, OLAP operations and data mining tasks.
Sources
- Official BCA syllabus Database Management Systems, course code CC202, Unit IV
