Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Microsoft Operationalizing Machine Learning and Generative AI Solutions AI-300 Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 16 Total 228 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Design and implement an MLOps infrastructure

Skill tested: Configure workspace identity, network restrictions, and least-privilege access for Azure Machine Learning.

A regulated analytics team is provisioning an Azure Machine Learning workspace for production training. The workspace and its storage account must be reachable only through approved private network paths, and data scientists must not receive broad subscription permissions. A central platform team manages infrastructure through Bicep, while the data science team needs to submit jobs and read registered models. Which design best meets these requirements?

Correct Answer: C. Deploy the workspace and dependent resources with Bicep, configure private endpoints and the required private DNS integration, and assign workspace-scoped roles that grant the data science team only the operations it needs.
Explanation:

Infrastructure as code provides repeatable workspace deployment, while private endpoints and correctly configured private DNS keep access on approved network paths. Workspace-scoped role assignments can support job submission and model reading without granting broad subscription rights. A public workspace endpoint in B defeats the network requirement and subscription Contributor is excessive. C protects only storage and introduces shared-key access while leaving the workspace exposed. D addresses public access but resource-group Owner grants far more authority than required.

Question 2

New Single answer

Topic: Design and implement an MLOps infrastructure

Skill tested: Integrate Azure Machine Learning repositories with GitHub Actions using secure deployment credentials.

A company wants every change to its Azure Machine Learning training pipeline to be validated and deployed through GitHub Actions. The repository is already connected to the workspace, but the workflow currently relies on a developer's personal credentials stored as a long-lived secret. The security team requires noninteractive authentication, auditable access, and minimal credential maintenance. Which change is the best fit?

Correct Answer: D. Use a GitHub Actions workload identity federation connection to Microsoft Entra ID and grant its service principal only the Azure permissions needed by the workflow.
Explanation:

Workload identity federation lets a GitHub Actions workflow obtain an Entra ID token without maintaining a long-lived client secret. The associated identity can be granted narrowly scoped Azure permissions and its activity can be audited. Rotating a personal token still ties automation to a person and leaves a durable secret. A workspace key is not an appropriate Azure deployment identity and is broader than needed. Public repository visibility neither provides deployment authentication nor satisfies the security requirement.

Question 3

New Multiple answers

Topic: Implement machine learning model lifecycle and operations

Skill tested: Configure hyperparameter sweeps with a primary metric, search space, and bounded trial execution.

A forecasting team has a reproducible Azure Machine Learning training command and wants to automate selection of learning rate and tree depth. The team must compare runs by validation mean absolute error, stop wasting compute on poorly performing trials, and cap parallel resource consumption. Which two configuration choices should the engineer make? Select two.

Correct Answer: A. Define a sweep over the learning-rate and tree-depth search spaces, and set validation mean absolute error as the objective metric to minimize.; D. Configure early termination based on the objective metric and set a maximum number of concurrent trials appropriate to the available compute.
Explanation:

A sweep job needs explicit parameter search spaces and an objective metric that matches model selection; minimizing validation MAE selects for the stated forecasting criterion. Early termination can halt unpromising trials, and a concurrency limit controls compute usage. Registering the first run does not perform tuning. A single fixed-parameter command does not explore the search space. Maximizing training accuracy risks selecting an overfit model and removing limits violates the resource constraint.

Question 4

New Multiple answers

Topic: Implement machine learning model lifecycle and operations

Skill tested: Register MLflow models with feature retrieval specifications for consistent online inference.

A churn model is trained from point-in-time feature data in Azure Machine Learning. At inference, the serving application must retrieve the same feature definitions from a feature store rather than reimplementing feature logic. The team also needs model lineage and a promotion-ready registered artifact. Which two actions best address these requirements? Select two.

Correct Answer: A. Log the trained model as an MLflow model with the feature retrieval specification associated with the model, then register that model in the workspace registry.; D. Include the required feature retrieval specification with the MLflow model registration so downstream serving can use the specified feature source and features.
Explanation:

An MLflow model provides a standardized model artifact and logging metadata, while registration makes the artifact available for lifecycle management and promotion. Including the feature retrieval specification preserves the link between model inference and the intended feature definitions and source, rather than relying on separately reimplemented logic. A bare binary cannot reliably supply those definitions. A training CSV is not a live, point-in-time feature retrieval mechanism, and notebook-only transformations undermine reproducibility and lineage.

Question 5

New Single answer

Topic: Implement machine learning model lifecycle and operations

Skill tested: Use Azure Machine Learning pipelines to orchestrate reusable training and evaluation steps.

A team currently runs data preparation, model training, and evaluation as separate interactive jobs. Deployments sometimes use a model that was trained before the latest data preparation, and rerunning the full process wastes compute when an upstream output has not changed. The team wants a repeatable workflow with explicit dependencies and reusable outputs. Which approach should it implement?

Correct Answer: B. Create an Azure Machine Learning pipeline with separate components, connect their inputs and outputs to express dependencies, and use pipeline outputs and caching where appropriate.
Explanation:

A pipeline defines an explicit, repeatable dependency graph: preparation outputs feed training, and the resulting model feeds evaluation. Reusable components and pipeline outputs improve maintainability and make lineage clearer; caching can avoid rerunning unchanged work where supported by the component and pipeline configuration. A notebook and ticket do not enforce dependencies. Concurrent independent jobs can evaluate stale or incomplete artifacts. Filename-based file sharing provides weak provenance and does not reliably bind stages to the correct outputs.

Question 6

New Single answer

Topic: Implement machine learning model lifecycle and operations

Skill tested: Apply progressive deployment strategies to reduce risk when promoting a model to production.

A fraud-scoring endpoint serves time-sensitive requests. A newly trained model has passed offline evaluation, but the team wants to verify its behavior on a small share of live traffic before replacing the current model. The existing deployment must remain available for immediate rollback, and the team cannot interrupt service. Which rollout is most appropriate?

Correct Answer: D. Create a separate deployment for the new model, direct a small percentage of endpoint traffic to it, monitor the results, and increase traffic gradually while retaining the existing deployment for rollback.
Explanation:

A gradual traffic shift to a separate deployment supports controlled live validation while keeping the current deployment available as a rollback target. Monitoring can inform subsequent increases in traffic. Deleting the existing deployment first sacrifices rollback and risks an outage. Replacing an artifact in place does not provide a controlled comparison and may complicate recovery. Sending all traffic immediately ignores the stated desire to validate on a limited share of live requests.

Question 7

New Single answer

Topic: Implement machine learning model lifecycle and operations

Skill tested: Detect deployed-model data drift and connect monitoring signals to retraining workflows.

A deployed demand model has stable endpoint availability, but forecast accuracy has fallen after customer purchasing patterns changed. The team suspects a shift in incoming feature distributions and wants to launch retraining when drift is detected, rather than on a fixed weekly schedule. Which operational design is the best fit?

Correct Answer: A. Configure production data collection and a data-drift monitoring job against an appropriate baseline, then use the resulting monitoring signal in a scheduled or event-driven workflow that launches retraining.
Explanation:

Data drift monitoring compares collected production inputs with a reference baseline and can identify changes in feature distributions. A monitoring result can be connected to an operational workflow that triggers retraining, with appropriate review and deployment gates. Endpoint availability errors do not measure feature drift or model quality. Artifact size is not a meaningful drift signal. A fixed schedule may be useful in some operations, but without production data it cannot meet the requirement to retrain in response to detected drift.

Question 8

New Single answer

Topic: Design and implement a GenAIOps infrastructure

Skill tested: Deploy foundation models with appropriate managed or serverless endpoint capacity for production.

A product team is selecting a foundation-model deployment for a production assistant. Traffic is variable, the application must use a provisioned capacity commitment where predictable throughput is required, and the team must provision resources using reviewed infrastructure code. It also needs to avoid choosing a deployment option that cannot meet its intended capacity model. What should the team do first?

Correct Answer: D. Select a model and deployment offering that supports the required provisioned throughput, verify regional and quota availability, and declare the deployment and its capacity in the supported infrastructure workflow.
Explanation:

Deployment options differ in capacity and billing characteristics, so the model and offering must support the workload's required throughput commitment. Checking regional availability and quota before provisioning prevents an infrastructure plan that cannot deploy. Capacity and resources should be represented in the approved deployment workflow for review and repeatability. Client concurrency does not turn a serverless offering into provisioned throughput. Provisioning maximum capacity without validating availability or demand creates avoidable cost and deployment risk; a local model is not a production capacity solution.

Question 9

New Single answer

Topic: Implement generative AI quality assurance and observability

Skill tested: Build automated evaluations for groundedness, relevance, and response quality using representative test data.

A support organization is releasing a retrieval-augmented assistant. Reviewers report that fluent answers sometimes cite no supporting passage, while other answers are supported but fail to address the question. The release process needs repeatable automated evaluation before deployment, with a representative question-and-context dataset. Which approach is most suitable?

Correct Answer: D. Create a representative evaluation dataset containing questions, retrieved context, and expected or reference responses where appropriate; run automated groundedness and relevance evaluations alongside response-quality measures.
Explanation:

The reported failures are distinct: groundedness checks whether claims are supported by the supplied context, while relevance checks whether the response addresses the question. A representative dataset with questions and retrieved context supports repeatable evaluation, and reference responses can help assess other quality dimensions. Fluency alone misses both failure modes. Token count is a cost or usage measure, not proof of quality. Training prompts and HTTP success do not establish that production answers are grounded or useful.

Question 10

New Single answer

Topic: Implement generative AI quality assurance and observability

Skill tested: Configure safety evaluation and continuous monitoring with useful request and response telemetry.

A legal-services assistant must be assessed for harmful content before releases and monitored after deployment. Investigators also need to diagnose quality regressions using request-level traces, but logs must not expose unnecessary sensitive data. Which implementation best balances these requirements?

Correct Answer: A. Run safety evaluations on a curated test set, enable the available content-safety protections, and configure production monitoring and appropriately governed traces with sensitive-data controls.
Explanation:

Pre-release safety evaluation and runtime safety protections address harmful content through complementary controls. Continuous monitoring and useful traces help operators investigate regressions, while data minimization and access controls reduce exposure of sensitive prompts and responses. User reports alone are reactive, and unrestricted indefinite logs create unnecessary privacy risk. Availability metrics do not reveal content-safety failures. A one-time evaluation cannot detect changes in traffic, configuration, or runtime behavior after launch.

Question 11

New Multiple answers

Topic: Optimize generative AI systems and model performance

Skill tested: Tune RAG retrieval settings and compare embedding choices using relevance-focused experiments.

A knowledge assistant retrieves many irrelevant passages for short, specific questions, yet misses important details in long policy documents. The team can change chunking and retrieval settings and test an alternative embedding model, but it must select changes based on measured retrieval quality rather than anecdotes. Which two actions should it take? Select two.

Correct Answer: C. Tune chunk size and overlap against representative queries, measuring both retrieval relevance and whether chunks preserve the needed policy context.; E. Create a representative retrieval evaluation set and run controlled A/B comparisons of embedding and retrieval configurations using relevance metrics.
Explanation:

A representative evaluation set and controlled A/B testing make embedding and retrieval choices comparable using measured relevance rather than intuition. Chunk size and overlap affect whether a passage is both retrievable and sufficiently complete, so they should be tuned against short and long-document cases. Raising the threshold without checking recall can hide relevant passages. Vector dimensionality alone does not guarantee better semantic retrieval. Returning more chunks can add noise and increase token cost, so it should not be assumed to improve answers.