Integration / Apache NiFi Interview Questions
What are the three NiFi repositories and what does each store?
Apache NiFi uses three on-disk repositories, each serving a distinct durability and query purpose.
FlowFile Repository: Stores the current state of all active FlowFiles — their attributes and a pointer (content claim) to where content lives in the content repository. Uses a Write-Ahead Log (WAL) for durability. On restart after a crash NiFi replays the WAL to recover all in-flight FlowFiles without data loss. Stores metadata only, not content bytes.
Content Repository: Stores actual FlowFile payload bytes organized into content claims within large archive files. Uses an immutable, append-only approach: processors write new content versions rather than overwriting. Old claims are garbage-collected once dereferenced. Can be spread across multiple disk volumes for higher I/O throughput.
Provenance Repository: Records every lifecycle event for every FlowFile: RECEIVE, SEND, FORK, JOIN, CONTENT_MODIFIED, DROP, etc. Creates a complete, searchable audit trail. Typically the largest repository in active deployments. Supports Lucene-based search by FlowFile UUID, filename, processor, time range, and transit URI.
| Repository | Stores | Key Feature |
|---|---|---|
| FlowFile | Attributes and content pointers | WAL-based crash recovery |
| Content | Payload bytes | Immutable, multi-disk support |
| Provenance | Full data lineage events | Searchable audit trail |
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
