All Microsoft exams
Free AI-300 practice test: 30 questions with answers
30 original questions for Operationalizing Machine Learning and Generative AI Solutions, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.
- Free questions
- 30
- Full bank
- 100 questions
All 30 AI-300 questions with answers
The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.
Implement machine learning model lifecycle and operations (5 questions)
Question 1
A data scientist runs many training jobs with different learning rates and needs to compare metrics and parameters side by side. Which tool tracks this?
- AA spreadsheet updated by hand after each job
- BThe compute instance's desktop wallpaper
- CMLflow experiment tracking in the workspace
- DDeleting old job outputs to save space
Show answer and explanationHide answer
Correct answer: CMLflow tracking records parameters, metrics, and artifacts for each run, which allows comparison across jobs. Manual spreadsheets are error-prone, and wallpapers and deletion do not record experiment results.
Question 2
Which two benefits come from registering a trained model with its version and metadata? (Choose two.)
- AAutomatic removal of the need for evaluation
- BGuaranteed improvement in accuracy with each new version
- CPermanent deletion of older versions to reduce cost
- DConsistent promotion of the same versioned artifact through environments
- ETraceability from a deployed endpoint back to the training run that produced it
Show answer and explanationHide answer
Correct answer: D, EA registered, versioned model can be promoted unchanged and traced back to the run that produced it. Registration does not replace evaluation or guarantee accuracy, and deleting old versions removes the ability to roll back.
Question 3
A team wants to find a good model quickly for a tabular classification problem without writing the training code by hand. Which capability fits?
- AUsing the largest GPU SKU for every experiment regardless of the model family or the task at hand
- BManually coding every candidate algorithm from scratch in raw Python without reusing a library or framework
- CCopying a model checkpoint from a public blog post into production without running a formal evaluation
- DAutomated machine learning that tries algorithms and settings and ranks the results
Show answer and explanationHide answer
Correct answer: DAutomated machine learning searches algorithms and settings and ranks candidate models against a metric. Hand coding, unevaluated copies, and oversized compute do not systematically find a good model.
Question 4
A training job must search over learning rate and batch size values to find the best combination. Which capability should be used?
- ADeleting the primary metric from the logs so that the sweep search runs faster
- BHyperparameter sweep with a defined search space and a primary metric
- CTraining only with the framework default hyperparameter values
- DChanging the values randomly on each run without logging or recording the results
Show answer and explanationHide answer
Correct answer: BA sweep over a defined search space, optimizing a primary metric, systematically finds good hyperparameters. Random unrecorded changes, defaults only, and deleting the metric remove the basis for choosing.
Question 5
A model in production has seen input values that look increasingly different from its training data. Which activity detects this?
- AData drift detection that compares production inputs with the training distribution
- BAsking a sample of users in a monthly survey whether the predictions seemed off to them
- CCounting the number of predictions the endpoint returned each day for billing
- DChecking the endpoint's name, its deployment label, and the resource group it belongs to and the Azure region
Show answer and explanationHide answer
Correct answer: ADrift detection compares production data with the training distribution, which signals when the model may become unreliable. Prediction counts, names, and anecdotes do not measure distribution change.
Implement generative AI quality assurance and observability (5 questions)
Question 6
A team evaluates a RAG application and wants to know whether the answers stay within the retrieved sources. Which metric should be used?
- ANumber of deployments per month
- BGroundedness
- CAverage CPU utilization
- DDisk input and output rate
Show answer and explanationHide answer
Correct answer: BGroundedness measures whether the answer's claims are supported by the provided context. Disk rates, CPU, and deployment counts are infrastructure measures and do not assess support.
Question 7
Finance wants to know the running cost of a generative AI feature. Which signal is the most direct measure of model spend?
- AThe number of employees who have a company laptop assigned
- BThe number of times the logo was viewed on the public website
- CToken consumption per feature and model over time
- DThe total number of files in the repository
Show answer and explanationHide answer
Correct answer: CToken consumption per feature and model over time tracks the main driver of model spend and shows which feature costs the most. Laptop counts, logo views, and file counts do not reflect running costs.
Question 8
A team wants to detect and block harmful content in responses from a generative AI application. Which evaluation should be configured?
- AA load test of the vector database under peak concurrent query traffic
- BA review of the source code's comments and docstrings for the prompt templates
- CA risk and safety evaluation for harmful content categories
- DA test of the application's color scheme and the font sizes in the mobile layout
Show answer and explanationHide answer
Correct answer: CRisk and safety evaluations check outputs for harmful content categories and reveal gaps before release. Visual, database load, and comment reviews do not assess content safety.
Question 9
A production troubleshooting session needs to show the steps taken for one slow request, including the model and retrieval calls. Which capability provides this?
- ADistributed tracing of the request across its calls
- BA monthly total of requests grouped by endpoint and status code
- CA screenshot of the user's screen taken during the session
- DA count of the endpoint's deployments over the past quarter
Show answer and explanationHide answer
Correct answer: ADistributed tracing shows each call and its timing within one request, which locates slow steps. Monthly totals, screenshots, and deployment counts do not show the path of an individual request.
Question 10
A team wants to measure whether an answer actually addresses the user's question. Which AI quality metric fits?
- ANumber of tokens in the prompt
- BRelevance
- CDisk latency
- DStorage tier
Show answer and explanationHide answer
Correct answer: BRelevance measures whether the response addresses the question asked. Disk latency, storage tiers, and prompt length are not measures of answer quality.
Optimize generative AI systems and model performance (5 questions)
Question 11
A RAG system misses relevant passages because chunks are too large and mix several topics. What is the best first adjustment?
- ATune the chunk size and overlap, then measure retrieval relevance on a test set
- BIncrease the model's maximum output token length so answers cover missing passages
- CRemove the retrieval step and rely on the model's parametric memory
- DDouble the number of concurrent users hitting the search index
Show answer and explanationHide answer
Correct answer: AChunk size directly affects retrieval precision, and measured relevance shows whether the change helps. Longer outputs, removing retrieval, and more users do not address mixed-topic chunks.
Question 12
A fine-tuning project lacks enough labeled examples for a specialized domain. Which approach can help create training data?
- AGenerating synthetic examples and validating them with domain experts before use
- BSkipping data preparation entirely and fine-tuning on the raw unvalidated source corpus
- CUsing random unlabeled web text scraped from the internet with no annotation
- DCopying the held-out test data into the training set to inflate scores before peer review
Show answer and explanationHide answer
Correct answer: ASynthetic examples can expand scarce data when they are validated by experts to avoid errors in the training set. Unlabeled random text, unreviewed copies of test data, and skipped preparation harm the model.
Question 13
Users search product codes that must match exactly, and they also ask descriptive questions. Which retrieval approach fits both needs?
- ASemantic search alone, with no keyword or exact-term matching for product codes
- BKeyword search alone with no semantic ranking layer
- CRandom sampling of documents from the index, returning a fixed number of passages
- DHybrid search that combines keyword and semantic retrieval
Show answer and explanationHide answer
Correct answer: DHybrid search covers exact codes through keywords and descriptive questions through semantic matching. Using only one approach misses the other kind of query, and random sampling returns no reliable matches.
Question 14
A retrieval step returns many loosely related passages, and the generated answer is diluted. Which tuning change helps most?
- ARemove the retrieval step entirely, since the pretrained model already knows the domain well enough
- BIncrease the output length to fit more passages in the context window
- CRaise the similarity threshold so that only closely matching passages are retrieved
- DLower the threshold so that more passages are included, and the retriever returns extra matches
Show answer and explanationHide answer
Correct answer: CRaising the similarity threshold keeps only strong matches, which reduces dilution. Lowering it adds more loose matches, removing retrieval loses grounding, and longer outputs do not improve relevance.
Question 15
Two retrieval strategies must be compared with real users. Which approach measures the difference reliably?
- AAsking one user which strategy they prefer after a brief informal session with the search feature
- BComparing the strategies on a single handpicked question from the support log archive in April
- CChoosing the strategy with the newer version number because its changelog lists a higher release tag
- DAn A/B test with predefined metrics, splitting traffic between the two strategies
Show answer and explanationHide answer
Correct answer: DAn A/B test with predefined metrics and split traffic measures real impact under comparable conditions. One user, a single handpicked question, and version numbers do not show which strategy performs better.
Design and implement an MLOps infrastructure (5 questions)
Question 16
A data science team needs its training pipeline to read data from a storage account without any stored keys. Which access configuration fits best?
- AA managed identity for the workspace compute with a role assignment on the storage account
- BA storage account key hardcoded into the pipeline YAML as a secret value
- CA shared access signature valid for ten years embedded in the notebook configuration
- DAnonymous public read access enabled on the container so a client can list and download blobs over HTTP
Show answer and explanationHide answer
Correct answer: AA managed identity with a scoped role assignment gives the compute access without storing secrets. Pasted keys, long-lived SAS tokens, and public containers all expose data or credentials.
Question 17
A team wants to reuse the same training environment definition across two Machine Learning workspaces in different regions. Which capability provides this?
- ACreating a new environment by hand in each workspace from memory
- BCopying the environment's screenshot into each workspace
- CRenaming the workspace
- DSharing the asset through a registry
Show answer and explanationHide answer
Correct answer: DRegistries let assets such as environments and components be shared across workspaces and regions. Screenshots, manual recreation, and renaming do not share the definition.
Question 18
A platform team must deploy identical workspaces, compute clusters, and networking in dev and prod from source control. Which approach fits?
- AManual portal clicks in each environment recorded in a shared document
- BInfrastructure as code with Bicep templates applied through the Azure CLI or a pipeline
- CCreating each resource ad hoc in the portal whenever a team member needs it
- DCopying the dev workspace by exporting screenshots of its settings and pasting them into prod
Show answer and explanationHide answer
Correct answer: BBicep templates applied through the CLI or a pipeline make environments repeatable and reviewable. Manual clicks, screenshots, and ad hoc creation cause drift between environments.
Question 19
A pipeline should run training and deployment automatically when the main branch changes. Which tool fits?
- AA weekly printout of the training script pinned to a shared wall board for review
- BA manual copy of the code by hand to a USB drive kept in a desk drawer
- CA GitHub Actions workflow triggered by pushes to the branch
- DA calendar reminder for the engineer to retrain and redeploy the model
Show answer and explanationHide answer
Correct answer: CGitHub Actions triggers the pipeline on repository events, which automates the workflow. Reminders, manual copies, and printouts depend on people acting consistently.
Question 20
Which two controls restrict network access to a Machine Learning workspace and its resources? (Choose two.)
- APrivate endpoints for the workspace and its dependent services
- BRestricting inbound public network access to approved networks
- COpening all ports on the workspace for convenience
- DSharing a public IP address with every team
- EDisabling authentication on the workspace endpoint
Show answer and explanationHide answer
Correct answer: A, BPrivate endpoints and restricted public access limit who can reach the workspace over the network. Open ports, shared public addresses, and disabled authentication expand access.
Design and implement a GenAIOps infrastructure (4 questions)
Question 21
Prompts for a customer assistant are changed often, and the team needs to know which version produced a given result. Which practice provides this?
- ASharing one prompt file on a desktop folder copied between several engineers' laptops each week
- BStoring prompts in a Git repository with versioned commits and comparing variants
- CEditing the prompt text directly in production without a change record
- DKeeping prompts only inside a chat thread and session history
Show answer and explanationHide answer
Correct answer: BVersion control gives each prompt a history and lets results be tied to a specific version. Unrecorded production edits, chat threads, and desktop files lose that link.
Question 22
A high-volume application needs predictable throughput and latency for a foundation model deployment. Which option fits?
- AReducing the number of users to match capacity
- BServerless pay-per-call endpoints with no capacity planning
- CProvisioned throughput units for the deployment
- DA single shared key used by every application
Show answer and explanationHide answer
Correct answer: CProvisioned throughput reserves capacity so that high-volume workloads meet latency and throughput needs. Pay-per-call endpoints do not reserve capacity, and shared keys or user limits do not address throughput.
Question 23
A team needs to compare two prompt variants on the same test questions before choosing one. Which practice fits?
- ACreate both variants and run the same evaluation dataset against each, comparing the metrics
- BAsk the most senior developer on the team which phrasing feels more natural to them in a review meeting
- CUse whichever prompt was written most recently, since the latest revision usually reflects improvements made by the team
- DChoose the shorter prompt because it is cheaper per call, without running tests on either variant first
Show answer and explanationHide answer
Correct answer: ARunning both variants on the same dataset and comparing metrics gives an evidence-based choice. Length, seniority, and recency are not measures of quality.
Question 24
A team needs a model for summarizing short support tickets with low latency and low cost. Which selection approach is most sound?
- AEvaluate a smaller model on a representative task set and choose it if quality meets the target
- BSkip evaluation and use the first model listed in the catalog, since the default ordering is the vendor's pick
- CChoose a model based on its name and its marketing label, since the name signals which release is the newest
- DChoose the largest model by default regardless of the task, since a bigger parameter count is assumed to be stronger overall
Show answer and explanationHide answer
Correct answer: ASelecting by measured quality on the actual task balances cost and latency against the required accuracy. The largest model by default, name-based choice, and skipping evaluation do not justify the selection.
Deploy machine learning models for production environments (4 questions)
Question 25
Which two strategies support a safe rollout of a new model version to an online endpoint? (Choose two.)
- ASend a small share of traffic to the new deployment and increase it gradually
- BKeep the previous deployment available so traffic can be shifted back
- CReplace the existing deployment in one step with no fallback
- DDisable monitoring during the rollout to avoid noise
- EDeploy to every region at the same moment without health checks
Show answer and explanationHide answer
Correct answer: A, BA gradual traffic split and a retained previous deployment allow the team to detect problems and roll back quickly. One-step replacement, disabled monitoring, and unchecked global rollouts remove those safeguards.
Question 26
A model must score a nightly file of 40 million records, and results are needed by morning. Which endpoint type fits?
- AA notebook run by hand each morning on a single machine
- BA real-time endpoint called once per record in the file
- CA web page with a form for submitting each record
- DA batch endpoint that processes the file as a job
Show answer and explanationHide answer
Correct answer: DBatch endpoints process large files efficiently as jobs, which suits nightly volume. Per-record real-time calls and manual notebooks are slower and do not scale to that volume.
Question 27
Which two actions help a team roll back a model deployment quickly when a regression appears? (Choose two.)
- ADelete the endpoint and rebuild it from memory
- BHide the regression from stakeholders until it is fixed
- CTurn off monitoring so the rollback is not triggered
- DShift traffic back to the last known good deployment
- ERedeploy the previous model version from the registry using its recorded version
Show answer and explanationHide answer
Correct answer: D, EShifting traffic back and redeploying a recorded version from the registry restore a known good state quickly. Rebuilding from memory, hiding the regression, and disabling monitoring each delay recovery or conceal the problem.
Question 28
An endpoint returns server errors right after a deployment. What should the team check first?
- AThe deployment logs and the container startup output for errors in the scoring code or environment
- BThe color theme of the endpoint's monitoring dashboard and its chart palette
- CThe firmware version of the team's coffee maker in the break room, last updated during the office renovation in 2024
- DThe number of users who signed in to the sales portal that morning, along with the count of browser tabs
Show answer and explanationHide answer
Correct answer: ADeployment logs and startup output show errors in the scoring code, dependencies, or environment. Dashboard colors, user counts, and unrelated equipment do not explain server errors.
Monitor and maintain machine learning models in production (2 questions)
Question 29
The team wants an alert when the statistics of an input feature shift beyond a threshold. Which feature provides this?
- AA data drift monitor with a threshold and an alert
- BA weekly manual check of the feature values by an engineer
- CNo monitoring because features do not change over the year
- DA printed table of feature names and sample values for review
Show answer and explanationHide answer
Correct answer: AA drift monitor compares feature statistics with a reference and alerts when a threshold is crossed. Manual checks are slow, printed names give no alert, and features do change over time.
Question 30
Which two signals indicate that a deployed model may need retraining? (Choose two.)
- AThe model's name no longer matches the team's naming style
- BThe endpoint was restarted once for maintenance
- CA sustained decline in the quality metric compared with the baseline
- DA single unusual prediction that was later corrected
- EInput data drift that stays above the agreed threshold over time
Show answer and explanationHide answer
Correct answer: C, EA sustained quality decline and persistent input drift both point to a model that no longer fits current data. A single corrected prediction, naming style, and planned restarts are not signs of degradation.
Want more AI-300 questions?
The full bank has 100 questions with answers and explanations, as a PDF, an online practice exam, or both.
Both formats together. The best value.
Instant access after payment, with 90 days of updates. Checkout is on our store, AIExamCerts.