CertKeen
AWSBeta · expanding bank

AWS Generative AI Developer Professional (AIP-C01) Practice Exam

Practice questions for the AWS Certified Generative AI Developer - Professional (AIP-C01) exam, covering foundation model integration, data management and compliance with Amazon Bedrock model selection, the Converse API, cross-Region inference, SageMaker AI deployment of fine-tuned and LoRA models, data validation pipelines, Bedrock Knowledge Bases with chunking, embeddings, hybrid search, reranking, metadata filtering and vector stores such as OpenSearch, Aurora pgvector and S3 Vectors, and Prompt Management and Prompt Flows; implementation and integration with Strands Agents, Amazon Bedrock AgentCore Runtime, Memory, Gateway and Identity, MCP servers, Step Functions agent workflows, Provisioned Throughput, streaming, resilient and routed FM APIs, and enterprise and event-driven integration; AI safety, security and governance with Bedrock Guardrails, contextual grounding and Automated Reasoning checks, PII protection, PrivateLink, KMS, audit logging, model cards and AgentCore Policy; operational efficiency with token and cost optimization, prompt caching, batch inference, service tiers, intelligent prompt routing, CloudWatch metrics, invocation logging and agent observability; and testing, validation and troubleshooting with Bedrock evaluations, RAG and agent evaluations, canary rollouts, user feedback and diagnosis of context, retrieval and prompt issues. Every question includes a written explanation.

100 questions · 12 free preview

$19 · lifetime access
Try free sample

Studying more than one? All AWS exams for $29 · every exam for $79

Free sample questions

  1. Sample · question 1 · Semantic chunking breakpoint threshold

    Quenby Archives uses semantic chunking for a knowledge base of oral-history transcripts. Reviewers say the chunks are too small and split single stories into many pieces. Which hyperparameter change will tend to produce fewer, larger chunks?

    • A.Lower the breakpoint percentile threshold
    • B.Raise the breakpoint percentile thresholdcorrect
    • C.Reduce the maximum tokens per chunk
    • D.Switch the data source to default chunking

    Why: In semantic chunking, the breakpoint percentile threshold sets how dissimilar neighboring sentences must be before a split is made; a higher threshold requires more distinct sentences to split, which gives fewer and typically larger chunks. Lowering it creates more splits. Reducing maximum tokens caps chunk size lower. Default chunking uses roughly 300-token chunks and ignores meaning.

    Open this question on its own page →
  2. Sample · question 2 · Word filters for competitor names

    A marketing assistant at Velloway Outdoor must never mention the names of three rival brands in its replies, even in passing. The names are ordinary proper nouns that do not form a broader subject area. Which guardrail feature is the most direct fit?

    • A.A denied topic describing outdoor equipment retail
    • B.A custom word filter listing the three brand namescorrect
    • C.A content filter for the Misconduct category
    • D.A contextual grounding check with high thresholds

    Why: Custom word filters block exact matches of specific words or phrases that you list, which suits a short list of brand names. A denied topic about outdoor retail would block the assistant's core subject. The Misconduct filter targets criminal activity. Grounding checks test whether a response is supported by a source, not which names it contains.

    Open this question on its own page →
  3. Sample · question 3 · AgentCore Code Interpreter sandbox

    An analytics agent at Tollgate Brewing writes Python to calculate sales trends from uploaded CSV files. Security forbids running model-generated code on the agent's own host. Which capability lets the agent execute that code safely?

    • A.AgentCore Code Interpreter, which runs code in an isolated sandboxcorrect
    • B.Amazon Bedrock Prompt Management, which validates code in prompt variables
    • C.AWS CodeBuild, which runs code each time a user sends a chat message
    • D.Amazon Comprehend, which interprets Python and returns the results

    Why: AgentCore Code Interpreter provides an isolated sandbox where agents can run code in languages such as Python and JavaScript, keeping generated code away from the agent's host. Prompt Management stores templates. CodeBuild is a CI build service, not an interactive tool sandbox for agents. Comprehend is a natural language processing service and does not execute code.

    Open this question on its own page →
  4. Sample · question 4 · AgentCore Browser for portals without APIs

    Ostler Freight's agent must check container status on a partner's legacy web portal that has no API, which means logging in, navigating pages and reading a status table. Which managed capability lets the agent interact with the site?

    • A.Amazon Bedrock Data Automation
    • B.Amazon CloudFront Functions
    • C.Amazon Bedrock AgentCore Browsercorrect
    • D.AWS Transfer Family

    Why: AgentCore Browser gives agents a managed, isolated cloud browser to navigate websites, fill forms and extract information, and works with automation frameworks such as Playwright. Data Automation extracts content from documents and media you supply. CloudFront Functions run lightweight code at the edge for your own distributions. Transfer Family moves files over SFTP and similar protocols.

    Open this question on its own page →
  5. Sample · question 5 · SCP rules for global inference profiles

    Pemberley Hotels' organization uses a service control policy that denies all actions unless aws:RequestedRegion is one of its approved Regions. After a team switches to a global cross-Region inference profile, its calls are denied. What must the SCP allow for global profiles to work?

    • A.Requests from the root user of each member account
    • B.Requests that carry a guardrail identifier header
    • C.Requests to the bedrock-agent service endpoint only
    • D.Requests whose aws:RequestedRegion is unspecifiedcorrect

    Why: Global cross-Region inference does not target a single named Region, so the requested Region is evaluated as unspecified; SCPs that restrict Regions must allow that value for global profiles. Root-user access is unrelated and discouraged. A guardrail identifier does not affect Region checks. bedrock-agent is the build-time API, not the inference endpoint.

    Open this question on its own page →
  6. Sample · question 6 · Choosing a 1-hour prompt cache TTL

    In Kelsall Tax's assistant, customers load a long tax guide into a session and often return with follow-up questions 15 to 40 minutes later. The model supports both 5-minute and 1-hour cache TTLs. How can the team keep the guide cached between those follow-ups?

    • A.Leave the TTL unset, because the default keeps entries for a full day
    • B.Send a dummy request every 30 minutes with a 5-minute TTL
    • C.Set the ttl field to 1h on the cache checkpoint after the guidecorrect
    • D.Store the guide in a guardrail so the model reads it from there

    Why: Cache entries expire if not hit within the TTL; when follow-ups arrive after more than five minutes, the 1-hour TTL, set with the ttl field on the checkpoint for supported models, keeps the prefix available. With no ttl the default is five minutes. Pinging every 30 minutes would miss a 5-minute window. Guardrails filter content and do not hold prompt context.

    Open this question on its own page →
  7. Sample · question 7 · Batch job completion events

    Rookwood Data runs Amazon Bedrock batch inference jobs that take several hours. A script currently polls the job status every minute to start the next processing step. The team wants an event-driven trigger instead. Which approach fits?

    • A.An S3 Lifecycle rule on the output bucket that runs the next step after the job finishes
    • B.An Amazon SNS topic subscribed to the model's InvocationLatency metric for the batch job
    • C.A Step Functions Wait state of exactly 24 hours placed after each job is submitted
    • D.An EventBridge rule on Bedrock batch job state-change eventscorrect

    Why: Amazon Bedrock emits job state-change events to EventBridge, so a rule can match completion and start downstream processing without polling. Lifecycle rules transition or expire objects and do not run workflows. SNS topics do not subscribe to metrics directly, and latency does not indicate job completion. A fixed 24-hour wait wastes time or starts too early.

    Open this question on its own page →
  8. Sample · question 8 · Evaluating responses from external models

    Marlowe Media generates summaries with a model hosted outside AWS and wants Amazon Bedrock to judge their quality against references using an LLM-as-a-judge evaluation. Which option allows this without moving the model to AWS?

    • A.Import the external model into Bedrock with Custom Model Import before any evaluation can run
    • B.Grant Bedrock network access to the external model's endpoint so it calls the model during evaluation
    • C.Include the externally generated responses in the evaluation dataset as your own inference responsescorrect
    • D.Translate the summaries into the Converse API format and run them through batch inference first

    Why: Bedrock evaluations can score responses you supply in the prompt dataset (bring your own inference responses), so models hosted anywhere can be judged without being invoked by Bedrock. Importing the model is unnecessary. Bedrock evaluation jobs do not call arbitrary external endpoints. Batch inference generates new responses rather than evaluating existing ones.

    Open this question on its own page →
  9. Sample · question 9 · Guardrail versions for production

    Caxton Insurance edits its guardrail's working draft almost daily while testing new filters. Production traffic sometimes changes behavior unexpectedly as a result. Which TWO actions stabilize production? (Select TWO.)

    • A.Lower every content filter strength in the draft so that edits matter less
    • B.Duplicate the guardrail into each production account by hand every day
    • C.Create a numbered guardrail version once a configuration is approvedcorrect
    • D.Reference that numbered version, not DRAFT, in production inference requestscorrect
    • E.Attach the working draft to a CloudWatch alarm on InvocationLatency

    Why: A guardrail's working draft is mutable, while each numbered version is an immutable snapshot; production calls that name a specific version are unaffected by later draft edits. Weakening the draft filters reduces protection and still leaves production on a changing configuration. Manual daily copies are error-prone. A latency alarm does not prevent configuration changes.

    Open this question on its own page →
  10. Sample · question 10 · GraphRAG with Neptune Analytics

    Investigators at Thornbury Compliance ask questions that depend on relationships across documents, such as which suppliers share directors with sanctioned firms. Plain vector retrieval returns isolated passages that miss these links. Which knowledge base option is designed for this?

    • A.GraphRAG with an Amazon Neptune Analytics graphcorrect
    • B.S3 Vectors with a larger number of retrieved results
    • C.Fixed-size chunking with 50% overlap between chunks
    • D.Amazon ElastiCache as a cache in front of retrieval

    Why: Bedrock knowledge bases with Neptune Analytics (GraphRAG) combine vector search with a graph of entities and relationships extracted from documents, helping answer questions that connect facts across sources. More results from a vector-only store still lack explicit links. Overlap between chunks does not model relationships. Caching speeds repeat queries but adds no reasoning over connections.

    Open this question on its own page →
  11. Sample · question 11 · Returning tool results in Converse

    A developer at Ainsley Grocers calls the Converse API with a toolConfig. The model responds with stopReason tool_use and a toolUse block for a get_stock tool. After running the function, how should the developer continue the conversation?

    • A.Send an assistant message with the function output as plain text and no tool identifier
    • B.Send a user message with a toolResult block that has the same toolUseIdcorrect
    • C.Start a new Converse call with only the function output in the system field
    • D.Put the function output in inferenceConfig and resend the original user message

    Why: In Converse tool use, the application executes the requested tool and returns the output in a toolResult content block within a user message, referencing the toolUseId from the model's request, along with the prior turns. Assistant-role plain text breaks the protocol. A fresh call without history loses context. inferenceConfig holds generation parameters only.

    Open this question on its own page →
  12. Sample · question 12 · pgvector iterative scans with filters

    Hexley Realty's knowledge base uses Aurora PostgreSQL with pgvector and an HNSW index. Retrieval requests with selective metadata filters, such as one postcode, return far fewer results than requested even though matching chunks exist. Which change addresses this?

    • A.Enable HNSW iterative index scans so filtered queries keep scanningcorrect
    • B.Drop the GIN index on the custom metadata column so that filters run without an index
    • C.Lower numberOfResults to one so that the filtered query always returns a full result set
    • D.Switch the embeddings model to a version with more dimensions and re-embed all documents

    Why: With pgvector, filtering is applied after the HNSW index scan, so selective filters can leave too few results; iterative index scans (pgvector 0.8.0 or later) keep scanning until enough filtered rows are found. Dropping the GIN index slows metadata filtering. Requesting one result hides the problem. Changing embedding dimensions does not alter how filters interact with the index scan.

    Open this question on its own page →

Like the sample?

Other practice exams