When machine learning fits, and which AWS AI service does what
When machine learning is the right tool and when a rule is, how to match a problem to a technique, and the full catalogue of AWS managed AI services: Rekognition, Textract, Comprehend, Transcribe, Polly, Translate, Lex, Kendra, Personalize, Forecast, Fraud Detector, the Lookout family, Monitron, A2I, Amazon Q, Bedrock and SageMaker, each with its inputs, outputs and the exam keyword that points at it.
On this page
Most exam questions in this domain are a short story with a hidden verb. A company has some data and wants to read it, see it, hear it, predict from it, recommend with it or talk about it, with as little machine learning work as possible. The right answer is almost always the one AWS service built for that verb. This article does two things: it sets out how to decide whether machine learning belongs in a problem at all, and it walks the shelf of AWS AI services one by one so that every verb, input and output has a name attached. The previous article supplied the vocabulary; the next one is for when nothing on the shelf fits and you build your own.
The map
Read this first when short on time. Every branch is a section below.
Should this be machine learning at all?
Machine learning is the right tool when the pattern you need lives in data rather than in anyone's head, when there is enough of that data, and when a prediction that is usually right is worth more than a rule that is always exact; when any of those fails, a rule, a lookup or a simple heuristic is the better engineering.
The exam guide states this as a task in its own right: "determine when AI/ML solutions are not appropriate". The reasons fall into four groups.
The logic is already known
If a person can write the rules down and they fit on a page, write them down. Tax brackets, shipping rates, "lock the account after five failed logins", a validation that a postcode has the right shape: these are rule-based systems, and a rule wins on every axis that matters for them. It is exact, it is explainable in one sentence, it costs nothing to run, it needs no data and it never drifts. Machine learning replaces the rules only when the rules would never end: describing a cat in pixels, spotting fraud in ten thousand interacting signals, ranking a million products for one person.
There is no data, or no labels
A supervised model needs examples with answers; without them there is nothing to learn from. A new product with no sales history cannot be forecast from its own data; a fraud pattern that has never happened cannot be learned; a document type nobody has labelled cannot be classified into categories nobody has defined. Sometimes the fix is to buy or generate data (SageMaker Ground Truth for labelling, a pre-trained model that already learned the general shape), and sometimes the honest answer is to start with rules, collect data as the system runs, and revisit later.
The answer must be deterministic
Some decisions must give the same output for the same input every time, be auditable line by line, or be exactly right rather than usually right. Calculating interest, applying a legal threshold, enforcing a safety interlock: a model that is 99.5 percent accurate is a model that is wrong one time in two hundred, and in these settings that is a defect, not a score. Generative models add non-determinism on top (the same prompt can give different words), which is why the exam expects you to know they do not fit a task that needs exact repeatability.
The cost outweighs the benefit
Machine learning has a bill: data collection and cleaning, labelling, people who know how to train and evaluate, compute for training and for inference, and then monitoring and retraining forever, because the world drifts. The exam wants a cost-benefit analysis before the build: what is the value of being right more often, and does it exceed that bill? The practical discipline is a baseline: implement the simplest heuristic first (predict yesterday's value, recommend the bestsellers, flag any transaction over a threshold in a new country) and measure it. If a model cannot beat the baseline by enough to pay for itself, the heuristic ships. Often the heuristic ships anyway, as the fallback for when the model is unavailable.
flowchart TD
S([A problem to solve]) --> R{Rules known?}
R -- "yes, and few" --> RB["Write the rules<br/>exact, explainable, no data needed"]
R -- "no, or too many" --> D{Data exists?}
D -- No --> C["Collect data first<br/>start with a heuristic, label as you go"]
D -- Yes --> X{Exactness required?}
X -- Yes --> RB
X -- No --> B{Beats baseline?}
B -- "not by enough" --> H["Ship the heuristic<br/>it already gets most of the value"]
B -- "yes, and pays for itself" --> ML["Machine learning<br/>managed service first, custom model if needed"]
- Card issuers run both: hand-written rules for the cases that must be exact (a blocked country, a reported stolen card) and a learned score for the fuzzy rest. Amazon Fraud Detector is built to combine the two.
- Tax software is rules all the way down, because the law is written as rules and the answer must be reproducible to the cent.
- Spam filtering went from rules ("contains FREE in capitals") to learned classifiers as soon as spammers learned the rules, the classic case of rules that never end.
- Demand forecasting teams routinely find that "same as last year plus trend" is a hard baseline to beat, and a model that beats it by two percent may or may not be worth its upkeep.
"We have lots of data" is not a reason to use machine learning, and "the competitor uses AI" is not either. The question is whether there is a pattern in the data that a person cannot write down and that is worth predicting. A large dataset of a process that is fully understood is a reporting problem, not a learning one.
When a scenario stresses that the logic is fixed and simple, that results must be identical every time, that there is no historical data, or that the budget is small and the gain is marginal, the answer is "do not use ML" or "use a rule-based approach". The exam also likes "cost-benefit analysis" as the first step before choosing any AI solution.
- Heuristic
- A simple hand-made rule of thumb that gives a good-enough answer cheaply: "recommend the bestsellers", "forecast last week's average".
- Baseline
- The score of the simplest sensible approach, measured first so that a model has something to beat.
- Deterministic
- Giving exactly the same output for the same input every time. Rules are; most models are for a fixed version, and generative models are not unless configured to be.
Matching the technique to the problem
Once a problem has earned machine learning, the shape of the answer picks the technique: a number means regression, a category means classification, a number over time means forecasting, groups mean clustering, "unusual" means anomaly detection, "what would this person like" means recommendation and "in what order" means ranking.
The fundamentals article defined the first four; three more appear constantly in scenarios. Forecasting is regression where the axis is time and the past values of the same series are the main features: demand next week, traffic next hour, energy tomorrow. Recommendation predicts which items a particular user will like, usually by learning from the interactions of many users (people who watched this also watched that, called collaborative filtering) plus item and user attributes. Ranking orders a list for a purpose: search results by relevance, a feed by engagement, recommendations by likelihood to convert. Recommendation and ranking are usually built together.
| You want to… | Technique | Learning type | Example problems | AWS shortcut |
|---|---|---|---|---|
| Predict a number | Regression | Supervised | House price, delivery time, lifetime value | SageMaker (Linear Learner, XGBoost), SageMaker Canvas |
| Predict a number over time | Forecasting | Supervised on time series | Demand per store per day, server load, cash flow | Amazon Forecast, SageMaker DeepAR, Canvas |
| Predict a category | Classification | Supervised | Fraud or not, churn, sentiment, which document type | Comprehend (text), Rekognition (images), Fraud Detector, SageMaker |
| Group similar things | Clustering | Unsupervised | Customer segments, ticket themes | SageMaker k-means, Comprehend topic modelling |
| Find the unusual | Anomaly detection | Unsupervised (mostly) | Metric spikes, machine faults, odd API calls | Lookout for Metrics, Lookout for Equipment, Monitron, SageMaker Random Cut Forest |
| Suggest items to a person | Recommendation | Supervised on interactions | Products, videos, articles, "customers also bought" | Amazon Personalize |
| Order a list for a person or a query | Ranking | Supervised | Search results, personalised ordering of a category page | Personalize (personalised ranking), Kendra, OpenSearch |
| Extract structure from unstructured input | Perception (vision, NLP, speech) | Supervised, pre-trained | Text from a scan, entities from a contract, words from audio | Textract, Rekognition, Comprehend, Transcribe |
| Produce new content | Generation | Self-supervised foundation models | Summaries, answers, code, images | Amazon Bedrock, Amazon Q |
- Amazon.com's "customers who bought this also bought" is item-to-item collaborative filtering, the technique Amazon Personalize packages for other companies.
- Netflix's home page is recommendation plus ranking: which titles to show, in which rows, in which order, and even which artwork, all learned from viewing behaviour.
- A utility company's load forecast is a time-series regression with weather as a related series and holidays as features; the same shape Amazon Forecast was built for.
Underline the noun the company wants. "How many" or "how much" is regression; with "next month" it is forecasting. "Whether" or "which" is classification. "Similar customers" is clustering. "Unusual" or "abnormal" is anomaly detection. "Personalised" or "recommend" is Personalize. "Relevant results for a question" is Kendra. The technique word then maps to the service column.
- Collaborative filtering
- Recommending by similarity of behaviour: users who interacted with the same items are assumed to share tastes, so what one liked is suggested to the other.
- Related time series
- Extra series that move with the target and help predict it: weather, price, promotions alongside demand.
Where machine learning shows up: the applications the exam names
The exam's list of real-world applications is a list of the verbs a business wants performed on unstructured or behavioural data: see, read, hear, speak, decide, recommend, find and talk; each maps to a managed AWS service, and knowing the mapping is most of the domain.
Computer vision covers tagging photos, detecting objects and people, reading text out of images, verifying identity by face, moderating uploaded content and inspecting products on a line. Natural language processing covers classifying and routing text, extracting names, dates and amounts, judging sentiment, redacting personal data, translating and summarising. Speech recognition turns calls, meetings and voice commands into text; speech synthesis turns text into a voice. Recommendation systems pick products, videos and articles for a person. Fraud detection scores transactions, sign-ups and logins. Forecasting predicts demand, capacity and cash. Document processing chains OCR and NLP to turn paper into data. Chatbots and voice assistants hold a conversation to complete a task. Search finds the right document for a question rather than the right keyword.
| Application | Input | Output | AWS service |
|---|---|---|---|
| Image and video analysis | Photos, video | Labels, boxes, faces, text, moderation flags | Amazon Rekognition |
| Document processing | Scans, PDFs, photos of forms | Text, key-value pairs, tables, answers to queries | Amazon Textract |
| Text analytics | Free text | Entities, key phrases, sentiment, language, PII, classes | Amazon Comprehend |
| Translation | Text in one language | Text in another | Amazon Translate |
| Speech recognition | Audio | Transcript with timestamps and speakers | Amazon Transcribe |
| Speech synthesis | Text, SSML | Audio stream or file | Amazon Polly |
| Chatbot, voice bot | Typed or spoken utterances | Recognised intent, filled slots, a response | Amazon Lex |
| Enterprise search | A natural-language question | The passage or document that answers it | Amazon Kendra |
| Recommendation | User, item and interaction data | Ranked items per user, in real time | Amazon Personalize |
| Fraud detection | Events with features and past labels | Fraud score and rule-based outcome | Amazon Fraud Detector |
| Forecasting | Time series plus related data | Future values with confidence bands | Amazon Forecast |
| Anomaly detection | Metrics, sensor streams, product images | Anomaly alerts with causes | Lookout for Metrics, Equipment, Vision; Monitron |
| Generated content, assistants | Prompts, documents | Text, code, images, answers | Amazon Bedrock, Amazon Q |
- Amazon Go is computer vision as a shop; Alexa is speech recognition, language understanding and speech synthesis as a product; Amazon.com is recommendation, ranking, forecasting and fraud detection behind one storefront.
- Insurance claims are the classic document-processing pipeline: a photo of a form becomes fields, the fields become a decision, and the doubtful ones go to a person.
- Contact centres on Amazon Connect chain Lex for the bot, Transcribe for the call, Comprehend for sentiment and an LLM for the summary the agent sees.
This table is the domain. A scenario names an input (images, PDFs, audio, reviews, a question, interactions) and a wanted output; find the row. The wrong answers are the neighbouring rows: Textract for a photo of a dog, Rekognition for a scanned invoice, Comprehend for audio, Transcribe for a PDF.
Picking the layer: a managed API, Bedrock or SageMaker
AWS sells machine learning at three heights, and most service-choice questions are really asking which height: a ready-made AI service you call with your data and no model of your own, Amazon Bedrock for generative tasks on foundation models, or Amazon SageMaker for training and hosting a model you own.
The first article drew the stack; this is the decision rule. Start at the top. If a managed AI service (Rekognition, Textract, Comprehend, Transcribe, Polly, Translate, Lex, Kendra, Personalize, Forecast, Fraud Detector) does the task, use it: there is no model to train, no infrastructure, no ML expertise needed and the least operational overhead, and the service improves underneath you. If the task is generative (write, summarise, answer, chat, generate an image or code), the layer is Amazon Bedrock (or Amazon Q, which is Bedrock with an application around it). Drop to SageMaker only when the managed services cannot do the task, when the data is so specific that a general model is not accurate enough, or when the business requires full control over the model, the training data and the hosting.
Several managed services have a middle rung for the "almost fits" case: you supply examples, the service trains and hosts a custom model, and you still write no ML code. Rekognition Custom Labels learns your own object classes (your logo, your part numbers) from a few hundred labelled images. Comprehend custom classification and custom entity recognition learn your document categories and your domain terms. Transcribe custom vocabularies and custom language models teach the recogniser your product names. Translate custom terminology pins how your brand terms are translated. Lookout for Vision learns your product's defects from a small set of good and bad photos. Each is the answer when a scenario needs a custom model "without machine learning expertise".
flowchart TD
S([A task with data]) --> G{Generative?}
G -- Yes --> BR["Amazon Bedrock or Amazon Q<br/>foundation models by API"]
G -- No --> M{Managed fits?}
M -- Yes --> AI["Managed AI service<br/>Rekognition, Textract, Comprehend,<br/>Transcribe, Polly, Translate, Lex,<br/>Kendra, Personalize, Fraud Detector"]
M -- "almost" --> CU["Customise the service<br/>Custom Labels, custom classifiers,<br/>custom vocabularies"]
M -- No --> SM["Amazon SageMaker<br/>train and host your own model"]
| Managed AI service | Amazon Bedrock | Amazon SageMaker | |
|---|---|---|---|
| You bring | Data to process | Prompts, your documents, optional fine-tuning data | Training data, code or a built-in algorithm, instance choices |
| You get | Predictions from a pre-trained (or lightly customised) model | Generated text, images, embeddings from a foundation model | A model you own, hosted where you say |
| ML expertise | None | Little; prompt design and evaluation | Data science and engineering |
| Operational overhead | Lowest | Low | Highest, though managed infrastructure |
| Control and customisation | Lowest | Medium: model choice, RAG, fine-tuning | Full |
| Exam keywords | "least operational overhead", "no ML experience", "quickly" | "generative", "chatbot", "summarise", "foundation model" | "custom model", "proprietary data", "full control", "own algorithm" |
- An accounts-payable team reads invoices with Textract and never sees a model; that is the top layer working as intended.
- A support organisation builds its agent assistant on Bedrock with a knowledge base over the help centre, because the task is generative and the data is text.
- A bank's churn model trains on SageMaker because the features are proprietary, the regulator wants the model explained, and no managed service predicts churn.
SageMaker is never the least-effort answer. If a scenario can be solved with a managed service and asks for the least operational overhead, the fastest delivery or no ML expertise, SageMaker is the distractor even though it could technically do the job.
Three phrases decide the layer. "Least operational overhead" or "no machine learning expertise" points at a managed AI service. "Generative", "chatbot", "summarise" or "foundation model" points at Bedrock. "Custom model", "own training data", "specific algorithm" or "full control" points at SageMaker. "Custom model without ML expertise" points at a service's customisation option, such as Rekognition Custom Labels.
Seeing: Amazon Rekognition, Amazon Textract and Lookout for Vision
Three services take pixels in: Rekognition understands what is in a photo or video, Textract reads the text and structure out of a document image, and Lookout for Vision spots defects in product images; the exam separates them by whether the picture is a scene, a document or a part on a production line.
Amazon Rekognition
Rekognition is pre-trained computer vision behind an API. Send an image (or point it at a video in S3, or a Kinesis Video Stream for live analysis) and ask for one of its analyses. Label detection returns objects, scenes and activities with confidence scores and, for many, bounding boxes ("Dog 98 percent, Beach 91 percent"). Face detection finds faces and returns attributes: apparent age range, emotions, glasses, eyes open. Face comparison says whether two faces are the same person; face search matches a face against a collection you have indexed, which is how identity verification and "find photos of this person" work, with Face Liveness to check a real person is in front of the camera. Celebrity recognition names public figures. Text in image reads signs, captions and labels (short text in a scene; long documents belong to Textract). Content moderation flags unsafe or unwanted content in images and video across a hierarchy of categories, the answer whenever a scenario mentions user-generated uploads. PPE detection checks for helmets, gloves and masks. Video analysis does all of this over time, with people tracking and segment detection (shot changes, black frames). Custom Labels lets you train your own classes with a few hundred labelled images and no ML code.
Amazon Textract
Textract is OCR that understands document structure. Plain text detection returns lines and words with their positions. Analyze Document adds forms (key-value pairs: "Name: Jane Smith" comes back as a key and a value even when the layout is irregular), tables (cells with row and column indexes), signatures, layout (titles, headers, paragraphs, lists) and queries, where you ask in plain words ("What is the invoice total?") and get the answer field back without writing rules for each template. Analyze Expense is tuned for invoices and receipts (vendor, total, line items); Analyze ID reads passports and driving licences into standard fields; Analyze Lending classifies and extracts mortgage packages. Synchronous calls handle single pages; asynchronous jobs handle multi-page PDFs in S3. Textract does OCR only; understanding the meaning of the text is Comprehend's job, which is why the two chain.
Amazon Lookout for Vision
Lookout for Vision is anomaly detection on images for industrial inspection: train it on a small set of normal and (optionally) defective product photos and it flags scratches, dents, missing components and misalignments on a production line, with the option to run the model at the edge. AWS has stopped taking new customers for it, but the exam still names it. Its distinguishing keywords are manufacturing, defects and quality inspection.
| Rekognition | Textract | Lookout for Vision | |
|---|---|---|---|
| The picture is | A scene: people, objects, activities, a video | A document: form, invoice, ID, contract, table | A manufactured part or product |
| Returns | Labels, faces, matches, moderation flags, short text | Words, key-value pairs, tables, query answers | Normal or anomalous, with the region |
| Customisable | Custom Labels | Adapters for your document types | Trained entirely on your images |
| Keywords | "tag photos", "detect faces", "moderate uploads", "identify people in video" | "extract text from scanned", "forms and tables", "invoices", "OCR" | "defects", "production line", "quality inspection" |
- Photo-sharing and marketplace apps run every upload through Rekognition moderation before it is visible, and use label detection to make the library searchable without anyone tagging.
- Identity verification for account opening compares a selfie with the photo on an ID (Rekognition face comparison and Face Liveness) while Textract Analyze ID reads the document's fields.
- Accounts payable departments feed invoices to Textract Analyze Expense and post the totals straight into the finance system, with the low-confidence ones routed to a person.
- Amazon's own fulfilment centres use computer vision to check that the right item went into the right bin, the same inspection idea Lookout for Vision sells.
Rekognition's text-in-image is for a few words in a scene (a street sign, a jersey number). A scanned page, a form or a table is Textract. Choosing Rekognition for a document, or Textract for a photo of a product, is the standard trap in this pair.
Faces, labels, celebrities, unsafe content, people in video: Rekognition. Text from scanned documents, key-value pairs, tables, invoices, IDs, natural-language queries on a document: Textract. Defects on a factory line: Lookout for Vision. A custom vision model with no ML expertise: Rekognition Custom Labels.
- Bounding box
- The rectangle around a detected object or face, returned as coordinates relative to the image size.
- Collection
- A Rekognition index of face vectors you have stored, searched to identify a person across images.
- Key-value pair
- A form field and its filled-in value, as Textract returns them from a document regardless of layout.
Reading: Amazon Comprehend, Comprehend Medical and Amazon Translate
Comprehend takes text in and returns what it is about, who and what it mentions, how it feels and what language it is in; Comprehend Medical does the same for clinical text with medical codes attached; Translate turns text from one language into another.
Amazon Comprehend
Comprehend is pre-trained natural language processing as an API, synchronous for short text and as asynchronous jobs for a corpus in S3. Its analyses: entities (people, places, organisations, dates, quantities, commercial items, with confidence scores); key phrases (the noun phrases that carry the meaning); sentiment (positive, negative, neutral, mixed, for the whole text) and targeted sentiment (the sentiment toward each entity, so "the food was great but the service was slow" gets two opinions); language detection across a hundred-odd languages; syntax (parts of speech); PII detection that finds names, addresses, card numbers and the like and can redact them; events (who did what to whom, when, in news-like text). Two features are trainable on your own data with no ML code: custom classification (route support tickets into your categories, tag documents by type) and custom entity recognition (recognise your product codes, policy numbers, internal names). Topic modelling is the unsupervised one: give it a pile of documents and it groups them by the words they share, returning topics you then name.
Amazon Comprehend Medical
Comprehend Medical is Comprehend trained on clinical language. It extracts medical entities (conditions, medications with dosage and frequency, tests, treatments, procedures, anatomy), detects protected health information (PHI) for redaction, and links what it finds to standard ontologies: ICD-10-CM codes for diagnoses, RxNorm for medications and SNOMED CT for clinical concepts. Any scenario with doctors' notes, discharge summaries or clinical trial records points here, and the same split exists for speech (Transcribe Medical).
Amazon Translate
Translate is neural machine translation between more than seventy languages, in real time for a sentence or as a batch job for a bucket of documents, with automatic source-language detection. Custom terminology is a glossary that forces your terms to translate a fixed way (brand names, product names, legal phrases); active custom translation goes further by letting you supply parallel example translations to shift the style; formality settings and profanity masking control tone. It translates text only; audio goes through Transcribe first, and a translated voice comes back through Polly.
- Review analytics teams run every product review through Comprehend sentiment and targeted sentiment to see which aspects (battery, delivery, size) customers complain about, without reading a million reviews.
- Support desks use a Comprehend custom classifier to route incoming tickets to the right queue, trained on a few thousand past tickets and their queues.
- Hospitals use Comprehend Medical to pull medications and diagnoses out of free-text notes and code them for billing and research.
- Global marketplaces translate listings and messages between buyers and sellers with Translate, with custom terminology so the brand names survive.
Comprehend analyses text; it does not read images or audio. A scenario with scanned letters needs Textract before Comprehend; one with call recordings needs Transcribe first. And Comprehend does not generate text: summarising or answering is Bedrock.
Sentiment, entities, key phrases, language, PII in text: Comprehend. Medical text, PHI, ICD-10 codes: Comprehend Medical. Translate text between languages, keep brand names fixed: Translate with custom terminology. "Categorise documents into company-specific classes without ML expertise": Comprehend custom classification. "Discover themes in a large set of documents": topic modelling.
- Named entity
- A real-world thing mentioned in text with a name or value: a person, a company, a place, a date, an amount.
- PII and PHI
- Personally identifiable information (names, addresses, card numbers) and protected health information (the medical version). Both detectable and redactable by Comprehend and Comprehend Medical.
- Custom terminology
- A Translate glossary that fixes how specific source terms are rendered in the target language.
Listening and speaking: Amazon Transcribe, Amazon Polly and Amazon Lex
Transcribe turns speech into text, Polly turns text into speech, and Lex turns a typed or spoken sentence into an intent with its parameters so that a bot can act on it; the three chain into a voice assistant, and Lex is built on the technology behind Alexa.
Amazon Transcribe
Transcribe is automatic speech recognition: audio in, a transcript out with a timestamp and confidence per word. It works on files in S3 (batch) and on live audio (streaming, for captions and live agent assist). Speaker diarisation (AWS calls it speaker identification or partitioning) labels who said what; channel identification separates the agent and the customer on a stereo call recording. Custom vocabularies add product names and jargon the recogniser would otherwise mangle; custom language models go further by training on your domain text; vocabulary filtering masks or removes words you list. It detects the spoken language automatically, can redact PII from the transcript, and adds toxicity detection for moderation of voice chat. Transcribe Medical handles clinical dictation and conversation with medical vocabulary; Transcribe Call Analytics adds contact-centre features (sentiment per turn, talk time, interruptions, issue detection, call summaries) on top of the transcript.
Amazon Polly
Polly is text to speech: text in, an audio stream or file out, in dozens of voices and languages. Voice engines range from standard through neural (NTTS, noticeably more natural) to long-form and generative voices for the most human-sounding output. SSML (Speech Synthesis Markup Language) controls how the text is spoken: pauses, emphasis, pronunciation, whispering, a newscaster speaking style. Lexicons fix the pronunciation of specific words or expand abbreviations ("W3C" spoken as "World Wide Web Consortium"). Speech marks return the timing of each word or sentence so that an app can highlight text as it is read or animate a face.
Amazon Lex
Lex builds conversational interfaces: chatbots and voice bots. You define intents (the things a user might want: BookHotel, CheckBalance), give each a set of sample utterances ("I want to book a room", "reserve a hotel for me") from which Lex learns to recognise paraphrases, and declare the slots each intent needs (city, check-in date, number of nights) with slot types, built-in or your own. Lex runs the dialogue: recognises the intent, prompts for missing slots, confirms, and then calls an AWS Lambda function for fulfilment (do the booking) and optionally for validation at each turn. It accepts text and speech directly (it contains its own speech recognition, the same technology as Alexa), and integrates with Amazon Connect for phone systems, with messaging platforms, and with Polly for the spoken reply. It is not a large language model: it recognises intents you defined and fills slots you declared, which is exactly what a transactional bot needs.
sequenceDiagram autonumber participant U as Caller participant T as Transcribe participant L as Lex participant P as Polly U->>T: audio, "book a room in Leeds" T->>L: text with confidence L->>L: intent BookHotel, slot city filled L->>P: "For which dates?" P->>U: spoken prompt U->>T: audio, "the 12th for two nights" T->>L: text L->>L: slots complete, Lambda fulfils L->>P: "Booked. Anything else?" P->>U: spoken confirmation
- Amazon Connect contact centres use Lex as the front-line bot, Transcribe Call Analytics on every recorded call and Polly for the voice, which is the reference architecture behind this section.
- Media companies generate captions and searchable transcripts for their video archives with Transcribe, and produce audio versions of articles with Polly's long-form voices.
- Alexa shares its underlying speech recognition and natural language understanding with Lex; a Lex bot is, in effect, an Alexa skill for your own channels.
Lex is intents and slots, not open conversation. A scenario that wants a bot to answer arbitrary questions from a company's documents is Amazon Q Business or a Bedrock agent, not Lex alone. A scenario that wants a bot to complete a defined task (book, check, order, reset) with the least effort is Lex.
Audio to text: Transcribe (add "who said what" for speaker diarisation, "medical terms" for Transcribe Medical, "industry jargon recognised correctly" for a custom vocabulary). Text to audio: Polly (add "control pronunciation" for SSML or lexicons). Intents, utterances, slots, chatbot, IVR: Lex. The three together are a voice assistant.
- Speaker diarisation
- Splitting a transcript by who is speaking, so each segment is labelled with a speaker number.
- SSML
- Speech Synthesis Markup Language: tags around text that tell a text-to-speech engine how to say it, with pauses, emphasis and pronunciations.
- Intent, utterance, slot
- In Lex, what the user wants to do, an example sentence expressing it, and a piece of information needed to do it.
Searching and recommending: Amazon Kendra and Amazon Personalize
Kendra finds the document or passage that answers a natural-language question across a company's scattered content, and Personalize predicts which items a particular user wants to see next; both are pre-trained services fed with your data, and both are what the exam means by "search" and "recommendation" without building a model.
Amazon Kendra
Kendra is intelligent enterprise search. You point connectors at where the documents live (Amazon S3, SharePoint, Salesforce, ServiceNow, Confluence, Google Drive, databases, websites and many more) and it builds an index. Users ask questions in plain words ("how many days of parental leave do I get?") and Kendra returns the specific passage that answers, ranked by understanding rather than by keyword matching, alongside document results and FAQ matches you have curated. It respects the source systems' access control, so people see only what they may see, and it learns from click and thumbs-up feedback (incremental learning). It also serves as a retriever for generative applications: Amazon Q Business and Bedrock knowledge bases can use a Kendra index as the store they pull passages from, which is the subject of the applications article. Amazon OpenSearch Service is the other search engine on the exam, a general-purpose search and vector database you operate yourself; Kendra is the managed, question-answering one.
Amazon Personalize
Personalize is the recommendation technology from Amazon.com packaged as a service. You provide three datasets: interactions (user X clicked, watched or bought item Y at time T, the essential one), items (metadata such as category, price, genre) and users (age band, membership tier). You pick a recipe, which is Personalize's word for a pre-built algorithm for a use case: user personalisation ("recommended for you"), similar items ("customers who viewed this also viewed"), personalised ranking (reorder a given list for this user), trending now, next best action. Personalize trains a private model on your data and serves it as a real-time campaign (recommendations in milliseconds, updated as new interactions stream in) or as batch recommendations for email. It needs no ML expertise, handles the cold-start problem for new items using their metadata, and supports business rules (filters such as "exclude already purchased", "promote in-stock items").
flowchart TD I["Interactions<br/>user, item, timestamp, event"] --> P["Amazon Personalize<br/>recipe: user personalisation,<br/>similar items, personalised ranking"] M["Items and users<br/>category, price, genre, tier"] --> P P --> C["Campaign<br/>real-time recommendations API"] P --> B["Batch job<br/>recommendations file in S3"] E["New click or purchase"] -->|"event tracker"| P
- Amazon.com is the origin of Personalize's algorithms: "customers who bought this also bought" and the personalised home page are the same recipes at Amazon scale.
- Streaming and news apps use Personalize for "next to watch" and "recommended articles", with the interactions dataset fed live from the player.
- HR and IT help desks put Kendra over policy documents, wikis and ticket histories so that staff ask a question instead of guessing which portal holds the answer.
Kendra and Personalize both rank things for a person, but for different reasons. Kendra ranks documents by relevance to a question; Personalize ranks items by a user's predicted interest based on behaviour. "Find the answer" is Kendra; "show what this customer will like" is Personalize.
"Natural-language search across company documents in SharePoint, S3 and Salesforce" is Kendra. "Personalised product recommendations in real time without ML expertise" is Personalize; "reorder search results for each user" is Personalize's personalised ranking recipe. OpenSearch appears when the scenario says "vector database" or "self-managed search".
- Connector
- A Kendra component that crawls a content source (S3, SharePoint, a database) and keeps the index up to date, carrying the source's permissions along.
- Recipe
- A pre-built Personalize algorithm configuration for a specific recommendation use case.
- Cold start
- Recommending items or serving users that have no interaction history yet; Personalize uses item and user metadata to cover the gap.
Predicting: Amazon Forecast, Amazon Fraud Detector, the Lookout family and Monitron
Four services turn structured business or sensor data into predictions without a data scientist: Forecast predicts time series, Fraud Detector scores risky events, Lookout for Metrics and Lookout for Equipment find anomalies in business metrics and machine sensors, and Monitron does the same for factory equipment with its own sensors.
Amazon Forecast
Forecast is managed time-series forecasting, built on the same technology Amazon uses for its own demand planning. You upload the target time series (sales per item per day), optionally related time series (price, promotions, weather) and item metadata (category, colour), and it trains a predictor (its AutoPredictor picks and blends algorithms including DeepAR and statistical models), then returns forecasts with probabilistic quantiles: a P10, P50 and P90 so the planner can choose how much stock-out risk to carry. AWS stopped onboarding new customers in 2024, steering them to SageMaker Canvas's forecasting; the exam guide still lists Forecast and the questions are about what it does.
Amazon Fraud Detector
Fraud Detector scores events (a sign-up, a transaction, a login, a guest checkout) for fraud risk. You define an event type with its variables (email, IP address, amount, device), supply historical events with labels (fraud, legitimate), and it trains a model with one of its model types: Online Fraud Insights for general events, Transaction Fraud Insights for payments, Account Takeover Insights for logins, each enriched with fraud patterns Amazon has learned across its own businesses. The trained model produces a score; you then write rules on top ("if score is above 900 or the country is on the block list, then review") that map to outcomes (approve, review, block), which is the combination of learned score and hand-written rule from the first section, in one service, evaluated in real time through an API.
Lookout for Metrics, Lookout for Equipment and Monitron
Amazon Lookout for Metrics watches business and operational metrics (revenue per region, sign-ups per hour, error rates) from sources such as S3, Redshift, CloudWatch and RDS, learns their normal patterns including seasonality, and alerts on anomalies with a ranked list of the contributing dimensions ("orders fell, mostly in the mobile app, mostly in one country"). Amazon Lookout for Equipment takes the sensor streams from industrial machines (pressure, temperature, flow, vibration from your existing sensors) and learns the normal multi-sensor pattern to warn of abnormal behaviour before a failure, which is predictive maintenance. Amazon Monitron is the end-to-end version for teams without sensors: AWS-supplied wireless vibration and temperature sensors, a gateway, and a service plus mobile app that flag developing faults in motors, pumps and fans. All three are anomaly detection in the sense of the previous article, and AWS has closed all of them to new customers while the exam continues to name them.
flowchart TD E["Event<br/>sign-up: email, IP, device, amount"] --> M["Fraud Detector model<br/>trained on your labelled events<br/>plus Amazon fraud patterns"] M -->|"score 0 to 1000"| R["Your rules<br/>score above 900, or blocked country"] R -->|"outcome"| O["Approve, review or block<br/>returned to the application in real time"]
| Service | Input | Output | Problem type | Keywords |
|---|---|---|---|---|
| Forecast | Historical time series, related series, item metadata | Future values at P10/P50/P90 | Forecasting | "demand", "inventory", "next quarter", "seasonality" |
| Fraud Detector | Events with variables and past fraud labels | Score plus rule outcome | Binary classification | "fake accounts", "payment fraud", "account takeover", "online fraud" |
| Lookout for Metrics | Business metrics over time | Anomalies with root-cause dimensions | Anomaly detection | "unexpected drop in revenue", "KPI anomalies" |
| Lookout for Equipment | Existing industrial sensor data | Abnormal equipment behaviour alerts | Anomaly detection | "predictive maintenance", "sensor data from machines" |
| Monitron | AWS vibration and temperature sensors | Developing fault alerts in an app | Anomaly detection | "no existing sensors", "motors, pumps, fans", "end to end" |
- Amazon's supply chain forecasts demand for hundreds of millions of products, and the Forecast service was the externalised version of that capability.
- Online marketplaces and gaming companies use Fraud Detector at sign-up to stop fake accounts before they earn a free trial or a promotion.
- Manufacturers bolt Monitron sensors to conveyor motors and pumps and get a phone notification when the vibration signature drifts, weeks before a bearing fails.
Lookout for Equipment and Monitron solve the same problem from different starting points: Lookout for Equipment ingests data from sensors you already have; Monitron ships the sensors. "Existing sensor data" is Lookout for Equipment; "no sensors installed" is Monitron. And Lookout for Metrics is about numbers on a dashboard, not machines.
"Forecast demand with seasonality and no ML expertise" is Forecast (or SageMaker Canvas today). "Detect fraudulent new accounts or payments" is Fraud Detector. "Alert on anomalies in business KPIs" is Lookout for Metrics. "Predictive maintenance" splits on whether sensors exist: Lookout for Equipment if yes, Monitron if no. "Defective products on a line" is Lookout for Vision.
- Quantile forecast
- A forecast given as several percentiles (P10, P50, P90) instead of one number, so a planner can trade the cost of too much stock against the cost of too little.
- Predictive maintenance
- Servicing equipment when sensor data says a fault is developing, instead of on a fixed schedule or after a breakdown.
- Outcome
- In Fraud Detector, the action a rule returns when its condition matches: approve, review, block, or any label you choose.
Documents end to end: chaining the services and adding people
Because each managed service does one thing well, real solutions chain them: Textract reads the document, Comprehend understands it, Translate converts it, Polly speaks it, and Amazon Augmented AI routes the results the machines are not sure about to a person; the exam draws this pipeline often and asks which box does which step.
Picture an insurer receiving claim forms as photos and PDFs in many languages. Textract turns each page into text, key-value pairs and tables (the claim number, the policyholder, the itemised amounts). Comprehend takes the free-text description of the incident and extracts entities (dates, places, vehicle models), the sentiment and any PII to redact, and a custom classifier routes the claim to the right team. Translate renders the description into the adjuster's language. Polly reads the summary aloud for an accessibility service or a phone line. Glue such as AWS Lambda, Step Functions and S3 event notifications runs the steps in order; none of it needs a model to be trained.
flowchart TD S["Scanned claim form<br/>PDF or photo in S3"] --> T["Amazon Textract<br/>text, key-value pairs, tables, queries"] T --> C["Amazon Comprehend<br/>entities, sentiment, PII, custom class"] T -->|"low confidence"| A["Amazon A2I<br/>human review, corrected result"] A --> C C --> TR["Amazon Translate<br/>adjuster's language"] TR --> P["Amazon Polly<br/>spoken summary"] TR --> D["Claims system<br/>structured record"]
Amazon Augmented AI (A2I)
Amazon A2I adds human review to any prediction. You define a human review workflow (a flow definition): the conditions that trigger review (Textract confidence below a threshold on a key field, Rekognition moderation scores in an uncertain band, or any custom condition for a SageMaker model), a task template the reviewer sees, and a workforce: your own employees (a private workforce), a vendor from AWS Marketplace, or Amazon Mechanical Turk's public crowd. Reviewed results land in S3 and can be fed back as training data. It has built-in task types for Textract key-value pairs and Rekognition image moderation, and a custom type for everything else. It is the exam's answer to "some predictions must be checked by a person" and to "keep humans in the loop for sensitive decisions".
- Mortgage lenders process application packages with Textract Analyze Lending, send the pages where a field's confidence is low to underwriters through A2I, and pass the rest straight through.
- Content platforms auto-approve uploads that Rekognition scores as clearly safe, auto-reject the clearly unsafe, and route the middle band to human moderators via A2I.
- Public-sector agencies chain Textract, Comprehend and Translate to make forms submitted in many languages processable by one team.
A2I does not make predictions and does not label datasets from scratch; SageMaker Ground Truth does labelling. A2I reviews predictions already made by a service or a model, under conditions you set. "Label a new dataset" is Ground Truth; "review low-confidence predictions" is A2I.
In a pipeline question, assign steps by data type: image or PDF in means Textract (documents) or Rekognition (scenes); text understanding means Comprehend; language change means Translate; audio out means Polly; audio in means Transcribe. "Human review of low-confidence results" or "human in the loop" is Amazon A2I, with a private workforce when the data is sensitive.
- Human review workflow
- An A2I definition of when a prediction goes to a person, what they see, and who the reviewers are.
- Private workforce
- Your own staff as A2I or Ground Truth reviewers, used when the data cannot leave the company.
- Confidence score
- The service's own estimate, usually 0 to 100, of how likely a returned result is correct. Thresholds on it drive human review.
Generative and developer services: Bedrock, Amazon Q, CodeGuru, DevOps Guru and DeepRacer
The generative layer is Amazon Bedrock and the assistants built on it, Amazon Q Business and Amazon Q Developer; beside them sit three older ML-powered developer services the exam still names, CodeGuru for code, DevOps Guru for operations and DeepRacer for learning reinforcement learning.
Amazon Bedrock is the managed service for foundation models: one API to call text, image and embedding models from Amazon (Titan, Nova), Anthropic, Meta, Mistral, Cohere, Stability AI and others, plus knowledge bases for retrieval-augmented generation, agents that call your APIs, guardrails for safety, model customisation and evaluation. It is the answer whenever a scenario says generate, summarise, converse, or "foundation model"; the Bedrock article is the full treatment. Amazon Q Business is a ready-made generative assistant for a company's own data: connect it to documents and applications (it shares Kendra's connectors) and employees ask questions, get answers with citations, and take actions, with the source permissions respected. Amazon Q Developer (which absorbed Amazon CodeWhisperer) suggests and explains code in the IDE, answers AWS questions in the console, helps with troubleshooting, and can carry out multi-step development tasks; Amazon Q also appears inside QuickSight (natural-language BI) and Connect (agent assistance). The generative AI stack article places all of these.
Amazon CodeGuru is machine learning applied to code: CodeGuru Reviewer finds defects and security issues in pull requests (now folded into Amazon Q Developer's code review, and closed to new customers as a standalone), CodeGuru Profiler finds the most expensive lines in a running application, and CodeGuru Security scans for vulnerabilities. Amazon DevOps Guru is anomaly detection for operations: it learns the normal behaviour of an application's CloudWatch metrics, logs and events, raises insights when something deviates (a latency climb, an error-rate spike, a database bottleneck) and recommends a fix, before the alarm thresholds anyone set would have fired. AWS DeepRacer is the 1/18th-scale car and the console for training its driving policy with reinforcement learning in a simulator, kept in the exam as the canonical RL example; AWS has wound down the racing league and the console, but the concept is what is tested.
- Customer-facing chatbots that answer from a help centre are built on Bedrock with a knowledge base, or on Amazon Q Business for an internal audience.
- Development teams use Amazon Q Developer for code completion and for asking "why is this Lambda timing out" from inside the console.
- Operations teams turn DevOps Guru on across an account and let it find the RDS connection exhaustion that no threshold alarm was watching for.
Amazon Q Business and Amazon Kendra overlap: both connect to company documents and answer questions. Kendra returns the passage that answers; Q Business writes an answer in prose, with citations, and can take actions. "Generative answers over company data" is Q Business; "search that returns the relevant document" is Kendra.
"Foundation model", "generate", "summarise", "chat" with any choice of model: Bedrock. "Employees ask questions about internal documents and get generated answers": Q Business. "Code suggestions in the IDE": Q Developer. "Detect operational anomalies in an application's metrics": DevOps Guru. "Code quality and performance recommendations": CodeGuru. "Reinforcement learning": DeepRacer.
Build your own: when the shelf has nothing that fits
Amazon SageMaker is the layer for training, tuning, hosting and monitoring a model of your own, and it is the right answer only when the managed services cannot do the task, cannot reach the accuracy the business needs on its specific data, or cannot give the control a regulator or an architecture demands.
The cases that genuinely need SageMaker are recognisable. The prediction target is specific to the business and no service predicts it (customer churn, loan default, machine yield, ad click-through). The data is proprietary and the features are the company's own. A managed service exists but its general model is not accurate enough on unusual data (rare medical images, a niche language, an industrial process). The model must be explainable in a specific way, must run on specific hardware or in a specific network, or must be versioned and audited under the company's own controls. Or the team wants to run a particular open-source model or a particular algorithm. In each case SageMaker supplies the pieces: notebooks in Studio, no-code model building in Canvas, pre-trained models from JumpStart, labelling with Ground Truth, training jobs with built-in or custom algorithms, tuning, endpoints of every kind, and monitoring. The next article is the tour.
| Scenario clue | Managed service | SageMaker |
|---|---|---|
| "Least operational overhead", "quickly", "no ML expertise" | Yes | No |
| Task is one of the shelf verbs (OCR, sentiment, transcription, recommendation) | Yes | Only if accuracy on unusual data is proven insufficient |
| "Custom model" with no ML team | The service's customisation option (Custom Labels, custom classifier) or SageMaker Canvas | Canvas or Autopilot |
| Business-specific target (churn, default, yield) | No service predicts it | Yes |
| "Full control", "own algorithm", "specific framework", "proprietary data" | No | Yes |
| Generative task | Bedrock or Amazon Q | JumpStart, when the weights must be self-hosted |
- Telecoms train churn models on SageMaker because churn is their own target, defined on their own usage and billing data, and no managed service offers it.
- Hospitals and imaging companies fine-tune vision models on SageMaker for specific pathologies where a general vision service has never seen the data.
- Ad-tech platforms host click-prediction models on SageMaker endpoints because latency, feature pipelines and the model itself are the product.
SageMaker is chosen by elimination and by the words "custom", "control", "own data" and "specific algorithm". When a scenario adds "without writing code" to a custom model, the answer is SageMaker Canvas (or Autopilot behind it), not a training job, and not a managed AI service unless one of its customisation options fits.
The cheat sheet: problem, service, keyword
Every service in this article, one row each, with the input it takes, what it returns and the words in a scenario that point at it; this table is the thing to be able to reproduce from memory.
| Problem | Service | Input → output | Keywords |
|---|---|---|---|
| Understand photos and video | Amazon Rekognition | Image, video → labels, faces, text, moderation, custom labels | faces, celebrities, unsafe content, PPE, video, Custom Labels |
| Read documents | Amazon Textract | Scan, PDF → text, forms, tables, query answers, expense and ID fields | OCR, key-value pairs, tables, invoices, IDs, queries |
| Understand text | Amazon Comprehend | Text → entities, key phrases, sentiment, language, PII, classes, topics | sentiment, entities, PII redaction, custom classification, topic modelling |
| Understand clinical text | Comprehend Medical | Clinical notes → medical entities, PHI, ICD-10-CM, RxNorm | medical, PHI, diagnosis codes |
| Translate text | Amazon Translate | Text → text in another language | translation, custom terminology, localisation |
| Speech to text | Amazon Transcribe | Audio → transcript with speakers and timestamps | transcribe, captions, speaker identification, custom vocabulary, Call Analytics, Medical |
| Text to speech | Amazon Polly | Text, SSML → audio | lifelike voice, neural voices, SSML, lexicon, pronunciation |
| Conversational bot | Amazon Lex | Utterance → intent, slots, response, Lambda fulfilment | chatbot, IVR, intents, slots, utterances, Alexa technology |
| Enterprise search | Amazon Kendra | Question → answering passage and documents | intelligent search, natural-language questions, connectors, SharePoint |
| Recommendations | Amazon Personalize | Interactions, items, users → ranked items per user | personalised recommendations, real time, similar items, ranking |
| Forecasting | Amazon Forecast | Time series → future values with quantiles | demand, inventory, seasonality, time series |
| Fraud | Amazon Fraud Detector | Events with labels → score and rule outcome | fake accounts, payment fraud, account takeover |
| Metric anomalies | Lookout for Metrics | Business metrics → anomalies with causes | KPI anomalies, unexpected drop |
| Machine anomalies | Lookout for Equipment | Existing sensor data → abnormal behaviour alerts | predictive maintenance, existing sensors |
| Machine anomalies, no sensors | Amazon Monitron | AWS sensors → fault alerts in an app | vibration, temperature, motors and pumps, end to end |
| Product defects | Lookout for Vision | Product images → anomaly and region | defects, quality inspection, production line |
| Human review | Amazon A2I | Low-confidence prediction → reviewed result | human in the loop, review low confidence, private workforce |
| Generative AI | Amazon Bedrock | Prompt, documents → text, images, embeddings | foundation model, summarise, chatbot, RAG, agents, guardrails |
| Assistant over company data | Amazon Q Business | Question → generated answer with citations | employees ask questions, internal documents, citations |
| Coding assistant | Amazon Q Developer | Code context → suggestions, explanations, fixes | IDE, code generation, AWS console help |
| Code quality | Amazon CodeGuru | Code, running app → recommendations, hot spots | code review, profiling, security findings |
| Operational anomalies | Amazon DevOps Guru | Metrics, logs, events → insights and fixes | operational issues, before thresholds fire |
| Learn reinforcement learning | AWS DeepRacer | Reward function → driving policy | reinforcement learning, reward, simulator |
| Anything custom | Amazon SageMaker | Your data and code → your model on your endpoint | custom model, full control, own algorithm, Canvas for no-code |
Several of these are retired for new customers but remain in the exam guide: Amazon Forecast, Lookout for Vision, Lookout for Metrics, Lookout for Equipment, Amazon Monitron and CodeGuru Reviewer as a standalone, with the DeepRacer console following. The questions test what each did and which scenario it fitted, not whether you can sign up today. Where AWS names a successor, it is SageMaker Canvas for forecasting and Amazon Q Developer for code review.
- The exam itself writes scenarios in this form: "A company has thousands of scanned forms and wants to extract the fields with the least development effort", and the whole skill is finding the row.
- Solution architects at AWS draw exactly this table on whiteboards; the pipeline in Figure 7 is the most common one they draw.
Recap
- Machine learning fits when the pattern is in the data, the data exists, an approximate answer is acceptable and a model beats a simple baseline by enough to pay for its upkeep. Known rules, no data, required exactness or a marginal gain mean do not use it.
- The shape of the answer picks the technique: number means regression, number over time means forecasting, category means classification, groups mean clustering, unusual means anomaly detection, "what will this person like" means recommendation, "in what order" means ranking.
- Pick the layer top down: a managed AI service for the least overhead and no ML expertise; Bedrock or Amazon Q for anything generative; the service's customisation option for a custom model without ML skills; SageMaker for a custom model with full control.
- Seeing: Rekognition for scenes, faces, moderation, video and Custom Labels; Textract for text, forms, tables, queries, invoices and IDs from documents; Lookout for Vision for defects on a line.
- Reading: Comprehend for entities, key phrases, sentiment, language, PII, custom classification and topic modelling; Comprehend Medical for clinical text with ICD-10-CM and RxNorm; Translate for language with custom terminology.
- Listening and speaking: Transcribe for speech to text with speaker diarisation, custom vocabularies, Medical and Call Analytics; Polly for text to speech with neural voices, SSML and lexicons; Lex for intents, utterances, slots and Lambda fulfilment, on Alexa's technology.
- Searching and recommending: Kendra for natural-language enterprise search through connectors with permissions kept; Personalize for real-time recommendations from interactions, items and users through recipes.
- Predicting: Forecast for time series with quantiles; Fraud Detector for a learned score plus your rules; Lookout for Metrics for KPI anomalies; Lookout for Equipment for existing sensor data; Monitron when there are no sensors.
- Real pipelines chain services: Textract, then Comprehend, then Translate, then Polly, with Amazon A2I sending low-confidence results to a human workforce. Ground Truth labels; A2I reviews.
- Bedrock is foundation models by API; Q Business answers over company data; Q Developer writes code; CodeGuru reviews and profiles code; DevOps Guru finds operational anomalies; DeepRacer teaches reinforcement learning.
- SageMaker is chosen when the target is business-specific, the data is proprietary, the accuracy of a general service is insufficient, or full control is required; Canvas when that must happen without code.
- Several services (Forecast, the Lookout family, Monitron, CodeGuru Reviewer) are closed to new customers but still tested; know what they did and which scenario they fitted.
Questions
Try answering each one out loud before opening it. Lead with the one-line answer, then the reasoning, then one detail that shows you have used it.
When is machine learning the wrong tool for a problem?
When the rules are already known and few, when there is no data or no labels, when the answer must be exact and deterministic, or when a simple heuristic already captures most of the value and a model would not pay for its own upkeep.
- A rule-based system is exact, explainable, free to run and needs no data; use it when a person can write the logic down.
- A supervised model cannot be trained without labelled examples, and a generative model is non-deterministic by nature.
- A cost-benefit analysis against a baseline is the exam's first step before choosing any AI solution.
Even when a model ships, the heuristic usually stays as the fallback for when the model or its data is unavailable.
A company wants to extract the fields from thousands of scanned invoices with the least development effort. Which service, and what does it return?
Amazon Textract, specifically Analyze Expense, which returns the vendor, totals, dates and line items as structured fields from an invoice image or PDF.
- Textract is OCR that also understands structure: forms as key-value pairs, tables as cells, and queries answered in plain words.
- "Least development effort" and "scanned" rule out SageMaker and rule out Rekognition, whose text detection is for short text in scenes.
- Low-confidence fields can be routed to a person with Amazon A2I, which has a built-in task type for Textract.
Multi-page PDFs go through Textract's asynchronous API, which reads from and writes to S3.
Which AWS service would you use to detect unsafe content in user-uploaded images and videos?
Amazon Rekognition's content moderation, which returns a hierarchy of moderation labels with confidence scores for images and for video.
- Rekognition is the pre-trained computer vision service for scenes: labels, faces, celebrities, text in image, PPE and moderation.
- Uploads scoring in an uncertain band can be sent to human moderators through Amazon A2I, which has a built-in Rekognition moderation task type.
- Textract is for documents, Lookout for Vision for manufacturing defects; neither moderates content.
Streaming video can be analysed live from a Kinesis Video Stream, while stored video is processed as an asynchronous job.
What does Amazon Comprehend do, and how does Comprehend Medical differ?
Comprehend is pre-trained text analysis: entities, key phrases, sentiment, language, syntax, PII detection and redaction, plus trainable custom classification and custom entity recognition and unsupervised topic modelling; Comprehend Medical applies the same idea to clinical text and links what it finds to medical codes.
- Comprehend Medical extracts conditions, medications with dose and frequency, tests and procedures, detects PHI, and maps to ICD-10-CM, RxNorm and SNOMED CT.
- Both work on text only; scanned documents pass through Textract first and audio through Transcribe.
- Neither generates text; summarising or answering is Amazon Bedrock.
Targeted sentiment gives a separate opinion per entity, so a review that praises the food and criticises the service is not averaged into "mixed".
A call centre wants transcripts of recorded calls showing which speaker said what, with the company's product names recognised correctly. Which service and features?
Amazon Transcribe with speaker diarisation (speaker identification) and a custom vocabulary for the product names.
- Transcribe converts audio to text with per-word timestamps and confidence, in batch from S3 or streaming live.
- Speaker diarisation labels segments by speaker; channel identification separates agent and customer on a stereo recording.
- A custom vocabulary teaches the recogniser specific terms; a custom language model trains on domain text for broader improvement.
Transcribe Call Analytics adds per-turn sentiment, talk time and call summaries on top, which is what an Amazon Connect contact centre uses.
What are intents, utterances and slots in Amazon Lex, and what technology is it built on?
An intent is a goal the user can express, utterances are the example sentences that express it, slots are the pieces of information needed to fulfil it, and Lex is built on the same speech recognition and language understanding technology as Alexa.
- Lex recognises the intent from a paraphrase, prompts for missing slots, confirms, and calls an AWS Lambda function to fulfil the request.
- It accepts text or speech directly and integrates with Amazon Connect for telephony and with Polly for the spoken reply.
- It is a transactional bot builder, not an open-ended LLM assistant; questions over documents are Amazon Q Business or a Bedrock agent.
A Lambda hook can also validate slots turn by turn, so an invalid date is rejected before the booking is attempted.
Describe a voice-enabled document assistant using only managed AWS AI services.
Textract reads the document, Comprehend extracts entities and sentiment and redacts PII, Translate converts the text to the user's language, Polly speaks the result, and Transcribe plus Lex handle the user's spoken requests, with Amazon A2I reviewing any low-confidence extraction.
- Each service does one step and returns structured JSON that the next consumes; Lambda, Step Functions and S3 events do the orchestration.
- No model is trained, so the solution has the least operational overhead and needs no ML expertise.
- Human review is inserted where confidence is low, which is A2I's role.
Swapping Comprehend for a Bedrock model would let the assistant summarise the document in prose rather than just extract fields.
A company wants employees to search policy documents stored in SharePoint, S3 and Confluence by asking questions in plain English. Which service?
Amazon Kendra, an intelligent enterprise search service with connectors to those sources that returns the passage answering a natural-language question while respecting document permissions.
- Connectors crawl the sources and keep the index current, carrying access control lists along.
- Kendra ranks by understanding the question rather than by keyword match, and improves from user feedback.
- If the requirement is a generated answer in prose with citations, the answer shifts to Amazon Q Business, which can sit on the same content.
Kendra also serves as a retriever for Bedrock knowledge bases, which is how RAG applications reuse an existing search index.
An online retailer wants real-time personalised product recommendations without a data science team. Which service and what data does it need?
Amazon Personalize, fed with an interactions dataset (user, item, timestamp, event) and optionally items and users metadata, trained with a recipe such as user personalisation and served through a real-time campaign.
- Interactions are mandatory; item and user metadata improve quality and handle the cold-start problem for new items.
- Recipes cover "recommended for you", similar items, personalised ranking and trending now; an event tracker streams new behaviour in.
- Filters implement business rules such as excluding already-purchased items.
Personalize packages the same collaborative-filtering approach that produces Amazon.com's "customers who bought this also bought" row.
What is the difference between Amazon Lookout for Equipment and Amazon Monitron?
Both do predictive maintenance by detecting anomalies in machine sensor data; Lookout for Equipment ingests data from sensors the customer already has, while Monitron ships its own wireless vibration and temperature sensors, gateway and app as an end-to-end kit.
- "Existing sensor data" points at Lookout for Equipment; "no sensors installed" or "motors, pumps and fans" points at Monitron.
- Lookout for Metrics is the sibling for business KPIs, and Lookout for Vision for product defects in images.
- All of these are closed to new customers but remain on the exam.
Both learn the normal multi-sensor pattern of each machine, so a bearing fault shows as a drift in the vibration signature weeks before it fails.
How does Amazon Fraud Detector combine machine learning with rules?
A model trained on the customer's labelled historical events, enriched with fraud patterns learned across Amazon, produces a risk score, and rules the customer writes turn that score plus hard facts into an outcome such as approve, review or block.
- Event types define the variables (email, IP, device, amount); model types include Online Fraud Insights, Transaction Fraud Insights and Account Takeover Insights.
- Rules can also encode deterministic requirements ("block this country") that must not depend on a score.
- Evaluation happens in real time through an API call from the application.
This is the general pattern for combining a learned score with exact rules: the model handles the fuzzy majority, the rules handle the cases that must be certain.
What does Amazon Augmented AI do, and how is it different from SageMaker Ground Truth?
A2I routes predictions that meet a condition, such as low confidence, to human reviewers and returns the corrected result; Ground Truth is for labelling datasets from scratch before training.
- A human review workflow defines the trigger, the task template and the workforce: private employees, an AWS Marketplace vendor or Amazon Mechanical Turk.
- Built-in task types exist for Textract key-value pairs and Rekognition image moderation; a custom type covers any SageMaker model.
- Reviewed results land in S3 and can become training data for the next model version.
Sensitive data points at a private workforce, since the documents never leave the company's own reviewers.
A company needs a custom image classifier for its own product categories but has no machine learning team. Which option?
Amazon Rekognition Custom Labels, which trains a custom vision model from a few hundred labelled images with no ML code.
- It is the customisation rung of a managed service, sitting between the pre-trained API and building a model on SageMaker.
- Comprehend custom classification is the text equivalent; SageMaker Canvas is the no-code route for tabular data.
- A SageMaker training job would work but is the wrong answer when the scenario says no ML expertise.
Custom Labels handles the training, hosting and scaling; you start the model, call it and stop it to control cost.
When does a scenario call for Amazon SageMaker rather than a managed AI service?
When the prediction target is specific to the business and no service offers it, when the data is proprietary and a general model is not accurate enough, or when the company needs full control over the algorithm, the training data, the hardware or the model's lifecycle.
- Keywords: "custom model", "own algorithm", "specific framework", "proprietary data", "full control".
- SageMaker is never the answer to "least operational overhead" or "no ML expertise" when a managed service can do the task.
- SageMaker Canvas is the no-code route inside SageMaker when a custom model must be built without programming.
Churn prediction is the classic case: every telecom defines churn on its own usage data, and no managed service predicts it.
How do Amazon Q Business and Amazon Q Developer differ, and how do they relate to Amazon Bedrock?
Q Business is a generative assistant over a company's own documents and applications for employees; Q Developer is a coding and AWS assistant in the IDE and console; both are built on foundation models served through Amazon Bedrock, which is the raw model API for building your own generative applications.
- Q Business connects to sources such as SharePoint and S3, answers with citations and respects permissions.
- Q Developer absorbed CodeWhisperer: code suggestions, explanations, troubleshooting and multi-step tasks.
- Bedrock adds knowledge bases, agents, guardrails and model customisation for teams building their own product.
Amazon Q also appears inside QuickSight for natural-language business intelligence and inside Connect for agent assistance.
An operations team wants to be warned about application problems before their CloudWatch alarms fire, without configuring thresholds. Which service?
Amazon DevOps Guru, which learns the normal behaviour of an application's metrics, logs and events and raises insights with recommended fixes when it detects anomalies.
- It is anomaly detection applied to operations, so no thresholds are set by hand.
- CodeGuru is the sibling for code: Reviewer for defects (now inside Amazon Q Developer), Profiler for runtime hot spots, Security for vulnerabilities.
- Lookout for Metrics is the business-KPI version of the same idea.
DevOps Guru insights group related anomalies (a latency rise, a connection spike, a slow query) into one incident with a likely cause.
Which services on the exam are no longer open to new customers, and how should that affect an answer?
Amazon Forecast, Lookout for Vision, Lookout for Metrics, Lookout for Equipment, Amazon Monitron and standalone CodeGuru Reviewer are closed to new customers, but the exam still names them, so answer with what each did and which scenario it fitted.
- Forecast's successor for no-code forecasting is SageMaker Canvas; CodeGuru Reviewer's is Amazon Q Developer's code review.
- The Lookout family and Monitron remain the exam's names for KPI anomalies, predictive maintenance and visual defect detection.
- DeepRacer likewise stays as the reinforcement learning example after its console wound down.
The exam tests the mapping from problem to service, not the current sign-up page.