Practice Exams:

Amazon

Amazon AWS AIP-C01: Vector Search for Bedrock RAG

Home/Amazon aip c01 vector search for bedrock ragVector search in Amazon Bedrock RAG converts a user query and source content into embeddings so semantically similar chunks can be retrieved even when they do not share the same exact words. Bedrock Knowledge Bases can connect to several supported vector stores and can quick-create some of them. Current options include Amazon OpenSearch Serverless, Aurora PostgreSQL Serverless, Neptune Analytics, Amazon S3 Vectors, and other supported stores depending on Region and knowledge-base configuration.On this pageChoose embeddings for the corpusChoose vector type deliberatelyChoose the vector…

Read More

Amazon AWS AIP-C01: Troubleshooting Bedrock Applications

Home/Amazon aip c01 troubleshooting bedrock applicationsTroubleshooting Amazon Bedrock applications is easier when the system is decomposed into layers: client and API edge, IAM, Bedrock runtime, model behavior, retrieval, agent orchestration, tool execution, networking, and downstream data. A single user-visible symptom such as “the answer failed” can be caused by HTTP validation, missing model permission, throttling, stale knowledge, tool errors, or simply a model that produced an unhelpful response.On this pageStart with the exact failing operationClassify the HTTP error firstCheck IAM before changing the promptUse CloudWatch runtime metrics for patternsEnable invocation…

Read More

Amazon AWS AIP-C01: Testing GenAI Applications on AWS

Home/Amazon aip c01 testing genai applications on awsTesting a generative AI application on AWS requires evidence at several layers: deterministic application logic, prompt and model behavior, retrieval quality, agent tool use, safety, latency, cost, IAM boundaries, and production observability. A green unit-test suite is necessary but insufficient when model output is probabilistic and the application can call external tools or retrieve mutable knowledge.On this pageDefine the business outcome firstKeep deterministic tests around deterministic codeUse Bedrock model evaluation for response qualityUse AgentCore Evaluations for agent behaviorUse dataset evaluation carefullyTest RAG retrieval…

Read More

Amazon AWS AIP-C01: Securing Bedrock with PrivateLink

Home/Amazon aip c01 securing bedrock with privatelinkAmazon Bedrock can be accessed through interface VPC endpoints powered by AWS PrivateLink. That gives workloads inside a VPC a private path to Bedrock control-plane, runtime, Agents build-time, Agents runtime, and related supported endpoints without depending on an internet gateway, NAT gateway, Site-to-Site VPN, or Direct Connect simply to reach the service. Private connectivity can reduce public exposure and data-egress paths, but it does not replace IAM, endpoint policy, DNS, logging, or service-specific authorization.On this pageChoose the Bedrock endpoint by API surfaceEnable private DNS…

Read More

Amazon AWS AIP-C01: Secrets Management for GenAI Apps

Home/Amazon aip c01 secrets management for genai appsGenerative AI applications often integrate with APIs, databases, SaaS tools, vector stores, GitHub, ticketing systems, payment services, and other systems that still require secrets. AWS recommends storing credentials and other sensitive values in AWS Secrets Manager rather than source code, images, prompts, environment files, or copied CI/CD variables. Secrets Manager encrypts secrets at rest with AWS KMS and returns them over TLS when authorized applications retrieve them.On this pageUse roles before secretsKeep secrets out of prompts and logsUse least-privilege secret accessChoose the KMS…

Read More

Amazon AWS AIP-C01: RAG Architecture on Amazon Bedrock

Home/Amazon aip c01 rag architecture on amazon bedrockRAG architecture on Amazon Bedrock connects a user question to authoritative external evidence before a foundation model generates the answer. Amazon Bedrock Knowledge Bases can manage ingestion, embeddings, vector storage integration, retrieval, metadata filters, reranking, citations, structured-data queries, and Retrieve-and-Generate workflows, while applications can also use lower-level retrieval APIs when they need more control.On this pageStart with the authoritative corpusChoose parsing and chunking togetherChoose the vector store by workloadUse metadata and hybrid searchRerank valid but poorly ordered resultsChoose Retrieve or managed generationSecure the…

Read More

Amazon AWS AIP-C01: Protecting RAG from Data Poisoning

Home/Amazon aip c01 protecting rag from data poisoningRAG data poisoning occurs when malicious, misleading, unauthorized, or low-quality content enters the retrieval corpus and influences model responses later. The attack can be obvious, such as a fake policy document, or subtle, such as hidden text that contains an indirect prompt injection designed to make the model ignore developer instructions or misuse a tool.On this pageStart with trusted-source policyScan content before embeddingPreserve provenance and ownershipUse metadata as an eligibility boundaryDetect indirect prompt injectionKeep tools away from retrieval authorityEvaluate poisoned and conflicting casesDesign…

Read More

Amazon AWS AIP-C01: Prompt Management on Amazon Bedrock

Home/Amazon aip c01 prompt management on amazon bedrockAmazon Bedrock Prompt management turns a prompt from an application string into a versioned AWS resource with variables, model or inference configuration, prompt variants, testing, comparison, and deployable versions. This matters because prompts can change production behavior as materially as code, yet informal teams often edit them directly in notebooks or environment variables without review or rollback.On this pageKeep the working draft mutableUse variables instead of copied promptsCompare variants during developmentCreate versions for productionVersion model configuration with the promptUse prompt caching where supportedKeep…

Read More

Amazon AWS AIP-C01: Multi-Agent Workflows on AWS

Home/Amazon aip c01 multi agent workflows on awsMulti-agent workflows divide a complex task among specialized agents instead of asking one large agent to understand every domain, tool, and permission boundary. On AWS, the current architectural center for new agent development is Amazon Bedrock AgentCore. AWS moved Amazon Bedrock Agents into maintenance mode as “Bedrock Agents Classic” on July 30, 2026, and recommends AgentCore for new agent workloads and future migration.On this pageSplit agents by real responsibilityUse AgentCore for new designsChoose supervisor or router behaviorUse agents as toolsKeep identities separateShare context…

Read More

Amazon AWS AIP-C01: Latency Tuning for Bedrock Apps

Home/Amazon aip c01 latency tuning for bedrock appsLatency in a Bedrock application is the sum of several components: authentication and API edge time, model queueing, prompt processing, generation, retrieval, reranking, tool calls, agent orchestration, network hops, and client rendering. Optimizing only the model invocation can produce little user-visible improvement when the real delay is a large retrieval query or three sequential agent actions.On this pageMeasure time to first token separatelyMeasure full task latencyReduce unnecessary prompt tokensUse prompt caching for repeated contextUse cross-Region inference for capacity pressureUse latency-optimized inference cautiouslyParallelize independent…

Read More

Amazon AWS AIP-C01: IAM for GenAI Applications

Home/Amazon aip c01 iam for genai applicationsIAM for generative AI applications is the boundary between “the model can reason about this operation” and “the AWS account actually permits this operation.” Amazon Bedrock, Knowledge Bases, AgentCore, Lambda tools, vector stores, S3 sources, KMS keys, Secrets Manager, and application services can each require different identities and permissions. Collapsing them into one broad execution role makes agent behavior hard to contain and harder to audit.On this pageSeparate human and workload identitiesScope Bedrock model invocationProtect inference profiles and routing choicesGive retrieval only the data…

Read More

Amazon AWS AIP-C01: From GenAI Prototype to Production on AWS

Home/Amazon aip c01 from genai prototype to production on awsA generative AI prototype proves that a model can produce a useful response. A production system has to prove far more: the right user can access it, the right model and prompt are deployed, data is governed, retrieval is current, tools are authorized, latency is acceptable, cost is bounded, failures are observable, releases are reproducible, and the application can recover when a dependency fails.On this pageFreeze the use case before scalingMove identity and data out of the notebookPut a stable API…

Read More

Amazon AWS AIP-C01: Cost Control for Bedrock Workloads

Home/Amazon aip c01 cost control for bedrock workloadsAmazon Bedrock cost is the result of workload shape, not one advertised token price. Model choice, input and output length, retrieval, reranking, agents, tool loops, cross-Region routing, prompt caching, provisioned capacity, evaluation jobs, embedding generation, and supporting AWS services can all contribute to the cost of one successful business task.On this pageMeasure tokens by scenarioRight-size the modelReduce repeated input with prompt cachingUse cross-Region inference for capacity, not blindlyConsider Provisioned Throughput for predictable demandControl retrieval and agent fan-outUse quotas as financial guardrailsAttribute spend to…

Read More

Amazon AWS AIP-C01: Chunking Strategies for Bedrock

Home/Amazon aip c01 chunking strategies for bedrockChunking is one of the most consequential design choices in a Bedrock Knowledge Base because the retriever does not search entire documents as one unit. During ingestion, Bedrock parses content, splits it into chunks, converts those chunks into embeddings, and writes the vectors to the configured store while preserving a mapping back to the source. The chunk becomes the basic retrieval unit the application later asks the model to reason over.On this pageStart with the questions users askUse default chunking as a baselineUse fixed-size…

Read More

Amazon AWS AIP-C01: Caching Patterns for GenAI on AWS

Home/Amazon aip c01 caching patterns for genai on awsCaching in generative AI is not one technique. An AWS application can cache repeated prompt prefixes at the Amazon Bedrock model layer, cache retrieval or tool results in an application store, cache rendered API responses where semantics allow it, and reuse static reference context so the model does not repeatedly process the same tokens. Each cache has a different freshness, privacy, and invalidation model.On this pageCache stable prompt prefixesPlace cache points deliberatelyChoose TTL by business freshnessCache retrieval results only when eligibility is…

Read More