Practice Exams:

AI & Machine Learning

Amazon AWS AIP-C01: Testing GenAI Applications on AWS

Testing 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. Amazon Bedrock provides model and RAG evaluation capabilities, while Amazon Bedrock AgentCore Evaluations now provides dedicated agent evaluation. AWS release notes state that AgentCore Evaluations became generally available in March 2026, with built-in evaluators,…

Read More

Amazon AWS AIP-C01: Securing Bedrock with PrivateLink

Amazon 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. The current Bedrock documentation lists separate endpoint service names for bedrock, bedrock-runtime, bedrock-agent, bedrock-agent-runtime, and newer…

Read More

Amazon AWS AIP-C01: Secrets Management for GenAI Apps

Generative 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. The best secret, however, is often the one the application never creates. IAM roles, workload identity, Bedrock AgentCore Identity, and service-native authentication can…

Read More

Amazon AWS AIP-C01: RAG Architecture on Amazon Bedrock

RAG 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. The architecture decision is not simply “use a Knowledge Base.” Teams still need to choose source ownership, parsing, chunking, embeddings, vector storage, retrieval mode, metadata, authorization, reranking, prompt construction, model, citations, evaluation, refresh, and security. Managed…

Read More

Amazon AWS AIP-C01: Protecting RAG from Data Poisoning

RAG 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. AWS security guidance emphasizes that RAG security must cover the ingestion pipeline as well as model inference. Bedrock Guardrails can detect supported direct prompt-attack patterns at inference time, but poisoned external content can enter earlier…

Read More

Amazon AWS AIP-C01: Prompt Management on Amazon Bedrock

Amazon 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. Current Bedrock Prompt management uses a mutable draft while the team iterates. When the prompt is ready for production, a version creates a snapshot that applications can reference. The console can compare versions…

Read More

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

Multi-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. That platform shift matters for multi-agent design. Bedrock Agents Classic still supports supervisor and collaborator agents for existing customers, but AWS’s current maintenance-mode guidance says advanced multi-agent…

Read More

Amazon AWS AIP-C01: Latency Tuning for Bedrock Apps

Latency 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. Amazon Bedrock provides several latency-related options, including streaming APIs, prompt caching, cross-Region inference, inference-profile routing, and a latency-optimized inference feature that AWS currently documents as preview for supported models and Regions. The useful approach…

Read More

Amazon AWS AIP-C01: IAM for GenAI Applications

IAM 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. The durable principle is least privilege with separate identities for humans, deployment automation, application runtime, retrieval, and high-impact tools. AWS Identity and Access Management…

Read More

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

A 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. AWS provides managed services that reduce infrastructure work, but the production transition is still an application-engineering program. Bedrock handles model access and managed GenAI capabilities; API…

Read More

Amazon AWS AIP-C01: Cost Control for Bedrock Workloads

Amazon 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. The useful FinOps unit is therefore not “cost per API call.” It is cost per completed outcome: resolved support case, generated report, accepted code change, processed document, or completed agent workflow. Bedrock gives teams several technical levers, but those levers…

Read More

Amazon AWS AIP-C01: Chunking Strategies for Bedrock

Chunking 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. Amazon Bedrock currently supports default, fixed-size, hierarchical, semantic, and no-chunking choices for text, with multimodal content handled differently according…

Read More

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

Caching 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. Amazon Bedrock currently provides prompt caching for supported models. Explicit prompt caching lets applications define cache checkpoints for reusable prompt content, while some model families also…

Read More

Amazon AWS AIP-C01: CI/CD for GenAI on AWS

CI/CD for generative AI on AWS has to version more than application code. Production behavior can change through prompts, foundation-model identifiers, inference profiles, Guardrails, Knowledge Bases, agent instructions, action groups, embedding models, retrieval settings, evaluation datasets, Lambda tools, and infrastructure. A release process that tracks only the web application can leave the most important AI behavior unreviewed. Amazon Bedrock Prompt management provides versioned prompts and variants, Bedrock resources are available through APIs and infrastructure-as-code patterns, and AWS delivery services can automate deployment. The engineering goal is one evidence-backed release path…

Read More

Amazon AWS AIP-C01: Bedrock Model Evaluation

Amazon Bedrock evaluations provide several ways to compare model and RAG behavior with repeatable evidence. Current Bedrock supports programmatic model evaluations, human-based evaluation jobs, model evaluation with an LLM as judge, and LLM-based evaluation of knowledge bases or external RAG sources. The platform can score built-in or custom metrics and store evaluation datasets and results in Amazon S3. The important engineering principle is that model evaluation should answer a product question: Which model meets the quality target? Did the new prompt reduce factual errors? Does the knowledge base retrieve the…

Read More