A pipeline must classify 3 million free-text support tickets each night into categories and extract product names, using a foundation model. What is the cost-effective integration?
- Exam domain
- Data Ingestion and Transformation34% of the exam
- Difficulty
- Medium
- In this mock
- 33 questions on this domainPractise this domain
Why the exam asks this
Task Statement 1.2: Transform and process data.
Objective in the exam guide: Integrate large language models (LLMs) for data processing.
LLMs now turn unstructured text into structured fields inside pipelines. Doing it at volume and at sensible cost is a new core skill.
Why A is the answer
Amazon Bedrock batch inference over the tickets in S3, writing results back for the pipeline
Batch inference processes large volumes of prompts from S3 efficiently, without one synchronous call per record.
Remember: LLMs in pipelines at volume: batch inference, then validate outputs.
How it works
Foundation models can classify text, extract entities and summarize, turning unstructured data into structured fields.
For large offline volumes, Amazon Bedrock batch inference reads prompts from S3 and writes results back, at lower cost than synchronous calls.
The pipeline then validates and loads the results.
Clues in the question
The words that point to the answer, and what each one tells you.
- 3 million tickets each night
- Large offline volume: batch.
- Using a foundation model
- An LLM step in the pipeline.
In detail
- LLMs can classify, extract and summarize text inside data pipelines.
- Outputs should be validated before they are trusted downstream.
Side by side with look-alikes
| Approach | Fit for 3 million records |
|---|---|
| Bedrock batch inference | Yes |
| Synchronous call per record | No |
| Manual labeling | No |
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Amazon Bedrock batch inference over the tickets in S3, writing results back for the pipelineRight
LLMs in pipelines at volume: batch inference, then validate outputs.
B. A synchronous model call per ticket from a single Lambda functionWrongMost tempting
Millions of synchronous calls are slow, costly and hit quotas.
Why it tempts: It is the simplest code. But millions of synchronous calls are slow, costly and hit rate limits.
C. Manual labeling by staff each nightWrong
Manual labeling cannot keep up with 3 million tickets.
D. Running a model on a laptopWrong
A laptop is not a production platform.
In practice
- Ask for structured output, such as JSON, and validate it before loading.
Use case
An illustrative scenario, not a real incident.
A nightly job writes ticket prompts to S3, runs a Bedrock batch job and loads the categories into Redshift.
See how it works
flowchart LR T["Tickets in S3"] --> B["Bedrock batch inference"] B --> V["Validate JSON output"] V --> R["Load categories into Redshift"]
How to read this chart
- Read it in order: Tickets in S3, then Bedrock batch inference, then Validate JSON output, then Load categories into Redshift.