[{"data":1,"prerenderedAt":393},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-machine-learning-engineer-associate\u002Flessons\u002Famazon-athena-s3-data-formats-for-sql-analytics-mla-c02":185},[4,22,36,48,60,72,84,97,109,120,130,141,154,163,175],{"id":5,"slug":6,"description":7,"questionCount":8,"isActive":9,"datePublicModified":10,"difficulty":11,"examVersion":18},22,"aws-certified-solutions-architect-professional-sap-c03","Prepare for the AWS Certified Solutions Architect - Professional (SAP-C03) exam with realistic practice questions on architecture, security, cost, resilience and automation, with detailed explanations.",767,true,"2026-11-15T00:00:00.000Z",{"providerId":12,"title":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},1,"AWS Certified Solutions Architect - Professional","SAP-C02","aws-certified-solutions-architect-professional","\u002Fimages\u002Fdifficulties\u002Faws-certified-solutions-architect-professionalsap-c02\u002Fcovers\u002Faws-SAP-C02.png","advanced",{"slug":6,"code":19,"dateBetaStart":20,"dateReleased":21,"pageSlug":15},"SAP-C03",null,"2026-11-17",{"id":23,"slug":24,"description":25,"questionCount":26,"isActive":9,"datePublicModified":27,"difficulty":28,"examVersion":34},5,"aws-certified-cloud-practitioner-clf-c02","Master your AWS Certified Cloud Practitioner exam with our Practice Exam Simulator. Prepare effectively and assess your readiness with realistic practice exams designed to mirror the most popular official AWS exam.",937,"2026-10-30T00:00:00.000Z",{"providerId":12,"title":29,"subtitle":30,"slug":31,"coverImageUrl":32,"level":33},"AWS Certified Cloud Practitioner","CLF-C02","aws-certified-cloud-practitioner","\u002Fimages\u002Fdifficulties\u002Faws-certified-cloud-practitionerclf-c02\u002Fcovers\u002Faws-CLF-C02.png","foundational",{"slug":24,"code":30,"dateBetaStart":20,"dateReleased":35,"pageSlug":31},"2023-09-19",{"id":37,"slug":38,"description":39,"questionCount":40,"isActive":9,"datePublicModified":27,"difficulty":41,"examVersion":46},8,"aws-certified-devops-engineer-professional-dop-c02","Boost your readiness for the AWS Certified DevOps Engineer - Professional (DOP-C02) exam with our practice exam simulator. Featuring realistic questions and detailed explanations, it helps you identify knowledge gaps and improve your skills.",1040,{"providerId":12,"title":42,"subtitle":43,"slug":44,"coverImageUrl":45,"level":17},"AWS Certified DevOps Engineer - Professional","DOP-C02","aws-certified-devops-engineer-professional","",{"slug":38,"code":43,"dateBetaStart":20,"dateReleased":47,"pageSlug":44},"2023-03-07",{"id":49,"slug":50,"description":51,"questionCount":52,"isActive":9,"datePublicModified":27,"difficulty":53,"examVersion":57},11,"aws-certified-ai-practitioner-aif-c01","Prepare for the AWS Certified AI Practitioner exam with our practice exam simulator. Realistic questions on AI, machine learning and generative AI fundamentals, with detailed explanations, help you find your knowledge gaps and assess your readiness.",928,{"providerId":12,"title":54,"subtitle":55,"slug":56,"coverImageUrl":45,"level":33},"AWS Certified AI Practitioner","AIF-C01","aws-certified-ai-practitioner",{"slug":50,"code":55,"dateBetaStart":58,"dateReleased":59,"pageSlug":56},"2024-08-13","2024-10-22",{"id":12,"slug":61,"description":62,"questionCount":63,"isActive":9,"datePublicModified":27,"difficulty":64,"examVersion":70},"aws-certified-solutions-architect-associate-saa-c03","Unlock your potential with the AWS Certified Solutions Architect - Associate Practice Exam Simulator. This comprehensive tool is designed to prepare you thoroughly and assess your readiness for the most sought-after AWS associate certification.",1203,{"providerId":12,"title":65,"subtitle":66,"slug":67,"coverImageUrl":68,"level":69},"AWS Certified Solutions Architect - Associate","SAA-C03","aws-certified-solutions-architect-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-solutions-architect-associatesaa-c03\u002Fcovers\u002Faws-SAA-C03.png","associate",{"slug":61,"code":66,"dateBetaStart":20,"dateReleased":71,"pageSlug":67},"2022-08-30",{"id":73,"slug":74,"description":75,"questionCount":76,"isActive":9,"datePublicModified":27,"difficulty":77,"examVersion":81},9,"aws-certified-data-engineer-associate-dea-c01","Prepare for your AWS Certified Data Engineer - Associate exam with our practice exam simulator. Featuring real exam scenarios, detailed explanations, and instant feedback to boost your confidence and success rate.",891,{"providerId":12,"title":78,"subtitle":79,"slug":80,"coverImageUrl":45,"level":69},"AWS Certified Data Engineer - Associate","DEA-C01","aws-certified-data-engineer-associate",{"slug":74,"code":79,"dateBetaStart":82,"dateReleased":83,"pageSlug":80},"2023-11-27","2024-03-12",{"id":85,"slug":86,"description":87,"questionCount":88,"isActive":9,"datePublicModified":89,"difficulty":90,"examVersion":94},17,"aws-certified-generative-ai-developer-professional-aip-c01","Get ready for the AWS Certified Generative AI Developer - Professional exam with our practice exam simulator. Realistic scenario-based questions with detailed explanations help you assess your readiness to build generative AI solutions on AWS.",982,"2026-10-29T00:00:00.000Z",{"providerId":12,"title":91,"subtitle":92,"slug":93,"coverImageUrl":45,"level":17},"AWS Certified Generative AI Developer - Professional","AIP-C01","aws-certified-generative-ai-developer-professional",{"slug":86,"code":92,"dateBetaStart":95,"dateReleased":96,"pageSlug":93},"2025-11-28","2026-03-17",{"id":98,"slug":99,"description":100,"questionCount":101,"isActive":9,"datePublicModified":89,"difficulty":102,"examVersion":107},13,"aws-certified-security-specialty-scs-c03","Advance your career in cloud security with the AWS Certified Security - Specialty (SCS-C03) Exam Simulator. Realistic, scenario-based practice exams mirror the official exam, with detailed explanations to close your knowledge gaps.",864,{"providerId":12,"title":103,"subtitle":104,"slug":105,"coverImageUrl":106,"level":17},"AWS Certified Security - Specialty","SCS-C03","aws-certified-security-specialty","\u002Fimages\u002Fdifficulties\u002Faws-certified-security-specialtyscs-c02\u002Fcovers\u002Faws_SCS_c02.png",{"slug":99,"code":104,"dateBetaStart":20,"dateReleased":108,"pageSlug":105},"2025-12-01",{"id":110,"slug":111,"description":112,"questionCount":113,"isActive":9,"datePublicModified":89,"difficulty":114,"examVersion":118},19,"aws-certified-machine-learning-engineer-associate-mla-c02","Prepare for the AWS Certified Machine Learning Engineer - Associate exam with our practice exam simulator. Realistic questions with detailed explanations help you find your knowledge gaps and assess your readiness to build and run ML workloads on AWS.",861,{"providerId":12,"title":115,"subtitle":116,"slug":117,"coverImageUrl":45,"level":69},"AWS Certified Machine Learning Engineer - Associate","MLA-C02","aws-certified-machine-learning-engineer-associate",{"slug":111,"code":116,"dateBetaStart":119,"dateReleased":20,"pageSlug":117},"2026-09-29",{"id":121,"slug":122,"description":123,"questionCount":124,"isActive":9,"datePublicModified":89,"difficulty":125,"examVersion":129},15,"aws-certified-ai-business-strategist-aib-c01","Prepare for the AWS Certified AI Business Strategist exam with our practice exam simulator. Realistic, scenario-based questions with detailed explanations help you assess your readiness to lead AI adoption on AWS and close your knowledge gaps.",848,{"providerId":12,"title":126,"subtitle":127,"slug":128,"coverImageUrl":45,"level":33},"AWS Certified AI Business Strategist","AIB-C01","aws-certified-ai-business-strategist",{"slug":122,"code":127,"dateBetaStart":119,"dateReleased":20,"pageSlug":128},{"id":131,"slug":132,"description":133,"questionCount":134,"isActive":9,"datePublicModified":89,"difficulty":135,"examVersion":139},21,"aws-certified-cloudops-engineer-associate-soa-c03","Prepare for the AWS Certified CloudOps Engineer - Associate exam with our practice exam simulator. Realistic questions with detailed explanations help you assess your readiness to deploy, operate and troubleshoot workloads on AWS.",862,{"providerId":12,"title":136,"subtitle":137,"slug":138,"coverImageUrl":45,"level":69},"AWS Certified CloudOps Engineer - Associate","SOA-C03","aws-certified-cloudops-engineer-associate",{"slug":132,"code":137,"dateBetaStart":20,"dateReleased":140,"pageSlug":138},"2025-09-30",{"id":142,"slug":143,"description":144,"questionCount":145,"isActive":9,"datePublicModified":146,"difficulty":147,"examVersion":151},10,"aws-certified-advanced-networking-specialty-ans-c01","The AWS Certified Advanced Networking - Specialty practice exam simulates the real test, offering scenario-based questions that assess your ability to design, implement, and troubleshoot complex AWS networking solutions. ",681,"2024-11-13T00:00:00.000Z",{"providerId":12,"title":148,"subtitle":149,"slug":150,"coverImageUrl":45,"level":17},"AWS Certified Advanced Networking - Specialty","ANS-C01","aws-certified-advanced-networking-specialty",{"slug":143,"code":149,"dateBetaStart":152,"dateReleased":153,"pageSlug":150},"2022-01-01","2022-07-12",{"id":155,"slug":156,"description":157,"questionCount":158,"isActive":9,"datePublicModified":159,"difficulty":160,"examVersion":161},6,"aws-certified-solutions-architect-professional-sap-c02","Elevate your career with the AWS Certified Solutions Architect - Professional Exam Simulator. Get ready to ace the most popular Professional AWS exam with our realistic practice exams. Assess your readiness, boost your confidence, and ensure your success.",789,"2024-06-06T00:00:00.000Z",{"providerId":12,"title":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},{"slug":156,"code":14,"dateBetaStart":20,"dateReleased":162,"pageSlug":20},"2022-11-15",{"id":164,"slug":165,"description":166,"questionCount":167,"isActive":9,"datePublicModified":159,"difficulty":168,"examVersion":173},4,"aws-certified-developer-associate-dva-c02","Unlock your potential as a software developer with the AWS Certified Developer - Associate Exam Simulator! Prepare thoroughly with realistic practice exams designed to mirror the official exam.",399,{"providerId":12,"title":169,"subtitle":170,"slug":171,"coverImageUrl":172,"level":69},"AWS Certified Developer - Associate","DVA-C02","aws-certified-developer-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-developer-associatedva-c02\u002Fcovers\u002Faws-DVA-C02.png",{"slug":165,"code":170,"dateBetaStart":20,"dateReleased":174,"pageSlug":171},"2023-02-28",{"id":176,"slug":177,"description":178,"questionCount":179,"isActive":9,"datePublicModified":159,"difficulty":180,"examVersion":181},7,"aws-certified-security-specialty-scs-c02","Advance your career in cloud cybersecurity with the AWS Certified Security - Specialty Exam Simulator! Tailored for professionals, this tool offers realistic practice exams to mirror the official exam.",5431,{"providerId":12,"title":103,"subtitle":104,"slug":105,"coverImageUrl":106,"level":17},{"slug":177,"code":182,"dateBetaStart":20,"dateReleased":183,"pageSlug":20},"SCS-C02","2023-07-11",[],{"slug":186,"title":187,"focus":188,"level":69,"components":189,"diagrams":209,"steps":240,"dateModified":388,"course":389,"nextLesson":390},"amazon-athena-s3-data-formats-for-sql-analytics-mla-c02","Amazon Athena: S3 data formats for SQL analytics","How Athena reads CSV, JSON, Parquet, and ORC through table definitions and writes query results into analytics-ready S3 datasets using CTAS and INSERT INTO, with format choices driven by access patterns and scan costs.",[190,196,200,204],{"key":191,"kind":192,"name":193,"icon":194,"provider":195},"amazon-athena","service","Amazon Athena","\u002Fimages\u002Fprovider-services\u002Famazon-athena\u002Fcovers\u002FArch_Amazon-Athena_64.png","AWS",{"key":197,"kind":192,"name":198,"icon":199,"provider":195},"amazon-elastic-block-store-(amazon-ebs)","Amazon Elastic Block Store (Amazon EBS)","\u002Fimages\u002Fprovider-services\u002Famazon-elastic-block-store-(amazon-ebs)\u002Fcovers\u002FArch_Amazon-Elastic-Block-Store_64.png",{"key":201,"kind":192,"name":202,"icon":203,"provider":195},"aws-glue","AWS Glue","\u002Fimages\u002Fprovider-services\u002Faws-glue\u002Fcovers\u002FArch_AWS-Glue_64.png",{"key":205,"kind":206,"name":207,"icon":208,"provider":195},"amazon-s3-bucket","part","Amazon S3 bucket","\u002Fimages\u002Fprovider-services\u002Famazon-s3\u002Fcovers\u002FRes_Amazon-Simple-Storage-Service_Bucket_48.png",[210],{"key":211,"cards":212,"groups":228,"lines":229},"athena-s3-analytics",[213,216,219,222,225],{"key":214,"component":205,"label":215},"source","Source files: CSV, JSON, Parquet, ORC",{"key":217,"component":191,"label":218},"athena","SQL reads and dataset creation",{"key":220,"component":201,"label":221},"catalog","Data Catalog: table definitions",{"key":223,"component":205,"label":224},"dataset","Curated dataset: Parquet or ORC",{"key":226,"component":205,"label":227},"results","Ordinary SELECT result location",[],[230,232,234,236,238],{"from":214,"to":217,"label":231},"Source records",{"from":220,"to":217,"label":233},"Table definitions",{"from":217,"to":220,"label":235},"Table registration",{"from":217,"to":223,"label":237},"CTAS\u002FINSERT files",{"from":217,"to":226,"label":239},"SELECT results",[241,273,286,313,331,352,367,370,375],{"kind":242,"title":243,"body":244,"diagram":211,"walkthrough":245},"explanation","Read files through table definitions","\u003Cp>\u003Cstrong>Amazon Athena\u003C\u002Fstrong> runs SQL against files in Amazon S3 without loading them into a database first. For the external S3 tables in this lesson, a \u003Cstrong>table definition\u003C\u002Fstrong> in the AWS Glue Data Catalog describes columns, data types, the S3 location, and how to interpret the files.\u003C\u002Fp>\u003Cp>Creating an external table registers metadata; it does not copy or convert the files. Athena reads definitions from the catalog and can also register new tables there. The diagram shows both directions of this metadata exchange, alongside source reads and two distinct kinds of S3 output.\u003C\u002Fp>",[246,249,254,260,265,270],{"text":247,"cards":248},"The source S3 location stores the actual records as CSV, JSON, Parquet, or ORC files.",[214],{"text":250,"cards":251,"lines":252},"Athena reads source records from S3 to execute SQL. The files remain in S3 rather than being loaded into an Athena database.",[217],[253],{"from":214,"to":217},{"text":255,"cards":256,"lines":257},"The AWS Glue Data Catalog supplies table definitions to Athena. In the other direction, Athena registers table metadata when SQL creates a table, including a table created with CTAS.",[220],[258,259],{"from":220,"to":217},{"from":217,"to":220},{"text":261,"cards":262,"lines":263},"Athena writes reusable dataset files into a separate S3 location. CREATE TABLE AS SELECT, or CTAS, writes the initial dataset; INSERT INTO adds data files to an existing destination table.",[223],[264],{"from":217,"to":223},{"text":266,"cards":267,"lines":268},"In this workflow, ordinary SELECT output is saved in a configured S3 query result location. This output is separate from the curated table dataset.",[226],[269],{"from":217,"to":226},{"text":271,"cards":272},"This view shows source reads, two-way table metadata exchange, curated dataset writes, and ordinary SELECT output; later reads of the curated dataset are outside this diagram.",[],{"kind":274,"title":275,"exercise":276},"exercise","Follow the source records",{"type":277,"diagram":211,"scenario":278,"path":279},"trace","Follow the records from their source files through an ordinary SELECT to its saved output.",[280,282,284],{"card":214,"note":281},"S3 holds the source records.",{"card":217,"note":283},"Athena reads the records using the table definition.",{"card":226,"note":285},"The query result location stores the SELECT output.",{"kind":242,"title":287,"body":288,"table":289},"Choose formats for the way you query","\u003Cp>\u003Cstrong>CSV\u003C\u002Fstrong> suits flat, tabular exports. Its reader settings must match delimiters, quoting, and headers. \u003Cstrong>JSON\u003C\u002Fstrong> supports named fields and nested records, but its structure must match the chosen reader. Common JSON readers expect one complete record per line; multiline JSON requires a reader that supports it. A \u003Cstrong>SerDe\u003C\u002Fstrong> is the serializer\u002Fdeserializer that maps stored records to table values.\u003C\u002Fp>\u003Cp>\u003Cstrong>Parquet\u003C\u002Fstrong> and \u003Cstrong>ORC\u003C\u002Fstrong> are columnar formats: Athena can read the columns needed by a query without reading every column. Compression and file statistics can further reduce work. Both formats also support nested data, so JSON is not the only choice for nested records.\u003C\u002Fp>\u003Cp>Under \u003Cstrong>scan-based pricing\u003C\u002Fstrong>, fewer scanned bytes mean lower query charges. Selecting fewer columns from CSV or JSON generally still requires reading the underlying record text. For repeated queries over a few fields in wide records, Parquet or ORC is usually a better layout; choose between them using tool compatibility and measured workload performance.\u003C\u002Fp>",{"columns":290,"rows":295},[291,292,293,294],"Format","Layout","Common use","Reader concern",[296,301,306,311],[297,298,299,300],"CSV","Row-oriented text","Flat exports","Delimiters and quoting",[302,303,304,305],"JSON","Record-oriented text","Nested source records","Structure and SerDe",[307,308,309,310],"Parquet","Columnar binary","Repeated analytics","Compatible schema",[312,308,309,310],"ORC",{"kind":274,"title":314,"exercise":315},"Separate record text from columnar storage",{"type":316,"question":317,"groups":318,"statements":321},"versus","Sort these properties by storage layout.",[319,320],"CSV and JSON","Parquet and ORC",[322,325,327,329],{"text":323,"group":324},"Store records in a text representation.",0,{"text":326,"group":324},"Selecting fewer fields generally still requires reading the record text.",{"text":328,"group":12},"Use a columnar binary layout.",{"text":330,"group":12},"Allow Athena to read needed columns without reading every column.",{"kind":242,"title":332,"body":333,"table":334},"Create a dataset, then append to it","\u003Cp>\u003Cstrong>CREATE TABLE AS SELECT (CTAS)\u003C\u002Fstrong> creates a table and writes the result of a query as its dataset. For example: \u003Ccode>CREATE TABLE curated_events WITH (format = 'PARQUET', external_location = 's3:\u002F\u002Fexample-analytics\u002Fcurated\u002Fevents\u002F') AS SELECT event_id, event_date, amount FROM raw_events\u003C\u002Fcode>. Athena reads the source, writes Parquet files, and registers the destination table in the catalog. The specified CTAS destination must be empty.\u003C\u002Fp>\u003Cp>\u003Cstrong>INSERT INTO\u003C\u002Fstrong> writes query output into an existing destination table using that table's format. For example: \u003Ccode>INSERT INTO curated_events SELECT event_id, event_date, amount FROM raw_events_new\u003C\u002Fcode>. The selected values must match the destination columns and types. For these external S3 tables, inserting adds new files rather than modifying existing files.\u003C\u002Fp>\u003Cp>These statements write a reusable \u003Cstrong>table dataset\u003C\u002Fstrong>, not merely an ordinary SELECT result file. An insert does not automatically deduplicate rows, so rerunning the same insert can add duplicates. Changing a table definition to say Parquet does not convert CSV files: conversion requires reading and rewriting the data.\u003C\u002Fp>",{"columns":335,"rows":339},[336,337,338],"Operation","Table effect","File effect",[340,344,348],[341,342,343],"CREATE EXTERNAL TABLE","Registers a definition","Leaves files unchanged",[345,346,347],"CTAS","Creates destination table","Writes selected records",[349,350,351],"INSERT INTO","Uses existing table","Adds data files",{"kind":274,"title":353,"exercise":354},"Restore the dataset destination",{"type":355,"diagram":211,"requirement":356,"change":357,"tray":358,"hint":365,"explanation":366},"flaw","CTAS must write the new Parquet dataset to S3, where subsequent INSERT INTO statements can add data files.",{"card":223,"component":197},[359,361,363],{"component":205,"reason":360},"An S3 bucket stores the reusable dataset files written by Athena.",{"component":201,"reason":362},"The Data Catalog stores table metadata, not the dataset files.",{"component":197,"reason":364},"An EBS volume is not an S3 destination for Athena CTAS output.","The catalog describes the destination table, but its dataset files belong in S3.","Restore the S3 bucket. CTAS writes the initial dataset there and registers its table metadata in the catalog; INSERT INTO adds files using the existing table's format.",{"kind":242,"title":368,"body":369},"Match the dataset to recurring reads","\u003Cp>Start with the \u003Cstrong>access pattern\u003C\u002Fstrong>: which columns and subsets of records do queries repeatedly need? If recurring queries aggregate a few fields from wide CSV or JSON records, use CTAS to select and cast useful fields into Parquet or ORC. Transform later batches with INSERT INTO using the same destination schema.\u003C\u002Fp>\u003Cp>\u003Cstrong>Partitioning\u003C\u002Fstrong> complements columnar storage. Organizing a table by a frequently filtered field, such as event date, lets Athena skip unrelated partitions when queries filter that partition column. Column selection avoids unneeded columns; partition filtering avoids unrelated groups of files. Both can reduce scanned bytes.\u003C\u002Fp>\u003Cp>Keep source files, the curated dataset, and the \u003Cstrong>query result location\u003C\u002Fstrong> in separate S3 prefixes. Avoid producing many tiny files through frequent small inserts, and check actual bytes scanned and query performance. The diagram represents creation and append operations; querying the curated table later would make that dataset another source of records for Athena.\u003C\u002Fp>",{"kind":274,"title":371,"exercise":372},"Rebuild the read-and-write workflow",{"type":373,"diagram":211,"question":374},"build","Rebuild the shown workflow for reading source files, creating and extending a columnar dataset, and saving ordinary SELECT output, including table creation but excluding later reads of the curated dataset.",{"kind":242,"title":376,"body":377,"takeaways":378},"What to remember","\u003Cp>Athena uses table metadata to read S3 files and can rewrite query output into reusable datasets whose format and layout match recurring queries.\u003C\u002Fp>",[379,382,385],{"title":380,"text":381},"Definitions are metadata","Table definitions supply schema, location, and reader settings. Registering or editing a definition does not convert the underlying files.",{"title":383,"text":384},"Choose for the reads","CSV and JSON suit common source and exchange needs. Parquet and ORC support selective column reads; useful partition filters can reduce scans further.",{"title":386,"text":387},"Create, then append","CTAS writes a new dataset and registers its table; INSERT INTO adds files to an existing table. Keep reusable datasets separate from ordinary query results.","2026-10-29T23:45:44.106Z",{"pageSlug":117,"code":116,"certification":115,"certificationSlug":117},{"slug":391,"title":392},"joins-matching-records-across-datasets-mla-c02","Joins: matching records across datasets",1796130181474]