Skip to main content

Data Lake Organization Strategy

Design a data lake structure with medallion architecture, partitioning strategies, file format selection, and access control policies.

Vul de plaatshouders in

Edit the values, then copy your finished prompt.

Jouw Prompt
prompt.txt

                                

What this prompt does

This prompt makes the AI design a data lake organization strategy built on the medallion architecture so the lake doesn't quietly turn into a swamp. You set [organization_type], [storage_platform], the [data_types], [source_count], and [storage_volume], and the model lays out Bronze (raw, append-only), Silver (cleaned, typed), and Gold (business aggregates) layers with a folder hierarchy of [bucket_name]/<layer>/<source>/<entity>/<partition>.

The structure works because a clear bronze/silver/gold split keeps cost and access control sane as volume grows. It defines a partitioning scheme ([partition_scheme]) using Hive-style partitions with [target_partition_size] targets to avoid small-file problems, file formats ([raw_format] for bronze, [analytics_format] for silver/gold) with [compression_codec], a metadata catalog via [catalog_tool], access control through [access_model] with roles [data_roles], lifecycle policies moving data to [cold_storage] after [hot_retention], and a compaction job on a [compaction_schedule]. The lifecycle and compaction rules are what keep the lake healthy.

When to use it

  • You're standing up a data lake and want bronze/silver/gold structure from day one.
  • You're hitting the small-file problem and need partition sizing and compaction to fix it.
  • You need a consistent folder hierarchy and naming so datasets are discoverable.
  • You want a metadata catalog registering schema, owner, freshness, PII, and lineage.
  • You need role-based access with column- and row-level security on PII.
  • You want lifecycle rules that tier cold data and archive or delete on a schedule, often for compliance.

Example output

Expect a strategy document: the medallion layer definitions, a folder hierarchy template under [bucket_name], a partitioning scheme with target file sizes, format and compression choices per layer with justification, a catalog design via [catalog_tool], an access model defining [data_roles] with column- and row-level rules, lifecycle policies (hot to [cold_storage], archive, delete), and a compaction job spec on the [compaction_schedule].

Pro tips

  • Keep Bronze strictly append-only and in [raw_format] as received — the moment you start cleaning data in Bronze, you lose your replayable source of truth.
  • Tune [target_partition_size] toward the 128 MB–1 GB range; partitions far smaller than that create the small-file problem that compaction then has to undo.
  • Match [partition_scheme] to query patterns (date for time-series, source for multi-tenant) — partitioning on a column nobody filters on wastes layout effort.
  • Put real PII classification in the [catalog_tool] entries so the [access_model] column- and row-level rules have something to enforce against.
  • Set lifecycle thresholds ([hot_retention], archive, delete) from access patterns and compliance, not arbitrary round numbers — a too-short hot window pushes active data into slow cold storage.
  • Schedule [compaction_schedule] more often for Bronze than Silver, as the default suggests, since raw ingestion is where small files accumulate fastest.
  • Pick [analytics_format] like Parquet for Silver and Gold so analytical queries read columnar data efficiently, and keep [compression_codec] consistent so downstream engines don't trip on mixed encodings.
  • Register every dataset in [catalog_tool] with owner and freshness from the start; an uncataloged lake is the first step toward one nobody can navigate.

Frequently Asked Questions

What is the medallion architecture this prompt uses?
It is a three-layer split: Bronze holds raw append-only data in its original format, Silver holds cleaned, deduplicated, typed data, and Gold holds business-level aggregates ready for consumption. The clear separation keeps cost and access control manageable as data volume grows.
How does it avoid the small-file problem?
The strategy sets target partition file sizes, typically in the 128 MB to 1 GB range, and schedules a compaction job that merges small files in the Bronze and Silver layers. Compacting Bronze more frequently than Silver addresses where small files accumulate fastest from raw ingestion.
Does it cover access control for sensitive data?
Yes, it defines an access model with roles and grants column-level and row-level security for PII. For those rules to be enforceable, the metadata catalog must carry real PII classification on each dataset, which the prompt also registers alongside schema, owner, and lineage.
Why keep the Bronze layer append-only?
Bronze is your replayable source of truth, stored in the original format exactly as received. If you start cleaning or transforming data in Bronze, you lose the ability to reprocess from raw when downstream logic changes, so all cleaning belongs in Silver.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

Meer in Data Engineering & ETL Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support