Docsity

WGU D609 TASK 2 DATA ANALYTICS AT SCALE.pdf, Exams of Data Acquisition

Toggle sidebar
bg1
WGU D609 TASK 2 — DATA ANALYTICS AT SCALE
COMPLETE STEDI HUMAN BALANCE MICROSOFT AZURE DATA LAKEHOUSE ARCHITECTURE
PROPOSAL
2026/2027 UPDATED | RUBRIC-ALIGNED EXEMPLAR
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.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download WGU D609 TASK 2 DATA ANALYTICS AT SCALE.pdf and more Exams Data Acquisition in PDF only on Docsity!

WGU D609 TASK 2 — DATA ANALYTICS AT SCALE

COMPLETE STEDI HUMAN BALANCE MICROSOFT AZURE DATA LAKEHOUSE ARCHITECTURE

PROPOSAL

2026/2027 UPDATED | RUBRIC-ALIGNED EXEMPLAR

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.

B. ORGANIZATIONAL PROBLEM AND BUSINESS NEED

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

  • Data integration: Independent datasets use different linkage keys, requiring normalization and referential checks.
  • Research authorization: Permissions to share information publicly or with friends do not establish consent for research use. Only customers who have explicitly agreed to share data for research may have their sensor readings included in training data.
  • Scale and variety: Sensor telemetry arrives as semi-structured records; customer records are relational in origin; accelerometer feeds are high-volume and append-only.
  • Auditability and privacy: Any architecture must demonstrate lineage, enforce consent at every layer, and support deletion or restriction if consent is withdrawn.
  • Analytical readiness: Downstream data scientists require clean, joined, and feature- ready datasets without rebuilding consent logic in every notebook. B3. Business Requirements Requirement Description Consent enforcement Only customers with research authorization contribute sensor data to the curated la Data preservation Raw inputs remain immutable for audit and reprocessing.
  1. Integrated governance. Microsoft Purview provides lineage, classification, and a business glossary across the lakehouse. D. PROPOSED MICROSOFT AZURE ARCHITECTURE D1. Architecture Overview The proposed architecture follows the medallion pattern implemented on Azure-native services: text ┌───────────────────────────────────────────────────────────────────────────── ┐ │ SOURCES │ │ Customer Records (fulfillment / website) │ Step Trainer Sensor JSON │ │ Accelerometer JSON (mobile app) │ Consent / permission records │ └──────────────────────────────┬ ──────────────────────────────────────────────┘ │ ▼ ┌───────────────────────────────────────────────────────────────────────────── ┐ │ INGESTION — Azure Data Factory │ │ Batch copy activities; parameterized pipelines; schedule and event triggers│ └──────────────────────────────┬ ──────────────────────────────────────────────┘ │ ▼ ┌───────────────────────────────────────────────────────────────────────────── ┐ │ STORAGE — Azure Data Lake Storage Gen2 (Hierarchical Namespace) │ │ │

│ │ BRONZE │ │ SILVER │ │ GOLD │ │

│ │ (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

STEDI

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

MERGE /

overwrite Downstream curation; quality checks Gold Curated Joined, synchronized, feature-ready datasets for ML and analytics

MERGE /

overwrite Data scientists; Synapse SQL; Power BI E3. Folder Structure (ADLS Gen2) text /stedi/ bronze/ customer_landing/ accelerometer_landing/ step_trainer_landing/

  • Rationale: Establishes the population of customers whose data may be used for research . T2 — accelerometer_landing_to_trusted
  • Input: Bronze accelerometer_landing and Silver customer_trusted.
  • Logic: Inner join on accelerometer.user = customer_trusted.email; retain only readings from consenting customers; deduplicate on (user, timestamp).
  • Output: Silver accelerometer_trusted.
  • Rationale: Removes sensor readings from non-consenting customers before any downstream join. T3 — customer_trusted_to_curated
  • Input: Silver customer_trusted and Silver accelerometer_trusted.
  • Logic: Identify customers who have at least one accelerometer reading and have consented to research use; join to obtain serial_number for Step Trainer linkage.
  • Output: Gold customer_curated.
  • Rationale: Produces the set of customers for whom both accelerometer and Step Trainer data can be legitimately associated. T4 — step_trainer_landing_to_trusted
  • Input: Bronze step_trainer_landing and Gold customer_curated.
  • Logic: Inner join on step_trainer.serialNumber = customer_curated.serial_number; validate sensor readings; deduplicate on (serialNumber, sensorReadingTime).
  • Output: Silver step_trainer_trusted.
  • Rationale: Restricts Step Trainer telemetry to devices belonging to consenting, research- authorized customers. T5 — machine_learning_curated
  • Input: Silver step_trainer_trusted and Silver accelerometer_trusted.
  • Logic: Join on customer identity and synchronized timestamp proximity; align accelerometer and distance readings; produce feature columns (x, y, z, distanceFromObject); remove records with missing or malformed values.
  • Output: Gold machine_learning_curated.
  • Rationale: Produces the synchronized, feature-ready dataset required for ML model training. F3. Implementation Notes
  • All Delta writes use MERGE for idempotent upserts where appropriate; Bronze ingestion uses append-only writes.
  • OPTIMIZE and Z-ORDER are applied on Gold tables by join keys and timestamp columns to improve query performance.
  • Schema evolution is controlled through explicit Delta schema enforcement in Silver and Gold.
  • Each notebook writes a run manifest (source row counts, filtered counts, output counts, timestamp) to a control table for auditability. G. ORCHESTRATION AND PROCESSING FREQUENCY Pipeline Frequency Trigger Dependencies Customer ingestion → Bronze Daily Schedule None Accelerometer ingestion → Bronze Hourly or micro- batch Event-driven / schedule None Step Trainer ingestion → Bronze Hourly Schedule None T1 customer_trusted Daily after customer ingestion Data Factory dependency Customer Bronze complete T2 accelerometer_trusted After accelerometer ingestion and T Data Factory dependency T1 complete
  • Consent filtering is applied at T1, T2, T3, and T4 ; no customer-linked sensor record reaches Gold without a verified research authorization.
  • Microsoft Purview applies sensitivity labels (e.g., “Confidential – Research PII”) to ADLS containers and Databricks tables at creation.
  • Purview lineage tracks each Gold record back through Silver and Bronze to source files and the consent record. H4. Governance Artifacts Artifact Owner Purpose Data catalog (Purview) Data governance lead Discoverability, classification, glossary Consent audit table Compliance Record of which customers authorized research use and when Access review schedule Security Quarterly review of RBAC assignments Retention policy Legal / compliance Defines Bronze, Silver, and Gold retention windows I. ANALYTICS, VISUALIZATION, AND FEATURE READINESS I1. Analytical Consumers
  • Data scientists query Gold machine_learning_curated from Databricks notebooks to train step-detection models.
  • Business analysts query Gold customer_curated and aggregated telemetry through Synapse serverless SQL.
  • Power BI dashboards display consent coverage, telemetry volume by device, and data- quality metrics. I2. Example Synapse Serverless SQL Query sql

SELECT

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:

  • One row per synchronized sensor observation.
  • Features: accelerometer x, y, z; Step Trainer distanceFromObject; timestamp-derived features.
  • No nulls in required fields; no records from non-consenting customers.
  • Partitioned by ingestion date for reproducible train/test splits. J. SCALABILITY, PERFORMANCE, AND RELIABILITY

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

  • Azure Cost Management + Budgets alerts at 50%, 80%, and 100% of monthly budget.
  • Tags on all resources: project=stedi, layer=bronze|silver|gold, environment=dev|test|prod.
  • Monthly cost review with engineering and finance stakeholders. L. ARCHITECTURE ALTERNATIVES AND SELECTION Alternative Advantages Disadvantages Decision **AWS-native (S
  • Glue + Athena)** Direct continuity with Udacity STEDI

WGU D

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)