CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
  • Week 1
    • 1.The Relationship and Differences Between AI, Machine Learning, and Deep Learning
    • 2.Learning Types: Supervised, Unsupervised, and Reinforcement Learning
    • 3.Problems Where ML Fits vs. Problems Where It Doesn't
    • 4.Key Terms: Model, Training, Inference, Feature, Label, Overfitting
    • 5.Week 1 Review: AI/ML Fundamentals
  • Week 2
  • Week 3
  • Week 4
    • 1.Amazon Bedrock: Fully Managed Service for Renting Foundation Models
    • 2.Amazon SageMaker: A Platform for Directly Training and Deploying ML Models
    • 3.AWS AI Services (1): Managed APIs Handling Images, Documents, Text, and Speech
    • 4.AWS AI Services (2) + Amazon Q: Chatbots, Search, Recommendations, Forecasting, and Generative Assistant
    • 5.Week 4 Comprehensive Review: Complete Map of AWS AI/ML Services
  • Week 5
  • Week 6
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← AIF-C01/Week 4/Day 4

Based on the AIF-C01 exam guide·Report an error

AIF-C01· AssociateWeek 4 · Day 4~34 min read

Day 4 - AWS AI Services (2) + Amazon Q: Chatbots, Search, Recommendations, Forecasting, and Generative Assistant

📌 Key Takeaways

  • Lex is a chatbot/voicebot service based on intents and slots, Kendra is natural-language search over internal documents, Personalize is personalized recommendation, and Forecast is time-series forecasting.
  • Amazon Q is a finished generative assistant. It splits into Q Business for work, which answers from internal data, and Q Developer for developers, which helps with coding.
  • Bedrock is a building block you assemble yourself, and Amazon Q is a finished product assistant you use right away. Lex is a bot with a set conversation flow, while an agent is flexible multi-step work driven by FM reasoning.
  • "Finding" is Kendra, and "analyzing" is Comprehend. "What for whom" is Personalize, and "when and how much" is Forecast.
  • Names and availability are changing. Kendra, Forecast, and Q Business are not open to new customers, and the successors pointed to are Bedrock Knowledge Bases, SageMaker Canvas, and Amazon Quick, with Kiro on the coding assistant side.

Lex: Building Conversational Chatbots and Voicebots

Yesterday we looked at 6 AI services that handle images, documents, text, and speech. Today we look at the remaining core services, Lex (chatbots), Kendra (search), Personalize (recommendations), and Forecast (forecasting), along with AWS's generative AI assistant Amazon Q, and then tie together every service we have seen so far by the criterion of "what to choose." The core is still purpose mapping, that is, "which service fits this scenario?"

Amazon Lex is a service for building chatbots and voicebots. It has been introduced as the same family of conversational technology used in Amazon Alexa, offered as a service. Lex's two core concepts:

  • Intent: What the user is trying to do (for example, "book a flight").
  • Slot: The information needed to fulfill that intent (for example, departure, destination, date).

Lex works out the intent from what the user says, asks again for any missing slots, and leads the conversation. The actual processing (executing the booking) is connected through Lambda.

User: "Book me a flight to Busan tomorrow"
  └ Intent detection → book a flight
  └ Slot filling → destination=Busan, date=tomorrow, departure=(empty)
Lex : "Where will you be departing from?"          ← asks again for the empty slot
User: "Seoul"
  └ Slots complete → call Lambda (execute the booking) → "Your booking is complete"
  • The person building the bot writes a few example sentences for each intent. Lex builds a language model from them, so it understands other phrasings such as "get me a ticket to Busan" as the same intent.
  • For voice input, the speech recognition (ASR) inside Lex converts it to text before processing. You do not need to attach Transcribe separately when building a voicebot.
  • The charge depends on the number of requests for text and voice processed.

💡 Related theory: Lex provides NLU (natural language understanding) that understands voice/text input, along with conversation management. The clue "I want to build a conversational bot that handles customer inquiries" is the Lex signal. It can be confused with Bedrock Agents, but Lex is strong at building structured, intent/slot-based conversation bots, whereas Bedrock Agents is strong at performing multi-step tasks more flexibly through FM reasoning.

Kendra: Smart Internal Enterprise Search

Amazon Kendra is a machine learning-based enterprise search service. It indexes documents scattered across the internal wiki, PDFs, SharePoint, S3, and so on, and when an employee asks a question in natural language, it finds where the accurate answer is.

It is not simple keyword search. It understands "the meaning of the question" to find the answer. If you ask "How many days of vacation do I get?", it points to the exact paragraph of the relevant policy document.

  • It connects several repositories through connectors and gathers them into one index.
  • The organization's access permissions can be reflected in search results. Documents a user cannot view are filtered out of the search too.
  • An index is billed from the moment you provision it, even if it is empty and even if there are no queries. It is closer to "as long as you keep it up" than to "as much as you use."
  • Current status: Kendra is no longer open to new customers (existing customers continue to use it), and AWS points to Amazon Bedrock Knowledge Bases for a similar purpose. Kendra is also absent from the latest exam guide's list of in-scope services. Still, the pairing "natural-language search over internal documents = Kendra" remains widespread in past exam question types and study materials, so be aware of it.

🔍 Going deeper: Kendra can take on the "retrieval" part of RAG powerfully, so it is used together with Bedrock as the backend of generative Q&A. "Natural-language search across multiple internal documents" is Kendra. You must distinguish it from Comprehend (text meaning analysis): Kendra is "finding," and Comprehend is "analyzing."

Personalize & Forecast: Recommendation and Forecasting

These two offer traditional ML tasks as managed services.

  • Amazon Personalize: A real-time recommendation system. It turns Amazon.com's recommendation technology into a service, recommending "things that people who viewed this item might like."
  • Amazon Forecast: Time-series forecasting. It predicts future demand, sales, and inventory from past data.
ServiceTaskUse cases
PersonalizePersonalized recommendationProduct and content recommendations, personalized search
ForecastTime-series forecastingDemand forecasting, inventory planning, sales outlook

The two are confusing because they resemble each other in "producing something from past data." The data they feed on and the answers they give differ.

AspectPersonalizeForecast
Main ingredientRecords of users interacting with items (clicks, purchases, views)Past figures with dates attached (daily sales and so on)
Shape of the answerA different list of items for each userA number at a future point in time
Question it answers"What should I show this person?""How many will sell next month?"
Other usesSimilar items, re-ranking search results, picking out a group of users who would react to a given itemPlanning staffing, server capacity, and energy demand
  • Personalize uses both historical records uploaded as CSV and real-time events arriving from the app. That is why an item someone just viewed is reflected in recommendations right away.
  • Current status: Forecast is no longer open to new customers, and AWS guides people to move to the time-series forecasting in SageMaker Canvas. It is also absent from the latest exam guide's list of in-scope services. The task type of "forecasting" itself is still within the exam scope.

As a hypothetical example, an e-commerce company used Forecast to predict demand by store and by product to optimize inventory, and used Personalize to provide per-user recommendations. Both were implemented with managed APIs without a data science team. If it is "predict a future figure," it is Forecast, and if it is "personalized recommendations for users," it is Personalize.

Amazon Q: AWS's Generative AI Assistant

Amazon Q is a generative AI-based assistant. It splits into two branches by purpose.

AspectAmazon Q BusinessAmazon Q Developer
AudienceGeneral employees and business workDevelopers
What it doesAnswers questions and summarizes based on internal dataCode generation, explanation, debugging, and AWS task support
Connects toInternal systems such as wikis, documents, and appsIDE, AWS console/CLI
  • Amazon Q Business: A business assistant that connects to internal data and, when an employee asks in natural language, answers with supporting sources. (It feels like an internal RAG chatbot delivered as a finished product.)
  • Amazon Q Developer: A developer assistant that helps write, explain, and debug code and answers questions about AWS infrastructure. (The successor/extension of the former CodeWhisperer.)

Both products are built on top of Amazon Bedrock. Q Business has three characteristics.

  • It attaches sources (citations) to answers.
  • It uses as evidence only the documents the person asking is permitted to view. It will not answer from HR documents to an employee who cannot see them.
  • With plugins, it even does simple task handling such as submitting a leave request.

Bedrock and Amazon Q are different in nature. Bedrock is "a building block (API) for building a generative app myself," and Amazon Q is "an already finished generative assistant product." If you will design and develop a chatbot yourself, it is Bedrock; if you need a work or development assistant you can use right away, it is Amazon Q.

Names That Are Changing: Amazon Quick and Kiro

Product names change quickly in this area. Know both the names the latest edition of the exam guide uses and the old names.

RoleFamiliar nameName now pointed toStatus
Generative assistant for workAmazon Q BusinessAmazon QuickQ Business is not open to new customers
BI dashboardsAmazon QuickSightThe Quick Sight feature of Amazon QuickOnly the name changed; existing APIs stay the same
Coding assistant for developersAmazon Q Developer (formerly CodeWhisperer)KiroEnd of support has been announced for the Q Developer IDE plugin
Multi-step task agentAmazon Bedrock AgentsAmazon Bedrock AgentCoreThe existing one became Agents Classic and is not open to new customers
  • Amazon Quick: A service that does work automation, data analysis, research, and building simple web apps through natural-language chat. It brings together in one place an index that connects internal documents and data sources as the basis for answers (Quick Index), automation of recurring work (Quick Flows, Quick Automate), research reports with sources (Quick Research), and dashboards (Quick Sight).
  • Kiro: An AI-based development environment. In the IDE and CLI, an agent writes code, and it uses a spec approach that plans a feature as requirements → design → task list.
  • The latest exam guide gives as examples of services for building GenAI applications Bedrock, SageMaker AI, JumpStart, Amazon Quick, Kiro, Strands Agents, and Bedrock AgentCore. The guide's revision history also lists Amazon Q as an in-scope service. So whichever of the old or new names appears in an option, just read it by its role. The two slots, "finished assistant for employees" and "coding assistant for developers," stay the same.

Telling Look-Alike Services Apart

Three conversational services. They all look like "chatbots," but how you build them differs.

AspectLexAgents (Bedrock)Amazon Q Business / Quick
What it isA service for building botsA building block for building agentsAn already built assistant
What drives the conversationIntents and slots I defineThe FM's reasoning and tool selectionBehavior built into the product
StrengthPredictable, controlled flow; voice supportResponds flexibly even to requests not defined in advanceAdopted right away with no development
Cues that fit"Inquiries with a set procedure such as booking or lookup," "phone handling""Judges several steps on its own and calls APIs""Employees ask questions about internal materials," "immediate adoption"

Four search and knowledge services.

ServiceWhat it doesOutput
KendraIndexes internal documents and finds them in natural languageRelevant documents and the passage containing the answer
Bedrock Knowledge BasesAttaches what was found to an FM to write an answer (RAG)A generated answer with citations
Q Business / QuickProvides the above process as a finished assistantA chat screen employees use right away
ComprehendAnalyzes the text it is givenSentiment, entities, key phrases

Service Selection Criteria: On One Page

The most important thing on the exam is the "clue → service" connection.

Scenario clueAnswer service
Several FMs through an API without managementBedrock
Train and deploy a custom model on your own dataSageMaker
Image/video analysisRekognition
Extract data from documents (forms, tables)Textract
Text sentiment and entity analysis (NLP)Comprehend
Speech → text / text → speechTranscribe / Polly
Language translationTranslate
Conversational chatbot, voicebotLex
Natural-language search over internal documentsKendra
Personalized recommendationPersonalize
Time-series demand and sales forecastingForecast
Generative assistant for work (internal data)Amazon Q Business
Coding assistant for developersAmazon Q Developer

This table is the conclusion of Week 4 and the key asset that decides your exam score. To prepare for when the clues in the table come out slightly twisted, here are the forks collected separately.

Twisted clueAnswerEliminated option and why
"Take inquiries arriving by phone by voice and even handle the booking"LexTranscribe: it only transcribes and cannot lead a conversation
"A chatbot judges requests outside a set procedure and calls several APIs"AgentLex: it moves only within the intents you defined
"Employees ask questions about internal documents, adopted this month with no development staff"Q Business (Amazon Quick)Bedrock: you have to build it yourself
"Internal document search works, but I want the answer written as sentences"Search + FM (RAG)Kendra alone: it only finds
"Change the next screen's recommendations to reflect the item just viewed"PersonalizeForecast: it does not build per-person lists
"Predict next quarter's sales by branch as numbers"ForecastPersonalize: it does not predict figures
"Code autocompletion and security vulnerability checks in the IDE"Q Developer (Kiro)Q Business: a business assistant
"Pull out frequently mentioned topics and sentiment from review text"ComprehendKendra: it is a finding service and does not analyze

Where the costs arise also differs in character by service.

  • Lex: Number of requests. There is no server to keep up.
  • Kendra: Hours the index is kept up and document synchronization. It costs even when unused.
  • Personalize: Data processing volume, model training time, and number of recommendation requests.
  • Forecast: Training time, stored data, and number of forecasts generated.
  • Q Business: A per-user subscription fee and index capacity. It differs from Bedrock in that it is based on number of people, not tokens.

Tomorrow we do a comprehensive review of all of Week 4. We will organize every AI/ML service at once into a purpose-mapping table and compare the service pairs that are easy to confuse on the exam.

📖 Glossary

  • Intent: What the user is trying to do with that utterance. A unit of purpose such as "book" or "check balance."
  • Slot: A value needed to execute an intent, such as a date, place, or quantity.
  • NLU (natural language understanding): Technology that works out the intent and needed information from a sentence.
  • Enterprise search: Search that indexes and finds documents from several internal repositories at once.
  • Connector: A channel that links an external repository such as SharePoint or S3 to the service and brings in documents.
  • Interaction data: Records of users clicking, buying, or viewing items. It is the main ingredient of a recommendation model.
  • Time-series data: Figures recorded in time order, such as daily sales or hourly traffic.
  • Building block: A service of the nature of a component you assemble yourself to make a product. Bedrock is the representative example.
  • Amazon Quick: A service for work automation, analysis, and research through chat. The old QuickSight became a feature inside it.
  • Kiro: The AI development environment AWS points to as the successor to the Q Developer IDE plugin.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

You want to build a conversational chatbot/voice bot handling customer inquiries using Intent and Slot concepts. Which is the most appropriate service?

Question 2

You want employees to search documents scattered across internal wikis, PDFs, and SharePoint with natural language questions and find exact answer locations. Which is the most appropriate service?

Question 3

You want to recommend "products users would like" in real time based on their past behavior. Which is appropriate?

Question 4

Developers want immediate help with code generation, explanation, debugging, and AWS-related questions inside their IDE. Which is the most appropriate?

Question 5

You want to immediately adopt a "complete, ready-made business generative assistant" without designing and developing a chatbot yourself, connecting to internal data to answer employee questions with evidence. Which is the most appropriate?

PreviousAWS AI Services (1): Managed APIs Handling Images, Documents, Text, and SpeechWeek 4 · Day 3Next Week 4 Comprehensive Review: Complete Map of AWS AI/ML ServicesWeek 4 · Day 5

Official references

  • AIF-C01 official exam page(opens in a new tab)
  • Amazon Bedrock documentation(opens in a new tab)
  • Amazon SageMaker AI documentation(opens in a new tab)

On this page

  • Key Takeaways
  • Lex: Building Conversational Chatbots and Voicebots
  • Kendra: Smart Internal Enterprise Search
  • Personalize & Forecast: Recommendation and Forecasting
  • Amazon Q: AWS's Generative AI Assistant
  • Names That Are Changing: Amazon Quick and Kiro
  • Telling Look-Alike Services Apart
  • Service Selection Criteria: On One Page
  • Glossary
  • 連習 問題