๐ I Passed the AI-900 Exam!
Iโm excited to share that I cleared the AI-900: Microsoft Azure AI Fundamentals exam! ๐
While preparing, I created a set of personal notes โ and Iโm sharing them here in the hope that theyโll help others on the same path.
These notes arenโt a complete study guide, but they are great for quick reference, revision, and understanding the core concepts youโll need to know for the exam.
๐งญ Quick Navigation
- ๐ง Fundamental AI Concepts
- ๐ค Fundamentals of Machine Learning
- ๐๏ธ Fundamentals of Computer Vision
- ๐ค Fundamentals of Facial Recognition
- ๐ก Fundamentals of Optical Character Recognition
- ๐ Fundamentals of Text Analysis with the Language Service
- ๐ฃ๏ธ Fundamentals of Conversational Language Understanding
- ๐ Fundamentals of Azure AI Speech
- ๐ Important Topics
๐ง Fundamental AI Concepts
๐ Key Workloads of AI
- Machine Learning The foundation of many AI systems. It enables computers to learn from data and make predictions or decisions without being explicitly programmed.
- Computer Vision Enables machines to interpret and process visual information from images or videos.
- Natural Language Processing (NLP) Allows machines to understand, interpret, and generate human language โ both spoken and written.
- Document Intelligence Helps process and extract data from structured and unstructured forms and documents.
- Knowledge Mining Extracts useful insights from large volumes of unstructured information and creates a searchable knowledge base.
- Generative AI Focuses on creating new content โ such as text, code, or images โ using models trained on large datasets.
๐งช Machine Learning in Microsoft Azure
Microsoft Azure provides the Azure Machine Learning service โ a cloud-based platform for building, training, and deploying machine learning models.
Authoring Experiences
- Automated Machine Learning Empowers non-experts to build effective machine learning models quickly from their data.
- Azure Machine Learning Designer A no-code, drag-and-drop interface to design machine learning workflows.
- Data Metric Visualization Helps analyze and optimize experiments using built-in visual tools.
- Notebooks Integrated Jupyter Notebooks for writing and running code directly in Azure Machine Learning Studio.
๐๏ธ Computer Vision in Microsoft Azure
Computer vision enables AI to interpret the world visually โ through images, video, or camera input.
Common Computer Vision Models
- Image Classification โ Classify an image into a predefined category.
- Object Detection โ Detect and locate objects in images.
- Semantic Segmentation โ Identify pixel-level boundaries of objects.
- Image Analysis โ Extract tags, descriptions, and content.
- Face Detection, Analysis & Recognition โ Recognize or verify individuals.
- Optical Character Recognition (OCR) โ Read printed or handwritten text.
Azure AI Vision Capabilities
- Image Analysis Analyze images and extract descriptions, tags, text, and objects.
- Face Detect facial features, emotions, and perform recognition or verification.
- OCR (Optical Character Recognition) Extract text from scanned documents, handwritten notes, and images.
๐ฃ๏ธ Natural Language Processing (NLP)
Natural Language Processing enables software to understand and interact using human language โ both written and spoken.
What Can NLP Do?
- Analyze and interpret text in documents, emails, and messages.
- Interpret spoken language and generate spoken responses.
- Translate content between different languages.
- Understand intent behind commands and respond appropriately.
Azure Services for NLP
- Azure AI Language โ Analyze sentiment, extract key phrases, detect language, and more.
- Azure AI Speech โ Transcribe speech to text, synthesize text to speech, translate spoken content.
๐ Document Intelligence
Document Intelligence refers to the ability to process and extract structured data from unstructured or semi-structured content like forms, invoices, receipts, and documents.
Azure Document Intelligence Capabilities
- Azure AI Document Intelligence (formerly Form Recognizer) enables scanning, processing, and extracting text, tables, and key-value pairs from documents like PDFs or images.
๐ Knowledge Mining
Knowledge mining involves extracting meaningful insights from large volumes of unstructured data โ such as PDFs, Office docs, and other content โ and making that data searchable.
Azure Services for Knowledge Mining
- Azure AI Search โ Combines indexing, natural language processing, and cognitive skills to make unstructured content searchable and insightful.
โจ Generative AI
Generative AI enables machines to create content โ not just analyze it. This includes:
- Natural language (text)
- Images
- Code
- Audio
- Video
Azure Generative AI Capabilities
- Azure OpenAI Service
Gives access to powerful language models (e.g., GPT-4, Codex, DALLยทE) to build intelligent, generative solutions within your applications.
๐ Responsible AI
Building AI responsibly is critical. Microsoft outlines six key principles that guide the ethical development and deployment of AI.
Principles of Responsible AI
Fairness
AI systems should treat everyone fairly and avoid bias (e.g., gender, race).Reliability and Safety
AI must be tested to operate safely and consistently โ especially in critical areas like healthcare or transportation.Privacy and Security
AI should respect data privacy and protect information at every step of its lifecycle.Inclusiveness
AI should be accessible and beneficial to all people, regardless of ability or background.Transparency
AI systems should be understandable, and users should know how decisions are made.Accountability
Humans must remain accountable for AI behavior and ensure ethical compliance.
๐ค Fundamentals of Machine Learning
๐ง Types of Machine Learning

๐ฏ Supervised Machine Learning
Supervised machine learning is a general term for machine learning algorithms in which the training data includes both feature values and known label values.
These algorithms learn relationships between features and labels from past data, allowing them to predict unknown labels for future data.
๐ Regression
Regression is a type of supervised learning where the label is a numeric value.
Examples include:
- The number of ice creams sold on a given day, based on temperature, rainfall, and windspeed.
- The selling price of a property based on square footage, number of bedrooms, and neighborhood stats.
- The fuel efficiency (miles-per-gallon) of a car based on engine size, weight, and dimensions.
๐งพ Classification
Classification is another type of supervised learning, where the label is a category (class).
โ Binary Classification
The model predicts one of two mutually exclusive outcomes.
Examples:
- Whether a patient is at risk for diabetes based on metrics like weight, glucose level, etc.
- Whether a customer will default on a loan based on income, credit score, etc.
- Whether a marketing campaign will receive a positive response based on demographics and purchase history.
๐งฉ Multiclass Classification
The model predicts one class out of multiple possibilities.
Examples:
- Predicting the species of a penguin (Adelie, Gentoo, or Chinstrap) from physical traits.
- Classifying the genre of a movie (comedy, horror, romance, etc.) based on its cast, director, and budget.
๐งฌ Unsupervised Machine Learning
Unsupervised machine learning uses data that has no labels โ only feature values.
These algorithms learn to identify hidden patterns or structures in the data.
๐ Clustering
The most common form of unsupervised learning is clustering.
It groups observations based on similarities in their features.
Examples:
- Grouping similar flowers based on size, leaf count, and petal count.
- Identifying customer segments based on demographics and shopping behavior.
๐๏ธ Fundamentals of Computer Vision
๐ค Machine Learning for Computer Vision
๐ง Convolutional Neural Networks (CNNs)
One of the most common machine learning model architectures for computer vision is a convolutional neural network (CNN).
CNNs use filters to extract numeric feature maps from images, which are then processed by deep learning layers to generate predictions such as classification labels.
๐ Transformers and Multi-modal Models
CNNs have traditionally been the foundation of many vision-based models. They’re commonly used for image classification, and serve as the backbone for more complex tasks like object detection, which combines CNN-based feature extraction with region identification to detect and classify multiple objects within an image.
๐งฉ Transformers
While CNNs have driven most advances in computer vision, another architectureโtransformersโhas transformed natural language processing (NLP). Transformers have enabled large, capable language models, and their adaptability has inspired researchers to explore them for vision tasks too.
๐ Multi-modal Models
Inspired by transformers in NLP, researchers have developed multi-modal models that learn from large volumes of captioned images (images with textual descriptions), rather than traditional fixed labels. These models are trained to understand both visual and linguistic data, improving their ability to generalize across modalities.
๐ผ๏ธ Azure AI Vision
You can use either of the following Azure resource types to implement vision AI capabilities:
- Azure AI Vision: A dedicated resource for computer vision tasks. Choose this if you want to isolate billing, utilization, and access specifically for vision.
- Azure AI Services: A broader resource that includes vision, language, translation, and more. Choose this for multi-service projects where integration and cost management across services is needed.
๐งช Analyzing Images with Azure AI Vision
Azure AI Vision supports several out-of-the-box analysis features, including:
- Optical Character Recognition (OCR) โ Extracts printed or handwritten text from images.
- Image Captioning โ Generates natural language descriptions of image content.
- Object Detection โ Identifies and locates thousands of common objects.
- Visual Tagging โ Assigns descriptive tags to visual elements within the image.
๐งฐ Training Custom Models
๐ท๏ธ Image Classification
Use custom image classification to predict what category an image belongs to.
For example, a trained model could identify whether an image contains an apple, banana, or orange.
๐ฆ Object Detection
Object detection models go further by identifying where each object is in the image and what it is.
These models return bounding box coordinates for each object detected.
You can train object detection models using your own datasetโsuch as images of fruitsโto detect multiple objects in a single image.
๐ค Fundamentals of Facial Recognition
๐ Uses of Face Detection and Analysis
There are many applications for face detection, analysis, and recognition. For example:
- Security โ Facial recognition can be used in building access control systems and smartphone unlocking mechanisms.
- Social Media โ Automatically tag friends in photos using facial recognition.
- Intelligent Monitoring โ In automobiles, detect if the driver is distracted, drowsy, or not looking at the road.
- Advertising โ Analyze faces to tailor ads to the appropriate demographic audience.
- Missing Persons โ Use public surveillance systems to identify missing individuals.
- Identity Validation โ Helpful at border entry kiosks using special access permits.
๐ง Understand Face Analysis
Face detection involves identifying regions in an image that contain a human face by returning bounding box coordinates.
With face analysis, facial landmarks such as the nose, eyes, eyebrows, and lips are identified and used to derive insights or feed downstream machine learning models.
๐งฌ Facial Recognition
Facial recognition takes facial analysis a step further. It involves training a machine learning model with multiple images of a known individual so that the model can later identify them in unseen images. This enables accurate identity matching across image datasets.
โ๏ธ Get Started with Face Analysis on Azure
Microsoft Azure offers various services for face detection and analysis:
- Azure AI Vision โ Detects faces and returns basic face attributes such as bounding boxes.
- Azure AI Video Indexer โ Identifies faces in video content using advanced vision capabilities.
- Azure AI Face โ Offers pre-trained models for detecting, analyzing, and recognizing faces in still images.
๐งพ Face Service Attributes
The Azure Face service can return the coordinates of human faces and provide additional attributes, including:
- Accessories โ Identifies glasses, masks, headwear, etc., along with a confidence score.
- Blur โ Measures how blurry the face appears.
- Exposure โ Analyzes underexposure or overexposure on the detected face.
- Glasses โ Detects if the person is wearing glasses.
- Head Pose โ Captures 3D orientation of the head.
- Mask โ Indicates whether the person is wearing a mask.
- Noise โ Measures image graininess which may affect face clarity.
- Occlusion โ Detects if the face is partially covered or blocked by other objects.
๐ง Azure Resources for Face
To use the Face service in Azure, you can create one of the following resource types:
- Face โ A dedicated resource for Azure AI Face, best if you want isolated billing and usage tracking.
- Azure AI Services โ A consolidated resource that supports Face along with other services like Language, Content Safety, and more.
๐ก Fundamentals of Optical Character Recognition
๐ง Azure AI Vision’s OCR Engine
The Azure AI Vision service enables the extraction of machine-readable text from images using its powerful Read API. This OCR engine supports images, PDFs, and TIFF files, and is optimized for general, non-document images โ making it ideal for user-facing applications that involve text recognition.
When you call the Read API, it returns results in a structured hierarchy:
- Pages โ Each page of text, along with page size and orientation.
- Lines โ Lines of text found on each page.
- Words โ Words within the lines, including the bounding box and text content.
๐ Get Started with Vision Studio on Azure
To begin using Azure AI Vision, youโll need to create a resource in your Azure subscription. You have two options:
- Azure AI Vision โ A dedicated resource for vision services. Best suited if you’re only using Vision and want separate tracking of costs and usage.
- Azure AI Services โ A broader resource that includes Vision, Language, Speech, and other services. Ideal for managing multiple AI services under a single umbrella.
๐ Fundamentals of Text Analysis with the Language Service
๐ฌ Introduction to NLP and Azure AI Language
Natural Language Processing (NLP) enables computer systems to interpret written or spoken language in a way thatโs similar to how humans do. Text analysis is a branch of NLP that focuses on extracting meaningful insights from unstructured text.
Azure AI Language is a cloud-based service that provides features for text understanding โ such as sentiment analysis, key phrase extraction, summarization, and more.
๐ Understand Text Analytics
๐งฉ Tokenization
The first step in analyzing text is breaking it into smaller components called tokens. Tokens can be individual words, punctuation marks, or combinations.
Example phrase: "we choose to go to the moon"
Tokenized:
- we
- choose
- to
- go
- the
- moon
Token sequence: [1, 2, 3, 4, 3, 5, 6]
๐ Frequency Analysis
After tokenizing, you can count how often each token appears. Common terms (excluding stop words like โaโ or โtheโ) often reveal the documentโs subject.
For example:
- Frequent words:
new,go,space,moon - Common bi-gram:
the moon
The context implies that the subject is space travel.
๐ค Machine Learning for Text Classification
You can train machine learning models to classify text using algorithms like logistic regression.
Use case: Sentiment analysis
Labeled examples:
- “The food and service were both great” โ 1 (positive)
- “A really terrible experience” โ 0 (negative)
- “Mmm! tasty food and a fun vibe” โ 1 (positive)
- “Slow service and substandard food” โ 0 (negative)
๐ง Semantic Language Models
Modern NLP leverages semantic embeddings, which encode tokens as numeric vectors. These vector-based representations help models understand meaning and relationships between words.
๐ Get Started with Text Analysis in Azure
Azure AI Language supports a variety of NLP capabilities:
- Named Entity Recognition (NER) โ Identifies people, places, events, and more. Customizable categories are also supported.
- Entity Linking โ Matches known entities and links them (e.g., to Wikipedia).
- PII Detection โ Identifies sensitive personal or health-related info.
- Language Detection โ Returns language name (
English), code (en), and confidence score. - Sentiment Analysis โ Labels sentences as positive, neutral, or negative.
- Summarization โ Condenses long text to highlight core insights.
- Key Phrase Extraction โ Extracts essential points from large text bodies.
๐งพ Entity Recognition and Linking
Submit unstructured text and get back identified entities โ categorized items like people, locations, or dates.
๐ Language Detection
Azure detects:
- Language name (e.g., English)
- ISO 639-1 code (e.g.,
en) - Confidence score
Useful for multilingual applications and localization tasks.
โค๏ธ Sentiment Analysis and Opinion Mining
Azureโs sentiment analysis returns:
- Sentiment label (positive, neutral, or negative)
- Confidence scores
- Sentence-level granularity
Used in analyzing reviews, social media posts, support tickets, etc.
โจ Key Phrase Extraction
Summarizes the main points of a document by listing essential phrases.
For example, from many restaurant reviews, Azure AI Language can help extract:
Great serviceDelicious foodLong wait time
๐ฃ๏ธ Fundamentals of Conversational Language Understanding
๐ง Describe Conversational Language Understanding
Conversational language understanding enables applications to interpret user input in natural language conversations. It focuses on three main concepts: utterances, entities, and intents.
๐ฌ Utterances
An utterance is something a user might say.
Examples:
- “Switch the fan on.”
- “Turn on the light.”
These represent inputs the system should understand and interpret meaningfully.
๐งฉ Entities
An entity is a specific item or concept mentioned in an utterance.
In the examples above:
"fan"and"light"are entities โ both are types of device.
Entities help the system identify what the user is talking about.
๐ฏ Intents
An intent represents the goal or purpose of an utterance.
Both examples aim to turn a device on, so the intent might be labeled as TurnOn.
Your conversational model groups related utterances under defined intents and identifies entities within them.
๐ง Think of it like this:
“Turn on the fan.” โ Intent =TurnOn, Entity =fan
๐ ๏ธ Building a Conversational Model in Azure
To build a conversational AI model in Azure, you define:
- Entities (e.g., device names)
- Intents (e.g., TurnOn, TurnOff)
- Utterances to train the model
Azure uses these to train your model to understand user inputs.
You might build models for various scenarios such as:
- Turning devices on/off
- Setting reminders
- Booking appointments
๐งฐ Azure Resources for Conversational AI
To use conversational understanding in Azure, you need a resource:
Azure AI Language
Best for authoring and predicting. Offers a complete development and deployment experience.Azure AI Services
A general-purpose resource. Can be used for prediction only.
โ๏ธ Authoring the Model
Once you have a resource, you define:
- Intents (like
TurnOn,TurnOff) - Entities (like
fan,light) - Utterances (example user phrases)
Azure also offers prebuilt domains โ collections of pre-defined intents and entities to help you get started.
You can use these or create custom ones tailored to your application.
๐๏ธ Training the Model
Training uses your sample utterances to “teach” the model how to match user input to intents and entities.
For example:
- Input:
"Switch on the heater" - Model Prediction:
Intent = TurnOn,Entity = heater
Training helps the model generalize so it can understand variations in language.
๐ Predicting with the Model
After testing and validating your model, you publish it to a prediction resource.
Client applications (chatbots, mobile apps, websites) then:
- Send user input to the prediction endpoint
- Receive a response containing:
- The predicted intent
- The identified entities
Based on the prediction, the app can then perform an appropriate action.
Example:
{
"intent": "TurnOn",
"entities": ["light"]
}
๐ Fundamentals of Azure AI Speech
AI speech capabilities allow us to interact with technology through voice โ whether thatโs managing home systems, asking questions aloud, generating captions, or receiving spoken responses.
To enable this interaction, AI systems must support two core capabilities:
- Speech Recognition โ Understanding spoken language and converting it into text.
- Speech Synthesis โ Generating spoken output from text.
Azure provides both through the Azure AI Speech service, supporting prebuilt and custom models for use cases like real-time transcription, custom voice creation, and more.
๐ง Understand Speech Recognition and Synthesis
๐ฃ๏ธ Speech Recognition
Speech recognition converts spoken input (live or recorded) into machine-readable data, typically in the form of text.
It involves:
- Acoustic Models โ Convert the audio signal into phonemes (basic sound units).
- Language Models โ Map phonemes to words using statistical algorithms.
Common use cases:
- Live captions and subtitles for videos
- Automated meeting transcripts
- Dictation tools
- Voice command interfaces
๐ฃ๏ธ Speech Synthesis
Speech synthesis, or Text-to-Speech (TTS), generates spoken output from text.
To synthesize speech, the system:
- Tokenizes text into words
- Assigns phonetic values to each word
- Breaks phonemes into phrases or sentences
- Generates audio with desired voice, pitch, volume, and speed
Use cases include:
- Voice assistants and bots
- Telephone IVRs
- Email readers for accessibility
- Public announcement systems
๐ Get Started with Speech on Azure
Azureโs AI Speech service provides both recognition and synthesis via the following APIs:
- Speech to Text API โ Convert spoken language to written text.
- Text to Speech API โ Convert written text to spoken voice output.
๐งฐ Azure Resource Options
To use Azure AI Speech, create one of the following resources:
- Speech Resource โ For projects focused solely on speech capabilities.
- Azure AI Services Resource โ For multi-service solutions using Speech, Language, Vision, etc.
๐ค Speech to Text API
๐ด Real-time Transcription
Transcribe audio as it happens โ ideal for live presentations, demos, or accessibility scenarios.
๐ฆ Batch Transcription
Upload audio files (e.g., from file shares or Azure Storage via SAS URI) and receive transcription results asynchronously.
๐ฃ๏ธ Text to Speech API
With the Text to Speech API, you can specify custom voices, making your application sound unique and engaging.
Applications include:
- Responding to user queries
- Interactive phone systems
- Accessibility tools (e.g., email reading)
- Smart environments with vocal output
๐ Important Topics
๐งฎ Binary Classification Evaluation Metrics
The first step in evaluating a binary classification model is creating a confusion matrix, comparing predicted labels (ลท) with actual labels (y):
| Actual / Predicted | 0 (Negative) | 1 (Positive) |
|---|---|---|
| 0 (Negative) | TN | FP |
| 1 (Positive) | FN | TP |
Where:
- TN โ True Negative
- FP โ False Positive
- FN โ False Negative
- TP โ True Positive
โ Accuracy
Proportion of total predictions that were correct:
(TP + TN) / (TP + TN + FP + FN)
๐ข Recall (Sensitivity)
Proportion of actual positives correctly identified:
TP / (TP + FN)
๐ฏ Precision
Proportion of predicted positives that are actually positive:
TP / (TP + FP)
โ๏ธ F1-Score
Harmonic mean of Precision and Recall:
(2 ร Precision ร Recall) / (Precision + Recall)
๐ Area Under the Curve (AUC)
AUC measures performance by plotting True Positive Rate (TPR) against False Positive Rate (FPR):
- TPR = TP / (TP + FN)
- FPR = FP / (FP + TN) AUC is threshold-invariant, meaning it evaluates model quality regardless of threshold used.
๐ Metrics for Classification Models
- Accuracy โ Proportion of all correct predictions.
- Precision โ TP / (TP + FP)
- Recall โ TP / (TP + FN)
- F1 Score โ Weighted average of precision and recall.
- AUC โ Area under the ROC curve.
๐ Metrics for Regression Models
Used to estimate the amount of error between predicted and actual values.
- Mean Absolute Error (MAE) โ Average of absolute differences.
- Root Mean Squared Error (RMSE) โ Square root of average squared errors.
- Relative Absolute Error (RAE) โ Ratio of total absolute error to the total absolute error of the mean.
- Relative Squared Error (RSE) โ Ratio of squared error to the total squared error of the mean.
- Rยฒ (Coefficient of Determination) โ Predictive power; 0 = no predictive value, 1 = perfect fit.
๐ Metrics for Clustering Models
Used to measure the compactness and separation of clusters:
- Average Distance to Other Center โ How far each point in a cluster is from other cluster centroids.
- Average Distance to Cluster Center โ Closeness of points to their own cluster center.
- Maximal Distance to Cluster Center โ Furthest distance within the cluster.
- Number of Points โ Count of points assigned to each cluster.
- Combined Evaluation Score โ Overall average performance across all clusters.
๐ง Text Analytics Capabilities
- Sentiment Analysis โ Detects sentiment as Positive, Neutral, or Negative.
- Key Phrase Extraction โ Pulls main ideas from unstructured text.
- Entity Recognition โ Identifies people, places, organizations, etc.
- Language Detection โ Identifies the language of given text.
๐งฑ Entity Types in LUIS (Language Understanding)
While authoring a LUIS application, you can define entities as:
- Machine-Learned โ AI learns how to extract them from examples.
- List โ Predefined list of possible values.
- RegEx โ Match patterns with regular expressions.
- Pattern.any โ Wildcard-based matching.
๐ Four Steps of Data Transformation
- Feature Selection โ Selecting relevant variables.
- Removing Outliers โ Cleaning data for better generalization.
- Impute Missing Values โ Filling in missing data points.
- Normalize Numeric Values โ Scaling values to a standard range.
๐ฌ Sentiment Analysis Categories
- Positive โ Expresses joy, satisfaction, excitement, etc.
- Neutral โ Objective or factual; no strong emotion.
- Negative โ Expresses disappointment, frustration, or dissatisfaction.