Skip to main content
πŸ“˜ Complete PDF

Databricks Certification Practice Test 04

Practice Test 04

Question 1 of 20
πŸ“‹ Multiple Choice
Question 61
A retail company loads product catalog data from multiple international vendors. Different vendors use different column names, varied date formats, and conflicting currency representations. In the Databricks Medallion Architecture, which layer is responsible for harmonizing schemas, cleaning data, and creating standardized enterprise tables?
A. Bronze
B. Gold
βœ“
C. Silver
D. Landing Staging File Layer
Answer
βœ… C. Silver
Explanation

1. Concept Overview The Databricks Medallion Architecture organizes data into three logical tiers: - **Bronze (Raw Ingestion):** Append-only raw data preserved in its original format. - **Silver (Cleansed & Conformed):** Filtered, deduplicated, standardized, and enriched enterprise datasets. - **Gold (Aggregated & Business-Level):** Curated, dimensional models, KPIs, and aggregated metrics optimized for reporting and analytics.

2. Why the Correct Option is Right **Silver** is specifically engineered for data cleansing, schema standardization, and schema conformance across disparate source systems. In this scenario, converting differing vendor column names, varied date formats, and conflicting currencies into a unified product model is the classic purpose of the Silver layer.

3. Why Other Options Are Incorrect - **Bronze:** Must maintain historical fidelity with source systems without altering schemas or normalizing naming. Modifying data during Bronze ingestion prevents accurate raw replays. - **Gold:** Is reserved for business aggregates, analytics marts, and dimensional models (fact/dim). Direct schema harmonization of raw feeds should not happen directly in Gold. - **Landing Staging File Layer:** Refers to cloud object storage (S3/ADLS/GCS) holding unparsed files before any Delta Lake processing occurs.

4. Production Scenario / Code Example

-- Silver Transformation: Standardizing multiple vendor schemas into a uniform product table
CREATE OR REPLACE TABLE silver.products_unified AS
SELECT
  vendor_id,
  COALESCE(product_sku, item_code, part_number) AS standard_sku,
  TRIM(LOWER(product_name)) AS product_name,
  TO_DATE(date_added, 'yyyy-MM-dd') AS catalog_date,
  CASE 
    WHEN currency = 'EUR' THEN price * 1.08
    WHEN currency = 'GBP' THEN price * 1.28
    ELSE price 
  END AS price_usd
FROM bronze.vendor_raw_catalogs
WHERE product_sku IS NOT NULL;

5. Real-World Architecture Context In enterprise lakehouses, raw schemas vary wildly between vendors. Housing standardizations in Silver provides a single unified view that downstream teams (data science, BI, reporting) can safely rely upon without needing to understand upstream vendor anomalies.

6. Common Pitfalls & Anti-Patterns - **Over-aggregating in Silver:** Silver should preserve atomic or near-atomic transaction grains. Do not pre-aggregate metrics in Silver; leave rollups for Gold. - **Transforming during Bronze ingestion:** Writing transformed data into Bronze forfeits the ability to reprocess raw payloads if downstream parsing logic changes.

7. Performance & Cost Considerations Silver tables are frequently queried by intermediate ETL and ML feature engineering jobs. Partitioning Silver tables by date and applying Liquid Clustering or Z-Ordering on common join keys (`vendor_id`, `product_id`) significantly reduces I/O costs.

8. Exam / Interview Tip When asked: *"Where does deduplication, validation, schema standardization, and normalization happen in the Medallion Architecture?"* The answer is **always the Silver layer**.

9. Key Takeaways - Bronze = raw copy / preserve truth. - Silver = cleaned, validated, standardized, conformed. - Gold = aggregated, business-ready, dimensional marts.

10. Related Tutorials & Resources - [Lakehouse Medallion Model](/tutorials/databricks/lakehouse-medallion-model) - [Delta Lake Overview](/tutorials/databricks/delta-lake-overview)`

Answered: 0 / 20
Question Navigator (Test 04)0% Answered