Tag: AI-901: Azure AI Fundamentals

Create new visual outputs by using generative models (AI-901 Exam Prep)

This post is a part of the AI-901: Microsoft Azure AI Fundamentals Exam Prep Hub. 
This topic falls under these sections:
Implement AI solutions by using Microsoft Foundry (55–60%)
--> Implement AI solutions with computer vision and image-generation capabilities by using Foundry
--> Create new visual outputs by using generative models


Note that there are 10 practice questions (with answers and explanations) for each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available on the hub below the exam topics section.

Generative AI models are capable of creating entirely new content based on patterns learned during training. One important category of generative AI focuses on producing visual outputs such as images, artwork, diagrams, and design concepts.

For the AI-901 certification exam, candidates should understand the foundational concepts behind creating new visual outputs by using generative AI models through Microsoft Azure AI Foundry and related Azure AI services.

This topic falls under the “Implement AI solutions with computer vision and image-generation capabilities by using Foundry” section of the AI-901 exam objectives.


What Is Generative AI?

Generative AI refers to AI systems capable of creating new content rather than simply analyzing existing data.

Generative AI can produce:

  • Text
  • Images
  • Audio
  • Video
  • Code

What Are Generative Image Models?

Generative image models create new visual content from prompts or instructions.

These models can generate:

  • Artwork
  • Illustrations
  • Photorealistic images
  • Concept designs
  • Marketing graphics

Example Prompt

“Create an image of a futuristic city at sunset.”

The model generates a new image based on the description.


Azure AI Foundry

Azure AI Foundry provides tools for building and deploying AI-powered applications, including generative AI solutions.

Developers can:

  • Access generative models
  • Test prompts
  • Deploy models
  • Build AI applications

Image Generation Workflow

A common image-generation workflow includes:

  1. User enters prompt
  2. Application sends prompt to model
  3. Generative model creates image
  4. Application displays generated output

Text-to-Image Generation

Text-to-image models generate images from natural-language prompts.


Example

Prompt

“A golden retriever wearing sunglasses on a beach.”

Result

A newly generated image matching the description.


Image Editing

Some generative models can modify existing images.

Capabilities may include:

  • Removing objects
  • Replacing backgrounds
  • Extending images
  • Applying artistic styles

Example

Original Image

Photo of a park

Prompt

“Add snow to the scene.”

The model generates an updated version of the image.


Style Transfer

Style transfer applies artistic styles to images.


Example

Prompt

“Make this image look like a watercolor painting.”

The AI transforms the image style.


Inpainting

Inpainting fills missing or selected portions of images.


Example

A damaged image has missing areas that the AI reconstructs.


Outpainting

Outpainting expands images beyond their original boundaries.


Example

A cropped landscape image is extended to show more scenery.


Prompt Engineering

Prompt engineering involves crafting prompts that improve AI-generated results.

Good prompts are:

  • Clear
  • Detailed
  • Specific

Weak Prompt Example

“Create a dog.”


Better Prompt Example

“Create a realistic golden retriever sitting beside a lake during sunset.”


System Prompts

System prompts guide the overall behavior of the AI model.

They may define:

  • Safety rules
  • Content restrictions
  • Tone
  • Style preferences

Model Parameters

Generative AI models may use parameters that influence output behavior.

Common concepts include:

  • Creativity/randomness
  • Response length
  • Style guidance

For AI-901, conceptual understanding is more important than memorizing exact parameter names.


APIs and Endpoints

Applications communicate with deployed generative models using:

  • APIs
  • Endpoints

These allow prompts and images to be processed programmatically.


Authentication

Applications must securely authenticate before using Azure AI services.

Common authentication methods include:

  • API keys
  • Azure credentials
  • Managed identities

User Interface Components

A lightweight image-generation application may include:

  • Prompt text box
  • Image upload option
  • Generate button
  • Image display area

Real-Time Generation

Some applications generate images interactively in near real time.

This improves user experience and experimentation.


Common Real-World Scenarios


Scenario 1: Marketing Content Creation

Goal

Generate promotional graphics.

Features

  • Text-to-image generation
  • Brand-aligned designs
  • Rapid content creation

Scenario 2: Product Concept Design

Goal

Visualize product ideas.

Features

  • Prototype generation
  • Style experimentation
  • Rapid iteration

Scenario 3: Educational Content

Goal

Generate learning visuals and illustrations.

Features

  • Diagram generation
  • Visual storytelling
  • Accessibility support

Scenario 4: Entertainment and Gaming

Goal

Create concept art and environments.

Features

  • Character design
  • Landscape generation
  • Artistic experimentation

Responsible AI Considerations

Generative image applications should follow Responsible AI principles.

Key considerations include:

  • Fairness
  • Privacy
  • Transparency
  • Inclusiveness
  • Accountability
  • Security

Copyright and Intellectual Property

Organizations should consider:

  • Ownership rights
  • Licensing concerns
  • Use of copyrighted material

Generated content may still raise legal and ethical questions.


Harmful Content Risks

Generative AI systems may create:

  • Offensive content
  • Misleading images
  • Unsafe material

Content filtering and moderation are important safeguards.


Deepfakes

AI-generated images or videos designed to imitate real people are called deepfakes.

Deepfakes can create ethical and security concerns.


Hallucinations

Generative models may produce inaccurate or unrealistic outputs.

These incorrect outputs are called hallucinations.


Bias and Fairness

Generated images may unintentionally reflect societal biases.

Examples include:

  • Stereotypical portrayals
  • Uneven representation
  • Cultural bias

Transparency

Users should understand:

  • AI generated the image
  • Outputs may contain inaccuracies
  • Images may be synthetic rather than real

Error Handling

Applications should handle:

  • Invalid prompts
  • Unsupported file types
  • Network interruptions
  • Authentication failures
  • Rate limits

Advantages of Generative Image Models

Benefits include:

  • Faster content creation
  • Creative assistance
  • Rapid prototyping
  • Automation
  • Enhanced user engagement

Limitations of Generative Models

Challenges include:

  • Hallucinations
  • Bias
  • Ethical concerns
  • Copyright uncertainty
  • Variable output quality

High-Level Workflow

A simplified workflow includes:

  1. User enters prompt
  2. Application sends request
  3. Model generates image
  4. Application displays output

Example High-Level Pseudocode

prompt = get_prompt()
image = generate_image(prompt)
display_image(image)

For AI-901, understanding the workflow is more important than memorizing exact syntax.


Important AI-901 Exam Tips

For the exam, remember these key points:

  • Generative AI creates new content.
  • Text-to-image models generate images from prompts.
  • Azure AI Foundry supports generative AI development.
  • Prompt engineering improves output quality.
  • APIs and endpoints connect applications to AI services.
  • Authentication secures access to Azure AI resources.
  • Deepfakes are synthetic media designed to imitate real people.
  • Hallucinations are inaccurate AI-generated outputs.
  • Responsible AI principles apply to generative image systems.
  • Transparency is important when presenting AI-generated content.

Quick Knowledge Check

Question 1

What does a text-to-image model do?

Answer

Generates images from natural-language prompts.


Question 2

What is prompt engineering?

Answer

Designing prompts to improve AI-generated results.


Question 3

What are deepfakes?

Answer

AI-generated media designed to imitate real people.


Question 4

Why is transparency important in generative AI?

Answer

Users should understand that AI generated the content and that inaccuracies may exist.


Practice Exam Questions

Question 1

What is the PRIMARY purpose of a generative AI model?

A. To create new content based on learned patterns
B. To replace computer hardware
C. To increase internet bandwidth
D. To manage operating systems


Correct Answer

A. To create new content based on learned patterns


Explanation

Generative AI models create new outputs such as images, text, audio, or video using patterns learned during training.


Why the Other Answers Are Incorrect

B. To replace computer hardware

Generative AI is software-based and does not replace hardware.

C. To increase internet bandwidth

AI models do not improve network speeds.

D. To manage operating systems

Operating system management is unrelated to generative AI.


Question 2

What does a text-to-image model do?

A. Generates images from text prompts
B. Converts images into spreadsheets
C. Detects malware in files
D. Compresses image files automatically


Correct Answer

A. Generates images from text prompts


Explanation

Text-to-image models create images based on natural-language descriptions provided by users.


Why the Other Answers Are Incorrect

B. Converts images into spreadsheets

This is unrelated to generative AI.

C. Detects malware in files

This is a cybersecurity task.

D. Compresses image files automatically

Compression is unrelated to image generation.


Question 3

Which Microsoft platform provides tools for building and deploying generative AI applications?

A. Azure AI Foundry
B. Microsoft Paint
C. Windows File Explorer
D. Microsoft Notepad


Correct Answer

A. Azure AI Foundry


Explanation

Azure AI Foundry provides tools for deploying, testing, and managing AI-powered applications.


Why the Other Answers Are Incorrect

B. Microsoft Paint

Paint is a graphics editor, not an AI platform.

C. Windows File Explorer

This is a file management tool.

D. Microsoft Notepad

Notepad is a text editor.


Question 4

What is prompt engineering?

A. Designing prompts to improve AI-generated results
B. Repairing damaged computer hardware
C. Compressing images into smaller files
D. Monitoring internet traffic


Correct Answer

A. Designing prompts to improve AI-generated results


Explanation

Prompt engineering involves creating clear and specific prompts to guide AI systems toward better outputs.


Why the Other Answers Are Incorrect

B. Repairing damaged computer hardware

This is unrelated to AI prompting.

C. Compressing images into smaller files

Compression is unrelated to prompts.

D. Monitoring internet traffic

This is a networking task.


Question 5

Which prompt is MOST likely to generate a detailed image?

A. “Create a dog.”
B. “Generate.”
C. “Create a realistic golden retriever sitting beside a lake during sunset.”
D. “Image.”


Correct Answer

C. “Create a realistic golden retriever sitting beside a lake during sunset.”


Explanation

Detailed prompts generally produce more accurate and useful AI-generated images.


Why the Other Answers Are Incorrect

A. “Create a dog.”

This prompt is too vague.

B. “Generate.”

This provides almost no guidance.

D. “Image.”

This prompt is incomplete and unclear.


Question 6

What is inpainting?

A. Filling or reconstructing parts of an image
B. Converting speech into text
C. Detecting objects in video streams
D. Encrypting image files


Correct Answer

A. Filling or reconstructing parts of an image


Explanation

Inpainting allows AI to fill in missing or selected regions within an image.


Why the Other Answers Are Incorrect

B. Converting speech into text

This is speech recognition.

C. Detecting objects in video streams

This is a computer vision task.

D. Encrypting image files

Encryption is unrelated to inpainting.


Question 7

What are deepfakes?

A. AI-generated media designed to imitate real people
B. Hardware failures in AI systems
C. Encrypted image storage systems
D. High-speed networking protocols


Correct Answer

A. AI-generated media designed to imitate real people


Explanation

Deepfakes use generative AI to create realistic but synthetic media that imitates real individuals.


Why the Other Answers Are Incorrect

B. Hardware failures in AI systems

This is unrelated to generated media.

C. Encrypted image storage systems

This is unrelated to deepfakes.

D. High-speed networking protocols

Networking is unrelated to deepfake technology.


Question 8

How do applications typically communicate with deployed generative AI models?

A. Through APIs and endpoints
B. Through printer drivers
C. Through monitor calibration settings
D. Through USB-only connections


Correct Answer

A. Through APIs and endpoints


Explanation

Applications use APIs and endpoints to send prompts and receive generated outputs from AI services.


Why the Other Answers Are Incorrect

B. Through printer drivers

Printers are unrelated to AI communication.

C. Through monitor calibration settings

This is unrelated to cloud AI services.

D. Through USB-only connections

Cloud AI services use network communication.


Question 9

Which Responsible AI concern is especially important for generative image models?

A. Preventing harmful or misleading content generation
B. Increasing keyboard typing speed
C. Improving spreadsheet formulas
D. Reducing monitor power consumption


Correct Answer

A. Preventing harmful or misleading content generation


Explanation

Generative AI systems can potentially create unsafe, offensive, or misleading content, making moderation and safeguards important.


Why the Other Answers Are Incorrect

B. Increasing keyboard typing speed

This is unrelated to Responsible AI.

C. Improving spreadsheet formulas

This is unrelated to image generation.

D. Reducing monitor power consumption

This is unrelated to AI ethics.


Question 10

What are hallucinations in generative AI systems?

A. Inaccurate or fabricated AI-generated outputs
B. Hardware installation errors
C. Network outages
D. Audio playback failures


Correct Answer

A. Inaccurate or fabricated AI-generated outputs


Explanation

Hallucinations occur when generative AI produces incorrect, unrealistic, or invented outputs.


Why the Other Answers Are Incorrect

B. Hardware installation errors

This is unrelated to AI-generated content.

C. Network outages

This is a connectivity issue.

D. Audio playback failures

This is unrelated to generative image models.


Final Thoughts

Creating new visual outputs by using generative models is an important AI-901 certification topic. Microsoft expects candidates to understand the foundational concepts behind generative image AI, including text-to-image generation, prompt engineering, APIs, deployment, Responsible AI principles, hallucinations, and ethical considerations.

Azure AI Foundry provides powerful tools for building intelligent applications capable of generating creative visual content for business, education, accessibility, and entertainment scenarios.


Go to the AI-901 Exam Prep Hub main page

Interpret visual input in prompts by using a deployed multimodal model (AI-901 Exam Prep)

This post is a part of the AI-901: Microsoft Azure AI Fundamentals Exam Prep Hub. 
This topic falls under these sections:
Implement AI solutions by using Microsoft Foundry (55–60%)
--> Implement AI solutions with computer vision and image-generation capabilities by using Foundry
--> Interpret visual input in prompts by using a deployed multimodal model


Note that there are 10 practice questions (with answers and explanations) for each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available on the hub below the exam topics section.

Modern AI systems are increasingly capable of understanding not only text and speech, but also visual information such as images and videos. Multimodal AI models combine multiple forms of input to generate intelligent responses and insights.

For the AI-901 certification exam, candidates should understand the foundational concepts behind interpreting visual input in prompts by using deployed multimodal models through Microsoft Azure AI Foundry and related Azure AI services.

This topic falls under the “Implement AI solutions with computer vision and image-generation capabilities by using Foundry” section of the AI-901 exam objectives.


What Is a Multimodal Model?

A multimodal model is an AI model capable of processing multiple types of input and output.

These modalities may include:

  • Text
  • Images
  • Speech/audio
  • Video

Multimodal models can combine information across different input types to generate responses.


What Is Visual Input?

Visual input refers to image or video data provided to an AI system.

Examples include:

  • Photographs
  • Screenshots
  • Documents
  • Charts
  • Diagrams
  • Videos

Example Visual Prompt

A user uploads a photo and asks:

“What objects are visible in this image?”

The AI analyzes the visual content and generates a response.


Computer Vision

Computer vision is the field of AI focused on enabling systems to interpret and understand visual information.

Computer vision tasks include:

  • Image classification
  • Object detection
  • Facial analysis
  • Optical character recognition (OCR)
  • Image captioning

Azure AI Vision

Azure AI Vision provides computer vision capabilities in Azure.

Features include:

  • Image analysis
  • OCR
  • Object detection
  • Image captioning
  • Face-related analysis

Azure AI Foundry

Azure AI Foundry provides tools for building and managing multimodal AI applications.

Developers can:

  • Deploy AI models
  • Test prompts
  • Analyze images
  • Build AI-powered apps

Deployed Models

A deployed model is an AI model made available for real-time use through a cloud endpoint.

Applications communicate with deployed models using APIs.


Visual Prompt Workflow

A common workflow includes:

  1. User uploads image
  2. Application sends image to multimodal model
  3. Model analyzes visual content
  4. Model generates response
  5. Application displays results

Example Workflow

User Uploads Image

A photo of a dog playing in a park

User Prompt

“Describe this image.”

AI Response

“A brown dog is running through a grassy park.”


Image Classification

Image classification identifies the primary category of an image.


Example

Image

Picture of a cat

Classification

“Cat”


Object Detection

Object detection identifies and locates multiple objects within an image.


Example

Image

Street scene

Detected Objects

  • Car
  • Bicycle
  • Traffic light
  • Pedestrian

Optical Character Recognition (OCR)

OCR extracts text from images or scanned documents.


Example

Image

Photo of a receipt

Extracted Text

  • Store name
  • Total amount
  • Date

Image Captioning

Image captioning generates natural-language descriptions of images.


Example

Image

A child flying a kite

Caption

“A child flying a colorful kite in a field.”


Visual Question Answering

Some multimodal models can answer questions about images.


Example

Prompt

“How many people are in the image?”

The model analyzes the image and generates an answer.


Combining Text and Images

Multimodal systems often combine:

  • Text prompts
  • Visual input

This improves contextual understanding.


Example

Image

A restaurant menu

Prompt

“Which item appears to be vegetarian?”

The AI analyzes both the image and the prompt together.


APIs and Endpoints

Applications communicate with deployed multimodal models through:

  • APIs
  • Endpoints

These allow images and prompts to be submitted programmatically.


Authentication

Applications must securely authenticate before accessing Azure AI services.

Common methods include:

  • API keys
  • Azure credentials
  • Managed identities

User Interface Components

A lightweight visual AI application may include:

  • Image upload area
  • Prompt input box
  • Results display
  • Image preview

Real-Time Processing

Many multimodal applications support near real-time image analysis.

This enables interactive user experiences.


Common Real-World Scenarios


Scenario 1: Accessibility Assistant

Goal

Describe visual content for visually impaired users.

Features

  • Image captioning
  • OCR
  • Voice output

Scenario 2: Retail Product Recognition

Goal

Identify products from images.

Features

  • Object detection
  • Classification
  • Product lookup

Scenario 3: Document Processing

Goal

Extract information from scanned forms.

Features

  • OCR
  • Text extraction
  • Data analysis

Scenario 4: Content Moderation

Goal

Identify harmful or unsafe visual content.

Features

  • Image analysis
  • Safety filtering
  • Automated moderation

Responsible AI Considerations

Visual AI applications should follow Responsible AI principles.

Key considerations include:

  • Privacy
  • Fairness
  • Transparency
  • Inclusiveness
  • Accountability
  • Security

Privacy Concerns

Images may contain:

  • Personal information
  • Faces
  • Sensitive documents

Organizations should protect user data appropriately.


Bias and Fairness

Computer vision systems may perform unevenly across:

  • Skin tones
  • Age groups
  • Lighting conditions
  • Demographics

Organizations should evaluate models carefully for fairness.


Transparency

Users should understand:

  • AI is analyzing images
  • AI-generated descriptions may contain errors
  • Images may be stored or processed in the cloud

Hallucinations

Multimodal AI systems may generate inaccurate visual descriptions.

These incorrect outputs are called hallucinations.

Applications should not assume all AI-generated outputs are accurate.


Error Handling

Applications should handle:

  • Unsupported image formats
  • Low-quality images
  • Network failures
  • Authentication errors
  • Rate limits

Image Quality Challenges

Poor image quality can reduce accuracy.

Examples include:

  • Blurry images
  • Poor lighting
  • Occluded objects
  • Low resolution

Advantages of Visual AI Applications

Benefits include:

  • Automation
  • Faster analysis
  • Accessibility improvements
  • Improved user experiences
  • Scalable image processing

Limitations of Visual AI Applications

Challenges include:

  • Recognition inaccuracies
  • Bias
  • Privacy concerns
  • Hallucinations
  • Sensitivity to image quality

High-Level Workflow

A simplified workflow includes:

  1. Upload image
  2. Send image and prompt to model
  3. Analyze visual content
  4. Generate response
  5. Display results

Example High-Level Pseudocode

image = upload_image()
prompt = get_prompt()
response = analyze_image(image, prompt)
display_response(response)

For AI-901, understanding the workflow is more important than memorizing exact syntax.


Important AI-901 Exam Tips

For the exam, remember these key points:

  • Multimodal models process multiple data types.
  • Visual input includes images and video.
  • Azure AI Vision supports computer vision workloads.
  • OCR extracts text from images.
  • Image captioning generates descriptions of images.
  • Object detection identifies multiple objects in images.
  • APIs and endpoints connect applications to AI services.
  • Authentication secures AI access.
  • Responsible AI principles apply to computer vision systems.
  • Hallucinations are inaccurate AI-generated outputs.

Quick Knowledge Check

Question 1

What is OCR used for?

Answer

Extracting text from images or scanned documents.


Question 2

What does image captioning do?

Answer

Generates natural-language descriptions of images.


Question 3

Why are multimodal models useful?

Answer

They can process multiple types of input such as text and images together.


Question 4

Why is fairness important in computer vision?

Answer

To reduce biased or uneven performance across different groups of people.


Practice Exam Questions

Question 1

What is a multimodal AI model?

A. A model that processes only text
B. A model capable of processing multiple types of input such as text and images
C. A model used only for networking
D. A model designed exclusively for spreadsheets


Correct Answer

B. A model capable of processing multiple types of input such as text and images


Explanation

Multimodal models can process and combine different forms of input, including text, images, audio, and video.


Why the Other Answers Are Incorrect

A. A model that processes only text

That describes a text-only model.

C. A model used only for networking

Networking is unrelated to multimodal AI.

D. A model designed exclusively for spreadsheets

This is unrelated to AI modalities.


Question 2

Which Azure service provides computer vision capabilities such as image analysis and OCR?

A. Azure AI Vision
B. Azure Backup
C. Azure Virtual Desktop
D. Azure Monitor


Correct Answer

A. Azure AI Vision


Explanation

Azure AI Vision provides computer vision features including OCR, object detection, and image captioning.


Why the Other Answers Are Incorrect

B. Azure Backup

This is a backup service.

C. Azure Virtual Desktop

This provides desktop virtualization.

D. Azure Monitor

This is used for monitoring and diagnostics.


Question 3

What does OCR stand for?

A. Optical Character Recognition
B. Operational Cloud Routing
C. Object Classification Registry
D. Open Compute Rendering


Correct Answer

A. Optical Character Recognition


Explanation

OCR extracts text from images or scanned documents.


Why the Other Answers Are Incorrect

B. Operational Cloud Routing

This is not an AI vision term.

C. Object Classification Registry

This is not the meaning of OCR.

D. Open Compute Rendering

This is unrelated to text extraction.


Question 4

What is the PRIMARY purpose of object detection?

A. To identify and locate objects within an image
B. To translate speech into text
C. To summarize long documents
D. To improve internet speed


Correct Answer

A. To identify and locate objects within an image


Explanation

Object detection identifies multiple objects and their positions within an image.


Why the Other Answers Are Incorrect

B. To translate speech into text

This is a speech recognition task.

C. To summarize long documents

This is a text analysis task.

D. To improve internet speed

Object detection does not affect networking.


Question 5

What does image captioning do?

A. Generates natural-language descriptions of images
B. Converts text into audio
C. Detects malware in files
D. Compresses images automatically


Correct Answer

A. Generates natural-language descriptions of images


Explanation

Image captioning uses AI to describe visual content in natural language.


Why the Other Answers Are Incorrect

B. Converts text into audio

This is speech synthesis.

C. Detects malware in files

This is unrelated to computer vision.

D. Compresses images automatically

Captioning does not perform compression.


Question 6

How do applications typically communicate with deployed multimodal models?

A. Through APIs and endpoints
B. Through USB-only connections
C. Through monitor drivers
D. Through spreadsheet templates


Correct Answer

A. Through APIs and endpoints


Explanation

Applications use APIs and endpoints to send prompts and images to AI services.


Why the Other Answers Are Incorrect

B. Through USB-only connections

Cloud AI services use network communication.

C. Through monitor drivers

These are unrelated to AI communication.

D. Through spreadsheet templates

This is unrelated to AI integration.


Question 7

Why is authentication important when accessing Azure AI services?

A. To secure access to AI resources
B. To increase image resolution
C. To improve keyboard performance
D. To reduce monitor brightness


Correct Answer

A. To secure access to AI resources


Explanation

Authentication ensures that only authorized users and applications can access Azure AI services.


Why the Other Answers Are Incorrect

B. To increase image resolution

Authentication does not affect image quality.

C. To improve keyboard performance

This is unrelated to AI services.

D. To reduce monitor brightness

Authentication does not control display settings.


Question 8

Which Responsible AI concern is especially important when analyzing images?

A. Protecting personal and sensitive visual information
B. Increasing video frame rates
C. Improving printer output quality
D. Accelerating spreadsheet calculations


Correct Answer

A. Protecting personal and sensitive visual information


Explanation

Images may contain faces, documents, or other sensitive information that must be protected.


Why the Other Answers Are Incorrect

B. Increasing video frame rates

This is unrelated to Responsible AI.

C. Improving printer output quality

Printers are unrelated to computer vision ethics.

D. Accelerating spreadsheet calculations

This is unrelated to image analysis.


Question 9

What are hallucinations in multimodal AI systems?

A. Incorrect or fabricated AI-generated outputs
B. Hardware installation failures
C. Internet connectivity issues
D. Audio recording problems


Correct Answer

A. Incorrect or fabricated AI-generated outputs


Explanation

Hallucinations occur when AI generates inaccurate or invented descriptions or answers.


Why the Other Answers Are Incorrect

B. Hardware installation failures

This is unrelated to AI-generated content.

C. Internet connectivity issues

This is a networking problem.

D. Audio recording problems

This relates to audio hardware or software.


Question 10

Which factor can negatively affect computer vision accuracy?

A. Poor image quality
B. Spreadsheet formatting
C. Screen brightness settings
D. Keyboard layout


Correct Answer

A. Poor image quality


Explanation

Blurry images, poor lighting, and low resolution can reduce computer vision accuracy.


Why the Other Answers Are Incorrect

B. Spreadsheet formatting

This does not affect image analysis.

C. Screen brightness settings

This does not directly affect AI image processing.

D. Keyboard layout

Keyboard settings are unrelated to computer vision.


Final Thoughts

Interpreting visual input using deployed multimodal models is an important topic for the AI-901 certification exam. Microsoft expects candidates to understand the foundational concepts behind computer vision and multimodal AI applications, including image analysis, OCR, object detection, image captioning, APIs, authentication, and Responsible AI principles.

Azure AI Vision and Azure AI Foundry provide powerful tools for building intelligent applications capable of understanding and responding to visual information in real-world scenarios.


Go to the AI-901 Exam Prep Hub main page

Build a lightweight application by using Azure Speech in Foundry Tools (AI-901 Exam Prep)

This post is a part of the AI-901: Microsoft Azure AI Fundamentals Exam Prep Hub. 
This topic falls under these sections:
Implement AI solutions by using Microsoft Foundry (55–60%)
--> Implement AI solutions for text and speech by using Foundry
--> Build a lightweight application by using Azure Speech in Foundry Tools


Note that there are 10 practice questions (with answers and explanations) for each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available on the hub below the exam topics section.

Speech-enabled AI applications are becoming increasingly common in customer service, accessibility, virtual assistants, and productivity solutions. Microsoft Azure provides speech services that allow developers to add speech recognition and speech synthesis capabilities to lightweight AI applications.

For the AI-901 certification exam, candidates should understand the foundational concepts behind building lightweight speech-enabled applications using Azure Speech and Microsoft Foundry tools.

This topic falls under the “Implement AI solutions for text and speech by using Foundry” section of the AI-901 exam objectives.


What Is Azure AI Speech?

Azure AI Speech is a cloud-based AI service that enables speech-related functionality in applications.

Azure AI Speech supports:

  • Speech recognition
  • Speech synthesis
  • Speech translation
  • Voice generation

What Is a Lightweight Application?

A lightweight application is a simple application designed to perform focused tasks with minimal complexity.

Characteristics include:

  • Simple user interface
  • Fast deployment
  • Lower resource usage
  • Easy maintenance

Examples of Lightweight Speech Applications

Examples include:

  • Voice-enabled chatbots
  • Simple voice assistants
  • Speech-to-text applications
  • Text-to-speech readers
  • Voice-controlled support tools

Azure AI Foundry

Azure AI Foundry provides tools for building, deploying, and testing AI-powered applications.

Developers can:

  • Access AI services
  • Configure models
  • Test applications
  • Manage deployments

Speech Recognition

Speech recognition converts spoken language into text.

This process is commonly called:

  • Speech-to-text (STT)
  • Automatic speech recognition (ASR)

Example

Spoken Input

“Schedule a meeting tomorrow.”

Recognized Text

“Schedule a meeting tomorrow.”


Speech Synthesis

Speech synthesis converts written text into spoken audio.

This process is commonly called:

  • Text-to-speech (TTS)

Example

Text

“Your appointment is confirmed.”

Spoken Output

The application reads the text aloud.


Speech Translation

Speech translation converts spoken language from one language into another.


Example

Spoken English

“Good morning.”

Translated Spanish Audio

“Buenos días.”


Voice Generation

AI systems can generate natural-sounding voices for:

  • Virtual assistants
  • Narration
  • Accessibility
  • Customer service systems

Basic Workflow of a Speech Application

A lightweight speech application commonly follows this workflow:

  1. User speaks into microphone
  2. Application captures audio
  3. Azure Speech processes audio
  4. Speech is converted to text
  5. Application processes text
  6. Optional speech synthesis generates spoken response

Example End-to-End Scenario

User Speaks

“What are today’s weather conditions?”

Speech Service

Converts speech to text

AI Processing

Generates response

Text-to-Speech

Reads response aloud


APIs and Endpoints

Applications communicate with Azure Speech services using:

  • APIs
  • Endpoints

These allow applications to send requests and receive responses programmatically.


Authentication

Applications must securely authenticate before using Azure Speech services.

Common methods include:

  • API keys
  • Azure credentials
  • Managed identities

Common User Interface Components

A lightweight speech application often includes:

  • Microphone input button
  • Text display area
  • Playback controls
  • Response output area

Real-Time Processing

Many speech applications process audio in real time.

This allows conversational experiences with minimal delay.


Streaming Audio

Streaming audio enables continuous processing of speech as users speak.

Benefits include:

  • Faster responses
  • More natural interactions
  • Reduced waiting time

Conversation Context

Some applications preserve context across interactions.

This allows more natural conversations.


Example

User

“Who founded Microsoft?”

User Later

“When was it created?”

The system understands “it” refers to Microsoft.


System Prompts

System prompts guide AI behavior and responses.

They help define:

  • Tone
  • Personality
  • Response style
  • Safety boundaries

Example System Prompt

“You are a friendly virtual assistant.”


Responsible AI Considerations

Speech-enabled applications should follow Responsible AI principles.

Key considerations include:

  • Privacy
  • Security
  • Inclusiveness
  • Transparency
  • Fairness
  • Accountability

Privacy Concerns

Speech systems may process sensitive spoken information.

Organizations should:

  • Secure recordings
  • Protect user conversations
  • Minimize unnecessary data retention

Inclusiveness

Speech applications should support:

  • Different accents
  • Multiple languages
  • Diverse speech patterns
  • Accessibility needs

Transparency

Users should know:

  • AI is processing speech
  • Audio may be analyzed
  • AI-generated responses may contain errors

Hallucinations

Generative AI systems may occasionally generate inaccurate responses.

These inaccuracies are called hallucinations.

Applications should not assume responses are always correct.


Error Handling

Applications should handle:

  • Background noise
  • Recognition errors
  • Authentication failures
  • Network interruptions
  • Rate limits

Background Noise Challenges

Speech recognition accuracy may decrease in:

  • Loud environments
  • Crowded spaces
  • Poor microphone conditions

Rate Limits

Azure AI services may limit request frequency.

Applications should handle throttling gracefully.


Latency

Latency refers to delays between:

  • User speech
  • AI processing
  • Spoken responses

Low latency improves user experience.


Advantages of Speech-Enabled Applications

Benefits include:

  • Natural interaction
  • Hands-free usage
  • Accessibility improvements
  • Faster communication
  • Improved engagement

Limitations of Speech Applications

Challenges include:

  • Accent variability
  • Background noise
  • Recognition inaccuracies
  • Privacy concerns
  • Network dependency

Common Real-World Scenarios


Scenario 1: Voice Assistant

Goal

Allow users to ask spoken questions.

Features

  • Speech recognition
  • Spoken responses
  • Conversational interaction

Scenario 2: Accessibility Tool

Goal

Assist visually impaired users.

Features

  • Text-to-speech
  • Voice commands
  • Audio navigation

Scenario 3: Customer Support Bot

Goal

Provide voice-based support.

Features

  • Real-time speech recognition
  • AI-generated responses
  • Multilingual support

High-Level Application Workflow

A simplified workflow includes:

  1. Capture speech
  2. Convert speech to text
  3. Process request
  4. Generate response
  5. Convert response to speech
  6. Play audio response

Example High-Level Pseudocode

audio = capture_audio()
text = speech_to_text(audio)
response = process_request(text)
speak(response)

For AI-901, understanding the workflow is more important than memorizing exact syntax.


Important AI-901 Exam Tips

For the exam, remember these key points:

  • Azure AI Speech provides speech-related AI services.
  • Speech recognition converts speech to text.
  • Speech synthesis converts text to speech.
  • Azure AI Foundry supports AI application development.
  • APIs and endpoints connect applications to cloud AI services.
  • Authentication secures access to Azure services.
  • Streaming audio supports real-time interaction.
  • Responsible AI principles apply to speech-enabled applications.
  • Inclusiveness is important for diverse speech patterns and accents.
  • Hallucinations are inaccurate AI-generated outputs.

Quick Knowledge Check

Question 1

What does speech recognition do?

Answer

Converts spoken language into text.


Question 2

What does speech synthesis do?

Answer

Converts text into spoken audio.


Question 3

Why is authentication important?

Answer

It secures access to Azure AI services.


Question 4

Why is inclusiveness important in speech applications?

Answer

To support users with different accents, languages, and accessibility needs.


Practice Exam Questions

Question 1

What is the PRIMARY purpose of Azure AI Speech?

A. To manage virtual machines
B. To provide speech-related AI capabilities such as speech recognition and speech synthesis
C. To monitor network hardware
D. To create relational databases


Correct Answer

B. To provide speech-related AI capabilities such as speech recognition and speech synthesis


Explanation

Azure AI Speech provides cloud-based speech services including speech-to-text and text-to-speech capabilities.


Why the Other Answers Are Incorrect

A. To manage virtual machines

Virtual machine management is unrelated to speech AI.

C. To monitor network hardware

Azure AI Speech does not monitor infrastructure devices.

D. To create relational databases

Database creation is unrelated to speech services.


Question 2

What does speech recognition do?

A. Converts speech into text
B. Converts images into speech
C. Detects objects in video
D. Compresses audio files


Correct Answer

A. Converts speech into text


Explanation

Speech recognition, also called speech-to-text, converts spoken language into written text.


Why the Other Answers Are Incorrect

B. Converts images into speech

This is unrelated to speech recognition.

C. Detects objects in video

This is a computer vision task.

D. Compresses audio files

Speech recognition does not perform compression.


Question 3

What does speech synthesis perform?

A. Converts text into spoken audio
B. Detects entities in text
C. Creates spreadsheets automatically
D. Increases internet bandwidth


Correct Answer

A. Converts text into spoken audio


Explanation

Speech synthesis, also called text-to-speech, generates spoken audio from written text.


Why the Other Answers Are Incorrect

B. Detects entities in text

This is a text analysis task.

C. Creates spreadsheets automatically

This is unrelated to speech services.

D. Increases internet bandwidth

Speech synthesis does not affect networking.


Question 4

Which Microsoft platform provides tools for building and managing AI applications?

A. Azure AI Foundry
B. Microsoft Paint
C. Windows Media Player
D. Microsoft Calculator


Correct Answer

A. Azure AI Foundry


Explanation

Azure AI Foundry provides tools for building, testing, deploying, and managing AI solutions.


Why the Other Answers Are Incorrect

B. Microsoft Paint

Paint is a graphics editor.

C. Windows Media Player

This is a media playback application.

D. Microsoft Calculator

This is a utility application.


Question 5

How do lightweight applications typically communicate with Azure AI Speech services?

A. Through APIs and endpoints
B. Through printer drivers only
C. Through USB flash drives
D. Through monitor calibration settings


Correct Answer

A. Through APIs and endpoints


Explanation

Applications use APIs and cloud endpoints to send requests and receive AI-generated responses.


Why the Other Answers Are Incorrect

B. Through printer drivers only

Printer drivers are unrelated to AI services.

C. Through USB flash drives

Cloud AI services use network communication.

D. Through monitor calibration settings

This is unrelated to APIs.


Question 6

Why is authentication important when using Azure AI Speech?

A. To secure access to AI services
B. To improve microphone volume
C. To increase response creativity
D. To remove network latency


Correct Answer

A. To secure access to AI services


Explanation

Authentication helps ensure only authorized users and applications can access Azure AI resources.


Why the Other Answers Are Incorrect

B. To improve microphone volume

Authentication does not affect hardware settings.

C. To increase response creativity

Creativity is controlled through model parameters.

D. To remove network latency

Authentication does not control connection speed.


Question 7

What is a benefit of streaming audio in speech-enabled applications?

A. Faster and more natural interactions
B. Permanent elimination of all speech errors
C. Automatic hardware upgrades
D. Unlimited cloud storage


Correct Answer

A. Faster and more natural interactions


Explanation

Streaming audio enables real-time processing, improving responsiveness and conversational flow.


Why the Other Answers Are Incorrect

B. Permanent elimination of all speech errors

Speech systems can still make mistakes.

C. Automatic hardware upgrades

Streaming does not upgrade hardware.

D. Unlimited cloud storage

Streaming does not affect storage capacity.


Question 8

Which Responsible AI consideration is especially important for speech-enabled applications?

A. Protecting sensitive spoken information
B. Increasing screen brightness
C. Improving printer speed
D. Accelerating video rendering


Correct Answer

A. Protecting sensitive spoken information


Explanation

Speech applications may process personal or confidential audio, making privacy and security important concerns.


Why the Other Answers Are Incorrect

B. Increasing screen brightness

This is unrelated to Responsible AI.

C. Improving printer speed

Printers are unrelated to speech AI.

D. Accelerating video rendering

This is unrelated to speech processing.


Question 9

What challenge can negatively affect speech recognition accuracy?

A. Background noise
B. Spreadsheet formatting
C. Screen resolution
D. Video playback speed


Correct Answer

A. Background noise


Explanation

Loud environments and poor audio quality can reduce speech recognition accuracy.


Why the Other Answers Are Incorrect

B. Spreadsheet formatting

This does not affect speech recognition.

C. Screen resolution

Speech recognition does not depend on display quality.

D. Video playback speed

This is unrelated to speech input processing.


Question 10

What is one advantage of speech-enabled AI applications?

A. Hands-free interaction
B. Guaranteed perfect accuracy
C. Elimination of all privacy concerns
D. Removal of internet requirements


Correct Answer

A. Hands-free interaction


Explanation

Speech-enabled applications allow users to interact naturally without typing.


Why the Other Answers Are Incorrect

B. Guaranteed perfect accuracy

Speech systems can still make errors.

C. Elimination of all privacy concerns

Privacy protections are still necessary.

D. Removal of internet requirements

Cloud-based speech services generally require internet connectivity.


Final Thoughts

Building lightweight applications using Azure Speech in Foundry tools is an important AI-901 exam topic. Microsoft expects candidates to understand how speech-enabled AI applications work, including speech recognition, speech synthesis, APIs, authentication, Responsible AI considerations, and real-time conversational workflows.

Azure AI Speech and Azure AI Foundry provide powerful cloud-based tools that make it easier to create modern voice-enabled AI applications for business, accessibility, and productivity scenarios.


Go to the AI-901 Exam Prep Hub main page

Build a lightweight application that includes text analysis (AI-901 Exam Prep)

This post is a part of the AI-901: Microsoft Azure AI Fundamentals Exam Prep Hub. 
This topic falls under these sections:
Implement AI solutions by using Microsoft Foundry (55–60%)
--> Implement AI solutions for text and speech by using Foundry
--> Build a lightweight application that includes text analysis


Note that there are 10 practice questions (with answers and explanations) for each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available on the hub below the exam topics section.

Text analysis is one of the most common AI workloads used in modern applications. Organizations use AI-powered text analysis to extract meaning, identify sentiment, detect entities, summarize content, and automate language-related tasks.

For the AI-901 certification exam, candidates should understand the foundational concepts behind building lightweight applications that use text analysis services through Microsoft Azure AI Foundry and Azure AI services.

This topic falls under the “Implement AI solutions for text and speech by using Foundry” section of the AI-901 exam objectives.


What Is Text Analysis?

Text analysis is the process of using AI to extract meaning and insights from written language.

AI systems analyze text to identify:

  • Sentiment
  • Key phrases
  • Named entities
  • Language
  • Topics
  • Summaries

Examples of Text Analysis Applications

Organizations use text analysis in:

  • Customer feedback systems
  • Chatbots
  • Social media monitoring
  • Document analysis
  • Customer support automation
  • Content moderation

What Is a Lightweight Application?

A lightweight application is a simple application focused on core functionality.

Characteristics include:

  • Minimal interface
  • Reduced complexity
  • Fast deployment
  • Lower resource usage

Common Lightweight Text Analysis Applications

Examples include:

  • Sentiment analysis web apps
  • Customer review analyzers
  • Document summarization tools
  • Language detection apps
  • Keyword extraction utilities

Azure AI Foundry

Azure AI Foundry provides tools for creating and managing AI-powered applications.

Developers can:

  • Access AI services
  • Build applications
  • Test models
  • Configure AI workflows

Azure AI Language Services

Azure AI Language provides text analysis capabilities.

These services support:

  • Sentiment analysis
  • Entity recognition
  • Key phrase extraction
  • Summarization
  • Language detection

Basic Text Analysis Workflow

A typical workflow includes:

  1. User submits text
  2. Application sends text to AI service
  3. AI service analyzes text
  4. Service returns results
  5. Application displays insights

Example Workflow

User Input

“The customer service was excellent, but shipping was slow.”

AI Analysis

  • Positive sentiment: customer service
  • Negative sentiment: shipping delay

APIs and Endpoints

Applications communicate with AI services through APIs and endpoints.

The application sends requests containing text and receives analysis results.


Authentication

Applications must authenticate securely before accessing AI services.

Common methods include:

  • API keys
  • Azure credentials
  • Managed identities

Sentiment Analysis

Sentiment analysis identifies emotional tone in text.

Common sentiment categories:

  • Positive
  • Negative
  • Neutral
  • Mixed

Example

Text

“I love the product, but setup was confusing.”

Result

Mixed sentiment


Key Phrase Extraction

Key phrase extraction identifies important words and phrases.


Example

Text

“Azure AI Foundry simplifies AI application development.”

Extracted Key Phrases

  • Azure AI Foundry
  • AI application development

Entity Recognition

Entity recognition identifies important entities in text.

Common entity types:

  • People
  • Organizations
  • Locations
  • Dates
  • Products

Example

Text

“Microsoft announced updates in Seattle.”

Detected Entities

  • Microsoft → Organization
  • Seattle → Location

Language Detection

Language detection identifies the language of text.


Example

Text

“Bonjour tout le monde.”

Detected Language

French


Text Summarization

Summarization creates shorter versions of long text while preserving key ideas.


Example

Original Text

A long customer review

Summary

“Customer liked the product but experienced delivery delays.”


Content Moderation

Some applications use text analysis to identify:

  • Offensive language
  • Harmful content
  • Unsafe text

Content moderation supports Responsible AI.


User Interface Components

A lightweight text analysis application commonly includes:

  • Text input box
  • Analyze button
  • Results display area

Example Lightweight Application

A simple customer feedback analyzer may:

  1. Accept customer reviews
  2. Perform sentiment analysis
  3. Display positive or negative sentiment

High-Level Application Architecture

Typical components include:

  • Frontend interface
  • AI service endpoint
  • Authentication layer
  • Results display

Example High-Level Pseudocode

text = get_user_input()
results = analyze_text(text)
display_results(results)

For AI-901, understanding the workflow is more important than memorizing code syntax.


Error Handling

Applications should handle:

  • Invalid input
  • Authentication failures
  • Network issues
  • Rate limits
  • Service unavailability

Rate Limits

AI services may limit request frequency.

Applications should gracefully handle throttling and retries.


Responsible AI Considerations

Text analysis applications should follow Responsible AI principles.

Important considerations include:

  • Fairness
  • Privacy
  • Security
  • Transparency
  • Accountability
  • Inclusiveness

Privacy and Security

Applications should protect:

  • User input
  • Sensitive information
  • Authentication credentials

Bias in Text Analysis

AI systems may produce biased results if training data contains bias.

Organizations should monitor outputs carefully.


Transparency

Users should understand:

  • AI is being used
  • How results are generated
  • Potential limitations

Hallucinations and Inaccuracies

Generative AI features may occasionally produce inaccurate summaries or interpretations.

Applications should not assume AI outputs are always correct.


Common Real-World Scenarios


Scenario 1: Customer Review Analyzer

Goal

Analyze customer feedback sentiment.

Features

  • Positive/negative classification
  • Key phrase extraction

Scenario 2: Social Media Monitoring

Goal

Monitor public sentiment about a brand.

Features

  • Trend analysis
  • Entity recognition
  • Sentiment tracking

Scenario 3: Document Summarization Tool

Goal

Generate concise summaries of large documents.

Features

  • Summarization
  • Keyword extraction
  • Language detection

Advantages of Text Analysis Applications

Benefits include:

  • Faster information processing
  • Automation
  • Improved customer insights
  • Scalability
  • Better decision-making

Limitations of Text Analysis Applications

Challenges include:

  • Ambiguous language
  • Sarcasm detection difficulties
  • Context limitations
  • Potential bias
  • Accuracy limitations

Important AI-901 Exam Tips

For the exam, remember these key points:

  • Text analysis extracts insights from written language.
  • Lightweight applications focus on simple core functionality.
  • Azure AI Language supports common text analysis tasks.
  • Sentiment analysis detects emotional tone.
  • Entity recognition identifies important entities.
  • Key phrase extraction identifies important terms.
  • Summarization shortens text while preserving meaning.
  • APIs and endpoints connect applications to AI services.
  • Authentication secures AI access.
  • Responsible AI principles apply to text analysis applications.

Quick Knowledge Check

Question 1

What does sentiment analysis identify?

Answer

The emotional tone of text.


Question 2

What is entity recognition?

Answer

The process of identifying entities such as people, organizations, and locations.


Question 3

Why is authentication important?

Answer

It secures access to AI services.


Question 4

What is the purpose of summarization?

Answer

To create shorter versions of longer text while preserving key information.


Practice Exam Questions

Question 1

What is the PRIMARY purpose of text analysis in AI applications?

A. To physically store documents
B. To extract meaning and insights from written text
C. To improve monitor resolution
D. To compress video files


Correct Answer

B. To extract meaning and insights from written text


Explanation

Text analysis uses AI to identify patterns, meaning, sentiment, entities, and other insights from text data.


Why the Other Answers Are Incorrect

A. To physically store documents

Text analysis processes text; it does not physically store files.

C. To improve monitor resolution

This is unrelated to AI text analysis.

D. To compress video files

This is unrelated to language processing.


Question 2

Which Azure service provides AI-powered text analysis capabilities?

A. Azure AI Language
B. Azure Virtual Desktop
C. Azure Kubernetes Service
D. Azure Backup


Correct Answer

A. Azure AI Language


Explanation

Azure AI Language provides capabilities such as sentiment analysis, entity recognition, summarization, and key phrase extraction.


Why the Other Answers Are Incorrect

B. Azure Virtual Desktop

This provides desktop virtualization.

C. Azure Kubernetes Service

This is used for container orchestration.

D. Azure Backup

This is a backup service.


Question 3

What does sentiment analysis determine?

A. The language translation speed
B. The emotional tone of text
C. The image resolution of documents
D. The network latency of APIs


Correct Answer

B. The emotional tone of text


Explanation

Sentiment analysis identifies whether text is positive, negative, neutral, or mixed.


Why the Other Answers Are Incorrect

A. The language translation speed

Sentiment analysis does not measure performance.

C. The image resolution of documents

This is unrelated to text sentiment.

D. The network latency of APIs

This is unrelated to text analysis.


Question 4

Which text analysis technique identifies important words and phrases in text?

A. Object detection
B. Key phrase extraction
C. Speech synthesis
D. Regression analysis


Correct Answer

B. Key phrase extraction


Explanation

Key phrase extraction identifies the most important terms and concepts within text.


Why the Other Answers Are Incorrect

A. Object detection

This is a computer vision task.

C. Speech synthesis

This converts text into speech.

D. Regression analysis

This predicts numeric values.


Question 5

What is entity recognition used for?

A. Detecting entities such as people, locations, and organizations
B. Compressing text documents
C. Increasing internet speed
D. Rendering video content


Correct Answer

A. Detecting entities such as people, locations, and organizations


Explanation

Entity recognition identifies and categorizes important items mentioned in text.


Why the Other Answers Are Incorrect

B. Compressing text documents

Entity recognition does not reduce file sizes.

C. Increasing internet speed

This is unrelated to networking.

D. Rendering video content

This is unrelated to natural language processing.


Question 6

What is the PRIMARY purpose of text summarization?

A. To translate text into audio
B. To create shorter versions of text while preserving key information
C. To permanently store documents
D. To classify images


Correct Answer

B. To create shorter versions of text while preserving key information


Explanation

Summarization condenses content into a concise version that retains important details.


Why the Other Answers Are Incorrect

A. To translate text into audio

This describes speech synthesis.

C. To permanently store documents

Summarization does not store data.

D. To classify images

This is unrelated to text processing.


Question 7

How do lightweight text analysis applications typically communicate with Azure AI services?

A. Through APIs and endpoints
B. Through USB drives only
C. Through monitor drivers
D. Through spreadsheet formatting tools


Correct Answer

A. Through APIs and endpoints


Explanation

Applications connect to Azure AI services using APIs and service endpoints.


Why the Other Answers Are Incorrect

B. Through USB drives only

Cloud AI services use network communication.

C. Through monitor drivers

This is unrelated to AI communication.

D. Through spreadsheet formatting tools

These are unrelated to APIs.


Question 8

Why is authentication important in AI-powered text analysis applications?

A. To improve image sharpness
B. To secure access to AI services and resources
C. To increase response creativity
D. To summarize text automatically


Correct Answer

B. To secure access to AI services and resources


Explanation

Authentication ensures only authorized users and applications can access AI services.


Why the Other Answers Are Incorrect

A. To improve image sharpness

Authentication does not affect graphics.

C. To increase response creativity

Creativity is influenced by model parameters such as temperature.

D. To summarize text automatically

Authentication does not perform analysis tasks.


Question 9

Which Responsible AI concern involves AI systems producing unfair or inaccurate results due to biased training data?

A. Bias
B. Resolution scaling
C. Video rendering
D. Hardware acceleration


Correct Answer

A. Bias


Explanation

Bias occurs when AI systems generate unfair or skewed outputs due to imbalanced or problematic training data.


Why the Other Answers Are Incorrect

B. Resolution scaling

This relates to graphics.

C. Video rendering

This relates to media processing.

D. Hardware acceleration

This relates to computing performance.


Question 10

What is one advantage of a lightweight text analysis application?

A. Faster deployment and lower complexity
B. Unlimited storage capacity
C. Elimination of all AI inaccuracies
D. Removal of internet requirements


Correct Answer

A. Faster deployment and lower complexity


Explanation

Lightweight applications are typically simpler, easier to build, and quicker to deploy.


Why the Other Answers Are Incorrect

B. Unlimited storage capacity

Storage capacity is unrelated to application weight.

C. Elimination of all AI inaccuracies

AI systems can still produce errors.

D. Removal of internet requirements

Cloud AI services generally require internet connectivity.


Final Thoughts

Building lightweight applications that include text analysis is an important topic for the AI-901 certification exam. Microsoft expects candidates to understand the foundational workflow of AI-powered text processing applications, including sentiment analysis, entity recognition, summarization, APIs, authentication, and Responsible AI principles.

Azure AI Foundry and Azure AI Language provide accessible tools for building intelligent text analysis applications that support real-world business needs.


Go to the AI-901 Exam Prep Hub main page

Respond to spoken prompts by using a deployed multimodal model (AI-901 Exam Prep)

This post is a part of the AI-901: Microsoft Azure AI Fundamentals Exam Prep Hub. 
This topic falls under these sections:
Implement AI solutions by using Microsoft Foundry (55–60%)
--> Implement AI solutions for text and speech by using Foundry
--> Respond to spoken prompts by using a deployed multimodal model


Note that there are 10 practice questions (with answers and explanations) for each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available on the hub below the exam topics section.

Modern AI systems increasingly support multimodal interactions, allowing users to communicate using speech, text, images, and other forms of input. Multimodal AI models can process and combine multiple input types to generate intelligent responses.

For the AI-901 certification exam, candidates should understand the foundational concepts behind responding to spoken prompts by using deployed multimodal AI models within Microsoft Azure AI Foundry and related Azure AI services.

This topic falls under the “Implement AI solutions for text and speech by using Foundry” section of the AI-901 exam objectives.


What Is a Multimodal Model?

A multimodal model is an AI model capable of processing multiple forms of input and output.

Examples of modalities include:

  • Text
  • Speech/audio
  • Images
  • Video

A multimodal model can combine information from multiple sources to generate responses.


Examples of Multimodal AI Systems

Common examples include:

  • Voice assistants
  • AI copilots
  • Speech-enabled chatbots
  • Image-and-text AI assistants
  • Interactive educational tools

What Is a Spoken Prompt?

A spoken prompt is a voice-based user input provided through audio.

Instead of typing a question, the user speaks it aloud.


Example Spoken Prompt

“What is machine learning?”

The AI system converts the speech into text for processing.


Speech Recognition

Speech recognition converts spoken language into text.

This process is often called:

  • Speech-to-text (STT)
  • Automatic speech recognition (ASR)

Example Speech Recognition Workflow

Spoken Audio

“What time is the meeting tomorrow?”

Converted Text

“What time is the meeting tomorrow?”

The text is then processed by the AI model.


Speech Synthesis

Speech synthesis converts text into spoken audio.

This process is often called:

  • Text-to-speech (TTS)

Example

AI Response Text

“The meeting starts at 10 AM.”

Spoken Output

The AI system reads the response aloud.


Azure AI Speech

Azure AI Speech provides speech recognition and speech synthesis capabilities.

Features include:

  • Speech-to-text
  • Text-to-speech
  • Speech translation
  • Voice generation

Azure AI Foundry

Azure AI Foundry provides tools for building, deploying, and testing AI applications and multimodal solutions.


Basic Workflow for Spoken Prompt Applications

A typical workflow includes:

  1. User speaks into microphone
  2. Speech recognition converts audio to text
  3. Text is sent to deployed multimodal model
  4. AI model generates response
  5. Optional speech synthesis converts response to audio
  6. User hears spoken reply

Example End-to-End Scenario

User Speaks

“Summarize today’s sales report.”

Speech Recognition

Converts audio to text

AI Model

Generates summary

Speech Synthesis

Reads summary aloud


Deployed Models

A deployed model is an AI model made available through a cloud endpoint for real-time use.

Applications interact with deployed models using APIs.


APIs and Endpoints

Applications communicate with deployed models through:

  • APIs
  • Endpoints

The application sends requests and receives responses programmatically.


Authentication

Applications must securely authenticate before accessing AI services.

Common methods include:

  • API keys
  • Azure credentials
  • Managed identities

Lightweight Speech Applications

Lightweight speech-enabled applications typically include:

  • Microphone input
  • Speech processing
  • AI response generation
  • Audio playback

Conversation Context

Many speech-enabled applications maintain context between interactions.

This allows more natural conversations.


Example

User

“Who founded Microsoft?”

User Later

“When was it founded?”

The system remembers that “it” refers to Microsoft.


System Prompts

System prompts guide model behavior.

They help define:

  • Tone
  • Personality
  • Safety rules
  • Output style

Example System Prompt

“You are a professional customer support assistant.”


Model Parameters

Applications may configure settings such as:

  • Temperature
  • Maximum tokens
  • Top-p sampling

Temperature

Temperature controls response creativity.

Low TemperatureHigh Temperature
More predictableMore creative
More focusedMore varied

Streaming Responses

Some applications stream speech or text responses incrementally.

Streaming improves responsiveness and user experience.


Real-Time Interaction

Speech-enabled AI systems often support real-time interaction.

This creates conversational experiences similar to human dialogue.


Common Real-World Use Cases


Scenario 1: Voice Assistant

Goal

Answer spoken user questions.

Features

  • Speech recognition
  • Conversational AI
  • Spoken responses

Scenario 2: Hands-Free AI Assistant

Goal

Allow users to interact without typing.

Features

  • Voice commands
  • Audio responses
  • Context retention

Scenario 3: Accessibility Support

Goal

Assist users with visual or mobility impairments.

Features

  • Voice interaction
  • Spoken guidance
  • Accessibility improvements

Responsible AI Considerations

Speech-enabled AI applications should follow Responsible AI principles.

Important considerations include:

  • Privacy
  • Security
  • Transparency
  • Fairness
  • Inclusiveness
  • Accountability

Privacy Concerns

Speech applications may process sensitive spoken information.

Organizations should:

  • Protect audio recordings
  • Secure conversations
  • Limit unnecessary data storage

Transparency

Users should understand:

  • AI is processing speech
  • Audio may be recorded or analyzed
  • AI-generated responses may contain inaccuracies

Inclusiveness

Speech systems should support:

  • Different accents
  • Languages
  • Speech patterns
  • Accessibility needs

Hallucinations

Generative AI models may produce inaccurate or fabricated responses.

These incorrect outputs are called hallucinations.

Applications should not assume all generated responses are correct.


Latency

Speech-enabled applications must minimize delays between:

  • Speech input
  • AI processing
  • Spoken responses

High latency negatively affects user experience.


Error Handling

Applications should handle:

  • Speech recognition errors
  • Background noise
  • Network failures
  • Authentication issues
  • Rate limits

Background Noise Challenges

Speech recognition may struggle with:

  • Loud environments
  • Multiple speakers
  • Poor microphone quality

Advantages of Spoken AI Interfaces

Benefits include:

  • Natural interaction
  • Hands-free operation
  • Accessibility improvements
  • Faster communication
  • Improved user experience

Limitations of Spoken AI Interfaces

Challenges include:

  • Speech recognition errors
  • Accent variability
  • Noise interference
  • Privacy concerns
  • Hallucinations
  • Latency

High-Level Application Workflow

A simplified workflow includes:

  1. Capture speech
  2. Convert speech to text
  3. Send prompt to model
  4. Receive response
  5. Convert response to speech
  6. Play audio response

Example High-Level Pseudocode

audio = capture_audio()
text = speech_to_text(audio)
response = generate_ai_response(text)
speak(response)

For AI-901, understanding the workflow is more important than memorizing exact syntax.


Important AI-901 Exam Tips

For the exam, remember these key points:

  • Multimodal models process multiple input types.
  • Spoken prompts use speech as input.
  • Speech recognition converts speech to text.
  • Speech synthesis converts text to speech.
  • Azure AI Speech supports speech workloads.
  • Azure AI Foundry supports AI application development.
  • APIs and endpoints connect applications to deployed models.
  • Authentication secures AI services.
  • Responsible AI principles apply to speech-enabled systems.
  • Hallucinations are inaccurate AI-generated outputs.

Quick Knowledge Check

Question 1

What does speech recognition do?

Answer

Converts spoken language into text.


Question 2

What does speech synthesis do?

Answer

Converts text into spoken audio.


Question 3

What is a multimodal model?

Answer

An AI model that processes multiple forms of input and output.


Question 4

Why is inclusiveness important in speech systems?

Answer

To support different accents, languages, and accessibility needs.


Practice Exam Questions

Question 1

What is a multimodal AI model?

A. A model that only processes text
B. A model capable of processing multiple forms of input and output
C. A model used only for spreadsheets
D. A model that stores physical hardware configurations


Correct Answer

B. A model capable of processing multiple forms of input and output


Explanation

Multimodal models can work with different data types such as text, speech, images, and video.


Why the Other Answers Are Incorrect

A. A model that only processes text

That describes a text-only model, not a multimodal model.

C. A model used only for spreadsheets

This is unrelated to AI modalities.

D. A model that stores physical hardware configurations

This is unrelated to AI processing.


Question 2

What is the PRIMARY purpose of speech recognition?

A. To convert speech into text
B. To convert images into audio
C. To increase internet speed
D. To generate video animations


Correct Answer

A. To convert speech into text


Explanation

Speech recognition, also called speech-to-text, converts spoken language into written text.


Why the Other Answers Are Incorrect

B. To convert images into audio

Speech recognition does not process images.

C. To increase internet speed

Speech recognition does not affect networking.

D. To generate video animations

This is unrelated to speech processing.


Question 3

What does speech synthesis perform?

A. Converts text into spoken audio
B. Compresses speech files
C. Detects objects in images
D. Removes network latency


Correct Answer

A. Converts text into spoken audio


Explanation

Speech synthesis, also called text-to-speech, generates spoken audio from text.


Why the Other Answers Are Incorrect

B. Compresses speech files

Compression is unrelated to synthesis.

C. Detects objects in images

This is a computer vision task.

D. Removes network latency

Speech synthesis does not control network performance.


Question 4

Which Azure service provides speech recognition and speech synthesis capabilities?

A. Azure AI Speech
B. Azure Backup
C. Azure Firewall
D. Azure Virtual Machines


Correct Answer

A. Azure AI Speech


Explanation

Azure AI Speech supports speech-to-text, text-to-speech, translation, and related speech capabilities.


Why the Other Answers Are Incorrect

B. Azure Backup

This is a storage protection service.

C. Azure Firewall

This is a security service.

D. Azure Virtual Machines

This provides compute infrastructure.


Question 5

What is the purpose of deploying an AI model?

A. To make the model available for applications through an endpoint
B. To physically install computer hardware
C. To permanently disable the model
D. To compress training data


Correct Answer

A. To make the model available for applications through an endpoint


Explanation

Deployment allows applications to access AI models for real-time use.


Why the Other Answers Are Incorrect

B. To physically install computer hardware

Deployment is typically cloud-based.

C. To permanently disable the model

Deployment enables usage rather than disabling it.

D. To compress training data

Deployment does not compress datasets.


Question 6

How do applications typically communicate with deployed AI models?

A. Through APIs and endpoints
B. Through USB-only connections
C. Through monitor settings
D. Through printer drivers


Correct Answer

A. Through APIs and endpoints


Explanation

Applications use APIs connected to endpoints to exchange requests and responses with AI models.


Why the Other Answers Are Incorrect

B. Through USB-only connections

Cloud AI systems use network communication.

C. Through monitor settings

These are unrelated to AI communication.

D. Through printer drivers

Printer drivers are unrelated to AI APIs.


Question 7

Why is conversation context important in speech-enabled AI systems?

A. It allows the AI to remember previous interactions
B. It improves monitor brightness
C. It increases microphone volume automatically
D. It reduces file storage size


Correct Answer

A. It allows the AI to remember previous interactions


Explanation

Maintaining context helps create more natural and coherent conversations.


Why the Other Answers Are Incorrect

B. It improves monitor brightness

Conversation context does not affect displays.

C. It increases microphone volume automatically

This is unrelated to conversation memory.

D. It reduces file storage size

Context retention does not compress files.


Question 8

Which Responsible AI concern is especially important for speech-enabled applications?

A. Protecting sensitive spoken information
B. Increasing screen resolution
C. Accelerating video rendering
D. Improving keyboard layouts


Correct Answer

A. Protecting sensitive spoken information


Explanation

Speech-enabled systems may process personal or confidential audio data, making privacy and security important.


Why the Other Answers Are Incorrect

B. Increasing screen resolution

This is unrelated to Responsible AI.

C. Accelerating video rendering

This is unrelated to speech AI.

D. Improving keyboard layouts

Speech systems are not focused on keyboards.


Question 9

What are hallucinations in generative AI systems?

A. Incorrect or fabricated AI-generated responses
B. Hardware overheating events
C. Audio recording failures
D. Slow network connections


Correct Answer

A. Incorrect or fabricated AI-generated responses


Explanation

Hallucinations occur when AI generates information that is inaccurate or invented.


Why the Other Answers Are Incorrect

B. Hardware overheating events

This is unrelated to AI output quality.

C. Audio recording failures

This is a hardware or software issue.

D. Slow network connections

This relates to connectivity, not AI accuracy.


Question 10

What is one advantage of spoken AI interfaces?

A. Hands-free and natural interaction
B. Elimination of all recognition errors
C. Guaranteed perfect accuracy
D. Removal of all privacy concerns


Correct Answer

A. Hands-free and natural interaction


Explanation

Voice-based interfaces provide convenient and natural interaction experiences.


Why the Other Answers Are Incorrect

B. Elimination of all recognition errors

Speech systems can still make mistakes.

C. Guaranteed perfect accuracy

No AI system is perfectly accurate.

D. Removal of all privacy concerns

Speech applications still require privacy protections.


Final Thoughts

Responding to spoken prompts using deployed multimodal models is an important topic for the AI-901 certification exam. Microsoft expects candidates to understand the foundational workflow behind speech-enabled AI applications, including speech recognition, multimodal processing, speech synthesis, APIs, authentication, and Responsible AI principles.

Azure AI Foundry and Azure AI Speech provide powerful tools for building intelligent conversational applications that support natural voice interactions and modern accessibility-focused experiences.


Go to the AI-901 Exam Prep Hub main page

Create a lightweight client application for an agent (AI-901 Exam Prep)

This post is a part of the AI-901: Microsoft Azure AI Fundamentals Exam Prep Hub. 
This topic falls under these sections:
Implement AI solutions by using Microsoft Foundry (55–60%)
--> Implement generative AI apps and agents by using Foundry
--> Create a lightweight client application for an agent


Note that there are 10 practice questions (with answers and explanations) for each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available on the hub below the exam topics section.

AI agents are becoming increasingly common in modern applications. Organizations use AI agents to answer questions, automate tasks, assist employees, and improve customer experiences. A lightweight client application provides a simple interface that allows users to interact with an AI agent.

For the AI-901 certification exam, candidates should understand the foundational concepts behind creating lightweight client applications that communicate with AI agents using Azure AI Foundry and related Azure AI services.

This topic falls under the “Implement generative AI apps and agents by using Foundry” section of the AI-901 exam objectives.


What Is an AI Agent?

An AI agent is an AI-powered system capable of interacting with users and performing tasks.

Agents can:

  • Answer questions
  • Summarize information
  • Generate content
  • Retrieve data
  • Assist with workflows
  • Perform reasoning tasks

AI agents commonly use large language models (LLMs) to process prompts and generate responses.


What Is a Client Application?

A client application is software that users interact with directly.

The client communicates with backend services, including AI agents.


What Is a Lightweight Client Application?

A lightweight client application is a simple application focused on core functionality.

These applications typically:

  • Have minimal complexity
  • Use simple user interfaces
  • Focus on quick interactions
  • Require fewer resources

Examples of Lightweight Agent Clients

Examples include:

  • Simple web chat applications
  • Mobile AI assistants
  • Internal support tools
  • FAQ chatbots
  • Command-line chat clients

Purpose of a Lightweight Agent Client

The primary purpose is to allow users to communicate with an AI agent through a user-friendly interface.


Typical Agent Client Workflow

A lightweight client application commonly follows this workflow:

  1. User enters a prompt
  2. Application sends request to AI agent
  3. Agent processes the request
  4. Agent generates a response
  5. Application displays the response

Azure AI Foundry

Azure AI Foundry provides tools for building and managing AI applications and agents.

Developers can:

  • Create agents
  • Deploy models
  • Test prompts
  • Manage AI resources
  • Monitor applications

Agent Communication

Client applications communicate with agents through APIs and endpoints.

The client sends prompts and receives responses programmatically.


APIs

An API (Application Programming Interface) allows applications to exchange information.

AI APIs commonly support:

  • Prompt submission
  • Response retrieval
  • Conversation management

Endpoints

Endpoints provide network-accessible locations where client applications can interact with deployed AI agents.


Authentication

Applications must securely authenticate before accessing AI services.

Common authentication methods include:

  • API keys
  • Azure credentials
  • Managed identities

Authentication protects AI resources from unauthorized access.


User Prompts

Users interact with the client application by entering prompts.


Example User Prompt

“Summarize the benefits of machine learning.”


Agent Responses

The AI agent processes the prompt and generates a response.


Example Agent Response

“Machine learning helps automate predictions, identify patterns in data, and improve decision-making.”


Conversation History

Many lightweight client applications maintain conversation history.

This helps preserve context during interactions.


Example Context Retention

User

“What is Azure AI Foundry?”

User Later

“Can it build chatbots?”

The agent understands that “it” refers to Azure AI Foundry.


System Instructions

Agents often use system instructions to guide behavior.

These instructions define:

  • Tone
  • Personality
  • Safety
  • Formatting
  • Scope

Example System Instruction

“You are a helpful technical support assistant. Provide concise and professional answers.”


Model Parameters

Client applications may configure parameters such as:

  • Temperature
  • Maximum tokens
  • Top-p sampling

Temperature

Temperature controls response creativity.

Low TemperatureHigh Temperature
More predictableMore creative
More focusedMore varied

Maximum Tokens

Maximum tokens limit response length.

Lower values generate shorter answers.


Streaming Responses

Some applications stream responses gradually as they are generated.

Streaming improves perceived responsiveness.


User Interface Components

A lightweight chat client commonly includes:

  • Text input field
  • Send button
  • Conversation display
  • Response area

Minimal Application Design

Lightweight clients prioritize:

  • Simplicity
  • Ease of use
  • Fast deployment
  • Low overhead

Error Handling

Applications should handle common issues such as:

  • Invalid credentials
  • Network failures
  • Timeouts
  • Rate limits

Rate Limits

AI services may limit how many requests an application can send within a specific time period.

Applications should handle throttling gracefully.


Logging and Monitoring

Organizations often monitor applications for:

  • Errors
  • Performance
  • Usage
  • Security events
  • Safety concerns

Responsible AI Considerations

Lightweight client applications should follow Responsible AI principles.

Important considerations include:

  • Fairness
  • Privacy
  • Security
  • Transparency
  • Accountability
  • Safety

Content Filtering

Content filters help reduce:

  • Harmful responses
  • Offensive outputs
  • Unsafe instructions

Privacy and Security

Applications should protect:

  • User conversations
  • Authentication secrets
  • Sensitive information

Hallucinations

AI agents may generate incorrect or fabricated information.

These errors are called hallucinations.

Applications should not assume all AI-generated responses are accurate.


Grounding

Grounding connects AI responses to trusted data sources.

Grounded responses are generally more reliable.


Common Real-World Scenarios


Scenario 1: Customer Service Chat Assistant

Goal

Help customers answer common questions.

Features

  • Conversational interface
  • FAQ support
  • Context retention

Scenario 2: Internal IT Assistant

Goal

Help employees troubleshoot technical issues.

Features

  • Guided support
  • Knowledge retrieval
  • Step-by-step instructions

Scenario 3: Educational Tutor

Goal

Assist students with learning topics.

Features

  • Interactive explanations
  • Question answering
  • Personalized responses

Advantages of Lightweight Client Applications

Benefits include:

  • Simpler development
  • Lower cost
  • Faster deployment
  • Easier maintenance
  • Good user experience

Limitations of Lightweight Client Applications

Challenges include:

  • Limited advanced functionality
  • Hallucinations
  • Context limitations
  • Dependency on internet connectivity

High-Level Development Workflow

A simplified workflow typically includes:

  1. Create AI agent
  2. Configure authentication
  3. Build client interface
  4. Connect to endpoint
  5. Send prompts
  6. Display responses
  7. Test and refine

Example High-Level Pseudocode

connect_to_agent()
while True:
prompt = get_user_input()
response = send_prompt(prompt)
display_response(response)

For AI-901, understanding the workflow is more important than memorizing exact syntax.


Important AI-901 Exam Tips

For the exam, remember these key points:

  • Lightweight client applications provide simple interfaces for AI agents.
  • Client applications communicate with agents through APIs and endpoints.
  • Authentication secures access to AI services.
  • System instructions guide agent behavior.
  • Conversation history maintains context.
  • Temperature controls response randomness.
  • Streaming responses improve user experience.
  • Responsible AI principles apply to all AI applications.
  • Grounding improves reliability.
  • Hallucinations are incorrect AI-generated outputs.

Quick Knowledge Check

Question 1

What is the purpose of a lightweight client application?

Answer

To provide a simple interface for interacting with an AI agent.


Question 2

What does temperature control?

Answer

The creativity and randomness of AI-generated responses.


Question 3

Why is authentication important?

Answer

It helps protect AI services from unauthorized access.


Question 4

What are hallucinations?

Answer

Incorrect or fabricated AI-generated information.


Practice Exam Questions

Question 1

What is the PRIMARY purpose of a lightweight client application for an AI agent?

A. To physically host AI servers
B. To provide a simple interface for users to interact with an AI agent
C. To replace cloud networking hardware
D. To permanently store training datasets


Correct Answer

B. To provide a simple interface for users to interact with an AI agent


Explanation

A lightweight client application enables users to communicate with an AI agent through a simple and efficient interface.


Why the Other Answers Are Incorrect

A. To physically host AI servers

Client applications are software interfaces, not physical infrastructure.

C. To replace cloud networking hardware

This is unrelated to AI applications.

D. To permanently store training datasets

Client applications do not serve as training repositories.


Question 2

Which technology commonly allows client applications to communicate with AI agents?

A. APIs and endpoints
B. USB cables only
C. Spreadsheet macros exclusively
D. Monitor drivers


Correct Answer

A. APIs and endpoints


Explanation

Client applications communicate with AI agents through APIs connected to network-accessible endpoints.


Why the Other Answers Are Incorrect

B. USB cables only

Cloud AI systems typically use network communication.

C. Spreadsheet macros exclusively

Macros are not the standard communication mechanism.

D. Monitor drivers

These are unrelated to AI communication.


Question 3

What is the purpose of authentication in an AI client application?

A. To improve graphics quality
B. To secure access to AI services
C. To increase response creativity
D. To compress prompts automatically


Correct Answer

B. To secure access to AI services


Explanation

Authentication ensures only authorized users or applications can access AI resources.


Why the Other Answers Are Incorrect

A. To improve graphics quality

Authentication does not affect visual quality.

C. To increase response creativity

Temperature controls creativity.

D. To compress prompts automatically

Authentication does not compress data.


Question 4

Which component allows an AI application to remember previous parts of a conversation?

A. OCR engine
B. Conversation history
C. Image classifier
D. Video renderer


Correct Answer

B. Conversation history


Explanation

Conversation history preserves context across multiple user interactions.


Why the Other Answers Are Incorrect

A. OCR engine

OCR extracts text from images.

C. Image classifier

This categorizes images.

D. Video renderer

This processes visual media.


Question 5

What is the PRIMARY purpose of a system instruction in an AI agent?

A. To define behavior, tone, and rules for the agent
B. To increase internet speed
C. To physically store prompts
D. To classify images


Correct Answer

A. To define behavior, tone, and rules for the agent


Explanation

System instructions guide how the AI agent responds and behaves.


Why the Other Answers Are Incorrect

B. To increase internet speed

System prompts do not affect networking.

C. To physically store prompts

Prompts are not physically stored by instructions.

D. To classify images

System instructions are unrelated to computer vision classification.


Question 6

Which parameter controls how creative or random an AI model’s responses will be?

A. Temperature
B. Resolution
C. OCR threshold
D. Frame rate


Correct Answer

A. Temperature


Explanation

Temperature controls randomness and creativity in AI-generated responses.


Why the Other Answers Are Incorrect

B. Resolution

Resolution affects images.

C. OCR threshold

This relates to text extraction.

D. Frame rate

This relates to video processing.


Question 7

What is the benefit of streaming responses in a client application?

A. It increases monitor brightness
B. It displays AI-generated text gradually as it is created
C. It permanently stores conversations
D. It disables content filtering


Correct Answer

B. It displays AI-generated text gradually as it is created


Explanation

Streaming improves user experience by showing responses incrementally.


Why the Other Answers Are Incorrect

A. It increases monitor brightness

Streaming does not affect displays.

C. It permanently stores conversations

Streaming does not automatically store data.

D. It disables content filtering

Streaming does not remove safety controls.


Question 8

What are hallucinations in generative AI?

A. Incorrect or fabricated AI-generated information
B. Hardware overheating problems
C. Network cable failures
D. Database indexing errors


Correct Answer

A. Incorrect or fabricated AI-generated information


Explanation

Hallucinations occur when AI systems generate inaccurate or invented responses.


Why the Other Answers Are Incorrect

B. Hardware overheating problems

This is unrelated to AI-generated accuracy.

C. Network cable failures

This is a networking issue.

D. Database indexing errors

This is unrelated to generative AI responses.


Question 9

Why is grounding important in AI applications?

A. It increases image resolution
B. It connects AI responses to trusted data sources
C. It replaces authentication systems
D. It reduces monitor power consumption


Correct Answer

B. It connects AI responses to trusted data sources


Explanation

Grounding helps improve the accuracy and reliability of AI-generated responses.


Why the Other Answers Are Incorrect

A. It increases image resolution

Grounding is unrelated to graphics.

C. It replaces authentication systems

Grounding and authentication are different concepts.

D. It reduces monitor power consumption

Grounding does not affect hardware energy usage.


Question 10

Which Microsoft platform provides tools for building and managing AI agents and applications?

A. Microsoft Access
B. Azure AI Foundry
C. Windows Media Player
D. Microsoft Paint


Correct Answer

B. Azure AI Foundry


Explanation

Azure AI Foundry provides tools for developing, deploying, testing, and managing AI solutions and agents.


Why the Other Answers Are Incorrect

A. Microsoft Access

Access is a database application.

C. Windows Media Player

This is a media playback application.

D. Microsoft Paint

Paint is a graphics editor.


Final Thoughts

Creating lightweight client applications for AI agents is an important foundational concept for the AI-901 certification exam. Microsoft expects candidates to understand how client applications communicate with AI agents, manage prompts and responses, maintain context, and apply Responsible AI principles.

Azure AI Foundry provides tools that make it easier to create conversational AI applications that support real-world business and productivity scenarios.


Go to the AI-901 Exam Prep Hub main page

Create and test a single-agent solution in the Foundry Portal (AI-901 Exam Prep)

This post is a part of the AI-901: Microsoft Azure AI Fundamentals Exam Prep Hub. 
This topic falls under these sections:
Implement AI solutions by using Microsoft Foundry (55–60%)
--> Implement generative AI apps and agents by using Foundry
--> Create and test a single-agent solution in the Foundry Portal


Note that there are 10 practice questions (with answers and explanations) for each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available on the hub below the exam topics section.

AI agents are an increasingly important part of modern AI applications. Microsoft Azure AI Foundry provides tools that allow developers to create, configure, test, and manage AI agents directly within the Foundry portal.

For the AI-901 certification exam, candidates should understand the basic concepts behind creating and testing a single-agent AI solution using Azure AI Foundry.

This topic falls under the “Implement generative AI apps and agents by using Foundry” section of the AI-901 exam objectives.


What Is an AI Agent?

An AI agent is an AI-powered system designed to perform tasks, answer questions, and interact with users autonomously or semi-autonomously.

Agents often use:

  • Large Language Models (LLMs)
  • Prompt engineering
  • External tools
  • Memory
  • Data sources

to complete tasks.


What Is a Single-Agent Solution?

A single-agent solution uses one AI agent to manage interactions and tasks.

The agent receives input, processes requests, and generates responses.


Examples of Single-Agent Solutions

Common examples include:

  • Customer support assistants
  • FAQ bots
  • IT help desk assistants
  • Educational tutors
  • Internal knowledge assistants

AI Agent vs. Traditional Chatbot

Traditional ChatbotAI Agent
Often rule-basedAI-driven reasoning
Limited flexibilityMore adaptive
Predefined responsesDynamic responses
Basic workflowsCan perform complex tasks

Azure AI Foundry

Azure AI Foundry provides tools for creating and managing AI agents and generative AI applications.

The portal allows developers to:

  • Configure agents
  • Test prompts
  • Connect models
  • Evaluate responses
  • Monitor behavior

Basic Components of a Single-Agent Solution

A single-agent solution often includes:

  • AI model
  • System instructions
  • User interaction interface
  • Memory/context handling
  • Optional tools or data connections

AI Models in Agents

Agents typically use generative AI models such as large language models.

The model processes prompts and generates responses.


System Instructions

System instructions define how the agent should behave.

These instructions influence:

  • Tone
  • Personality
  • Safety
  • Response style
  • Allowed behavior

Example System Instruction

“You are a professional customer support assistant. Provide concise and helpful answers.”


User Prompts

Users interact with the agent by entering prompts or questions.


Example User Prompt

“How do I reset my password?”


Context and Memory

Many agents maintain conversational context.

This allows the agent to remember previous interactions during a session.


Example

User

“Tell me about Azure AI.”

User Later

“Can it support chatbots?”

The agent remembers the conversation topic.


Creating a Single-Agent Solution in Foundry

The general workflow includes:

  1. Open Azure AI Foundry
  2. Create or select a project
  3. Choose an AI model
  4. Configure the agent
  5. Define system instructions
  6. Test the agent
  7. Refine prompts and settings

Selecting a Model

Developers choose a model based on:

  • Performance
  • Cost
  • Speed
  • Language support
  • Context window size

Configuring the Agent

Agent configuration may include:

  • Name
  • Instructions
  • Model selection
  • Safety settings
  • Tool connections

Testing the Agent

The Foundry portal allows interactive testing.

Users can:

  • Enter prompts
  • Review responses
  • Adjust settings
  • Refine instructions

Playground Testing

Foundry includes playground environments for experimentation.

Developers can test:

  • Prompt quality
  • Tone
  • Accuracy
  • Context handling

before deploying applications.


Example Testing Scenario

System Instruction

“You are a helpful study assistant.”

User Prompt

“Explain supervised learning.”

The agent generates a response according to its instructions.


Prompt Engineering for Agents

Effective prompts improve agent behavior.

Helpful techniques include:

  • Clear instructions
  • Specific tasks
  • Output formatting
  • Context inclusion

Model Parameters

Developers may configure model settings such as:

  • Temperature
  • Maximum tokens
  • Top-p sampling

Temperature

Temperature controls response creativity.

Low TemperatureHigh Temperature
More predictableMore creative
More focusedMore varied

Maximum Tokens

Maximum tokens limit response length.

Lower values create shorter responses.


Tool Integration

Some agents can connect to external tools or data sources.

Examples include:

  • Databases
  • Search systems
  • APIs
  • Knowledge bases

Example Tool Usage

An IT support agent may retrieve information from a company knowledge base.


Grounding

Grounding connects AI responses to trusted data sources.

Grounded responses are generally more accurate and reliable.


Hallucinations

AI agents may occasionally produce incorrect or fabricated information.

These errors are called hallucinations.

Testing and grounding help reduce hallucinations.


Responsible AI Considerations

Single-agent solutions should follow Responsible AI principles.

Important considerations include:

  • Fairness
  • Privacy
  • Security
  • Transparency
  • Safety
  • Accountability

Content Filtering

Content filtering helps reduce:

  • Harmful outputs
  • Offensive content
  • Unsafe instructions

Authentication and Access Control

Organizations should secure access to AI agents using:

  • API keys
  • Identity management
  • Role-based access controls

Monitoring and Evaluation

Organizations should monitor agents for:

  • Accuracy
  • Performance
  • Bias
  • Safety
  • Usage patterns

Common Real-World Use Cases


Scenario 1: Customer Support Agent

Goal

Answer customer questions automatically.

Capabilities

  • Conversational responses
  • Knowledge retrieval
  • Escalation guidance

Scenario 2: Educational Tutor

Goal

Help students learn technical concepts.

Capabilities

  • Step-by-step explanations
  • Personalized tutoring
  • Interactive Q&A

Scenario 3: Internal Company Assistant

Goal

Help employees find company information.

Capabilities

  • Policy lookup
  • Document summarization
  • Search assistance

Advantages of Single-Agent Solutions

Benefits include:

  • Simpler architecture
  • Easier management
  • Faster deployment
  • Lower complexity
  • Natural interactions

Limitations of Single-Agent Solutions

Challenges may include:

  • Limited specialization
  • Hallucinations
  • Context limitations
  • Dependency on prompt quality

More complex systems may require multiple agents.


Single-Agent vs. Multi-Agent Systems

Single-AgentMulti-Agent
One agent handles tasksMultiple specialized agents
Simpler designMore complex
Easier managementBetter specialization
Lower overheadGreater coordination

Important AI-901 Exam Tips

For the exam, remember these key points:

  • AI agents use generative AI models to interact with users.
  • A single-agent solution uses one agent for interactions and tasks.
  • Azure AI Foundry provides tools for creating and testing agents.
  • System instructions guide agent behavior.
  • User prompts define tasks and questions.
  • Playground environments allow interactive testing.
  • Temperature controls creativity.
  • Grounding improves reliability.
  • Hallucinations are incorrect AI-generated outputs.
  • Responsible AI principles apply to AI agents.

Quick Knowledge Check

Question 1

What is a single-agent solution?

Answer

An AI system that uses one agent to process interactions and tasks.


Question 2

What is the purpose of system instructions?

Answer

To guide agent behavior, tone, and safety.


Question 3

What does grounding help improve?

Answer

Accuracy and reliability of AI responses.


Question 4

What are hallucinations?

Answer

Incorrect or fabricated AI-generated information.


Practice Exam Questions

Question 1

What is a single-agent solution?

A. A system that uses multiple AI agents simultaneously
B. A system that uses one AI agent to handle interactions and tasks
C. A database clustering solution
D. A networking security appliance


Correct Answer

B. A system that uses one AI agent to handle interactions and tasks


Explanation

A single-agent solution uses one AI-powered agent to process user requests and generate responses.


Why the Other Answers Are Incorrect

A. A system that uses multiple AI agents simultaneously

This describes a multi-agent system.

C. A database clustering solution

This is unrelated to AI agents.

D. A networking security appliance

This is unrelated to AI systems.


Question 2

Which Microsoft platform provides tools for creating and testing AI agents?

A. Microsoft Word
B. Azure AI Foundry
C. Microsoft Paint
D. Azure Virtual Desktop


Correct Answer

B. Azure AI Foundry


Explanation

Azure AI Foundry provides tools for building, testing, configuring, and managing AI agents and generative AI applications.


Why the Other Answers Are Incorrect

A. Microsoft Word

Word is a document editor.

C. Microsoft Paint

Paint is a graphics application.

D. Azure Virtual Desktop

This provides virtual desktop infrastructure services.


Question 3

What is the PRIMARY purpose of system instructions in an AI agent?

A. To physically store AI models
B. To define the agent’s behavior, tone, and rules
C. To improve monitor resolution
D. To compress training data


Correct Answer

B. To define the agent’s behavior, tone, and rules


Explanation

System instructions guide how the AI agent behaves and responds to users.


Why the Other Answers Are Incorrect

A. To physically store AI models

System instructions do not store models.

C. To improve monitor resolution

This is unrelated to AI agents.

D. To compress training data

This is unrelated to prompting.


Question 4

Which statement BEST describes grounding in AI systems?

A. Permanently deleting unused prompts
B. Connecting AI responses to trusted data sources
C. Increasing image brightness automatically
D. Compressing API requests


Correct Answer

B. Connecting AI responses to trusted data sources


Explanation

Grounding improves reliability by helping AI generate responses based on trusted information.


Why the Other Answers Are Incorrect

A. Permanently deleting unused prompts

This is unrelated to grounding.

C. Increasing image brightness automatically

This is unrelated to generative AI.

D. Compressing API requests

Grounding is unrelated to network compression.


Question 5

What is the PRIMARY purpose of playground testing in Azure AI Foundry?

A. Managing payroll systems
B. Experimenting with prompts and evaluating AI responses
C. Compressing video files
D. Managing physical servers


Correct Answer

B. Experimenting with prompts and evaluating AI responses


Explanation

Playgrounds allow developers to interactively test prompts, instructions, and AI behavior.


Why the Other Answers Are Incorrect

A. Managing payroll systems

This is unrelated to AI Foundry.

C. Compressing video files

Playgrounds are not media tools.

D. Managing physical servers

Playgrounds focus on AI interaction and testing.


Question 6

Which parameter controls how creative or random an AI agent’s responses will be?

A. Temperature
B. OCR threshold
C. Pixel density
D. Frame rate


Correct Answer

A. Temperature


Explanation

Temperature controls randomness and creativity in generated responses.


Why the Other Answers Are Incorrect

B. OCR threshold

This relates to text extraction from images.

C. Pixel density

This relates to image quality.

D. Frame rate

This relates to video playback.


Question 7

What are hallucinations in generative AI systems?

A. Hardware failures in cloud servers
B. Incorrect or fabricated AI-generated information
C. Authentication timeouts
D. Network bandwidth limitations


Correct Answer

B. Incorrect or fabricated AI-generated information


Explanation

Hallucinations occur when AI systems generate false or invented information.


Why the Other Answers Are Incorrect

A. Hardware failures in cloud servers

This is unrelated to hallucinations.

C. Authentication timeouts

This is a security or networking issue.

D. Network bandwidth limitations

This is unrelated to AI-generated accuracy.


Question 8

Why is conversation context important in AI agents?

A. It increases monitor resolution
B. It helps the agent remember previous interactions during a session
C. It permanently stores training datasets
D. It reduces internet costs


Correct Answer

B. It helps the agent remember previous interactions during a session


Explanation

Conversation context allows the AI agent to generate more coherent and relevant responses across multiple prompts.


Why the Other Answers Are Incorrect

A. It increases monitor resolution

Context does not affect displays.

C. It permanently stores training datasets

Context is session-related, not training storage.

D. It reduces internet costs

Context does not directly affect networking costs.


Question 9

Which Responsible AI feature helps reduce harmful or offensive AI-generated outputs?

A. Content filtering
B. Image compression
C. Database replication
D. Spreadsheet formatting


Correct Answer

A. Content filtering


Explanation

Content filtering helps block unsafe or inappropriate AI-generated responses.


Why the Other Answers Are Incorrect

B. Image compression

This reduces file size.

C. Database replication

This copies database data.

D. Spreadsheet formatting

This is unrelated to AI safety.


Question 10

What is one advantage of a single-agent solution compared to a multi-agent system?

A. Greater architectural complexity
B. Easier management and simpler design
C. Requires no prompts
D. Eliminates all hallucinations


Correct Answer

B. Easier management and simpler design


Explanation

Single-agent solutions are generally simpler to configure, deploy, and manage.


Why the Other Answers Are Incorrect

A. Greater architectural complexity

Multi-agent systems are usually more complex.

C. Requires no prompts

AI agents still rely on prompts and instructions.

D. Eliminates all hallucinations

Hallucinations can still occur in single-agent systems.


Final Thoughts

Creating and testing single-agent solutions in Azure AI Foundry is an important topic for the AI-901 certification exam. Microsoft expects candidates to understand the core concepts behind AI agents, prompt configuration, testing workflows, grounding, and Responsible AI practices.

Azure AI Foundry provides an accessible environment for building and experimenting with conversational AI agents that can support a wide variety of real-world business scenarios.


Go to the AI-901 Exam Prep Hub main page

Create a lightweight chat client application by using the Foundry SDK (AI-901 Exam Prep)

This post is a part of the AI-901: Microsoft Azure AI Fundamentals Exam Prep Hub. 
This topic falls under these sections:
Implement AI solutions by using Microsoft Foundry (55–60%)
--> Implement generative AI apps and agents by using Foundry
--> Create a lightweight chat client application by using the Foundry SDK


Note that there are 10 practice questions (with answers and explanations) for each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available on the hub below the exam topics section.

Modern generative AI applications often include chat-based interfaces that allow users to interact naturally with AI models. Microsoft Azure AI Foundry provides SDKs (Software Development Kits) that developers can use to build lightweight chat applications that connect to deployed AI models.

For the AI-901 certification exam, candidates should understand the basic concepts behind creating chat client applications using the Foundry SDK and how these applications interact with deployed generative AI models.

This topic falls under the “Implement generative AI apps and agents by using Foundry” section of the AI-901 exam objectives.


What Is a Chat Client Application?

A chat client application is a software application that allows users to communicate with an AI model using conversational prompts and responses.

Users type messages, and the AI model generates replies.


Common Chat Application Examples

Examples include:

  • AI assistants
  • Customer support bots
  • Internal company copilots
  • Study assistants
  • Virtual agents
  • Help desk chatbots

What Is an SDK?

SDK stands for Software Development Kit.

An SDK provides tools and libraries that help developers build applications more easily.

SDKs typically include:

  • APIs
  • Authentication tools
  • Code libraries
  • Documentation
  • Example code

What Is the Foundry SDK?

The Foundry SDK allows developers to connect applications to deployed AI models within Azure AI Foundry.

Developers can use SDKs to:

  • Send prompts
  • Receive AI-generated responses
  • Manage conversations
  • Configure requests
  • Handle authentication

Why Use an SDK?

Using an SDK simplifies development.

Without an SDK, developers would need to manually handle:

  • Network requests
  • Authentication
  • Error handling
  • API formatting

SDKs abstract much of this complexity.


Lightweight Chat Applications

A lightweight chat client is a simple application focused on core chat functionality.

It usually includes:

  • User input field
  • Conversation display
  • AI response generation
  • Basic session management

Basic Chat Workflow

A typical AI chat application workflow includes:

  1. User enters a prompt
  2. Application sends request to deployed model
  3. AI model processes prompt
  4. Model generates response
  5. Application displays response

Connecting to a Deployed Model

Chat applications connect to deployed AI models using:

  • API endpoints
  • Authentication credentials
  • SDK libraries

The deployed model processes incoming prompts.


Authentication

Applications typically authenticate using:

  • API keys
  • Azure credentials
  • Managed identities

Authentication ensures only authorized users and applications can access AI services.


Example Chat Interaction

User

“Explain machine learning in simple terms.”

AI Model

“Machine learning is a type of AI where computers learn patterns from data instead of being explicitly programmed.”


Conversation History

Many chat applications maintain conversation history.

This allows the AI model to remember context during the session.


Example of Context Retention

User

“Who founded Microsoft?”

AI

“Microsoft was founded by Bill Gates and Paul Allen.”

User

“When was it founded?”

Because conversation history is maintained, the AI understands the second question refers to Microsoft.


System Prompts in Chat Applications

Chat applications often include system prompts that guide model behavior.


Example System Prompt

“You are a helpful technical tutor. Explain topics clearly for beginners.”

This influences:

  • Tone
  • Style
  • Behavior
  • Safety

User Prompts

User prompts represent the questions or requests entered during the conversation.


Example User Prompt

“Explain neural networks.”


Model Responses

The deployed AI model generates responses based on:

  • System prompt
  • User prompt
  • Conversation history
  • Model parameters

Model Parameters

Chat applications may configure parameters such as:

  • Temperature
  • Maximum tokens
  • Top-p sampling

Temperature

Temperature controls response creativity.

Low TemperatureHigh Temperature
More focusedMore creative
More predictableMore varied

Maximum Tokens

Maximum tokens limit response length.

Smaller values create shorter responses.


Streaming Responses

Some chat applications support streaming responses.

Streaming displays generated text gradually as the model produces it.

This improves user experience by reducing perceived waiting time.


Error Handling

Applications should handle errors gracefully.

Common issues include:

  • Network failures
  • Invalid credentials
  • Rate limits
  • Timeout errors

Rate Limits

AI services may limit request frequency.

Applications should be designed to handle:

  • Request throttling
  • Retry logic
  • Usage quotas

Responsible AI Considerations

Chat applications should follow Responsible AI principles.

Important considerations include:

  • Content filtering
  • Privacy
  • Safety
  • Bias reduction
  • Transparency

Content Filtering

Content filters help reduce:

  • Harmful responses
  • Offensive content
  • Unsafe outputs

Privacy and Security

Applications should protect:

  • User conversations
  • Authentication credentials
  • Sensitive information

Logging and Monitoring

Organizations may monitor chat applications for:

  • Performance
  • Usage
  • Errors
  • Safety concerns

Azure AI Foundry

Azure AI Foundry provides tools for deploying models and managing generative AI applications.

Developers can:

  • Deploy models
  • Test prompts
  • Monitor applications
  • Manage AI resources

Azure OpenAI Service

Azure OpenAI Service provides access to generative AI models used in chat applications.


High-Level SDK Workflow

A simplified workflow for a lightweight chat application typically includes:

  1. Install SDK
  2. Configure credentials
  3. Connect to deployed model
  4. Send prompts
  5. Receive responses
  6. Display conversation

Example High-Level Pseudocode

connect_to_model()
while True:
user_prompt = get_user_input()
response = send_prompt(user_prompt)
display_response(response)

For AI-901, understanding the overall workflow is more important than memorizing syntax.


Common Real-World Scenarios


Scenario 1: Customer Support Chatbot

Goal

Answer customer questions automatically.

Features

  • Conversational interface
  • Context retention
  • Safe responses

Scenario 2: Internal Knowledge Assistant

Goal

Help employees search company information.

Features

  • Question answering
  • Document summarization
  • Secure access

Scenario 3: Educational Tutor

Goal

Provide interactive learning assistance.

Features

  • Step-by-step explanations
  • Conversational learning
  • Prompt customization

Advantages of Chat-Based AI Applications

Benefits include:

  • Natural user interaction
  • Faster information access
  • Automation of repetitive tasks
  • Improved customer experience
  • Scalability

Challenges and Limitations

Organizations should consider:

  • Hallucinations
  • Incorrect responses
  • Cost management
  • Privacy concerns
  • Latency
  • Prompt injection risks

Hallucinations

Generative AI models may occasionally generate incorrect or fabricated information.

These incorrect outputs are called hallucinations.

Applications should not assume all AI-generated responses are accurate.


Prompt Injection Risks

Malicious users may attempt to manipulate prompts to bypass safety controls.

Applications should implement safeguards against unsafe behavior.


Important AI-901 Exam Tips

For the exam, remember these key points:

  • SDKs simplify application development.
  • Chat clients communicate with deployed AI model endpoints.
  • System prompts define AI behavior.
  • User prompts represent user requests.
  • Conversation history helps maintain context.
  • Temperature controls response randomness.
  • Maximum tokens limit response length.
  • Streaming responses improve user experience.
  • Responsible AI principles apply to chat applications.
  • Authentication secures access to AI services.

Quick Knowledge Check

Question 1

What is the purpose of an SDK?

Answer

To simplify application development using tools and libraries.


Question 2

Why is conversation history important in chat applications?

Answer

It helps maintain context across multiple user interactions.


Question 3

What does temperature control in a generative AI model?

Answer

The creativity and randomness of responses.


Question 4

Why are content filters important?

Answer

They help reduce harmful or unsafe AI-generated outputs.


Practice Exam Questions

Question 1

What is the PRIMARY purpose of a chat client application in generative AI?

A. To physically store servers
B. To allow users to interact conversationally with an AI model
C. To compress database files
D. To manage network hardware


Correct Answer

B. To allow users to interact conversationally with an AI model


Explanation

A chat client application enables users to send prompts and receive AI-generated conversational responses.


Why the Other Answers Are Incorrect

A. To physically store servers

Chat clients are software applications, not physical infrastructure.

C. To compress database files

This is unrelated to chat applications.

D. To manage network hardware

This is unrelated to generative AI chat systems.


Question 2

What does SDK stand for?

A. Secure Data Kernel
B. Software Development Kit
C. System Deployment Key
D. Structured Data Kit


Correct Answer

B. Software Development Kit


Explanation

An SDK provides tools, libraries, and documentation that help developers build applications more efficiently.


Why the Other Answers Are Incorrect

A. Secure Data Kernel

This is not the correct definition.

C. System Deployment Key

This is incorrect terminology.

D. Structured Data Kit

This is not the meaning of SDK.


Question 3

Why do developers commonly use SDKs when building AI applications?

A. SDKs eliminate the need for internet access
B. SDKs simplify communication with AI services and APIs
C. SDKs permanently store all prompts automatically
D. SDKs replace AI models entirely


Correct Answer

B. SDKs simplify communication with AI services and APIs


Explanation

SDKs help developers handle authentication, requests, responses, and integration more easily.


Why the Other Answers Are Incorrect

A. SDKs eliminate the need for internet access

Cloud AI services still require connectivity.

C. SDKs permanently store all prompts automatically

SDKs do not inherently provide permanent storage.

D. SDKs replace AI models entirely

SDKs connect applications to models; they do not replace them.


Question 4

What allows a chat application to remember previous user interactions during a conversation?

A. OCR
B. Conversation history
C. Image classification
D. Regression analysis


Correct Answer

B. Conversation history


Explanation

Conversation history preserves context so the AI can respond appropriately across multiple prompts.


Why the Other Answers Are Incorrect

A. OCR

OCR extracts text from images.

C. Image classification

This categorizes images.

D. Regression analysis

Regression predicts numeric values.


Question 5

Which prompt type defines the AI assistant’s behavior and communication style?

A. User prompt
B. System prompt
C. SQL prompt
D. OCR prompt


Correct Answer

B. System prompt


Explanation

System prompts establish behavior rules, tone, style, and safety guidelines.


Why the Other Answers Are Incorrect

A. User prompt

User prompts contain requests or questions.

C. SQL prompt

SQL is related to databases.

D. OCR prompt

OCR is unrelated to conversational behavior.


Question 6

What is the PRIMARY purpose of authentication in a chat client application?

A. To improve image resolution
B. To ensure only authorized users or applications access AI services
C. To increase response creativity
D. To summarize conversations


Correct Answer

B. To ensure only authorized users or applications access AI services


Explanation

Authentication protects AI resources and controls access to deployed services.


Why the Other Answers Are Incorrect

A. To improve image resolution

Authentication does not affect graphics.

C. To increase response creativity

Temperature settings influence creativity.

D. To summarize conversations

Authentication does not summarize data.


Question 7

Which configuration parameter controls how creative or random a generative AI response will be?

A. Temperature
B. OCR threshold
C. Frame rate
D. Compression ratio


Correct Answer

A. Temperature


Explanation

Temperature controls response randomness and creativity.


Why the Other Answers Are Incorrect

B. OCR threshold

This relates to text extraction.

C. Frame rate

This relates to video processing.

D. Compression ratio

This relates to file compression.


Question 8

What is the benefit of streaming AI responses in a chat application?

A. It improves monitor resolution
B. It allows responses to appear gradually as they are generated
C. It permanently stores all conversations
D. It disables content filtering


Correct Answer

B. It allows responses to appear gradually as they are generated


Explanation

Streaming improves user experience by showing generated text incrementally instead of waiting for the entire response.


Why the Other Answers Are Incorrect

A. It improves monitor resolution

Streaming does not affect displays.

C. It permanently stores all conversations

Streaming does not automatically store data.

D. It disables content filtering

Streaming does not remove safety controls.


Question 9

Which Responsible AI feature helps reduce harmful or offensive AI-generated responses?

A. Content filtering
B. Data compression
C. Video rendering
D. File indexing


Correct Answer

A. Content filtering


Explanation

Content filters help prevent unsafe or inappropriate AI outputs.


Why the Other Answers Are Incorrect

B. Data compression

Compression reduces file size.

C. Video rendering

Rendering creates visual output.

D. File indexing

Indexing organizes data for search.


Question 10

What are hallucinations in generative AI systems?

A. Hardware overheating events
B. Incorrect or fabricated AI-generated information
C. Authentication failures
D. Video processing delays


Correct Answer

B. Incorrect or fabricated AI-generated information


Explanation

Hallucinations occur when AI models generate inaccurate or invented information.


Why the Other Answers Are Incorrect

A. Hardware overheating events

This is unrelated to AI hallucinations.

C. Authentication failures

This is a security issue.

D. Video processing delays

This relates to media performance, not AI accuracy.


Final Thoughts

Creating lightweight chat applications with the Foundry SDK is an important concept for the AI-901 certification exam. Microsoft expects candidates to understand the basic architecture and workflow of AI-powered chat applications, including prompts, endpoints, authentication, conversation management, and Responsible AI considerations.

Azure AI Foundry and Azure OpenAI Service provide powerful tools that allow developers to build conversational AI experiences quickly and efficiently.


Go to the AI-901 Exam Prep Hub main page

Deploy a model and interact with it in the Foundry Portal (AI-901 Exam Prep)

This post is a part of the AI-901: Microsoft Azure AI Fundamentals Exam Prep Hub. 
This topic falls under these sections:
Implement AI solutions by using Microsoft Foundry (55–60%)
--> Implement generative AI apps and agents by using Foundry
--> Deploy a model and interact with it in the Foundry Portal


Note that there are 10 practice questions (with answers and explanations) for each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available on the hub below the exam topics section.

Microsoft Azure AI Foundry provides a centralized environment for building, testing, deploying, and managing generative AI models and AI-powered applications. For the AI-901 certification exam, candidates should understand the basic process of deploying AI models and interacting with them through the Foundry portal.

This topic focuses on how developers and AI practitioners use Azure AI Foundry to deploy generative AI models, test prompts, configure model settings, and interact with deployed AI endpoints.

This topic falls under the “Implement generative AI apps and agents by using Foundry” section of the AI-901 exam objectives.


What Is Azure AI Foundry?

Azure AI Foundry is Microsoft’s platform for building and managing AI applications and agents.

Azure AI Foundry provides tools to:

  • Explore AI models
  • Deploy models
  • Test prompts
  • Configure AI behavior
  • Evaluate responses
  • Monitor AI applications
  • Manage AI resources

It supports generative AI development using Azure-hosted AI services and models.


What Does “Deploying a Model” Mean?

Deploying a model means making the AI model available for use.

A deployed model can:

  • Receive prompts
  • Process requests
  • Generate responses
  • Be accessed through applications or APIs

Deployment creates an endpoint that applications can use to interact with the model.


What Is a Model Endpoint?

An endpoint is a network-accessible interface that allows applications or users to communicate with a deployed AI model.

Applications send requests to the endpoint and receive AI-generated responses.


Common Deployment Scenarios

Organizations deploy models for many purposes, including:

  • Chatbots
  • AI assistants
  • Document summarization
  • Content generation
  • Customer support systems
  • Code generation
  • Data extraction

Azure AI Foundry Workflow

A simplified workflow in Azure AI Foundry typically includes:

  1. Create or access an Azure AI resource
  2. Open Azure AI Foundry portal
  3. Select a model
  4. Configure deployment settings
  5. Deploy the model
  6. Test prompts
  7. Interact with the model
  8. Integrate the endpoint into applications

Accessing the Foundry Portal

Users access Azure AI Foundry through a web-based portal.

The portal provides graphical tools for:

  • Model selection
  • Prompt testing
  • Deployment management
  • Performance monitoring

Exploring Available Models

Azure AI Foundry allows users to browse available models.

Examples may include:

  • Large Language Models (LLMs)
  • Image-generation models
  • Embedding models
  • Speech models

Models may vary by:

  • Size
  • Performance
  • Cost
  • Supported capabilities

Selecting a Model

Users choose models based on application requirements.

Factors may include:

  • Accuracy
  • Speed
  • Cost
  • Context window size
  • Multimodal support
  • Language support

Example Scenario

A company building a customer support chatbot may choose a conversational large language model.


Deploying a Model in Foundry

The deployment process usually involves:

  • Selecting a model
  • Naming the deployment
  • Choosing deployment settings
  • Allocating resources
  • Creating the endpoint

Deployment Names

Deployments are typically assigned unique names.

Example

support-chat-model

Applications use deployment names when sending requests.


Model Configuration Options

During deployment, users may configure:

  • Model version
  • Scaling options
  • Authentication settings
  • Content filters
  • Region
  • Resource allocation

Content Filtering and Safety

Azure AI Foundry includes Responsible AI safety features.

Content filtering helps reduce:

  • Harmful outputs
  • Offensive content
  • Unsafe responses

This is important for enterprise AI applications.


Interacting with a Deployed Model

After deployment, users can interact with the model directly within the Foundry portal.

This often includes:

  • Entering prompts
  • Viewing responses
  • Adjusting settings
  • Testing behavior

Playground Interfaces

Azure AI Foundry provides playground environments for experimentation.

Playgrounds allow users to:

  • Test prompts
  • Compare outputs
  • Tune settings
  • Evaluate model behavior

Prompt Testing

Users can experiment with:

  • System prompts
  • User prompts
  • Formatting instructions
  • Role prompting

Prompt testing helps improve AI response quality.


Example Prompt Interaction

User Prompt

“Summarize this customer feedback in three bullet points.”

Model Response

The model generates a summarized response.


Model Parameters

Foundry portals may allow adjustment of model parameters such as:

  • Temperature
  • Maximum tokens
  • Top-p sampling

Temperature

Temperature controls response randomness.

Low TemperatureHigh Temperature
More predictableMore creative
More focusedMore varied

Maximum Tokens

Maximum tokens limit response length.

Smaller limits create shorter responses.


System Prompts in Foundry

Users can configure system prompts to guide AI behavior.


Example System Prompt

“You are a professional technical support assistant. Keep responses concise and helpful.”

System prompts influence:

  • Tone
  • Style
  • Safety
  • Formatting

Evaluating Responses

Users should evaluate AI outputs for:

  • Accuracy
  • Relevance
  • Safety
  • Bias
  • Hallucinations

AI-generated content should be reviewed carefully.


Hallucinations

Generative AI models can produce incorrect or fabricated information.

These incorrect outputs are called hallucinations.

Prompt engineering and grounding techniques help reduce hallucinations.


API Access

Once deployed, applications can connect to the model endpoint using APIs.

This allows developers to integrate AI into applications.


Common Integration Scenarios

Applications may use deployed models for:

  • Chat interfaces
  • Search assistants
  • Document analysis
  • AI copilots
  • Workflow automation

Monitoring and Management

Azure AI Foundry supports monitoring deployed models.

Monitoring may include:

  • Usage tracking
  • Performance analysis
  • Error monitoring
  • Cost management

Scaling AI Deployments

Organizations may scale deployments to support:

  • More users
  • Higher request volumes
  • Faster response times

Cloud-based deployments support elastic scaling.


Responsible AI Considerations

When deploying AI models, organizations should consider:

  • Privacy
  • Security
  • Fairness
  • Transparency
  • Safety
  • Compliance

Generative AI applications should include safeguards against misuse.


Authentication and Security

Deployed models typically require secure authentication.

Security features may include:

  • API keys
  • Identity management
  • Access control

Common Challenges

Organizations may encounter challenges such as:

  • High usage costs
  • Latency
  • Hallucinations
  • Unsafe outputs
  • Poor prompt quality

Proper testing and monitoring are important.


Azure OpenAI Service

Azure OpenAI Service provides access to powerful generative AI models that can be deployed and managed through Azure AI Foundry.


Real-World Scenarios


Scenario 1: Customer Support Chatbot

Goal

Deploy a conversational AI assistant.

Activities

  • Deploy language model
  • Configure system prompts
  • Test responses in the playground

Scenario 2: Internal Knowledge Assistant

Goal

Allow employees to ask questions about company documentation.

Activities

  • Deploy AI model
  • Configure prompts
  • Integrate with enterprise systems

Scenario 3: Marketing Content Generator

Goal

Generate product descriptions automatically.

Activities

  • Deploy generative AI model
  • Test prompt variations
  • Evaluate response quality

Important AI-901 Exam Tips

For the exam, remember these key points:

  • Deploying a model makes it available for use.
  • Deployments create accessible endpoints.
  • Azure AI Foundry provides tools for testing and managing models.
  • Playgrounds allow prompt experimentation.
  • System prompts guide model behavior.
  • Temperature controls creativity and randomness.
  • Maximum tokens control response length.
  • AI outputs should be evaluated for accuracy and safety.
  • Content filtering supports Responsible AI practices.
  • APIs allow applications to connect to deployed models.

Quick Knowledge Check

Question 1

What does deploying a model do?

Answer

It makes the AI model available for use through an endpoint.


Question 2

What is the purpose of a playground in Azure AI Foundry?

Answer

To test prompts and interact with deployed models.


Question 3

What does the temperature setting control?

Answer

The randomness and creativity of model responses.


Question 4

Why are content filters important?

Answer

They help reduce harmful or unsafe AI-generated outputs.


Practice Exam Questions

Question 1

What is the PRIMARY purpose of deploying an AI model?

A. To permanently delete the model
B. To make the model available for use through an endpoint
C. To compress training data
D. To convert images into text


Correct Answer

B. To make the model available for use through an endpoint


Explanation

Deploying a model makes it accessible so applications and users can interact with it.


Why the Other Answers Are Incorrect

A. To permanently delete the model

Deployment does not delete models.

C. To compress training data

Deployment is unrelated to data compression.

D. To convert images into text

This describes OCR.


Question 2

What is an endpoint in the context of AI model deployment?

A. A physical server room
B. A network-accessible interface for interacting with a deployed model
C. A type of database backup
D. A computer vision algorithm


Correct Answer

B. A network-accessible interface for interacting with a deployed model


Explanation

Endpoints allow applications and users to send requests to deployed AI models and receive responses.


Why the Other Answers Are Incorrect

A. A physical server room

Endpoints are logical interfaces, not physical locations.

C. A type of database backup

This is unrelated to AI deployment.

D. A computer vision algorithm

Endpoints are not algorithms.


Question 3

Which Azure tool provides playgrounds for testing prompts and interacting with deployed AI models?

A. Azure SQL Database
B. Azure AI Foundry
C. Microsoft Excel
D. Azure Virtual Desktop


Correct Answer

B. Azure AI Foundry


Explanation

Azure AI Foundry provides tools for model deployment, prompt testing, evaluation, and management.


Why the Other Answers Are Incorrect

A. Azure SQL Database

This is a database service.

C. Microsoft Excel

Excel is not an AI deployment platform.

D. Azure Virtual Desktop

This provides desktop virtualization services.


Question 4

What is the PRIMARY purpose of a playground in Azure AI Foundry?

A. Hosting multiplayer games
B. Experimenting with prompts and testing model behavior
C. Managing employee payroll
D. Compressing image files


Correct Answer

B. Experimenting with prompts and testing model behavior


Explanation

Playgrounds allow users to interact with models, test prompts, and evaluate responses.


Why the Other Answers Are Incorrect

A. Hosting multiplayer games

This is unrelated to AI Foundry.

C. Managing employee payroll

This is unrelated to AI development.

D. Compressing image files

Playgrounds are not image utilities.


Question 5

Which configuration setting controls how creative or random AI-generated responses are?

A. OCR level
B. Temperature
C. Resolution scaling
D. Data indexing


Correct Answer

B. Temperature


Explanation

Temperature controls randomness and creativity in generative AI responses.


Why the Other Answers Are Incorrect

A. OCR level

OCR extracts text from images.

C. Resolution scaling

This relates to images, not text generation randomness.

D. Data indexing

Indexing is unrelated to generative response creativity.


Question 6

What is the effect of setting a lower temperature value in a generative AI model?

A. More random responses
B. More predictable and focused responses
C. Faster internet speeds
D. Larger image generation sizes


Correct Answer

B. More predictable and focused responses


Explanation

Lower temperature settings reduce randomness and produce more deterministic outputs.


Why the Other Answers Are Incorrect

A. More random responses

Higher temperatures increase randomness.

C. Faster internet speeds

Temperature does not affect networking.

D. Larger image generation sizes

Temperature is unrelated to image dimensions.


Question 7

Which prompt type defines the AI assistant’s behavior, tone, and rules?

A. User prompt
B. System prompt
C. SQL query
D. OCR prompt


Correct Answer

B. System prompt


Explanation

System prompts provide high-level behavioral instructions to the AI model.


Why the Other Answers Are Incorrect

A. User prompt

User prompts specify tasks or requests.

C. SQL query

SQL queries interact with databases.

D. OCR prompt

OCR is unrelated to conversational AI behavior.


Question 8

Why are content filters important when deploying generative AI models?

A. They improve internet bandwidth
B. They help reduce harmful or unsafe outputs
C. They increase monitor resolution
D. They replace system prompts entirely


Correct Answer

B. They help reduce harmful or unsafe outputs


Explanation

Content filtering supports Responsible AI by helping prevent harmful or inappropriate AI-generated content.


Why the Other Answers Are Incorrect

A. They improve internet bandwidth

Content filters do not affect networking performance.

C. They increase monitor resolution

This is unrelated to AI safety.

D. They replace system prompts entirely

Content filters complement prompts; they do not replace them.


Question 9

What are hallucinations in generative AI?

A. Physical hardware failures
B. Incorrect or fabricated AI-generated information
C. Database replication errors
D. Unauthorized user logins


Correct Answer

B. Incorrect or fabricated AI-generated information


Explanation

Hallucinations occur when AI generates inaccurate or invented information.


Why the Other Answers Are Incorrect

A. Physical hardware failures

This is unrelated to AI hallucinations.

C. Database replication errors

This is a database issue.

D. Unauthorized user logins

This is a security issue.


Question 10

After deploying a model, how do external applications typically interact with it?

A. Through handwritten forms
B. Through APIs connected to the deployment endpoint
C. Through spreadsheet imports only
D. Through local USB connections


Correct Answer

B. Through APIs connected to the deployment endpoint


Explanation

Applications commonly communicate with deployed AI models using APIs and endpoints.


Why the Other Answers Are Incorrect

A. Through handwritten forms

This is unrelated to AI deployment.

C. Through spreadsheet imports only

Spreadsheets are not the primary integration mechanism.

D. Through local USB connections

Cloud AI services typically use network-based APIs, not USB connections.


Final Thoughts

Deploying and interacting with AI models in Azure AI Foundry is an important skill area for the AI-901 certification exam. Microsoft expects candidates to understand the basic deployment workflow, prompt testing process, model configuration options, and Responsible AI considerations involved in building generative AI applications.

Azure AI Foundry simplifies AI development by providing a centralized environment for deploying, testing, and managing AI models and agents.


Go to the AI-901 Exam Prep Hub main page

Create effective system and user prompts for Generative AI models (AI-901 Exam Prep)

This post is a part of the AI-901: Microsoft Azure AI Fundamentals Exam Prep Hub. 
This topic falls under these sections:
Implement AI solutions by using Microsoft Foundry (55–60%)
--> Implement generative AI apps and agents by using Foundry
--> Create effective system and user prompts for Generative AI models


Note that there are 10 practice questions (with answers and explanations) for each section to help you solidify your knowledge of the material. Also, there are 2 practice tests with 60 questions each available on the hub below the exam topics section.

Prompting is one of the most important skills when working with generative AI systems. Microsoft expects AI-901 candidates to understand how to create effective prompts that guide generative AI models toward useful, accurate, and safe outputs.

This topic focuses on how system prompts and user prompts influence the behavior of generative AI models and how prompt engineering techniques improve AI-generated responses.

This topic falls under the “Implement generative AI apps and agents by using Foundry” section of the AI-901 exam objectives.


What Is a Prompt?

A prompt is an instruction or input provided to a generative AI model.

Prompts guide the model’s response and influence:

  • Content
  • Tone
  • Format
  • Style
  • Accuracy
  • Level of detail

The quality of the prompt strongly affects the quality of the output.


What Is Prompt Engineering?

Prompt engineering is the process of designing and refining prompts to improve AI-generated responses.

Effective prompt engineering helps:

  • Produce more accurate answers
  • Reduce ambiguity
  • Improve consistency
  • Control response format
  • Reduce hallucinations
  • Improve safety and Responsible AI behavior

Types of Prompts

For the AI-901 exam, two important prompt types are:

  • System prompts
  • User prompts

What Is a System Prompt?

A system prompt provides high-level instructions that define how the AI model should behave.

System prompts often control:

  • Personality
  • Tone
  • Rules
  • Safety boundaries
  • Formatting requirements
  • Behavior expectations

The system prompt typically has higher priority than user prompts.


Example of a System Prompt

“You are a professional technical support assistant. Provide concise and accurate troubleshooting guidance. Do not provide harmful or unsafe instructions.”

This system prompt defines:

  • The assistant’s role
  • Communication style
  • Safety expectations

What Is a User Prompt?

A user prompt is the direct request or question submitted by the user.

User prompts specify the task the model should perform.


Example of a User Prompt

“How do I reset my router?”

The AI model combines:

  • System instructions
  • User request
  • Context information

to generate a response.


Relationship Between System and User Prompts

System prompts establish behavior rules, while user prompts define the immediate task.


Example

System Prompt

“You are a helpful travel assistant. Always provide answers in bullet points.”

User Prompt

“Suggest three family-friendly attractions in Orlando.”

The model responds according to both prompts.


Characteristics of Effective Prompts

Good prompts are usually:

  • Clear
  • Specific
  • Contextual
  • Structured
  • Goal-oriented

Clear Prompts

Clear prompts reduce confusion and ambiguity.


Weak Prompt

“Tell me about databases.”


Better Prompt

“Explain the differences between relational and non-relational databases for beginners.”

The second prompt provides:

  • Specific topic
  • Audience
  • Scope

Specific Prompts

Specific prompts improve response accuracy.


Weak Prompt

“Write a report.”


Better Prompt

“Write a 300-word summary of cloud computing benefits for small businesses.”

Specific prompts define:

  • Length
  • Topic
  • Audience

Providing Context

Context helps the model generate more relevant answers.


Example

“I am studying for the AI-901 exam. Explain OCR in simple terms with one real-world example.”

The additional context improves response quality.


Requesting Output Format

Prompts can specify desired formatting.


Example

“Provide the answer as a table.”

or

“Summarize the information in bullet points.”


Role Prompting

Role prompting assigns the AI a specific role or perspective.


Example

“Act as a cybersecurity consultant.”

or

“You are an experienced data analyst.”

Role prompting helps guide tone and expertise.


Step-by-Step Prompting

Prompts can request step-by-step explanations.


Example

“Explain how machine learning works step-by-step for beginners.”

This improves clarity and educational usefulness.


Few-Shot Prompting

Few-shot prompting provides examples within the prompt.

This helps the model understand expected patterns.


Example

Positive review → Positive sentiment
Negative review → Negative sentiment
“The service was excellent.” →

The model learns the desired output structure.


Zero-Shot Prompting

Zero-shot prompting asks the model to perform a task without examples.


Example

“Classify this review as positive or negative.”


Chain-of-Thought Prompting

Chain-of-thought prompting encourages step-by-step reasoning.


Example

“Explain your reasoning step-by-step before providing the final answer.”

This can improve reasoning accuracy for complex tasks.


Prompting for Summarization

Generative AI models can summarize content using prompts.


Example

“Summarize this article in three bullet points.”


Prompting for Content Generation

Prompts can generate new content such as:

  • Emails
  • Reports
  • Stories
  • Marketing copy
  • Code

Example

“Write a professional email requesting a project update.”


Prompting for Transformation Tasks

AI models can transform content into different formats.


Examples

  • Translate text
  • Rewrite text
  • Simplify technical content
  • Convert paragraphs into tables

Example

“Rewrite this paragraph for a non-technical audience.”


Prompting for Code Generation

Generative AI can assist with programming tasks.


Example

“Write a Python function that calculates sales tax.”


Prompting for Data Extraction

Prompts can request structured data extraction.


Example

“Extract all dates and company names from this document.”


Prompt Injection Risks

Prompt injection occurs when users attempt to override system instructions.


Example

A malicious user prompt may attempt to bypass safety rules.

Organizations should implement safeguards against unsafe prompting behavior.


Responsible AI Considerations

Effective prompting should follow Responsible AI principles.

Important considerations include:

  • Safety
  • Fairness
  • Privacy
  • Transparency
  • Content moderation
  • Harm prevention

Hallucinations

Generative AI models can sometimes produce incorrect or fabricated information.

These errors are called hallucinations.

Good prompting can reduce hallucinations but may not eliminate them completely.


Example of a Hallucination

An AI model inventing a fake citation or incorrect fact.


Techniques to Reduce Hallucinations

Helpful strategies include:

  • Providing clear context
  • Using specific instructions
  • Asking for sources
  • Limiting scope
  • Using grounded data

Temperature and Creativity

Some generative AI systems allow configuration settings such as temperature.

Temperature affects randomness and creativity.

Low TemperatureHigh Temperature
More predictableMore creative
More focusedMore varied
Better for factual tasksBetter for brainstorming

Azure AI Foundry

Azure AI Foundry helps developers build, test, and manage generative AI applications and agents.

Developers can:

  • Experiment with prompts
  • Evaluate AI responses
  • Configure AI models
  • Implement safety controls

Azure OpenAI Service

Azure OpenAI Service provides access to powerful generative AI models that support prompt-based interactions.


Real-World Prompting Scenarios


Scenario 1: Customer Support Assistant

System Prompt

“You are a professional support assistant. Be polite and concise.”

User Prompt

“How do I reset my password?”


Scenario 2: Study Assistant

System Prompt

“Explain technical topics for beginners.”

User Prompt

“Explain neural networks in simple terms.”


Scenario 3: Marketing Content Generator

System Prompt

“Generate professional marketing copy.”

User Prompt

“Create a product description for a smartwatch.”


Best Practices for Effective Prompting

  • Be specific
  • Provide context
  • Define output format
  • Use examples when helpful
  • Keep instructions clear
  • Test and refine prompts
  • Avoid ambiguity
  • Include Responsible AI safeguards

Common Prompting Mistakes

Common mistakes include:

  • Vague instructions
  • Missing context
  • Conflicting requirements
  • Overly broad requests
  • Unclear formatting expectations

Important AI-901 Exam Tips

For the exam, remember these key points:

  • System prompts define AI behavior and rules.
  • User prompts specify the task to perform.
  • Effective prompts are clear and specific.
  • Prompt engineering improves AI outputs.
  • Few-shot prompting includes examples.
  • Zero-shot prompting provides no examples.
  • Chain-of-thought prompting encourages reasoning.
  • Hallucinations are incorrect AI-generated outputs.
  • Temperature settings affect creativity and randomness.
  • Responsible AI principles apply to prompting.

Quick Knowledge Check

Question 1

What is the difference between a system prompt and a user prompt?

Answer

A system prompt defines AI behavior and rules, while a user prompt requests a specific task.


Question 2

What is prompt engineering?

Answer

The process of designing prompts to improve AI-generated responses.


Question 3

What is few-shot prompting?

Answer

Providing examples within prompts to guide the model.


Question 4

What are hallucinations in generative AI?

Answer

Incorrect or fabricated AI-generated information.


Practice Exam Questions

Question 1

What is the PRIMARY purpose of a system prompt in a generative AI application?

A. To store images generated by the model
B. To define the AI model’s behavior, rules, and tone
C. To increase internet speed
D. To encrypt database records


Correct Answer

B. To define the AI model’s behavior, rules, and tone


Explanation

System prompts provide high-level instructions that guide how the AI assistant behaves and responds.


Why the Other Answers Are Incorrect

A. To store images generated by the model

System prompts do not store data.

C. To increase internet speed

This is unrelated to AI prompting.

D. To encrypt database records

Encryption is unrelated to prompting.


Question 2

Which statement BEST describes a user prompt?

A. A hidden configuration file for servers
B. A direct instruction or request submitted by the user
C. A database backup mechanism
D. A type of neural network architecture


Correct Answer

B. A direct instruction or request submitted by the user


Explanation

User prompts contain the specific task or question the user wants the AI model to perform.


Why the Other Answers Are Incorrect

A. A hidden configuration file for servers

This is unrelated to generative AI prompting.

C. A database backup mechanism

This is unrelated to prompting.

D. A type of neural network architecture

Prompts are instructions, not architectures.


Question 3

Which prompt is MOST effective?

A. “Tell me stuff.”
B. “Write something about technology.”
C. “Explain cloud computing for beginners in 5 bullet points.”
D. “Do work.”


Correct Answer

C. “Explain cloud computing for beginners in 5 bullet points.”


Explanation

Effective prompts are clear, specific, and include formatting or audience requirements.


Why the Other Answers Are Incorrect

A. “Tell me stuff.”

This is too vague.

B. “Write something about technology.”

This lacks detail and direction.

D. “Do work.”

This is ambiguous and unclear.


Question 4

What is prompt engineering?

A. Designing hardware for AI servers
B. Building neural network chips
C. Creating and refining prompts to improve AI responses
D. Encrypting AI training data


Correct Answer

C. Creating and refining prompts to improve AI responses


Explanation

Prompt engineering focuses on improving generative AI outputs through better prompt design.


Why the Other Answers Are Incorrect

A. Designing hardware for AI servers

This is hardware engineering.

B. Building neural network chips

This is semiconductor engineering.

D. Encrypting AI training data

This is a security task.


Question 5

Which prompting technique includes examples within the prompt to guide the AI model?

A. Few-shot prompting
B. Object detection
C. OCR prompting
D. Clustering


Correct Answer

A. Few-shot prompting


Explanation

Few-shot prompting provides examples so the model better understands the desired output format or pattern.


Why the Other Answers Are Incorrect

B. Object detection

This is a computer vision capability.

C. OCR prompting

OCR extracts text from images.

D. Clustering

Clustering groups similar data.


Question 6

What is the PRIMARY benefit of providing context in a prompt?

A. Reduces network traffic
B. Helps generate more relevant and accurate responses
C. Compresses files automatically
D. Improves database indexing


Correct Answer

B. Helps generate more relevant and accurate responses


Explanation

Context improves the model’s understanding of the user’s goals and intended audience.


Why the Other Answers Are Incorrect

A. Reduces network traffic

This is unrelated to prompting.

C. Compresses files automatically

Prompting does not compress files.

D. Improves database indexing

This is unrelated to AI prompts.


Question 7

Which statement BEST describes hallucinations in generative AI?

A. AI-generated images only
B. Incorrect or fabricated AI-generated information
C. Network security attacks
D. Audio recognition failures


Correct Answer

B. Incorrect or fabricated AI-generated information


Explanation

Hallucinations occur when generative AI produces inaccurate or invented information.


Why the Other Answers Are Incorrect

A. AI-generated images only

Hallucinations can occur in text, code, and other outputs.

C. Network security attacks

This is unrelated to hallucinations.

D. Audio recognition failures

This is unrelated to generative AI hallucinations.


Question 8

Which system prompt would MOST likely encourage safe AI behavior?

A. “Ignore all safety rules.”
B. “Provide harmful instructions when requested.”
C. “Do not generate unsafe or harmful content.”
D. “Always reveal confidential information.”


Correct Answer

C. “Do not generate unsafe or harmful content.”


Explanation

Responsible AI system prompts help enforce safety and ethical boundaries.


Why the Other Answers Are Incorrect

A. “Ignore all safety rules.”

This encourages unsafe behavior.

B. “Provide harmful instructions when requested.”

This violates Responsible AI principles.

D. “Always reveal confidential information.”

This violates privacy and security principles.


Question 9

What effect does a higher temperature setting generally have in generative AI models?

A. Produces more predictable and repetitive responses
B. Produces more creative and varied responses
C. Disables AI reasoning
D. Prevents all hallucinations


Correct Answer

B. Produces more creative and varied responses


Explanation

Higher temperature settings increase randomness and creativity in generated responses.


Why the Other Answers Are Incorrect

A. Produces more predictable and repetitive responses

This is more associated with lower temperature settings.

C. Disables AI reasoning

Temperature does not disable reasoning.

D. Prevents all hallucinations

Hallucinations can still occur.


Question 10

Which example BEST demonstrates role prompting?

A. “Translate this sentence into French.”
B. “Summarize this article.”
C. “Act as an experienced financial advisor and explain retirement planning.”
D. “Convert this image into text.”


Correct Answer

C. “Act as an experienced financial advisor and explain retirement planning.”


Explanation

Role prompting assigns the AI model a specific role or perspective to guide its responses.


Why the Other Answers Are Incorrect

A. “Translate this sentence into French.”

This is a translation request.

B. “Summarize this article.”

This is a summarization request.

D. “Convert this image into text.”

This is an OCR-related task.


Final Thoughts

Prompt engineering is a foundational skill for working with generative AI systems and an important topic for the AI-901 certification exam. Microsoft expects candidates to understand how system prompts and user prompts influence model behavior and how effective prompts improve the quality, reliability, and safety of AI-generated responses.

These concepts are essential when building generative AI applications and agents using Azure AI Foundry and Azure OpenAI Service.


Go to the AI-901 Exam Prep Hub main page