AWS Infrastructure and Services for Building GenAI Applications
AWS infrastructure for generative AI is the set of managed services, building blocks and pricing options you use to build GenAI applications on AWS, and Amazon Bedrock and Amazon SageMaker AI are the two services at its centre. Bedrock is a fully managed, serverless service that gives you access to foundation models from several providers through a single API, so you can add generative AI to an application without managing any infrastructure. SageMaker AI is the broader machine learning platform you use when you want to build, train, fine-tune, or host your own models with control over instances and endpoints. Around these sit SageMaker JumpStart for starting from pre-trained models, Amazon Quick as an AI assistant and workspace for employees, Kiro for agentic software development, and the agent technologies Strands Agents and Amazon Bedrock AgentCore. This lesson maps each service to its purpose, then explains the advantages, security and safety benefits, and the cost tradeoffs of running generative AI on AWS.
On this page12 sections
- Amazon Bedrock: the managed foundation-model service
- Amazon SageMaker AI and SageMaker JumpStart
- Bringing your own or marketplace models to Bedrock
- Amazon Quick and Kiro
- Strands Agents and Amazon Bedrock AgentCore
- AWS generative AI services at a glance
- Advantages of using AWS managed GenAI services
- Benefits of AWS infrastructure for GenAI
- Cost tradeoffs: token pricing, provisioned throughput, and on-demand
- Trading responsiveness and performance for cost
- Availability, redundancy, and regional coverage
- Bedrock or SageMaker AI? A decision guide
- Match each AWS generative AI service (Bedrock, SageMaker AI, JumpStart, Amazon Quick, Kiro, Strands Agents, AgentCore) to the job it does.
- Explain when to choose Amazon Bedrock versus Amazon SageMaker AI, including where Bedrock Custom Model Import and Bedrock Marketplace fit.
- Distinguish building an agent in code with Strands Agents from running it on Amazon Bedrock AgentCore.
- Describe the advantages of AWS managed generative AI services and the security, compliance, responsibility and safety benefits of AWS infrastructure.
- Choose between on-demand, service tiers, batch inference, Provisioned Throughput and cross-Region inference from a workload's latency, volume, availability and residency needs.
- Identify the cost components of token-based pricing and of custom models.
Amazon Bedrock: the managed foundation-model service
Amazon Bedrock is the fully managed, serverless AWS service that gives you access to foundation models from Amazon and leading AI companies through a single API, and it is the first service to reach for when an application needs to call a ready-made model. Providers available through Bedrock include Amazon (the Nova models), Anthropic, Meta, Mistral AI, Cohere, AI21 Labs, and Stability AI, and the exact set of models differs by AWS Region.
Because Bedrock is serverless, you do not provision or manage any servers, GPUs, endpoints, or clusters. You send a prompt to a model and get a response back, and AWS scales the capacity behind it.
Switching models. Bedrock's Converse API uses one request and response format for every model that supports it, so moving to another provider's model, or comparing two models, is a change of model ID with no new infrastructure and no code rewrite. The lower-level InvokeModel API also works with any model, but its request body follows each provider's own format, so changing providers there means changing the payload too.
Bedrock also bundles higher-level building blocks so you do not have to assemble them yourself. Knowledge Bases connect a model to your own data so it can answer using that data (retrieval augmented generation, or RAG). Agents let a model carry out multi-step tasks by calling APIs and tools. Guardrails apply safety and privacy filters to inputs and outputs. Model customization fine-tunes a supported base model with your data. You will study each of these in depth in later domains; for this task, recognize them as Bedrock features and Bedrock as the fast, managed path to foundation models.
Amazon SageMaker AI and SageMaker JumpStart
Amazon SageMaker AI is the AWS platform for building, training, and deploying machine learning models, and it is the service you choose when you need more control than Bedrock gives you. With SageMaker AI you can bring your own data and algorithms, train a model from scratch, fine-tune an existing model, and host the result on endpoints you configure, choosing the instance types and counts. That control comes with more responsibility: you make more decisions about instances, training jobs, scaling and deployment than you do with a serverless API.
Amazon SageMaker JumpStart is a machine learning hub inside SageMaker AI that shortens that path. It offers pre-trained, publicly available foundation models and prebuilt solutions that you deploy with a few clicks and can then fine-tune on your own data, so you skip training from scratch. The key difference from Bedrock is where the model runs: a JumpStart model is deployed to a SageMaker AI endpoint in your account, on an instance type you choose and pay for while it runs, whereas Bedrock serves its models serverlessly and you never pick an instance.
The customization paths also differ. SageMaker AI can train a brand-new model from scratch on your data. Bedrock model customization does not; it only adapts an existing base model (for example by fine-tuning) and gives you a private custom copy of it.
Bringing your own or marketplace models to Bedrock
Two Bedrock features blur the line with SageMaker AI, and telling them apart depends on who trains the model and who chooses the hardware.
- Bedrock Custom Model Import lets you bring model weights you trained or fine-tuned elsewhere (for example in SageMaker AI) into Bedrock for supported model architectures. Bedrock then serves the model serverlessly through the same API as its other models. It does no training, and you choose no instances.
- Amazon Bedrock Marketplace gives access to a wider catalog of specialized models that you deploy to managed endpoints, choosing the instance type and number of instances. You then call them through Bedrock's APIs, but you cannot fine-tune them with Bedrock model customization.
| Need | Fits |
|---|---|
| Call a ready-made model with no infrastructure | Bedrock (serverless models) |
| Adapt an existing base model with your data, managed for you | Bedrock model customization |
| Serve weights you trained elsewhere, serverlessly | Bedrock Custom Model Import |
| Use a specialized catalog model on endpoints you size | Bedrock Marketplace |
| Start from a pre-trained model hosted on your own SageMaker endpoint | SageMaker JumpStart |
| Train a model from scratch with full control | SageMaker AI |
Amazon Quick and Kiro
Amazon Quick and Kiro are AWS's ready-to-use generative AI products for people rather than building blocks you call from code: Amazon Quick serves employees, and Kiro serves software developers.
Amazon Quick is an AI assistant and workspace for employees. Business users ask questions in natural language and get answers grounded in company data, documents, dashboards and connected applications such as Slack and Salesforce; Quick can also produce research reports and automate routine tasks and workflows. No one has to write or host an application. Amazon Quick is the successor to Amazon Q Business, which is no longer available to new customers, so for a new employee-assistant scenario the answer is Amazon Quick.
Kiro is AWS's agentic, spec-driven development environment. A developer describes what to build in natural language; Kiro turns that into a specification (requirements, a design and a task list), and AI agents then implement the tasks, with the developer reviewing the work. AWS recommends Kiro to developers in place of the Amazon Q Developer IDE plugins, which reach end of support on 30 April 2027. When a scenario is about writing and shipping software with AI agents, think Kiro.
Strands Agents and Amazon Bedrock AgentCore
Strands Agents is how you build an AI agent in code, and Amazon Bedrock AgentCore is where you run and operate agents in production; they solve different halves of the same job.
Strands Agents is an open-source SDK from AWS. You define an agent in a few lines of code (for example Python) by giving it a model, a prompt and a set of tools, and the model plans and calls the tools itself. Because it is a library, it runs anywhere, including a laptop.
Amazon Bedrock AgentCore is a set of managed services for deploying and operating agents securely at scale: a Runtime that hosts agents with an isolated session per user, Memory for short- and long-term memory, Identity for agent access to other systems, a Gateway that turns APIs and functions into tools agents can use, and Observability for tracing and monitoring. AgentCore is framework-agnostic: its Runtime hosts agents written with Strands Agents, LangGraph, CrewAI and other frameworks, so an existing agent can move to it without a rewrite. Strands is one way to write an agent, not a prerequisite for AgentCore.
| Option | What it is | What it leaves to you |
|---|---|---|
| Strands Agents | Open-source SDK to write an agent in code | Where and how to host and operate it |
| Amazon Bedrock AgentCore | Managed runtime, memory, identity, gateway and observability for agents from any framework | The agent's own logic |
| Amazon Bedrock Agents | Configuration-based managed agent builder (instructions, action groups) | It does not run existing framework code |
| Generic compute (AWS Lambda, a SageMaker AI endpoint) | Can run agent code | Session isolation, memory and tracing must be built by the team |
AWS generative AI services at a glance
Each AWS generative AI service in this task does one main job; use this table to fix them.
| Service | What you use it for |
|---|---|
| Amazon Bedrock | Access foundation models from multiple providers through one managed, serverless API |
| Amazon SageMaker AI | Build, train (including from scratch), fine-tune, and host your own models with control of instances and endpoints |
| SageMaker JumpStart | Start from pre-trained models and solutions, deployed to your own SageMaker endpoints and fine-tuned there |
| Amazon Quick | AI assistant and workspace for employees over company data and apps (answers, research, automation) |
| Kiro | Agentic, spec-driven software development |
| Strands Agents | Open-source SDK for building AI agents in code |
| Amazon Bedrock AgentCore | Managed services for deploying and operating agents built with any framework |
A quick check: calling a model points to Bedrock; building or training your own model points to SageMaker AI; an assistant that helps employees points to Amazon Quick; writing software with AI agents points to Kiro; writing an agent points to Strands Agents; running agents in production points to AgentCore.
Advantages of using AWS managed GenAI services
The advantages of AWS managed generative AI services are accessibility, a lower barrier to entry, efficiency, cost-effectiveness, speed to market and the ability to meet business objectives. Accessibility and a lower barrier to entry come first: a managed API means you can start using powerful foundation models without deep machine learning expertise, a data science team, or your own GPUs. Efficiency follows, because AWS runs the undifferentiated heavy lifting of provisioning, scaling, patching, and operating the model infrastructure, so your team spends its time on the application rather than the plumbing.
Cost-effectiveness comes from paying only for what you use instead of buying and running hardware that sits idle, and from being able to choose a smaller, cheaper model when it is good enough. Speed to market is a major draw: because the models and building blocks are ready to call, you can move from idea to a working prototype in days rather than months.
Together these let you meet business objectives faster. You can test whether generative AI actually solves a problem, then scale it up if it does, without a large upfront commitment. In short, managed services trade some control for speed, simplicity, and lower risk.
Benefits of AWS infrastructure for GenAI
AWS infrastructure gives generative AI applications four benefits the exam names: security, compliance, responsibility and safety.
Security: your data is protected with encryption in transit and at rest, you control access with AWS Identity and Access Management (IAM), and private connectivity (AWS PrivateLink) keeps traffic off the public internet. Amazon Bedrock does not store or log your prompts and completions (model invocation logging is an opt-in setting you turn on yourself, sending logs to your own destination), does not use them to train any models, and does not share them with the model providers; the providers have no access to your data, and your content stays within your control.
Compliance: AWS services operate within a wide range of compliance programs and certifications, which helps you meet regulatory obligations in regulated industries without building that foundation yourself.
Responsibility: AWS provides tools that put safeguards around model behaviour. Amazon Bedrock Guardrails let you define denied topics the application must refuse to discuss, content filters for harmful categories, word filters, and sensitive-information filters that block or mask personally identifiable information such as phone numbers, applied to both prompts and responses and across the models you use.
Safety: under the AWS shared responsibility model, AWS secures the underlying infrastructure while you configure access, data and safeguards, and private networking and monitoring let you run generative AI within your own secure environment rather than sending data to an unmanaged third party.
Security and governance are covered in depth in a later domain; here, connect each benefit to the idea that AWS gives you a trusted foundation to build generative AI on.
Cost tradeoffs: token pricing, provisioned throughput, and on-demand
Most Amazon Bedrock inference is priced per token: on-demand, you pay for the input tokens you send and the output tokens the model generates, at per-token rates that depend on the model, with no per-call fee and no hourly endpoint charge. That gives you three cost levers: prompt length, response length (asking only for what you need and setting a maximum output token limit) and model size, since larger, more capable models cost more per token. When a smaller model meets the quality target, it is the cheaper choice.
Prompt caching lowers cost and latency only when the same prompt prefix repeats across requests, such as long instructions or a shared document; it does nothing for text that is unique to each request.
| Option | How you pay | Fits |
|---|---|---|
| On-demand | Per token, no commitment | Variable, spiky, low-volume or experimental traffic |
| Provisioned Throughput | Reserved model units billed hourly; no commitment, 1-month or 6-month terms (longer terms cost less per hour) | Steady, high-volume traffic needing guaranteed capacity |
Provisioned Throughput reserves a fixed amount of model capacity, which gives predictable throughput and a lower effective cost per request when traffic is steady and heavy, but you pay for the capacity whether or not you use it.
Custom models add costs that prompting a base model does not have: customization (fine-tuning) is billed by the tokens processed during training (roughly training data size multiplied by the number of epochs), each custom model you keep incurs a monthly storage charge, and inference on it runs through Provisioned Throughput or, for supported models, an on-demand custom model deployment billed per token. Because fine-tuning bakes knowledge in at training time, facts that change often would mean paying to retrain repeatedly; grounding a base model in a knowledge base keeps answers current without those recurring costs.
Trading responsiveness and performance for cost
On Bedrock you can pay more for faster responses or pay less by accepting slower ones, using service tiers and batch inference.
- Service tiers apply to on-demand, synchronous calls. Priority costs a premium for faster, more consistent responses, which suits latency-sensitive, customer-facing work. Standard is the normal price. Flex is discounted for work that tolerates slower and more variable processing but still needs individual synchronous API calls. (A separate Reserved tier reserves capacity ahead of time; Priority is the fastest of the on-demand tiers, not a capacity guarantee.)
- Batch inference runs a large set of prompts asynchronously: Bedrock reads them from Amazon S3 and writes the results back. For supported models it costs about 50% less than on-demand, but it is not real time, so it fits jobs that can wait hours, not interactive features.
| Workload | Cost-effective choice |
|---|---|
| Live, latency-critical, budget for speed | Priority tier |
| Synchronous calls that can tolerate slower replies | Flex tier |
| Large volume, results needed later, lowest price | Batch inference |
| Steady, heavy, predictable traffic | Provisioned Throughput |
Availability, redundancy, and regional coverage
Model availability on Bedrock differs by AWS Region, and capacity in one Region is finite, so availability, redundancy and regional coverage are cost and design decisions. Check that the model you need is offered in the Region where you run, and remember that running closer to your users can reduce latency.
Cross-Region inference addresses throttling and availability without infrastructure or routing code: you call the model through an inference profile, and Bedrock routes each request to a Region in that profile with spare capacity, at no commitment.
- A geographic inference profile (for example US, EU or APAC) routes only among Regions in that geography, so it adds capacity while respecting a data-residency rule such as EU-only processing.
- A global inference profile can route to supported Regions worldwide, giving the most available throughput, and suits workloads with no data-residency requirement.
Other ways to handle peaks behave differently. Raising an on-demand quota through Service Quotas, or sending requests at the Priority tier, still depends on the home Region's capacity. Provisioned Throughput guarantees capacity but requires paying for reserved model units, and building your own multi-Region failover adds routing logic you must maintain.
Bedrock or SageMaker AI? A decision guide
Choose Amazon Bedrock when the team wants to consume foundation models quickly with little machine learning expertise, and Amazon SageMaker AI when it needs to build, train or host models with full control; many organizations use both.
| Consideration | Amazon Bedrock | Amazon SageMaker AI |
|---|---|---|
| What it is | Managed, serverless access to foundation models via one API | Full platform to build, train, and host your own models |
| Control | Less; AWS manages the infrastructure | More; you configure training, instances, and endpoints |
| Expertise needed | Low; call an API | Higher; machine learning and operations skills |
| Customization | Adapt an existing base model; import weights trained elsewhere | Anything, including training from scratch |
| Best for | Adding GenAI features fast using existing FMs | Custom models, deep fine-tuning, specialized hosting |
Scenario: a retail company wants to add a customer-service chatbot to its website in the next few weeks. It has no machine learning team and wants to answer questions using its existing help-center documents. Amazon Bedrock is the right choice: the team can call a foundation model through the API and use Knowledge Bases to ground answers in the help-center content, shipping quickly with minimal expertise. Later, the same company needs a specialized model trained on its own proprietary product data, with full control over training and hosting to meet strict internal requirements. That is a job for Amazon SageMaker AI. Many organizations use Bedrock first for speed, then adopt SageMaker AI where a custom model earns its extra effort.
Tip. Expect scenario questions that describe a need and its constraints, then ask for the matching service or option. Know each service's job well enough to reject near-twins: Bedrock versus SageMaker AI and JumpStart (who chooses the instances, and whether you can train from scratch), Custom Model Import versus Bedrock Marketplace, Amazon Quick versus Kiro, and Strands Agents versus AgentCore. Cost questions turn on the workload's pattern: per-token levers (model size, output length, prompt caching for repeated prefixes), on-demand versus Provisioned Throughput, Priority or Flex tiers versus batch inference, the extra charges of custom models, and geographic versus global cross-Region inference when residency rules apply.
- Amazon Bedrock is a fully managed, serverless service for accessing foundation models from multiple providers through one API; with the Converse API, switching models is a model-ID change.
- Amazon SageMaker AI builds, trains (including from scratch), fine-tunes and hosts models on instances you choose; SageMaker JumpStart starts you from pre-trained models deployed to your own SageMaker endpoints.
- Bedrock customization only adapts an existing base model; Custom Model Import serves weights trained elsewhere serverlessly; Bedrock Marketplace models run on endpoints you size and cannot be fine-tuned in Bedrock.
- Amazon Quick is the AI assistant and workspace for employees (successor to Amazon Q Business); Kiro is the agentic, spec-driven development environment for developers.
- Strands Agents is an open-source SDK to write agents; Amazon Bedrock AgentCore runs and operates agents from any framework with managed runtime, memory, identity, gateway and observability.
- Bedrock does not store, log or train on prompts and completions or share them with model providers; Guardrails add denied topics, content and word filters, and PII masking.
- On-demand is priced per input and output token; Provisioned Throughput reserves capacity billed hourly (no commitment, 1 or 6 months); custom models add training and monthly storage charges.
- Trade speed for cost with service tiers (Priority, Standard, Flex) and batch inference (about 50% cheaper, not real time); add capacity with geographic or global cross-Region inference profiles.
Frequently asked questions
What is the difference between Amazon Bedrock and Amazon SageMaker AI?
Amazon Bedrock is a fully managed, serverless service that lets you access foundation models from multiple providers through a single API, so you can add generative AI quickly with little machine learning expertise. Amazon SageMaker AI is a broader platform for building, training (including from scratch), fine-tuning, and hosting your own models on instances and endpoints you configure. Choose Bedrock for speed and simplicity, and SageMaker AI when you need to build or deeply customize a model yourself.
How is SageMaker JumpStart different from Amazon Bedrock?
Both give you pre-trained foundation models, but SageMaker JumpStart deploys the model to a SageMaker AI endpoint in your own account, on an instance type you choose and pay for while it runs, and you can fine-tune it there. Amazon Bedrock serves its models serverlessly, so you never choose or manage instances and you pay per use.
What replaced Amazon Q Business and Amazon Q Developer?
Amazon Quick is the successor to Amazon Q Business, which is no longer available to new customers; it is an AI assistant and workspace that lets employees get answers from company data and connected apps, create research reports and automate routine tasks. For developers, AWS recommends Kiro, an agentic, spec-driven development environment, as the Amazon Q Developer IDE plugins reach end of support on 30 April 2027.
What is the difference between Strands Agents and Amazon Bedrock AgentCore?
Strands Agents is an open-source SDK for writing an AI agent in code by giving it a model, a prompt and tools. Amazon Bedrock AgentCore is a set of managed services for running and operating agents in production, with a runtime that isolates each user's session, memory, identity, a tool gateway and observability. AgentCore is framework-agnostic, so it can host agents written with Strands Agents, LangGraph, CrewAI or other frameworks without a rewrite.
When should you use Provisioned Throughput instead of on-demand pricing in Bedrock?
Use Provisioned Throughput when traffic is steady, high-volume and predictable, because reserved model units billed hourly give guaranteed capacity and a lower effective cost per request; terms are no commitment, 1 month or 6 months. Use on-demand pay-per-token pricing for variable, spiky, low-volume or experimental workloads. Supported fine-tuned models can also run on demand through a custom model deployment, so Provisioned Throughput is not the only way to use a custom model.
How does batch inference lower Amazon Bedrock costs?
Batch inference runs a large set of prompts asynchronously: Bedrock reads them from Amazon S3 and writes the results back. For supported models it costs about 50% less than on-demand inference, but results are not returned in real time, so it suits large jobs that can wait rather than interactive features. For synchronous calls that can tolerate slower replies, the discounted Flex service tier is the alternative.
What is cross-Region inference in Amazon Bedrock?
Cross-Region inference lets you call a model through an inference profile so that Amazon Bedrock routes each request to a Region in the profile with available capacity, which reduces throttling and improves availability with no routing code or commitment. A geographic profile, such as EU or US, keeps processing within that geography for data-residency needs, while a global profile can use supported Regions worldwide for the most throughput.
Does Amazon Bedrock use my prompts to train models?
No. Amazon Bedrock does not store or log your prompts and completions unless you turn on model invocation logging yourself, does not use them to train any models, and does not share them with the model providers, who have no access to your data. Your data is encrypted in transit and at rest, and you control access to it with IAM.
Source
This lesson covers the "Fundamentals of GenAI" domain of the official AIF-C01 exam guide. Vendors revise their guides — check the source for the current version.
- AWS Certified AI Practitioner (AIF-C01) exam guide — Amazon Web Services
Sign up free to mark lessons complete, bookmark topics and track your exam readiness.