What is data warehouse? What are the processes involved in data warehousing? Differentiate between a web server and a proxy server highlighting their main functions and applications.
10 marks
Question source
- Exam year
- 2083 BS / 2026 AD
- Level
- Fifth Level
- Paper
- Paper II – Information Technology and Management
- Section
- Section C: Long Answer Questions
Model answer
Data Warehouse
A data warehouse is a large, centralized repository of historical data collected from multiple heterogeneous source systems (OLTP databases, flat files, external APIs) and organized to support management decision-making, business intelligence (BI), and analytical reporting.
Unlike operational databases that handle day-to-day transactions (OLTP — Online Transaction Processing), a data warehouse is optimized for OLAP (Online Analytical Processing) — fast querying and complex analysis across large historical datasets.
Key characteristics of a data warehouse:
- Subject-oriented — organized around subjects (customers, products, accounts) rather than applications
- Integrated — data from multiple sources is cleansed, standardized, and combined
- Non-volatile — data is loaded and retained; not updated in real-time
- Time-variant — historical data is stored with timestamps for trend analysis
Example: Rastriya Banijya Bank could use a data warehouse to analyze customer loan repayment trends over 10 years, branch-wise transaction volumes, and fraud patterns across time periods.
Processes Involved in Data Warehousing
1. Extract (E) Data is extracted from multiple operational source systems:
- Core banking system (transactions, accounts)
- HR database (employees, payroll)
- ATM transaction logs
- External data (exchange rates, economic indicators)
2. Transform (T) Raw extracted data is cleaned and transformed:
- Data cleansing — removing duplicates, handling null values, correcting errors
- Data standardization — unified formats (dates, currency codes, name formats)
- Business rule application — calculating derived fields (e.g., account age, loan risk score)
- Data aggregation — summarizing data (daily totals → monthly totals)
- Deduplication — merging records for the same entity from different sources
3. Load (L) Transformed data is loaded into the warehouse:
- Full/Initial Load — loading all historical data for the first time
- Incremental Load — loading only new or changed records periodically (nightly batch)
- Real-time/Streaming Load — near real-time loading for near-live dashboards
4. Data Storage — Warehouse Schema Data is organized using:
- Star Schema — a central fact table (transactions) surrounded by dimension tables (time, customer, branch, product)
- Snowflake Schema — normalized dimension tables
- Data Marts — subject-specific subsets of the warehouse (e.g., a Loans Data Mart, a Deposits Data Mart)
5. OLAP Processing Analysts perform multidimensional analysis:
- Drill down — from yearly totals → monthly → daily
- Roll up — aggregate from branch level → region level → national level
- Slice and dice — analyze data across different dimensions simultaneously
- Pivot — rotate data view
6. Reporting and Business Intelligence BI tools (Power BI, Tableau, Crystal Reports) connect to the warehouse to generate dashboards, reports, and predictive analytics for management decisions.
Web Server vs. Proxy Server
| Feature | Web Server | Proxy Server |
|---|---|---|
| Primary Role | Hosts, stores, and serves web content (HTML pages, images, CSS, APIs) to clients | Acts as an intermediary between clients and the internet (or backend servers) |
| What it stores | The actual website files and application data | A cache of recently requested content (optional); no original content |
| Initiates communication | Responds to inbound client requests directly | Forwards client requests to other servers on the client's behalf |
| IP visibility | Its own IP is known and visible to clients (via DNS) | A forward proxy hides the client's IP from the destination server; a reverse proxy hides the backend server's IP from clients |
| Security role | Hosts content securely using HTTPS/TLS; enforces application security | Can filter content, block malicious sites, enforce access policies, hide internal server architecture |
| Performance role | Optimized to serve its own content quickly | Can cache content to reduce load on origin servers and speed up responses for repeat requests |
| Load balancing | Typically serves a single application | A reverse proxy (e.g., Nginx, HAProxy) can distribute incoming requests across multiple backend servers |
| Anonymity | No anonymity provided | A forward proxy provides client anonymity on the internet |
| Types | HTTP web server, application server, file server | Forward proxy, reverse proxy, transparent proxy, anonymous proxy |
| Common software | Apache HTTP Server, Nginx, Microsoft IIS, Tomcat | Squid, Nginx (reverse proxy), HAProxy, Cloudflare |
| Banking use case | Hosts the bank's online banking portal (e.g., www.rbb.com.np) | Forward proxy: monitors/filters employee internet access; Reverse proxy: protects and load-balances the bank's public-facing web servers |
Forward Proxy: Client → Forward Proxy → Internet (hides client identity; used for content filtering in organizations)
Reverse Proxy: Internet → Reverse Proxy → Backend Web Servers (hides server architecture; provides load balancing, SSL termination, caching)