In Snowflake data engineering or developer interviews, the "NFT Feature Generation" or "NFT Marketplace Analysis" problem is a common scenario-based coding challenge. It typically focuses on your ability to handle semi-structured data (JSON) and perform complex SQL transformations for feature engineering.
You are given a raw table of NFT (Non-Fungible Token) minting and transaction data. The data is often provided in a semi-structured format (e.g., a VARIANT column containing JSON). 0 1
The Objective:Transform this raw transaction data into a "Feature Table" that summarizes the behavior of each NFT collection or individual owner. This is often a precursor to building a machine learning model for price prediction or fraud detection. 2
Typical Data Schema:
The first step is to extract the nested JSON fields into a relational format. You must use Snowflake's FLATTEN function or dot notation to pull out specific attributes.
`sql SELECT TRANSACTION_ID, EVENT_DATA:buyer::STRING as BUYER_ADDRESS, EVENT_DATA:price::FLOAT as PRICE, EVENT_DATA:metadata.rarity::STRING as RARITY_SCORE, TIMESTAMP FROM RAW_NFT_DATA;
`
Often, prices are in different cryptocurrencies (ETH, SOL). You may need to join with a PRICE_FEED table to normalize all prices to a single currency (e.g., USD) based on the TIMESTAMP.
Calculate "features" per NFT collection or user. Common features include:
`sql SELECT COLLECTION_ID, MIN(PRICE_USD) as FLOOR_PRICE, SUM(PRICE_USD) as TOTAL_VOLUME, COUNT(DISTINCT BUYER_ADDRESS) as UNIQUE_OWNERS FROM FLATTENED_TRANS_DATA GROUP BY 1;
`
Because NFT data flows in continuously, you should discuss how to automate this.
To solve the NFT Feature Generation problem in Snowflake, you must:
Would you like to see a specific SQL query for calculating more complex features like Price Momentum or Wash Trading detection?
[0] - 100+ Snowflake Interview Questions and Answers (2026) [1] - Snowflake Interview Prep — Day 52 of 100 Days of Data Engineering, AI and Azure Challenge [2] - Detecting Financial Fraud at Scale with Decision Trees and MLflow on Databricks [3] - Big Data Engineer Interview Questions and Answers [4] - Advanced technical Snowflake interview questions - Medium [5] - 10 Snowflake Interview Questions and - DataEngineer Hub [6] - Snowflake interview questions - Medium [7] - Commonly asked Snowflake Interview Questions | by Sanket Prabhu [8] - Top 30 Most Common Snowflake LeetCode Interview Questions You Should Prepare For