ladderlore
ガイドをリクエスト
  • S3 や IAM などのサービス名を入力してください。

サービス · Analytics · SAA-C03 の発展

Amazon Data Firehose

Buffered delivery to S3, Redshift and OpenSearch: buffering, transforms, conversion, partitioning.

このレッスンはまだ翻訳されていないため、英語で表示しています。

Solutions Architect Associateで学んだこと

  • Firehose delivers streaming data to S3, Redshift or OpenSearch with no code.
  • It is near real time because it buffers, and it scales by itself.
  • It can convert JSON to Parquet or ORC.
Solutions Architect Associateのレッスンを読む
Sources
Firehose
Lambda transform
S3
Error prefix
batchesfailed
Firehose buffers, can transform, and sends failures to an error prefix.
  • Buffer size

    Range
    1 to 128 MiB
    Effect
    Bigger means fewer, larger objects
  • Buffer interval

    Range
    0 to 900 seconds
    Effect
    Longer means more delay
  • Format conversion

    Range
    JSON in, Parquet or ORC out
    Effect
    Cheaper, faster queries
  • Dynamic partitioning

    Range
    Key from each record
    Effect
    One S3 prefix per key
Four settings that shape the objects in S3.

1 / 2

  • Buffer size

    Range
    1 to 128 MiB
    Effect
    Bigger means fewer, larger objects
  • Buffer interval

    Range
    0 to 900 seconds
    Effect
    Longer means more delay
  • Format conversion

    Range
    JSON in, Parquet or ORC out
    Effect
    Cheaper, faster queries

2 / 2

  • Dynamic partitioning

    Range
    Key from each record
    Effect
    One S3 prefix per key
Four settings that shape the objects in S3.

概要

Firehose writes a batch when the buffer fills by size or by time, whichever comes first. For S3 the size runs from 1 to 128 MiB (default 5) and the interval from 0 to 900 seconds (default 300). With format conversion on, the buffer size must be at least 64 MiB. Size counts before compression. Bigger batches mean fewer, larger S3 objects, which analytics reads better. A Lambda function can transform each record: it returns the record with a result of Ok, Dropped or ProcessingFailed.

概要

Record format conversion turns JSON into Parquet or ORC. It needs a schema in an AWS Glue Data Catalog table. Input must be JSON, so convert CSV with a Lambda transform first. Dynamic partitioning picks a key out of each record, with inline parsing or a Lambda function, and writes objects under a prefix per key, such as a customer or a date. Athena then skips whole folders.

概要

Records that fail transformation or delivery go to an error prefix in S3, and you can also back up the raw source records. Firehose reads from direct puts, Kinesis Data Streams or Amazon MSK, and delivers to S3, Redshift (through S3), OpenSearch, Splunk, HTTP endpoints, Apache Iceberg tables and other targets. It does not keep data for replay.

覚えること

  • S3 buffer: 1 to 128 MiB (default 5), at least 64 with conversion, and 0 to 900 seconds (default 300).
  • Lambda transform returns Ok, Dropped or ProcessingFailed per record.
  • Conversion to Parquet or ORC needs JSON input and a Glue table schema.
  • Dynamic partitioning writes one S3 prefix per key found in the records.

覚えること

  • Failed records go to an S3 error prefix. Source records can be backed up.
  • No replay and no custom consumers: use Kinesis Data Streams for those.

試験では

  • “Deliver JSON events to S3 as Parquet with no servers” points to Firehose record format conversion with a Glue table.
  • “Write streaming data into one S3 folder per customer” points to Firehose dynamic partitioning.
  • “Fewer small files in S3” points to a larger buffer size or interval.