
















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

















Document status: Original technical architecture exemplar. Azure deployment was not performed. This document proposes and evaluates an Azure architecture; it does not claim that cloud services were deployed, pricing was quoted, performance targets were measured, or a WGU evaluator approved the project. The exact current D609 Task 2 rubric wording remains unverified; the structure below is aligned to the publicly documented assessment expectations for D609 and the STEDI Human Balance Analytics use case. A. EXECUTIVE SUMMARY STEDI is developing a balance-training system that combines motion measurements from a smartphone accelerometer with distance measurements from a Step Trainer device. These readings can support future machine-learning research into movement and balance. STEDI also maintains customer records and information-sharing preferences. The immediate engineering challenge is to integrate these datasets without using customer-linked observations from people who have not authorized research use. This proposal recommends a cloud-native data lakehouse on Microsoft Azure using Azure Data Lake Storage Gen2, Azure Data Factory, Azure Databricks, and Azure Synapse serverless SQL , supported by Microsoft Entra ID, Azure RBAC, Azure Key Vault, Microsoft Purview, and Azure Monitor. The design preserves the landing, trusted, and curated stages from the AWS/Udacity STEDI project and carries forward its five dependent transformations. The solution consolidates sources, preserves original inputs, applies consent filters, identifies trustworthy device associations, produces synchronized analytical readings, and provides a governed basis for downstream reporting and feature engineering. Azure Databricks is the processing engine because Apache Spark retains technical continuity with the AWS Glue workload. The proposal covers service selection, component responsibilities, input and output data contracts, orchestration, security controls, alternatives, scalability assumptions, cost methodology, delivery phases, risk mitigation, and acceptance tests. It is an architecture assessment, not a record of an operating Azure environment.
B1. Business Context The Human Balance system brings together three datasets: customer profile and permission records, smartphone accelerometer readings, and Step Trainer distance measurements. Each dataset has different fields and identifiers. Accelerometer readings reference a customer email, while Step Trainer data references the device serial number held in customer records. The project must form trustworthy relationships between these datasets before measurements can be used together. The Step Trainer is a motion sensor that records the distance of a detected object. The companion mobile app uses the phone accelerometer to detect motion in the X, Y, and Z directions. The STEDI team wants to use this motion sensor data to train a machine-learning model to detect steps accurately in real time. B2. Existing Challenges
│ │ (Landing) │───▶│ (Trusted) │───▶│ (Curated) │ │ │ │ Raw immutable│ │ Cleansed, │ │ Business- │ │ │ │ Delta tables │ │ conformed, │ │ ready, ML- │ │ │ │ │ │ consent- │ │ feature- │ │ │ │ │ │ filtered │ │ ready │ │ │ └──────────────┘ └──────────────┘ └──────────────┘ │ └──────────────────────────────┬ ──────────────────────────────────────────────┘ │ ▼ ┌───────────────────────────────────────────────────────────────────────────── ┐ │ PROCESSING — Azure Databricks (Apache Spark + Delta Lake) │ │ Five dependent transformations (Bronze → Silver → Gold) │ │ PySpark notebooks; Delta MERGE; OPTIMIZE / Z-ORDER │ └──────────────────────────────┬ ──────────────────────────────────────────────┘ │ ▼ ┌───────────────────────────────────────────────────────────────────────────── ┐ │ SERVING — Azure Synapse Serverless SQL │ │ External tables and OPENROWSET over Gold Delta files │ └──────────────────────────────┬ ──────────────────────────────────────────────────────────────┘
Component Responsibility Rationale Power BI Connects to Synapse serverless SQL or Databricks SQL for dashboards and exploratory reporting Standard Microsoft BI tool; gover dataset sharing. Microsoft Purview Catalogs data assets, tracks lineage, applies sensitivity labels, and maintains a business glossary End-to-end governance across ingestion, transformation, and consumption. Microsoft Entra ID + Azure RBAC Identity and least-privilege access control at storage, Databricks, Synapse, and Data Factory scopes Centralized identity; auditable access. Azure Key Vault Stores secrets, connection strings, and customer- managed encryption keys Prevents credential exposure in c and notebooks. Azure Monitor + Log Analytics Pipeline run telemetry, cluster metrics, failure alerts, and cost monitoring Operational observability and SLA tracking. E. DATA SOURCES AND LOGICAL STORAGE DESIGN E1. Source Datasets Dataset Description Key Fields Linkage Key Customer Records Profile and consent information from fulfillment and the STEDI website customer_id, email, share_with_research, share_with_friends, share_with_public email (for accelerometer); serial_number (for Step Trainer) Accelerometer Records Mobile-app accelerometer readings in X, Y, Z user (email), timestamp, x, y, z user → customer email
Dataset Description Key Fields Linkage Key Step Trainer Records Motion-sensor distance readings sensorReadingTime, serialNumber, distanceFromObject serialNumber → customer serial_number E2. Storage Zones (Medallion Mapping) Medallion Layer
Zone Contents Write Pattern Consumption Bronze Landing Raw JSON and CSV files converted to Delta; append-only; schema-on- read Append Engineering reprocessing; audit Silver Trusted Cleansed, deduplicated, consent-filtered records; conformed data types; referential integrity checked
overwrite Downstream curation; quality checks Gold Curated Joined, synchronized, feature-ready datasets for ML and analytics
overwrite Data scientists; Synapse SQL; Power BI E3. Folder Structure (ADLS Gen2) text /stedi/ bronze/ customer_landing/ accelerometer_landing/ step_trainer_landing/
c.customer_id, COUNT(DISTINCT a.timestamp) AS accelerometer_readings, COUNT(DISTINCT s.sensorReadingTime) AS step_trainer_readings FROM OPENROWSET( BULK 'https://.dfs.core.windows.net/stedi/gold/customer_curated/', FORMAT = 'DELTA' ) AS c LEFT JOIN OPENROWSET( BULK 'https://.dfs.core.windows.net/stedi/silver/accelerometer_trusted/', FORMAT = 'DELTA' ) AS a ON c.email = a.user LEFT JOIN OPENROWSET( BULK 'https://.dfs.core.windows.net/stedi/silver/step_trainer_trusted/', FORMAT = 'DELTA' ) AS s ON c.serial_number = s.serialNumber GROUP BY c.customer_id; I3. Feature Readiness machine_learning_curated is designed to be directly consumable by ML training:
This section describes a cost methodology , not a quoted price. K1. Cost Drivers Service Primary Cost Driver Optimization Lever ADLS Gen Storage volume + transactions Lifecycle management: move Bronze to cool tier after 30 days; delete raw files after retention period Data Factory Activity runs + data movement DIU hours Parameterized pipelines; avoid unnecessary activity runs; event-driven triggers where possible Databricks DBU consumption per cluster-hour Autoscaling; job clusters (not all-purpose); spot instances non-critical Bronze processing; auto-termination Synapse serverless SQL Data processed per query Partition pruning; columnar Delta format; avoid SELECT * large tables Power BI Per-user licensing or capacity Use shared datasets; schedule refreshes during off-peak hours K2. Cost Governance
specifically requires an Azure proposal; Rejected for this assessment
Alternative Advantages Disadvantages Decision project; existing team familiarity limits Microsoft ecosystem integration Azure Synapse dedicated SQL pools Mature T-SQL warehouse; strong BI integration Higher fixed cost; less flexible for semi- structured sensor data; Spark not native Rejected — serverless SQL + Databricks better fit Microsoft Fabric (OneLake + Lakehouse) Unified SaaS experience; reduced operational overhead Newer platform; not all features required for STEDI; potential vendor lock-in concerns Considered — viable future evolution, but Databricks + ADLS Gen2 offers more explicit control for this proposal HDInsight Managed Hadoop/Spark Higher operational burden; less modern than Databricks; limited autoscaling Rejected Proposed: ADLS Gen2 + Data Factory + Databricks + Synapse serverless Spark continuity; Delta Lake reliability; serverless SQL serving; integrated governance Multi-service orchestration complexity Selected M. IMPLEMENTATION PLAN AND DELIVERABLES M1. Phased Delivery
Risk Likelihood Impact Mitigation Consent data is incomplete or inconsistent Medium High — non- consenting data could enter Gold Enforce consent filtering at every layer; audit counts at each transformation; fail pipeline if consent ratio deviates from expected range Schema drift in source telemetry High Medium — pipeline failures Delta schema enforcement in Silver; schema evolution procedures; alert on new/unexpected fields Databricks cost overrun Medium Medium Autoscaling; job clusters; budget alerts; monthly cost review Data Factory pipeline failures Medium Medium Retry policies; dependency alerts; idempotent notebook design Purview lineage gaps Low– Medium High — audit failure Configure lineage at pipeline and notebook level; validate lineage in acceptance testing Key Vault secret rotation Low High — access disruption Automated rotation; managed identities eliminate stored credentials where possible Vendor lock-in Low– Medium Strategic Delta Lake open format enables portability; architecture documented as service-agnostic where feasible O. TESTING AND ACCEPTANCE CRITERIA O1. Data Quality Tests
Test Layer Criterion Consent filter correctness Silver / Gold Zero records in accelerometer_trusted or step_trainer_trusted whose customer lacks research consent Referential integrity Silver / Gold Every customer_curated.serial_number exists in Step Trainer source; ever accelerometer user maps to a customer email Deduplication Silver No duplicate (user, timestamp) in accelerometer_trusted; no duplicate (serialNumber, sensorReadingTime) in step_trainer_trusted Completeness Gold machine_learning_curated has no nulls in x, y, z, distanceFromObject Timestamp alignment Gold Sensor readings in machine_learning_curated are within a defined toleran window O2. Pipeline Acceptance Tests Test Criterion End-to-end run All five transformations complete successfully in dependency order Idempotency Re-running a transformation produces the same Gold output (MERGE semantics) Failure recovery A simulated notebook failure triggers Data Factory retry and alert Lineage Purview shows complete lineage from Bronze source file to Gold table Access control A data-scientist persona can read Gold but cannot write Silver or read Bronze O3. Performance Acceptance (Indicative Targets)