Practice Quiz
When interacting with Amazon Bedrock models through direct API calls, how do the models handle session history and memory of prior prompts?
According to Amazon Bedrock documentation, models accessed via API calls do not recall prior prompts and previous requests unless the preceding conversational context is explicitly included within the current prompt.
Verified References
An AI practitioner is deploying an Amazon Bedrock application that is generating inaccurate or fabricated information (hallucinations) during testing. Which set of strategies is recommended to minimize these hallucinations?
To reduce hallucinations, Amazon Bedrock guidelines recommend refining prompts using prompt optimization techniques, using techniques like Retrieval Augmented Generation (RAG) to give the model access to relevant data, or switching to a different model that may produce improved results.
Verified References
A developer is writing a prompt for an Anthropic Claude model on Amazon Bedrock using few-shot prompting via the API. To align with recommended practices, how should they format the demonstration examples within the prompt?
According to Anthropic Claude guidelines, it is a good practice to use <example></example> tags for demonstration examples and to use different delimiters like H: and A: inside those examples to prevent confusion with the overall prompt's Human: and Assistant: delimiters.
Verified References
According to the Amazon Bedrock prompt engineering documentation, what are the key components that can be combined within a single prompt for a Large Language Model (LLM)?
According to Amazon Bedrock prompt engineering guidelines, a single prompt can combine multiple components such as the task or instruction, the context of the task, demonstration examples, and the input text.
Verified References
A developer is building a chat application using Amazon Bedrock API calls. During testing, they notice that the model fails to recall any context or answers from earlier in the same conversation. What is the cause of this behavior and how should the developer resolve it?
Amazon Bedrock models accessed via API do not remember previous requests and prompts unless the conversation history is explicitly included in the current prompt. Therefore, to build a stateful chat application, developers must manually persist and pass the conversational history in each subsequent API request. Other options are incorrect as Bedrock does not automatically store session cache for APIs.
Verified References
When optimizing prompt structures for Anthropic Claude models using few-shot prompting, which formatting approach represents a recommended best practice?
When prompting Anthropic Claude models with few-shot examples, it is best practice to use <example></example> tags for examples and delimiters like H: and A: to avoid conflict with Human: and Assistant: tags. Other options are incorrect as the User/Bot syntax is for Titan models, and using Human/Assistant delimiters within examples can cause confusion.
Verified References
A data engineering team needs to unify data access across multiple disparate sources, including Amazon S3 data lakes and Amazon Redshift, to streamline their machine learning and analytics workflows. Which SageMaker capability is designed specifically to meet this requirement?
Amazon SageMaker Lakehouse is the capability that unifies data access across Amazon S3 data lakes, Amazon Redshift, and other data sources. This allows data engineers to streamline workflows without needing to build custom connections or copy data.
Verified References
An organization wants to build and scale generative AI applications quickly. Which AWS service is specifically designed for building and scaling generative AI applications?
Amazon Bedrock is a service designed to enable users to build and scale generative AI applications. While Amazon SageMaker AI can build, train, and deploy models, Bedrock is focused specifically on scaling generative AI.
Verified References
A development team needs a secure environment to discover, govern, and collaborate on data and AI using a unified catalog built on Amazon DataZone. Which capability within Amazon SageMaker AI should they use?
Amazon SageMaker Data and AI Governance allows users to discover, govern, and collaborate on data and AI securely with Amazon SageMaker Catalog, built on Amazon DataZone.
Verified References
A developer building a generative AI solution on AWS notices that the model generates plausible-sounding but incorrect responses. Which set of methods is recommended under Bedrock prompt engineering concepts to address these model hallucinations?
To reduce hallucinations, one can refine the prompt using optimization techniques, implement Retrieval Augmented Generation (RAG) to provide relevant data, or utilize a different model entirely.
Verified References
When calling Amazon Bedrock APIs, how does the service manage context and recall of previous prompts or interactions across subsequent requests?
Amazon Bedrock API calls are stateless and do not recall previous prompts or interactions unless the developer explicitly passes that interaction context in the current prompt payload.
Verified References
When utilizing API calls for Anthropic Claude models on Amazon Bedrock, which specific prompt formatting style must be included that is not required for Titan Text or AI21 Labs Jurassic models?
Anthropic Claude models require specific conversational tags, specifically \\n\\nHuman: and \\n\\nAssistant:, within prompts sent via the Amazon Bedrock API, unlike Titan or Jurassic models.
Verified References
A software developer is building a conversational application using Amazon Bedrock API calls. During testing, they find that the model cannot recall any context or information from the user's previous interactions. Based on Amazon Bedrock concepts, which approach should the developer take to resolve this?
When accessing models via the Amazon Bedrock API, the interaction is stateless. Models do not recall prior prompts or previous requests. To maintain a conversational-style interaction, the developer must manually include the previous interactions within the current prompt. Additionally, prompts sent to Anthropic Claude models via the API must be wrapped in conversational-style delimiters including '\\n\\nHuman:' and '\\n\\nAssistant:', whereas Titan Text and AI21 Labs Jurassic models do not require this wrapper, but still lack memory.
Verified References
An AI team wants to minimize incorrect information (hallucinations) generated by their customer service LLM. According to Amazon Bedrock concepts, which three options are valid methods they can use to reduce hallucinations?
According to Amazon Bedrock documentation, there are three primary ways to reduce hallucinations in large language models: refining prompts using prompt optimization techniques, using techniques like Retrieval Augmented Generation (RAG) to provide the model with relevant data, or selecting and using a different model that may yield better performance.
Verified References
When utilizing Anthropic Claude models, what are the recommended best practices for few-shot prompting to format demonstration examples and prevent delimiter confusion?
For Anthropic Claude models, it is a recommended practice to wrap demonstration examples in <example></example> XML tags. Additionally, to prevent the model from confusing the examples with the main conversational flow, developers should use alternative delimiters like H: and A: inside those examples instead of the global prompt delimiters Human: and Assistant:.
Verified References
A business needs to establish a single development environment where developers and analysts can build using all of their existing tools and data for both analytics and AI. Which of the following should they choose?
Amazon SageMaker Unified Studio is a single development environment that enables users to build using all their tools and data for analytics and AI, making it the perfect fit for the business constraint.
Verified References
An organization requires a solution to securely discover, govern, and collaborate on data and AI using a centralized catalog built on Amazon DataZone. Which capability or service should the organization select to meet these security and cataloging needs?
Amazon SageMaker Data and AI Governance enables secure discovery, governance, and collaboration on data and AI using the Amazon SageMaker Catalog, which is built on Amazon DataZone.
Verified References
What is the primary function of Amazon SageMaker AI as a fully managed machine learning service?
According to the official definition, Amazon SageMaker AI is a fully managed machine learning service that allows developers and data scientists to build, train, and deploy machine learning and foundation models.
Verified References
Ready to test your recall?
When interacting with Amazon Bedrock models through direct API calls, how do the models handle session history and memory of prior prompts?
How confident are you in this answer?