Cloud Computing · Unit 7
Big Data Processing and Storage
Exam-focused notes for Big Data Processing and Storage (Cloud Computing, BIT408): what the TU syllabus asks and how it has actually been tested, with 6 solved past questions from this unit.
Big Data Processing and Storage in short
Modern cloud systems handle huge and fast-growing data. This chapter looks at the problems of streaming data and how data lakes store raw data. It also covers graph databases for connected data and the difference between column and row storage.
What this unit covers
- Fast data processing and streaming issues
- Data lake advantages
- Graph database definition and applications
- Graph processing techniques
- Columnar storage format
- Row storage format
Columnar storage format
2082 · 5 marks
How data is stored in columnar storage and row storage? [5]
Graph database definition and applications
2082 · 5 marks
What is graph database? How graph processing is done? [5]
Show solved answerHide answer
Model Answer: Graph Database and Graph Processing
What is a Graph Database?
A graph database is a specialized database management system designed to store, manage, and query data organized as graphs. It represents data as a collection of:
- Nodes (Vertices): Entities or objects in the system
- Edges (Relationships): Connections or relationships between nodes
- Properties: Attributes associated with nodes and edges
Graph databases are optimized for traversing relationships and are particularly effective for data with complex interconnections, such as social networks, recommendation systems, knowledge graphs, and organizational hierarchies.
Key Characteristics:
- Relationship-centric rather than table-centric
- Fast traversal of connections
- Efficient for highly connected data
- Support for complex queries involving multiple relationships
How Graph Processing is Done
Graph processing involves several key steps:
1. Graph Representation
- Data is modeled as nodes and edges
- Each node contains entity information
- Edges represent relationships with properties
2. Query Execution
- Queries traverse the graph structure
- Pattern matching identifies relevant subgraphs
- Algorithms compute results based on graph topology
3. Traversal Methods
- Depth-First Search (DFS): Explores deep into branches
- Breadth-First Search (BFS): Explores level by level
- Graph algorithms: Shortest path, centrality measures, clustering
4. Optimization
- Index structures for fast node/edge lookup
- Caching frequently accessed paths
- Query optimization to minimize traversals
5. Result Aggregation
- Collecting results from traversals
- Computing aggregates across matched patterns
- Returning structured results to users
Example Use Case: In a social network graph, finding "friends of friends" involves traversing two levels of edges from a starting node efficiently.
2081 · 5 marks
What is Graph Database? Explain different application of Graph Database. [5]
Show solved answerHide answer
Model Answer: Graph Database and Applications
What is Graph Database?
A Graph Database is a specialized database management system designed to store, manage, and query data organized as a graph structure. It represents data as a collection of:
- Nodes (Vertices): Entities or objects in the system
- Edges (Relationships): Connections or relationships between nodes
- Properties: Attributes associated with both nodes and edges
Graph databases are optimized for traversing relationships and performing complex queries that involve multiple levels of connections, making them highly efficient for highly connected data.
Different Applications of Graph Database
1. Social Networks
- Storing users as nodes and friendships/connections as edges
- Efficiently querying friend recommendations, mutual connections, and social circles
- Example: Facebook, LinkedIn connection graphs
2. Recommendation Systems
- Representing users, products, and their interactions as nodes and edges
- Analyzing purchase patterns and user preferences to recommend products
- Example: Netflix recommendations, Amazon product suggestions
3. Knowledge Graphs
- Organizing information about entities and their relationships
- Semantic search and intelligent question answering
- Example: Google Knowledge Graph, Wikipedia relationships
4. Network and IT Operations
- Mapping network topology with devices as nodes and connections as edges
- Identifying network bottlenecks and dependencies
- Troubleshooting and impact analysis
5. Fraud Detection
- Analyzing transaction patterns and relationships between accounts
- Identifying suspicious networks and money laundering schemes
- Detecting fraudulent behavior through relationship analysis
6. Identity and Access Management
- Managing user roles, permissions, and resource access
- Tracking authorization hierarchies and dependencies
Data lake advantages
2080 · 5 marks
What are the advantages of using a data lake? Explain. [5]
Fast data processing and streaming issues
2080 · 5 marks
List the issues in fast data processing and streaming in cloud. [5]
Make Unit 7 stick
Practice BIT408 with flashcards & quizzes