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

A cosmetics brand must choose between three Amazon Bedrock models to write product descriptions in its distinctive brand voice. Quality is subjective: marketing cares about tone, persuasiveness and whether claims stay within approved wording. The team has 600 product briefs, five experienced copywriters, and a written style rubric. Which TWO evaluation approaches should the team use to choose the model? (Select TWO.)

Choose 2.

  1. A.

    Measure each model's perplexity on the brand's past catalogue text and select the model with the lowest perplexity, since it best predicts the brand's writing.

  2. B.

    Score each model's outputs with an exact-match accuracy metric against one reference description per brief, because exact match measures brand voice objectively.

  3. C.

    Compare the three models by their scores on a public benchmark for reasoning, and assume that the best reasoner also writes the most persuasive brand copy.

  4. D.

    Run a model evaluation job that uses an LLM as a judge with a custom metric built from the written style rubric, scoring all three models on the 600 briefs.

  5. E.

    Run a human-based evaluation job with the five copywriters as a private work team on a sample of briefs, rating each model's outputs against the same rubric.

Show answer

Answer: D, E

Subjective, rubric-driven quality is best measured with an LLM-as-a-judge custom metric at scale plus a human evaluation on a sample to confirm it.

  • A. Perplexity measures how well a model predicts text, not the quality of the copy it generates, and it is not a Bedrock evaluation metric.
  • B. Exact match penalises every valid rewording and cannot measure tone or persuasiveness.
  • C. A reasoning benchmark does not measure brand voice or claim compliance.
  • D. An LLM judge with a rubric-based custom metric scores subjective quality consistently across all 600 briefs.
  • E. A human evaluation with the copywriters confirms that the automated scores match expert judgement.
Question 2Foundation Model Integration, Data Management, and Compliance

A company is moving its six production prompt templates from one foundation model to a cheaper model on Amazon Bedrock. Manual rewriting has been slow, and quality on the new model is inconsistent. The team has 80 sample inputs per template with ground-truth answers, and a Lambda function that scores outputs. It wants an evaluation-driven, iterative rewrite of the templates for the new model, compared side by side with the current model. What should the team use?

  1. A.

    Keep the prompts unchanged and raise the new model's temperature, because a warmer temperature compensates for differences between the two models' prompt styles.

  2. B.

    Simple prompt optimization in Prompt Management, run on each template once, because it evaluates each of its rewrites against the ground-truth answers and the Lambda scorer for up to five models.

  3. C.

    Amazon Bedrock Advanced Prompt Optimization, supplying the templates, sample inputs, ground truth and the Lambda scorer, with the current model as the baseline and the new model as a target.

  4. D.

    A fine-tuning job on the new model with the 480 samples, because fine-tuning always replaces the need to adapt prompt templates when migrating between models.

Show answer

Answer: C

Advanced Prompt Optimization iteratively rewrites templates, steered by ground truth and a supplied evaluator such as a Lambda function, and compares results across models, including a baseline.

  • A. Temperature changes randomness; it does not adapt prompts to a different model.
  • B. Simple optimization rewrites one short prompt for one model without evaluation data or model comparison.
  • C. Advanced Prompt Optimization rewrites iteratively, steered by ground truth and the Lambda scorer, and compares models including the baseline.
  • D. Fine-tuning is costlier and does not replace adapting the prompts to the new model.
Question 3Foundation Model Integration, Data Management, and Compliance

A podcast network is indexing 40,000 interview transcripts in an Amazon Bedrock knowledge base. The transcripts have no headings or paragraph markup, and topics shift at irregular points, sometimes after two sentences and sometimes after twenty. Fixed-size chunks often cut one topic in half and join the end of another. The team accepts some extra ingestion cost for better chunk boundaries. Which chunking strategy should it configure?

  1. A.

    Fixed-size chunking with a much smaller maximum token size and zero overlap, so that each chunk is short enough to contain only one topic from the conversation.

  2. B.

    Semantic chunking, which places boundaries where the meaning of consecutive sentences diverges, tuned with the buffer size and breakpoint percentile threshold.

  3. C.

    No chunking, with each transcript stored as a single chunk, so that no topic is ever split across two chunks during ingestion into the knowledge base.

  4. D.

    Hierarchical chunking with a large parent size and a small child size, so that the parent chunks capture each topic regardless of where the topic shifts occur.

Show answer

Answer: B

Semantic chunking splits where sentence meaning shifts, which suits unstructured text whose topics change at irregular points; it costs extra because it uses a model.

  • A. Smaller fixed chunks without overlap cut topics more often and lose context at every boundary.
  • B. Semantic chunking places boundaries at shifts in meaning, which fits unstructured text with irregular topic changes.
  • C. Whole-transcript chunks destroy retrieval precision and overload the context with unrelated topics.
  • D. Hierarchical chunking still sets boundaries by token counts, so topics are split wherever the sizes fall.
Question 4Foundation Model Integration, Data Management, and Compliance

A team runs its own chunking in AWS Lambda for a pgvector-based retrieval pipeline and embeds each chunk with Amazon Titan Text Embeddings V2. Most documents work, but specification sheets that contain very large tables fail at the embedding step with a ValidationException about the input length. The chunker keeps each table in one chunk so that rows are never separated. What should the team change?

  1. A.

    Switch the embedding request to 256 output dimensions, because a smaller output vector allows the model to accept a proportionally longer input text for each chunk.

  2. B.

    Split oversized tables into smaller chunks below the model's input limit of 8,192 tokens (and 50,000 characters), repeating the table header in each piece so that the rows stay interpretable.

  3. C.

    Base64-encode each large table before sending it to the embedding model, because the encoding compresses the text enough to stay below the token limit.

  4. D.

    Request a service quota increase for the maximum input tokens of the embedding model, so that very large tables can be embedded as a single chunk without splitting any of the rows across chunks.

Show answer

Answer: B

Titan Text Embeddings V2 accepts up to 8,192 tokens or 50,000 characters per input, so oversized table chunks must be split, ideally repeating headers so each piece keeps its meaning.

  • A. Output dimensionality changes the vector size, not how much input text the model accepts.
  • B. Splitting under the model's input limit with repeated headers keeps every table chunk valid and interpretable.
  • C. Base64 makes the text longer and turns it into an encoded string with no semantic meaning to embed.
  • D. The maximum input length is a fixed model property, not a service quota that can be raised.
Question 5Foundation Model Integration, Data Management, and Compliance

A company exposes its document-retrieval Lambda function to partner agents as an MCP tool through an Amazon Bedrock AgentCore gateway. The security team requires that only partner agents holding a valid token from the company's Amazon Cognito user pool can reach the tool, and that the gateway itself can invoke only that one Lambda function. Which TWO configurations meet these requirements? (Select TWO.)

Choose 2.

  1. A.

    Give the gateway's service role the AWSLambda_FullAccess managed policy, so that new tools can be added later without any further changes to the role.

  2. B.

    Give the gateway's service role an IAM policy that allows lambda:InvokeFunction only on the ARN of the retrieval function.

  3. C.

    Configure the gateway's inbound authorization as JWT, using the Cognito user pool's discovery URL and the allowed client IDs, so that each MCP request must carry a valid token.

  4. D.

    Set inbound authorization to No Authorization and rely on the Lambda function to check a shared API key that the partners embed in each tool call's arguments.

  5. E.

    Make the Lambda function's URL public and list it in the MCP server description, so that partners can call either the function URL or the gateway.

Show answer

Answer: B, C

JWT inbound authorization against the Cognito user pool restricts who can reach the gateway, and a scoped service-role policy restricts what the gateway can invoke.

  • A. Full Lambda access lets the gateway invoke any function, which violates least privilege.
  • B. A service-role policy limited to that function's ARN confines the gateway's outbound access.
  • C. JWT inbound authorization with the Cognito discovery URL and client IDs admits only callers holding valid tokens.
  • D. No Authorization offloads the decision, and a shared key in tool arguments is weak and bypasses identity checks.
  • E. A public function URL gives partners a path that bypasses the gateway's authorization.
Question 6Foundation Model Integration, Data Management, and Compliance

A research firm's assistant handles several query types: simple lookups, comparisons across companies, and questions that need a date filter. The team wants one managed pipeline that classifies each query, rewrites or decomposes it as needed, runs the resulting retrievals concurrently, merges the results, and then calls the generation model, with per-step retries, timeouts and an execution history. Which design fits BEST?

  1. A.

    An Amazon SQS queue for each step, with Lambda consumers that pass partial results to the next queue, and a DynamoDB table that tracks which steps each query has completed.

  2. B.

    A single AWS Lambda function that calls every step in sequence, with retries written in the function code and progress logged to CloudWatch Logs for later troubleshooting.

  3. C.

    One large prompt that asks the generation model to classify, decompose, retrieve and answer in a single call, with the knowledge base contents pasted into the prompt.

  4. D.

    An AWS Step Functions workflow: a classification task with Bedrock, a Choice state that routes to rewrite or decomposition tasks, a Map state that runs one retrieval per sub-query, a merge task, and a final generation task.

Show answer

Answer: D

Step Functions provides routing, dynamic parallel retrieval, per-step retries and timeouts, and a visual execution history for a multi-step query-transformation pipeline.

  • A. Queues and a tracking table rebuild workflow orchestration by hand.
  • B. Hand-coded sequencing and retries in one function lose the parallelism, per-step control and execution history.
  • C. A single prompt cannot run retrieval, and pasting a knowledge base into it is infeasible.
  • D. Choice routing, a Map state for concurrent sub-query retrieval, and per-state retries and timeouts make Step Functions the natural fit.
Question 7Foundation Model Integration, Data Management, and Compliance

A support assistant built directly on the Amazon Bedrock Converse API should search the product knowledge base only when a question needs product facts, and not for greetings or account questions. The team wants the model to decide when to search and what query and product filter to use, while the application keeps control of the actual call to the knowledge base. How should the team implement this?

  1. A.

    Give the model the knowledge base ID in the system prompt and instruct it to call the Retrieve API itself, because models on Amazon Bedrock can call AWS APIs directly with the permissions of the caller's role.

  2. B.

    Define a searchproductdocs tool in toolConfig with a JSON input schema for query and product; when the model returns a toolUse block, run Retrieve with those inputs and send the results back as a toolResult.

  3. C.

    Call Retrieve before every model invocation and always paste the top results into the system prompt, so that the model can ignore them when a question does not need product facts.

  4. D.

    Fine-tune the model on the knowledge base content so that it can answer product questions without retrieval and never needs to search the knowledge base.

Show answer

Answer: B

Function calling lets the model decide when to search and with what arguments, while the application executes Retrieve and returns the results as a tool result.

  • A. Models only return a tool request; they do not call AWS APIs with the caller's role.
  • B. A declared retrieval tool lets the model choose when and how to search while the application executes Retrieve and returns a toolResult.
  • C. Always retrieving wastes cost and pushes irrelevant context into non-product turns.
  • D. Fine-tuning does not keep product facts current and gives no source citations.
Question 8Foundation Model Integration, Data Management, and Compliance

A developer is adding photo support to an insurance-claims assistant that calls a vision-capable model through the Amazon Bedrock Converse API. For each claim the model must see one photo of vehicle damage together with the question 'Describe the visible damage.' The developer reads the photo from a JPEG file. How should the developer format the request?

  1. A.

    Put the photo's base64 text inside the system field, and send the question as the only item in the messages array with the role set to assistant.

  2. B.

    Append the photo's file path to the question text, such as 'see /tmp/claim.jpg', and let Amazon Bedrock read the file from the machine that is running the application.

  3. C.

    Send one user message whose content array holds an image block with format jpeg and the image bytes as the source, followed by a text block containing the question.

  4. D.

    Send the photo in a first request and the question in a second request, relying on the model to remember the photo from the earlier call when it answers.

Show answer

Answer: C

In Converse, images go in an image content block (format plus bytes) inside a user message, next to a text block with the question.

  • A. The system field carries text instructions, not images, and the conversation must begin with a user message.
  • B. Bedrock cannot open files on the caller's machine; the image must be included in the request.
  • C. An image block with format and bytes, followed by a text block in the same user message, is the Converse multimodal format.
  • D. Converse calls are stateless, so a photo from an earlier call is not remembered unless it is resent.
Question 9Foundation Model Integration, Data Management, and Compliance

A pharmacy chain transcribes recorded pharmacist consultations with Amazon Transcribe and then asks a foundation model to write a medication summary. Reviewers find that drug brand names are often transcribed as similar-sounding common words, so the summaries name the wrong medicines. Calls are in English and Spanish, and the language is not known in advance. Which TWO changes should the team make in the transcription step? (Select TWO.)

Choose 2.

  1. A.

    Ask the foundation model to guess the intended drug name from context whenever a transcribed word sounds like a medicine but is spelled as a common word.

  2. B.

    Increase the audio sample rate of the recordings, because Transcribe transcribes words with unusual spellings correctly only when the audio is at least 48 kHz.

  3. C.

    Enable automatic language identification for the jobs, with English and Spanish as language options and the matching custom vocabulary supplied for each language.

  4. D.

    Enable speaker partitioning so that Transcribe separates the pharmacist from the customer, because brand names are mis-transcribed when two speakers overlap.

  5. E.

    Create a custom vocabulary of the drug brand names for each of the two languages, with pronunciation hints where brand names are spelled unusually.

Show answer

Answer: C, E

Custom vocabularies teach Transcribe domain terms such as drug brand names, and automatic language identification can select a vocabulary for each detected language.

  • A. Guessing drug names in the model hides transcription errors and risks naming the wrong medicine.
  • B. Sample rate does not add unknown domain words to the recogniser; there is no 48 kHz requirement for correct spelling.
  • C. Language identification selects each call's language and applies the matching vocabulary, which is needed because the language is not known in advance.
  • D. Speaker labels show who spoke; they do not change how a brand name is recognised.
  • E. Custom vocabularies teach the recogniser the drug brand names, and each vocabulary is specific to one language.
Question 10Foundation Model Integration, Data Management, and Compliance

An insurer processes incoming claim emails with a foundation model that extracts a claim type, incident date and involved parties. Extraction accuracy is inconsistent: emails contain forwarded signatures, quoted reply chains, dates written in many regional formats, and party names spelled inconsistently across the thread. The team already uses AWS Lambda for pre-processing and wants to raise response quality and consistency by improving the input before inference rather than by switching models. Which TWO pre-processing steps will MOST improve the foundation model's output quality? (Select TWO.)

Choose 2.

  1. A.

    Use a Lambda function to strip quoted reply chains and signatures, and normalise all detected dates to ISO 8601 before the email reaches the prompt.

  2. B.

    Raise the temperature to 0.9 so the model explores more interpretations of ambiguous dates.

  3. C.

    Append the entire raw mailbox thread history for the claimant to each request so the model has maximum context.

  4. D.

    Increase the model's max tokens setting and add a request for step-by-step reasoning so that the model has more room to work through the noisy thread before answering.

  5. E.

    Use Amazon Comprehend entity recognition to extract person, organisation and date entities from the thread and pass them to the model as a structured, labelled context block alongside the cleaned email.

Show answer

Answer: A, E

Cleaning noise and normalising dates in Lambda, plus feeding Comprehend-extracted entities as structured context, improve input quality and therefore extraction consistency.

  • A. Removing quoted chains and signatures and normalising dates eliminates the noise and ambiguity causing inconsistent extraction.
  • B. Higher temperature increases randomness, reducing consistency for a structured extraction task.
  • C. Dumping the whole mailbox adds irrelevant tokens, risks overflow and buries the signal.
  • D. Max tokens limits output length; it does not improve interpretation of noisy input.
  • E. Comprehend entities supplied as structured context give the model consistent, pre-resolved anchors for parties and dates.

Keep going with 490 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) · CertifyCloudx