AIP-C01 sample questions with answers

10 free practice questions for the AWS Certified Generative AI Developer – Professional exam. Try each one, then open the answer to see why the right option wins and every other option loses.

Question 1Foundation Model Integration, Data Management, and Compliance

An engineer adds a reranking configuration to the Retrieve calls made by a production service. The same configuration works from the engineer's own console session against the same knowledge base, but the service receives an access denied error on every reranked request while unreranked requests continue to succeed. The knowledge base, the Region and the request body are otherwise identical. What is the most likely cause?

  1. A.

    Reranking is available only through the console and the AWS Management Console session is therefore the only context in which a reranker model can be applied to knowledge base results, so the service must replicate the reordering in application code.

  2. B.

    The reranker model must be enabled per knowledge base rather than per caller, and the engineer enabled it for the console session only, so the service will succeed once the same model is attached to the knowledge base resource itself.

  3. C.

    Reranked requests exceed the maximum request size for the Retrieve operation because the candidate documents are echoed back into the request, and the service is receiving an access denied error as the generic response to an oversized request body.

  4. D.

    The service's execution role has permission to retrieve from the knowledge base but not to invoke the reranker model, which is a separate model invocation that requires its own permission.

Show answer

Answer: D

Reranking is a separate model invocation and needs its own permission on the caller's role.

  • A. Reranking is available through the API on Retrieve and RetrieveAndGenerate, not only in the console.
  • B. The reranker is specified in the request configuration rather than attached to the knowledge base resource.
  • C. Candidate documents are not echoed into a knowledge base Retrieve request, and size limits do not return access denied.
  • D. The reranker is a separate model invocation requiring its own permission on the calling role.
Question 2Foundation Model Integration, Data Management, and Compliance

An internal asset-tracking system exposes only a REST API and a webhook that fires when a record changes. There is no file share and no repository that a connector understands, and the team does not want to maintain an intermediate Amazon S3 bucket purely to hold exported copies of records. It wants changed records to become retrievable within seconds of the webhook firing. Which integration design is the most direct?

  1. A.

    Replicate the asset-tracking database into Amazon Aurora PostgreSQL with the pgvector extension and let the knowledge base read directly from that replica, so that a webhook-driven write becomes visible to retrieval as soon as the replica applies it.

  2. B.

    Expose the asset-tracking REST API through the Web Crawler data source connector, pointing the crawler at the API's JSON endpoints and setting the crawl frequency high enough that changed records are picked up within the freshness window the team has committed to.

  3. C.

    Have the webhook write each changed record into an Amazon S3 bucket configured as the knowledge base data source, then start an ingestion job on a short schedule so that the bucket and the knowledge base stay close enough together for the team's freshness target.

  4. D.

    Connect a custom data source to the knowledge base and have the webhook handler submit each changed record through IngestKnowledgeBaseDocuments, which indexes it into the vector store in a single action with no sync step and no intermediate copy of the record staged in Amazon S3 beforehand.

Show answer

Answer: D

A custom data source plus IngestKnowledgeBaseDocuments indexes a changed record directly, with no sync step.

  • A. Aurora with pgvector is a vector store for the knowledge base, not a source it ingests records from.
  • B. The Web Crawler connector crawls web pages rather than arbitrary REST APIs.
  • C. Staging copies in S3 adds a second system of record and ties freshness to a sync schedule.
  • D. Custom data sources plus direct ingestion index a changed record immediately with no sync.
Question 3Foundation Model Integration, Data Management, and Compliance

A conversational assistant answers the first question in a session well and the follow-ups badly. Users type things like "and what about the 2025 version" or "why", and retrieval for those turns returns passages unrelated to the thread. The corpus, the chunking and the filters have all been checked and behave correctly for self-contained questions. Which TWO changes address the failure? (Choose TWO.)

Choose 2.

  1. A.

    Embed the entire conversation transcript as the retrieval query on every turn, so that all prior context contributes to the query vector and no rewriting logic has to be maintained by the application.

  2. B.

    Carry the resolved entities and filters of the thread in server-side session state and reapply them to each turn's retrieval request, so a follow-up inherits the scope the earlier turns established.

  3. C.

    Increase the maximum number of source chunks returned for follow-up turns so that the correct passage is statistically more likely to appear somewhere in a larger candidate set even though the query vector itself remains ambiguous.

  4. D.

    Lower the generation model's temperature on follow-up turns so that it is less likely to introduce subjects that were not present in the retrieved passages for that turn.

  5. E.

    Disable hybrid search on follow-up turns, because lexical matching on very short queries such as why amplifies the noise that a dense vector search would otherwise smooth out across the candidate set.

  6. F.

    Rewrite each follow-up into a self-contained standalone query using the conversation history before it is sent to retrieval, so that the text being embedded carries the subject the user omitted.

Show answer

Answer: B, F

Rewrite follow-ups into standalone queries, and carry the thread's resolved scope in server-side session state.

  • A. Embedding the whole transcript blurs the query vector with every earlier subject.
  • B. Server-side session state reapplies the thread's established scope as a filter on each turn.
  • C. A larger candidate set for an ambiguous query returns more irrelevant passages, not better ones.
  • D. Temperature affects generation wording, not which passages retrieval returns.
  • E. Search type is not the problem; the query text has no subject to match on either path.
  • F. Rewriting the follow-up into a standalone query restores the retrievable signal the user omitted.
Question 4Foundation Model Integration, Data Management, and Compliance

A security analyst reviewing model invocation logs for a knowledge base finds that the prompt sent to the model contains sample questions and answers about topics unrelated to the company's corpus. The analyst raises an incident, believing the service is leaking another customer's data into the company's prompts. The team has never customised its prompt template. What is the correct assessment?

  1. A.

    The prompt is the default system prompt, which includes generic example content as a static template provided by the service; it is not from another customer's data, and it can be overridden by supplying a custom text prompt template.

  2. B.

    The examples are retrieved chunks from a data source that was attached to the knowledge base earlier and has since been removed, and they persist because the data deletion policy was left at RETAIN when that data source was deleted from the knowledge base.

  3. C.

    The examples were generated by the orchestration step, which invents plausible question and answer pairs to calibrate the search query before retrieval, so they reflect this knowledge base's own corpus even though the subject matter looks unfamiliar to the analyst.

  4. D.

    Model invocation logging captures prompts from every knowledge base in the account in a shared log stream, so the unfamiliar examples belong to a different team in the same organisation and the incident should be scoped to that team's knowledge base rather than this one.

Show answer

Answer: A

The unfamiliar examples are part of the service's static default system prompt, not another customer's data.

  • A. The generic examples are part of the service's static default system prompt and are not customer data.
  • B. Retained vectors appear as retrieved passages with citations, not as examples in the system prompt.
  • C. The orchestration step rewrites the user's question into a search query; it does not invent example pairs.
  • D. Model invocation logs are scoped to the account's own invocations and are not shared across customers.
Question 5Foundation Model Integration, Data Management, and Compliance

A team runs its own retrieval stack: a custom similarity query against Amazon Aurora PostgreSQL with pgvector, plus a keyword query against a second store, merged in application code. It is not using Amazon Bedrock Knowledge Bases at all. Relevance ordering of the merged list is poor. The team would like to use an Amazon Bedrock reranker model without rebuilding its retrieval stack. What is possible?

  1. A.

    Call the Rerank operation directly through the Amazon Bedrock API, passing the user query and the merged list of documents, and use the reordered list the model returns.

  2. B.

    Register the two stores as data sources on an Amazon Bedrock knowledge base so that reranking applies to them, since a knowledge base can federate queries to external stores and rerank the combined result set on the team's behalf.

  3. C.

    Nothing directly, because reranker models in Amazon Bedrock are available only as a configuration on Retrieve and RetrieveAndGenerate, so the team must first migrate its corpus into a knowledge base before any reranking capability becomes available to it.

  4. D.

    Invoke the reranker model through the standard model invocation API with the merged list serialised into the prompt, because reranker models are ordinary text models that return a ranked list when asked to in natural language rather than being exposed through any dedicated operation.

Show answer

Answer: A

The Rerank operation takes a query and a list of documents directly, independently of Knowledge Bases.

  • A. Rerank takes the query plus the document list and returns them reordered by relevance.
  • B. Knowledge bases ingest data sources; they do not federate live queries to external stores.
  • C. The Rerank operation is callable directly and does not require a knowledge base.
  • D. Reranker models are exposed through a dedicated operation, not as free-text prompting.
Question 6Foundation Model Integration, Data Management, and Compliance

A firm's document library already encodes who may read each document through the repository's own permissions, and legal insists an assistant must never surface a passage to a user who could not open the source document. The team has been told that everything synced into a knowledge base becomes retrievable by any principal holding the retrieve permission on it. Which approach meets the legal requirement with the least bespoke code?

  1. A.

    Build a post-retrieval filter in the application that calls the source repository for each returned passage, checks the caller against the document's permissions, and discards passages the caller may not see before assembling the prompt for the generation model.

  2. B.

    Encrypt each document with a different AWS KMS key and grant users decrypt permission only for the documents they may read.

  3. C.

    Use a managed knowledge base with access control list awareness enabled, so the source repository's permissions are carried into retrieval and results are scoped to the calling user.

  4. D.

    Create one knowledge base per permission group, sync each document into every knowledge base whose group may read it, and route each user's query to the knowledge base that matches the permission group carried in their identity token at sign-in.

Show answer

Answer: C

Access control list awareness on a managed knowledge base carries source permissions into retrieval.

  • A. It works but reimplements the repository permission model and adds a callback per passage per query.
  • B. Encryption does not prevent retrieval into the prompt, so the generated answer still leaks the content.
  • C. ACL awareness on a managed knowledge base scopes retrieval to what the calling user may read.
  • D. Per-group duplication multiplies cost, breaks for multi-group users and goes stale on permission changes.
Question 7Foundation Model Integration, Data Management, and Compliance

A team has sized a vector index for 1.2 billion embeddings and has written a design that specifies an IVF index with product quantization, trained on a sample of the corpus, and a warmup call before each traffic peak. It plans to run this on Amazon OpenSearch Serverless Classic vector collections so that it does not have to operate a cluster. A reviewer rejects the design. What is the reviewer's correct objection?

  1. A.

    Warmup calls are only meaningful on collections whose refresh interval is below one second, and because a Classic collection refreshes far more slowly than that the design's peak-preparation step would have no measurable effect on the first queries of the day.

  2. B.

    Classic vector search collections cannot hold more than a few hundred million vectors, so a corpus of this size has to be sharded by the application across several collections with a routing layer in front of them, which is the part the design is missing.

  3. C.

    Classic vector search collections support only the HNSW algorithm with Faiss and do not support IVF or IVFQ, and they do not support the warmup, stats or model training API operations.

  4. D.

    Product quantization is unavailable in every AWS vector store, so the design must fall back to full 32-bit floating-point vectors.

Show answer

Answer: C

Classic vector collections support only HNSW with Faiss and offer no warmup, stats or model training APIs.

  • A. Warmup is unsupported on these collections entirely; refresh interval is not the reason.
  • B. Classic vector collections support billion-scale workloads with auto scaling and no reindexing.
  • C. Only HNSW with Faiss is supported, and warmup, stats and model training APIs are unavailable.
  • D. Quantization options do exist on OpenSearch; the constraint is specific to Classic serverless collections.
Question 8Foundation Model Integration, Data Management, and Compliance

A team retires a data source from a knowledge base after a product line is discontinued. The data source is deleted from the knowledge base and the underlying objects are removed from Amazon S3. Weeks later, an auditor demonstrates that questions about the discontinued product still return passages from the retired content, with citations pointing at objects that no longer exist. The vector store itself was never touched. What explains this, and what should have been configured?

  1. A.

    The data source was configured with a data deletion policy of RETAIN, which keeps the vector embeddings in the vector store when the data source is deleted; a policy of DELETE removes them.

  2. B.

    The knowledge base keeps a second copy of every vector for source attribution, and that copy is retained independently of the policy.

  3. C.

    Vectors are only removed by an ingestion job, so the team should have run one final sync after emptying the bucket and before deleting the data source, because a deleted data source can no longer be synced and its vectors are therefore orphaned in the store forever.

  4. D.

    Retrieval is answering from a cached copy of previous responses, and the team should clear that cache, because vectors belonging to a deleted data source are always removed from the vector store immediately when the data source itself is deleted.

Show answer

Answer: A

The data source's dataDeletionPolicy decides whether vectors survive deletion: RETAIN keeps them, DELETE removes them.

  • A. RETAIN preserves embeddings when the data source is deleted; DELETE removes them.
  • B. No separate attribution copy of the vectors exists outside the configured vector store.
  • C. A final sync is good practice but the policy, not an orphan rule, determines what happens on deletion.
  • D. There is no response cache in play, and deletion of a data source does not automatically purge vectors.
Question 9Foundation Model Integration, Data Management, and Compliance

A continuous delivery pipeline publishes updated policy documents, starts an ingestion job, waits for the job status to report complete, and then runs an automated retrieval test asserting that the new wording is returned. The test fails intermittently on the team's knowledge base backed by Amazon OpenSearch Serverless, while the same pipeline against a knowledge base on Amazon Aurora PostgreSQL passes reliably. The ingestion job never reports an error. What should the team conclude?

  1. A.

    A completed ingestion job does not guarantee immediate queryability: for vector stores other than Aurora it can take a few minutes for newly synced embeddings to become available, so the test needs to poll with a bounded wait rather than assert once.

  2. B.

    The assertion is testing the wrong thing, because retrieval always returns the previously indexed version of a document until the next ingestion job completes, which means any pipeline that publishes and tests in one run will be one version behind by design.

  3. C.

    The OpenSearch Serverless collection is under-provisioned and is shedding write requests under load, so the pipeline should be changed to retry the ingestion job whenever the retrieval assertion fails, since a failed assertion indicates that some documents were never written.

  4. D.

    The knowledge base is applying hierarchical chunking, so the new wording exists only inside child chunks that are replaced by parent chunks at retrieval time, and the assertion should be rewritten to look for the parent chunk's summary text instead of the published wording.

Show answer

Answer: A

After a sync completes, embeddings can take a few minutes to become queryable on vector stores other than Aurora.

  • A. Newly synced embeddings can take a few minutes to become queryable on stores other than Aurora.
  • B. Retrieval is not one version behind by design; the delay is propagation, measured in minutes.
  • C. The job reports success and no writes were lost; retrying ingestion re-embeds content for no reason.
  • D. Parent chunks contain the child text; hierarchical chunking would not hide newly published wording.
Question 10Foundation Model Integration, Data Management, and Compliance

A team has been asked to improve retrieval relevance for a new assistant without standing up and tuning a retrieval stack of its own. It is comparing what a Bedrock Managed Knowledge Base provides by default against what it would have to assemble on a customer-managed knowledge base. Which TWO statements about the managed option are correct? (Choose TWO.)

Choose 2.

  1. A.

    It allows the customer to choose the search strategy per request from semantic, hybrid or a customer supplied ranking function, which is the main relevance advantage it holds over the customer-managed option where the strategy is fixed when the knowledge base is created.

  2. B.

    It includes a built-in managed semantic reranker optimised for accuracy and performance at no extra cost, while a customer-managed knowledge base has no managed reranking.

  3. C.

    It supports agentic retrieval, and its search behaviour is described as agentic and semantic hybrid retrieval optimised across ingested file types, rather than a search strategy the customer selects.

  4. D.

    It requires the customer to provision and scale the underlying vector and text data stores, while handling only parsing and chunking on the customer's behalf so that relevance tuning remains a customer responsibility.

  5. E.

    It supports only the Amazon S3 and custom data source types, which is why teams needing wider connectivity are directed to build a customer-managed knowledge base instead.

  6. F.

    It removes the ability to apply a reranker model of the customer's own choosing, because the managed reranker is the only reranking path available once a managed knowledge base has been created.

Show answer

Answer: B, C

The managed knowledge base ships a built-in reranker at no extra cost and performs agentic and semantic hybrid retrieval.

  • A. Choosing your own search strategy is the customer-managed behaviour, and per-request custom ranking functions are not offered.
  • B. A built-in managed semantic reranker at no extra cost is a managed-only capability.
  • C. Agentic retrieval and agentic plus semantic hybrid retrieval are managed-path behaviours.
  • D. Provisioning and scaling the data store is the customer-managed responsibility, not the managed one.
  • E. Amazon S3 and custom only describes the customer-managed connector set; managed offers seven connectors.
  • F. Customised reranking with a chosen Bedrock reranker model is available on both paths.

Keep going with 826 more AIP-C01 questions

Free papers every day, in the real exam formats, with progress by exam domain. Unlock every paper and timed mock exam when you are ready.

AIP-C01 sample questions with answers (10 free) · CertifyAIx