<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tech Mahato (Arbind)</title>
    <description>The latest articles on DEV Community by Tech Mahato (Arbind) (@techmahato).</description>
    <link>https://dev.to/techmahato</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2568864%2F81071616-4195-4775-b50d-4b98e4937ad2.png</url>
      <title>DEV Community: Tech Mahato (Arbind)</title>
      <link>https://dev.to/techmahato</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/techmahato"/>
    <language>en</language>
    <item>
      <title>AWS Data Engineer Associate (DEA-C01) Notes #3: DynamoDB, Aurora, Purpose-Built Databases and Redshift</title>
      <dc:creator>Tech Mahato (Arbind)</dc:creator>
      <pubDate>Sun, 06 Dec 2026 09:42:53 +0000</pubDate>
      <link>https://dev.to/techmahato/aws-data-engineer-associate-dea-c01-notes-3-dynamodb-aurora-purpose-built-databases-and-9ag</link>
      <guid>https://dev.to/techmahato/aws-data-engineer-associate-dea-c01-notes-3-dynamodb-aurora-purpose-built-databases-and-9ag</guid>
      <description>&lt;p&gt;The database section of DEA-C01 is long, and it's heavy on &lt;strong&gt;DynamoDB&lt;/strong&gt; and &lt;strong&gt;Redshift&lt;/strong&gt;. These are my condensed notes.&lt;/p&gt;

&lt;h2&gt;
  
  
  DynamoDB
&lt;/h2&gt;

&lt;p&gt;A serverless NoSQL key-value store. Items max out at &lt;strong&gt;400 KB&lt;/strong&gt;. The primary key is either a &lt;strong&gt;partition key&lt;/strong&gt;, or a &lt;strong&gt;partition key + sort key&lt;/strong&gt;. Pick a high-cardinality partition key: &lt;code&gt;movie_id&lt;/code&gt; spreads load well, while &lt;code&gt;movie_language&lt;/code&gt; would put most traffic on "English".&lt;/p&gt;

&lt;h3&gt;
  
  
  The capacity math (it will be on the exam)
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;1 WCU&lt;/strong&gt; = one write per second of up to &lt;strong&gt;1 KB&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;1 RCU&lt;/strong&gt; = one strongly consistent read, or two eventually consistent reads, per second of up to &lt;strong&gt;4 KB&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Always round the item size &lt;strong&gt;up&lt;/strong&gt; first.&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;6 writes/s of 4.5 KB&lt;/td&gt;
&lt;td&gt;6 × 5 = &lt;strong&gt;30 WCU&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;16 eventually consistent reads/s of 12 KB&lt;/td&gt;
&lt;td&gt;16/2 × 3 = &lt;strong&gt;24 RCU&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;10 strongly consistent reads/s of 6 KB&lt;/td&gt;
&lt;td&gt;10 × 2 = &lt;strong&gt;20 RCU&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;On-Demand&lt;/strong&gt; mode needs no planning and never throttles, but costs about 2.5x provisioned. &lt;strong&gt;Provisioned&lt;/strong&gt; mode throttles hot keys with &lt;code&gt;ProvisionedThroughputExceededException&lt;/code&gt;. The fixes are backoff, a better key, or DAX.&lt;/p&gt;

&lt;h3&gt;
  
  
  Indexes, cache, streams, TTL
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;LSI:&lt;/strong&gt; same partition key, different sort key. Only at table creation, max 5, shares table capacity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;GSI:&lt;/strong&gt; a completely new key, added any time, with its own capacity. A throttled GSI &lt;strong&gt;throttles writes to the base table&lt;/strong&gt;, which is a favourite exam trap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DAX:&lt;/strong&gt; in-memory cache, microsecond reads, same API, no code changes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Streams:&lt;/strong&gt; 24-hour change log. Lambda reads it through an event source mapping. The &lt;code&gt;NEW_AND_OLD_IMAGES&lt;/code&gt; view gives you before/after for CDC.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;TTL:&lt;/strong&gt; set a Number attribute holding an epoch timestamp, and items expire for free (within a few days).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A pattern I'll actually reuse:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;S3 upload ──► Lambda ──► DynamoDB (object metadata) ──► query "all files for customer X uploaded last week"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  RDS and Aurora
&lt;/h2&gt;

&lt;p&gt;RDS shows up on the exam mostly as &lt;strong&gt;what not to use for big data&lt;/strong&gt;, or as a source for Redshift. Know ACID, and know shared (&lt;code&gt;FOR SHARE&lt;/code&gt;) vs. exclusive (&lt;code&gt;FOR UPDATE&lt;/code&gt;) locks.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Aurora&lt;/strong&gt; keeps &lt;strong&gt;6 copies across 3 AZs&lt;/strong&gt;, has up to &lt;strong&gt;15 read replicas&lt;/strong&gt; behind a reader endpoint, fails over in under 30 seconds, and can rewind with &lt;strong&gt;Backtrack&lt;/strong&gt;. Storage now grows to &lt;strong&gt;256 TiB&lt;/strong&gt; on supported versions. With &lt;code&gt;pgvector&lt;/code&gt; it doubles as a vector store for small RAG systems.&lt;/p&gt;

&lt;h2&gt;
  
  
  Picking a purpose-built database
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Clue in the question&lt;/th&gt;
&lt;th&gt;Answer&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;MongoDB / JSON documents&lt;/td&gt;
&lt;td&gt;DocumentDB&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cassandra / CQL&lt;/td&gt;
&lt;td&gt;Keyspaces&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Relationships, social graph, fraud rings&lt;/td&gt;
&lt;td&gt;Neptune (Gremlin, openCypher, SPARQL)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;IoT metrics over time&lt;/td&gt;
&lt;td&gt;Timestream&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Durable Redis&lt;/td&gt;
&lt;td&gt;MemoryDB&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Redshift: the big one
&lt;/h2&gt;

&lt;p&gt;A columnar, MPP data warehouse for &lt;strong&gt;OLAP&lt;/strong&gt;. A leader node plans queries, and compute nodes (split into slices) run them.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Distribution styles&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;KEY:&lt;/strong&gt; large fact tables joined on that column.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ALL:&lt;/strong&gt; small dimension tables.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EVEN:&lt;/strong&gt; no obvious join key.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;AUTO:&lt;/strong&gt; let Redshift decide.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Getting data in and out&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="no"&gt;COPY&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="s1"&gt;'s3://my-bucket/sales/'&lt;/span&gt;
&lt;span class="no"&gt;IAM_ROLE&lt;/span&gt; &lt;span class="s1"&gt;'arn:aws:iam::123456789012:role/RedshiftLoad'&lt;/span&gt;
&lt;span class="no"&gt;FORMAT&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="no"&gt;PARQUET&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="no"&gt;UNLOAD&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'SELECT * FROM sales WHERE year = 2025'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;TO&lt;/span&gt; &lt;span class="s1"&gt;'s3://my-bucket/export/sales_'&lt;/span&gt;
&lt;span class="no"&gt;IAM_ROLE&lt;/span&gt; &lt;span class="s1"&gt;'arn:aws:iam::123456789012:role/RedshiftLoad'&lt;/span&gt;
&lt;span class="no"&gt;FORMAT&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="no"&gt;PARQUET&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;There are also auto-copy from S3, &lt;strong&gt;zero-ETL from Aurora&lt;/strong&gt;, and &lt;strong&gt;streaming ingestion&lt;/strong&gt; from Kinesis or MSK. For narrow tables, load in a single COPY.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Query data where it lives&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Spectrum:&lt;/strong&gt; query S3 without loading it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Federated queries:&lt;/strong&gt; read live RDS/Aurora data (read-only; credentials in Secrets Manager).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data sharing:&lt;/strong&gt; live, read-only access across clusters, accounts and Regions (RA3 + encryption required).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Keeping it fast&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;WLM queues:&lt;/strong&gt; automatic (up to 8) or manual with queue hopping.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Concurrency scaling:&lt;/strong&gt; extra capacity for read bursts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Short Query Acceleration:&lt;/strong&gt; ML routes short queries past long ones.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Materialized views:&lt;/strong&gt; precomputed dashboard queries, with &lt;code&gt;AUTO REFRESH&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;VACUUM:&lt;/strong&gt; &lt;code&gt;DELETE ONLY&lt;/code&gt; reclaims space, &lt;code&gt;SORT ONLY&lt;/code&gt; re-sorts without reclaiming.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Resizing:&lt;/strong&gt; elastic resize takes minutes. Classic resize can leave the cluster read-only for hours or days, so snapshot, restore and resize the copy instead.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Serverless:&lt;/strong&gt; billed in RPUs (base 32–512), VPC-only, no WLM or parameter groups.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extending it:&lt;/strong&gt; Lambda UDFs call any code from SQL. The &lt;strong&gt;Data API&lt;/strong&gt; runs SQL over HTTPS, asynchronously, with no drivers. It's great from Lambda or Step Functions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Anti-patterns:&lt;/strong&gt; small data or OLTP (use RDS/DynamoDB), unstructured data or BLOBs (use S3).&lt;/p&gt;

&lt;h2&gt;
  
  
  Key takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Round up item sizes, then compute WCU/RCU. Eventually consistent reads cost half.&lt;/li&gt;
&lt;li&gt;GSIs can throttle your table. LSIs are creation-time only.&lt;/li&gt;
&lt;li&gt;Aurora = 6 copies / 3 AZs / 15 replicas.&lt;/li&gt;
&lt;li&gt;Redshift: KEY vs. ALL distribution, COPY/UNLOAD, Spectrum vs. federated vs. data sharing, concurrency scaling vs. SQA.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next: &lt;strong&gt;Migration and Transfer&lt;/strong&gt;, covering DMS, DataSync, Snow Family, Transfer Family and Data Exchange.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>dataengineering</category>
      <category>redshift</category>
      <category>dynamodb</category>
    </item>
    <item>
      <title>AWS Data Engineer Associate (DEA-C01) Notes #2: S3, S3 Tables, EBS, EFS and AWS Backup</title>
      <dc:creator>Tech Mahato (Arbind)</dc:creator>
      <pubDate>Sun, 06 Dec 2026 09:42:45 +0000</pubDate>
      <link>https://dev.to/techmahato/aws-data-engineer-associate-dea-c01-notes-2-s3-s3-tables-ebs-efs-and-aws-backup-22de</link>
      <guid>https://dev.to/techmahato/aws-data-engineer-associate-dea-c01-notes-2-s3-s3-tables-ebs-efs-and-aws-backup-22de</guid>
      <description>&lt;p&gt;The storage section of the DEA-C01 course is mostly about &lt;strong&gt;Amazon S3&lt;/strong&gt;, and it should be: S3 is the data lake. I've condensed my notes on S3, the new &lt;strong&gt;S3 Tables&lt;/strong&gt;, and the EC2-side storage services below.&lt;/p&gt;

&lt;h2&gt;
  
  
  S3 in one paragraph
&lt;/h2&gt;

&lt;p&gt;Buckets live in a &lt;strong&gt;Region&lt;/strong&gt;. Objects are identified by a &lt;strong&gt;key&lt;/strong&gt;, which is the full path, prefix included. Folders don't really exist; the console just draws slashes as folders. One object can be up to &lt;strong&gt;50 TB&lt;/strong&gt; (raised from 5 TB in late 2025), and anything over &lt;strong&gt;5 GB&lt;/strong&gt; has to use multipart upload.&lt;/p&gt;

&lt;p&gt;One new thing since many older study guides were written: bucket names no longer &lt;em&gt;have&lt;/em&gt; to be globally unique. Since March 2026 you can create buckets in an &lt;strong&gt;account regional namespace&lt;/strong&gt;, where the name carries your account suffix and only your account can use it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Security: who can touch the data
&lt;/h2&gt;

&lt;p&gt;The rule I memorised:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Access is allowed if &lt;strong&gt;(IAM policy allows OR bucket policy allows) AND there's no explicit Deny&lt;/strong&gt;.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Scenario&lt;/th&gt;
&lt;th&gt;Use&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;EC2 or Lambda reading a bucket&lt;/td&gt;
&lt;td&gt;IAM role&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;User in the same account&lt;/td&gt;
&lt;td&gt;IAM policy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Another AWS account&lt;/td&gt;
&lt;td&gt;Bucket policy&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Public static website&lt;/td&gt;
&lt;td&gt;Bucket policy + turn off Block Public Access&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Keep &lt;strong&gt;Block Public Access&lt;/strong&gt; on unless a bucket really is public. You can enforce it for the whole account.&lt;/p&gt;

&lt;h2&gt;
  
  
  Versioning and replication
&lt;/h2&gt;

&lt;p&gt;Versioning is set per bucket. Overwrites create new versions, and deletes only add a &lt;strong&gt;delete marker&lt;/strong&gt;, so you can undo them.&lt;/p&gt;

&lt;p&gt;Replication (&lt;strong&gt;CRR&lt;/strong&gt; across Regions, &lt;strong&gt;SRR&lt;/strong&gt; within one) gotchas I expect on the exam:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Versioning must be &lt;strong&gt;on in both buckets&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Only &lt;strong&gt;new&lt;/strong&gt; objects replicate. For existing or failed objects, use &lt;strong&gt;S3 Batch Replication&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Deleting a specific version is &lt;strong&gt;never&lt;/strong&gt; replicated (a guard against malicious deletes). Replicating delete markers is optional.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No chaining:&lt;/strong&gt; A → B → C does not copy A's objects to C.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Replication Time Control&lt;/strong&gt; guarantees 99.99% of objects replicate within 15 minutes, with CloudWatch metrics. Pick it when a question mentions a compliance SLA.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Storage classes, quickly
&lt;/h2&gt;

&lt;p&gt;Every class has &lt;strong&gt;11 9s durability&lt;/strong&gt;. What changes is availability, minimum storage duration and retrieval cost.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Pick this...&lt;/th&gt;
&lt;th&gt;...when the question says&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Standard&lt;/td&gt;
&lt;td&gt;Frequently accessed, analytics&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Intelligent-Tiering&lt;/td&gt;
&lt;td&gt;Access pattern unknown or changing (no retrieval fees)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Standard-IA&lt;/td&gt;
&lt;td&gt;Rarely read but needed instantly (DR, backups)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;One Zone-IA&lt;/td&gt;
&lt;td&gt;Data you can recreate; cheapest instant-access option&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Glacier Instant Retrieval&lt;/td&gt;
&lt;td&gt;Read about once a quarter, milliseconds&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Glacier Flexible Retrieval&lt;/td&gt;
&lt;td&gt;Minutes to hours is fine (bulk retrieval is free)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Glacier Deep Archive&lt;/td&gt;
&lt;td&gt;Long-term archive; 12–48 h retrieval; 180-day minimum&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;S3 Express One Zone&lt;/td&gt;
&lt;td&gt;Single-digit-millisecond latency for ML/Spark in one AZ&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Lifecycle rules&lt;/strong&gt; automate moving data between these classes. They can also expire old versions and clean up incomplete multipart uploads, and you can scope them by prefix or tag. A classic exam scenario:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Deleted objects must be recoverable instantly for 30 days, then within 48 hours for a year.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The answer: enable &lt;strong&gt;versioning&lt;/strong&gt;, transition &lt;strong&gt;noncurrent versions&lt;/strong&gt; to Standard-IA, then to &lt;strong&gt;Glacier Deep Archive&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Not sure when to transition? &lt;strong&gt;Storage Class Analysis&lt;/strong&gt; gives Standard → Standard-IA recommendations after 24–48 hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  Event notifications
&lt;/h2&gt;

&lt;p&gt;S3 can send &lt;code&gt;ObjectCreated&lt;/code&gt; and &lt;code&gt;ObjectRemoved&lt;/code&gt; events (and others) to &lt;strong&gt;SNS, SQS or Lambda&lt;/strong&gt;. Permissions come from the &lt;em&gt;destination's resource policy&lt;/em&gt;, not an IAM role. That's what I always forget when the event silently fails to arrive.&lt;/p&gt;

&lt;p&gt;Alternatively, route &lt;strong&gt;every&lt;/strong&gt; event to &lt;strong&gt;EventBridge&lt;/strong&gt; for JSON filtering, 18+ target types, archiving and replay. A typical data-engineering pattern looks like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;s3://raw/ ── ObjectCreated ──► EventBridge rule ──► Step Functions ──► Glue job ──► s3://curated/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Performance numbers worth memorising
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;3,500 writes and 5,500 reads per second, per prefix.&lt;/strong&gt; Spread keys across more prefixes to scale.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Multipart upload:&lt;/strong&gt; recommended above 100 MB, required above 5 GB.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transfer Acceleration:&lt;/strong&gt; uploads enter at a nearby edge location and travel over the AWS backbone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Byte-range fetches:&lt;/strong&gt; parallel downloads, or read only a file's header.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Encryption: five ways to do it
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Method&lt;/th&gt;
&lt;th&gt;What makes it different&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;SSE-S3&lt;/td&gt;
&lt;td&gt;Default, AES-256, S3 owns the key&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SSE-KMS&lt;/td&gt;
&lt;td&gt;You control the key and CloudTrail audits its use, but every request calls KMS and &lt;strong&gt;counts against the KMS quota&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;DSSE-KMS&lt;/td&gt;
&lt;td&gt;Two layers, for compliance rules that demand it&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SSE-C&lt;/td&gt;
&lt;td&gt;You send the key with every request, S3 never stores it, &lt;strong&gt;HTTPS required&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Client-side&lt;/td&gt;
&lt;td&gt;You encrypt before uploading&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;To force HTTPS, use a bucket policy that &lt;strong&gt;denies&lt;/strong&gt; requests where &lt;code&gt;aws:SecureTransport&lt;/code&gt; is &lt;code&gt;false&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;"Effect"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Deny"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Principal"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Action"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"s3:*"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Resource"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"arn:aws:s3:::my-bucket"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"arn:aws:s3:::my-bucket/*"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nl"&gt;"Condition"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"Bool"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nl"&gt;"aws:SecureTransport"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"false"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Bucket policies are evaluated &lt;strong&gt;before&lt;/strong&gt; default encryption, so a policy is how you &lt;em&gt;require&lt;/em&gt; SSE-KMS.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Access Points&lt;/strong&gt; give each team its own endpoint and policy (finance gets &lt;code&gt;/finance/*&lt;/code&gt;, analytics gets read-only on everything) and can be locked to a VPC.&lt;/p&gt;

&lt;h2&gt;
  
  
  S3 Tables: managed Iceberg
&lt;/h2&gt;

&lt;p&gt;This is the part of the section I found most interesting. &lt;strong&gt;S3 Tables&lt;/strong&gt; are &lt;strong&gt;table buckets&lt;/strong&gt; that store data as &lt;strong&gt;Apache Iceberg&lt;/strong&gt; tables, and AWS handles compaction, snapshot cleanup and unreferenced-file removal. Iceberg brings ACID transactions, row-level deletes, schema and partition evolution, and time travel to the data lake.&lt;/p&gt;

&lt;p&gt;Structure: table bucket → namespace (think "database") → table. Names must be &lt;strong&gt;lowercase&lt;/strong&gt; or they won't integrate with Glue and Lake Formation.&lt;/p&gt;

&lt;p&gt;In the hands-on lab I created a namespace and queried it from Athena:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="sb"&gt;`us_data`&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state_population&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="n"&gt;string&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;year&lt;/span&gt; &lt;span class="kt"&gt;int&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;population&lt;/span&gt; &lt;span class="kt"&gt;bigint&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="no"&gt;PARTITIONED&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;year&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="no"&gt;TBLPROPERTIES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'table_type'&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'iceberg'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;us_data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state_population&lt;/span&gt; &lt;span class="k"&gt;VALUES&lt;/span&gt;
  &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Alabama'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2023&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;5117850&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Alaska'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2023&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;734654&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nb"&gt;AVG&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;population&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;avg_population&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;us_data&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;state_population&lt;/span&gt;
&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;state&lt;/span&gt;
&lt;span class="k"&gt;ORDER&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;avg_population&lt;/span&gt; &lt;span class="k"&gt;DESC&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Other details: S3 Tables has its own Intelligent-Tiering (Infrequent after 30 days, Archive Instant after 90, with compaction only in the Frequent tier), read-only cross-Region/cross-account replicas, and security through IAM, SCPs, Lake Formation and KMS. It never allows public access.&lt;/p&gt;

&lt;h2&gt;
  
  
  Storage Lens
&lt;/h2&gt;

&lt;p&gt;Organization-wide dashboards for S3. The free tier has about 28 metrics with 14 days of history. Advanced (paid) adds CloudWatch publishing, prefix-level aggregation and 15 months of history. It's handy for finding buckets without versioning or stale incomplete multipart uploads.&lt;/p&gt;

&lt;h2&gt;
  
  
  EBS vs. EFS
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;EBS&lt;/th&gt;
&lt;th&gt;EFS&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;What&lt;/td&gt;
&lt;td&gt;Network block volume&lt;/td&gt;
&lt;td&gt;Managed NFS&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Attach&lt;/td&gt;
&lt;td&gt;One instance (io1/io2 Multi-Attach aside)&lt;/td&gt;
&lt;td&gt;Hundreds of instances&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Scope&lt;/td&gt;
&lt;td&gt;One AZ (snapshot to move)&lt;/td&gt;
&lt;td&gt;Multi-AZ&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;OS&lt;/td&gt;
&lt;td&gt;Any&lt;/td&gt;
&lt;td&gt;Linux only&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Billing&lt;/td&gt;
&lt;td&gt;Provisioned size&lt;/td&gt;
&lt;td&gt;Pay per use (pricier per GB)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;EBS facts: the root volume is deleted on termination by default (extra volumes aren't), and &lt;strong&gt;Elastic Volumes&lt;/strong&gt; let you grow a volume or change its type without detaching it.&lt;/p&gt;

&lt;p&gt;EFS facts: performance mode is General Purpose or Max I/O. Throughput mode is Bursting, Provisioned or &lt;strong&gt;Elastic&lt;/strong&gt; (pick Elastic for unpredictable load). Lifecycle tiers are Standard, IA and Archive.&lt;/p&gt;

&lt;h2&gt;
  
  
  AWS Backup
&lt;/h2&gt;

&lt;p&gt;One place to schedule, retain and copy backups (cross-Region and cross-account) for EBS, S3, RDS, Aurora, DynamoDB, EFS, FSx and more. &lt;strong&gt;Backup Vault Lock&lt;/strong&gt; makes backups WORM, so not even root can delete them. That's the answer whenever a question mentions ransomware or "nobody can delete backups".&lt;/p&gt;

&lt;h2&gt;
  
  
  Key takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Explicit Deny wins. Roles for services, bucket policies for cross-account.&lt;/li&gt;
&lt;li&gt;Replication needs versioning, ignores existing objects unless you use Batch Replication, and doesn't chain.&lt;/li&gt;
&lt;li&gt;Match the storage class to the access pattern and retrieval time. Durability is identical across classes.&lt;/li&gt;
&lt;li&gt;Prefixes scale S3 throughput. Multipart is mandatory above 5 GB.&lt;/li&gt;
&lt;li&gt;SSE-KMS gives audit and control at the cost of KMS quotas. SSE-C needs HTTPS.&lt;/li&gt;
&lt;li&gt;S3 Tables = managed Iceberg tables. Lowercase names. Query them from Athena, EMR, Redshift or Spark.&lt;/li&gt;
&lt;li&gt;EFS for shared Linux file systems, EBS for single-instance disks, Backup Vault Lock for immutable backups.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Next up: &lt;strong&gt;Databases&lt;/strong&gt;, covering DynamoDB in depth, RDS and Aurora, the purpose-built databases, and a lot of Redshift.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>dataengineering</category>
      <category>s3</category>
      <category>certification</category>
    </item>
    <item>
      <title>AWS Data Engineer Associate (DEA-C01) Notes #1: Data Engineering Fundamentals</title>
      <dc:creator>Tech Mahato (Arbind)</dc:creator>
      <pubDate>Sun, 06 Dec 2026 09:42:28 +0000</pubDate>
      <link>https://dev.to/techmahato/aws-data-engineer-associate-dea-c01-notes-1-data-engineering-fundamentals-34ln</link>
      <guid>https://dev.to/techmahato/aws-data-engineer-associate-dea-c01-notes-1-data-engineering-fundamentals-34ln</guid>
      <description>&lt;p&gt;I'm preparing for the &lt;strong&gt;AWS Certified Data Engineer – Associate (DEA-C01)&lt;/strong&gt; exam, and I'm writing up each section as I finish it. This first post covers the fundamentals section. There's barely any AWS here, but nearly every later exam question assumes you know this vocabulary.&lt;/p&gt;

&lt;p&gt;If you already work with data daily, skim the tables and the "exam angle" bits.&lt;/p&gt;

&lt;h2&gt;
  
  
  Types of data
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Type&lt;/th&gt;
&lt;th&gt;Shape&lt;/th&gt;
&lt;th&gt;Examples&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Structured&lt;/td&gt;
&lt;td&gt;Fixed schema, rows and columns&lt;/td&gt;
&lt;td&gt;RDS tables, clean CSVs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Semi-structured&lt;/td&gt;
&lt;td&gt;Keys/tags give some structure, schema can vary&lt;/td&gt;
&lt;td&gt;JSON, XML, log files&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Unstructured&lt;/td&gt;
&lt;td&gt;No schema at all&lt;/td&gt;
&lt;td&gt;Images, video, PDFs, email bodies&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A realistic pipeline handles all three at once: orders in a relational DB, clickstream events as JSON, product images as files.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 3 Vs
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Volume:&lt;/strong&gt; how much data you have. Terabytes a day pushes you toward S3, Redshift or EMR.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Velocity:&lt;/strong&gt; how quickly it arrives. Millisecond IoT readings point toward Kinesis, MSK or Flink.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Variety:&lt;/strong&gt; how many formats and sources. Lots of variety usually means a data lake.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Exam angle:&lt;/strong&gt; read scenario questions for these signals. "Near real-time" is a velocity question. "Petabytes of history" is a volume question.&lt;/p&gt;

&lt;h2&gt;
  
  
  Warehouse vs. lake vs. lakehouse
&lt;/h2&gt;

&lt;p&gt;This section matters most for the exam.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Data warehouse&lt;/th&gt;
&lt;th&gt;Data lake&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Schema&lt;/td&gt;
&lt;td&gt;Schema-on-&lt;strong&gt;write&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Schema-on-&lt;strong&gt;read&lt;/strong&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Pipeline&lt;/td&gt;
&lt;td&gt;ETL&lt;/td&gt;
&lt;td&gt;ELT (or just load)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data&lt;/td&gt;
&lt;td&gt;Mostly structured&lt;/td&gt;
&lt;td&gt;Anything&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Strength&lt;/td&gt;
&lt;td&gt;Fast, complex BI queries&lt;/td&gt;
&lt;td&gt;Cheap, flexible, ML-friendly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AWS example&lt;/td&gt;
&lt;td&gt;Amazon Redshift&lt;/td&gt;
&lt;td&gt;Amazon S3 + Glue + Athena&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;A warehouse usually uses a &lt;strong&gt;star or snowflake schema&lt;/strong&gt; and feeds smaller &lt;strong&gt;data marts&lt;/strong&gt; for individual teams. A lake stores raw data as-is and leaves the schema decision until query time.&lt;/p&gt;

&lt;p&gt;In practice most companies use both. Raw data lands in S3, gets refined, and the curated part goes into Redshift.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;lakehouse&lt;/strong&gt; combines them: cheap lake storage plus warehouse features like ACID transactions and good query performance. On AWS this usually means Apache Iceberg tables on S3, catalogued in Glue, and queried from Athena, EMR or Redshift.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Sources ──► S3 (raw) ──► Glue ETL ──► S3 (curated, Parquet/Iceberg) ──► Athena / Redshift Spectrum
                                                       │
                                                       └──► Redshift (BI marts)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Data mesh is about ownership, not technology
&lt;/h2&gt;

&lt;p&gt;A data mesh means &lt;strong&gt;domain teams own their data as products&lt;/strong&gt;. There's &lt;strong&gt;federated governance&lt;/strong&gt; with central standards, plus self-service infrastructure. It's an operating model, and a lake or warehouse can sit underneath it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Exam angle:&lt;/strong&gt; if a question says "each business unit owns and publishes its data, with central governance", the answer is a mesh. On AWS that usually means Lake Formation cross-account sharing or DataZone.&lt;/p&gt;

&lt;h2&gt;
  
  
  ETL and who runs it
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Extract&lt;/strong&gt; from databases, APIs, files, SaaS apps.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Transform&lt;/strong&gt; by deduplicating, fixing types and dates, enriching, aggregating and handling nulls.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Load&lt;/strong&gt; into the warehouse or lake, in batch or streaming.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The course stresses that pipelines have to be automated. Here are the AWS options I'm keeping in my head:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Need&lt;/th&gt;
&lt;th&gt;Service&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Chain Glue crawlers and jobs&lt;/td&gt;
&lt;td&gt;Glue Workflows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Serverless, multi-service state machine&lt;/td&gt;
&lt;td&gt;Step Functions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Already have Airflow DAGs&lt;/td&gt;
&lt;td&gt;Amazon MWAA&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Cron schedules or event triggers&lt;/td&gt;
&lt;td&gt;EventBridge&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Small glue code between steps&lt;/td&gt;
&lt;td&gt;Lambda&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Data sources and file formats
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;JDBC&lt;/strong&gt; is platform-independent but Java-only. &lt;strong&gt;ODBC&lt;/strong&gt; is the opposite: it works from any language but needs platform-specific drivers.&lt;/p&gt;

&lt;p&gt;For formats, one table covers it:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Format&lt;/th&gt;
&lt;th&gt;Layout&lt;/th&gt;
&lt;th&gt;When I'd use it&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;CSV&lt;/td&gt;
&lt;td&gt;Text, row&lt;/td&gt;
&lt;td&gt;Small exchanges, spreadsheets&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JSON&lt;/td&gt;
&lt;td&gt;Text, nested&lt;/td&gt;
&lt;td&gt;APIs, configs, flexible schemas&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Avro&lt;/td&gt;
&lt;td&gt;Binary, row, &lt;strong&gt;schema embedded&lt;/strong&gt;
&lt;/td&gt;
&lt;td&gt;Kafka/streaming, schema evolution&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Parquet&lt;/td&gt;
&lt;td&gt;Binary, &lt;strong&gt;columnar&lt;/strong&gt;, compressed&lt;/td&gt;
&lt;td&gt;Analytics with Athena, Spark, Redshift Spectrum&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;strong&gt;Exam angle:&lt;/strong&gt; "Reduce Athena cost and speed up queries" almost always means &lt;strong&gt;convert to Parquet (or ORC), compress, and partition&lt;/strong&gt;. Athena charges per byte scanned, and columnar formats let it skip the columns a query doesn't use.&lt;/p&gt;

&lt;h2&gt;
  
  
  Modeling, lineage and schema evolution
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Star schema:&lt;/strong&gt; fact tables (events, sales) surrounded by dimension tables (customer, product, date), joined by keys.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data lineage:&lt;/strong&gt; tracking where data came from and every transformation it went through. The course shows an AWS pattern where a Spline agent on a Glue Spark job captures lineage, and Lambda stores it as a graph in Amazon Neptune.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Schema evolution:&lt;/strong&gt; changing fields without breaking consumers. On AWS that's the &lt;strong&gt;Glue Schema Registry&lt;/strong&gt;. It supports Avro, JSON Schema and Protobuf, and checks compatibility (BACKWARD by default) for Kinesis and Kafka producers.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Performance basics
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Indexing&lt;/strong&gt; to avoid full table scans.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Partitioning&lt;/strong&gt; so queries read less data, and so you can process partitions in parallel and manage their lifecycle.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compression&lt;/strong&gt; (GZIP, LZOP, BZIP2, ZSTD in Redshift). You trade compression ratio against CPU time. Columnar data compresses especially well.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Sampling, skew and data quality
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Sampling:&lt;/strong&gt; random (everyone has equal odds), &lt;strong&gt;stratified&lt;/strong&gt; (sample within each subgroup so every category is represented), systematic (every &lt;em&gt;n&lt;/em&gt;-th row).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data skew&lt;/strong&gt; is the "celebrity problem". If you partition an IMDb-style clickstream by actor, one superstar's partition melts while the rest sit idle. Ways to fix it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Salting, i.e. adding a random suffix to hot keys&lt;/li&gt;
&lt;li&gt;Adaptive or custom partitioning&lt;/li&gt;
&lt;li&gt;Periodic repartitioning&lt;/li&gt;
&lt;li&gt;Sampling first to understand the distribution&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You'll meet this again with DynamoDB partition keys and Kinesis shard keys.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data quality&lt;/strong&gt; comes down to four checks: &lt;strong&gt;completeness&lt;/strong&gt; (nulls, missing fields), &lt;strong&gt;consistency&lt;/strong&gt; (sources agree), &lt;strong&gt;accuracy&lt;/strong&gt; (matches a trusted reference) and &lt;strong&gt;integrity&lt;/strong&gt; (foreign keys and relationships hold). These map directly to Glue Data Quality rules later in the course.&lt;/p&gt;

&lt;h2&gt;
  
  
  SQL refresher
&lt;/h2&gt;

&lt;p&gt;Conditional aggregation was the most useful pattern for me. You get several counts in one pass instead of several &lt;code&gt;WHERE&lt;/code&gt; queries:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt;
  &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;CASE&lt;/span&gt; &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="n"&gt;salary&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;70000&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;END&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                 &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;high&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;CASE&lt;/span&gt; &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="n"&gt;salary&lt;/span&gt; &lt;span class="k"&gt;BETWEEN&lt;/span&gt; &lt;span class="mi"&gt;50000&lt;/span&gt; &lt;span class="k"&gt;AND&lt;/span&gt; &lt;span class="mi"&gt;70000&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;END&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;medium&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="nb"&gt;COUNT&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;CASE&lt;/span&gt; &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="n"&gt;salary&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="mi"&gt;50000&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt; &lt;span class="k"&gt;END&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;                 &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;low&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;employees&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The same trick gives you a portable &lt;strong&gt;pivot&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="n"&gt;salesperson&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nb"&gt;SUM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;CASE&lt;/span&gt; &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="n"&gt;quarter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Q1'&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt; &lt;span class="k"&gt;ELSE&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="k"&gt;END&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;q1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
       &lt;span class="nb"&gt;SUM&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;CASE&lt;/span&gt; &lt;span class="k"&gt;WHEN&lt;/span&gt; &lt;span class="n"&gt;quarter&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'Q2'&lt;/span&gt; &lt;span class="k"&gt;THEN&lt;/span&gt; &lt;span class="n"&gt;amount&lt;/span&gt; &lt;span class="k"&gt;ELSE&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="k"&gt;END&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;AS&lt;/span&gt; &lt;span class="n"&gt;q2&lt;/span&gt;
&lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;sales&lt;/span&gt;
&lt;span class="k"&gt;GROUP&lt;/span&gt; &lt;span class="k"&gt;BY&lt;/span&gt; &lt;span class="n"&gt;salesperson&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Joins, in one line each: &lt;strong&gt;INNER&lt;/strong&gt; returns only matches. &lt;strong&gt;LEFT/RIGHT&lt;/strong&gt; keep every row from one side. &lt;strong&gt;FULL&lt;/strong&gt; keeps every row from both. &lt;strong&gt;CROSS&lt;/strong&gt; returns every combination.&lt;/p&gt;

&lt;p&gt;For regex, PostgreSQL uses &lt;code&gt;~&lt;/code&gt; (case-sensitive) and &lt;code&gt;~*&lt;/code&gt; (case-insensitive):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;names&lt;/span&gt; &lt;span class="k"&gt;WHERE&lt;/span&gt; &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="o"&gt;~*&lt;/span&gt; &lt;span class="s1"&gt;'^(fire|ice)'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;One gotcha: Redshift documents only &lt;code&gt;~&lt;/code&gt; and &lt;code&gt;!~&lt;/code&gt;. AWS also warns that POSIX regex is expensive on large tables. For case-insensitive matching there, use &lt;code&gt;ILIKE&lt;/code&gt; or &lt;code&gt;REGEXP_*&lt;/code&gt; with the &lt;code&gt;'i'&lt;/code&gt; flag.&lt;/p&gt;

&lt;h2&gt;
  
  
  Git in 30 seconds
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;git fetch&lt;/code&gt; downloads changes without merging. &lt;code&gt;git pull&lt;/code&gt; fetches and then merges.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git revert&lt;/code&gt; undoes a change with a new commit, so it's safe on shared branches. &lt;code&gt;git reset --hard&lt;/code&gt; throws away local work.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;git stash&lt;/code&gt;, &lt;code&gt;cherry-pick&lt;/code&gt; and &lt;code&gt;rebase&lt;/code&gt; come up in CI/CD discussions, and &lt;code&gt;git reflog&lt;/code&gt; gets you out of trouble.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Key takeaways
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Schema-on-write means warehouse/ETL. Schema-on-read means lake/ELT. A lakehouse is a lake with ACID transactions and warehouse-level performance.&lt;/li&gt;
&lt;li&gt;A data mesh is an ownership and governance model, not a product.&lt;/li&gt;
&lt;li&gt;Parquet/ORC plus partitioning plus compression is the default answer for cheaper, faster analytics on S3.&lt;/li&gt;
&lt;li&gt;Avro plus Glue Schema Registry is the default answer for schema evolution in streaming.&lt;/li&gt;
&lt;li&gt;Hot partitions: use high-cardinality keys or salting.&lt;/li&gt;
&lt;li&gt;Quality dimensions: completeness, consistency, accuracy, integrity.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;Next up is &lt;strong&gt;Storage&lt;/strong&gt;: S3 in depth (storage classes, lifecycle rules, replication, encryption, access points, and the new S3 Tables built on Iceberg), plus EBS, EFS and AWS Backup.&lt;/p&gt;

&lt;p&gt;If you're also studying for DEA-C01, tell me in the comments which section you found hardest.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>dataengineering</category>
      <category>certification</category>
      <category>sql</category>
    </item>
  </channel>
</rss>
