Question 1
A company's sales team wants a generative AI assistant that answers questions from data in Salesforce, SharePoint, and Amazon S3 while respecting each user's existing access permissions. Which AWS service fits BEST?
- Amazon Q Developer
- Amazon Lex
- Amazon Q Business — Correct
- Amazon Polly
Correct answer
Amazon Q Business
Explanation
Amazon Q Business connects to enterprise data sources and respects access controls. Q Developer helps software developers. Lex builds chatbots without enterprise data connectors. Polly is text to speech.
Question 2
A company uses Amazon Q Developer. Which task can it help with?
- Labeling images for a computer vision training dataset
- Providing a managed contact center for the company's customers
- Suggesting, explaining, and transforming code to newer versions — Correct
- Hosting the company's production database and handling backups
Correct answer
Suggesting, explaining, and transforming code to newer versions
Explanation
Q Developer assists with coding, explanations, and code transformation. It does not host databases, run contact centers, or label datasets.
Question 3
A company wants to generate marketing images from text descriptions. Which type of foundation model should it use?
- A speech recognition model that converts audio into text
- A tabular regression model that predicts numeric values
- An image generation model such as Amazon Nova Canvas — Correct
- A text embedding model that converts text into vectors
Correct answer
An image generation model such as Amazon Nova Canvas
Explanation
Image generation models create images from prompts. Embedding, speech, and regression models do not create images.
Question 4
Which type of model generates images from text descriptions by gradually removing noise from random data?
- Diffusion model — Correct
- K-means clustering model
- Linear regression model
- Decision tree model
Correct answer
Diffusion model
Explanation
Diffusion models generate images by iteratively denoising. The other models are traditional ML techniques that do not generate images.
Question 5
Which of these is a good use case for generative AI?
- Drafting first versions of marketing copy that humans review and edit — Correct
- Replacing a database's primary key generation logic
- Calculating payroll tax amounts that must follow exact formulas
- Executing financial transactions without any human approval
Correct answer
Drafting first versions of marketing copy that humans review and edit
Explanation
Drafting content for human review suits generative AI. Exact calculations, unreviewed financial actions, and deterministic logic are better handled by traditional software.
Question 6
A company converts all product descriptions into embeddings and wants to find products similar to a customer's search phrase. Which technique is used?
- Semantic search based on vector similarity — Correct
- Exact keyword matching on product IDs
- Random sampling of product descriptions
- Sorting products alphabetically by name
Correct answer
Semantic search based on vector similarity
Explanation
Semantic search compares embedding vectors to find similar meaning. Exact matching, sorting, and sampling do not capture meaning.
Question 7
Which statement about the cost of using foundation models through an API is generally true?
- Cost decreases as prompts become longer and more detailed.
- Cost increases with the number of input and output tokens processed. — Correct
- Cost is the same regardless of how many tokens are processed.
- Cost depends only on the number of IAM users in the account.
Correct answer
Cost increases with the number of input and output tokens processed.
Explanation
Token-based pricing means more tokens cost more. Longer prompts increase cost, and IAM users do not affect model pricing.
Question 8
A company wants an AI solution that reads product photos and generates alt text for website accessibility. Which approach fits BEST?
- A time-series forecasting service that predicts weekly demand
- A speech-to-text service that transcribes customer phone calls
- A text-to-speech service that reads product descriptions aloud
- A multimodal foundation model that describes images in text — Correct
Correct answer
A multimodal foundation model that describes images in text
Explanation
Generating text descriptions from images needs a model that understands images. Speech-to-text, forecasting, and text-to-speech do not describe images.
Question 9
A company is using a foundation model for code generation. Which risks should it manage? (Choose TWO.)
- Generated code cannot be reviewed by developers
- Generated code is automatically covered by AWS support plans
- Generated code always compiles without errors
- Generated code may contain security vulnerabilities — Correct
- Generated code may resemble licensed open-source code — Correct
Correct answer
Generated code may contain security vulnerabilities; Generated code may resemble licensed open-source code
Explanation
Generated code can have vulnerabilities and license concerns, so it needs review and scanning. It does not always compile, it can be reviewed, and it is not covered by support plans.
Question 10
Which AWS services can store and search vector embeddings for a Retrieval Augmented Generation solution? (Choose TWO.)
- Amazon Route 53 private hosted zones
- Amazon Aurora PostgreSQL with the pgvector extension — Correct
- Amazon OpenSearch Service with vector search — Correct
- Amazon Simple Email Service
- AWS Snowball Edge Storage Optimized
Correct answer
Amazon Aurora PostgreSQL with the pgvector extension; Amazon OpenSearch Service with vector search
Explanation
OpenSearch and Aurora PostgreSQL with pgvector support vector storage and similarity search. Route 53, Snowball, and SES do not.