Microsoft Machine Learning Operations Engineer Associate (AI-300) · 24% practice allocation

Microsoft AI-300: Design and implement a GenAIOps infrastructure Practice Questions

5 free sample questions from the Design and implement a GenAIOps infrastructure domain, with answers and explanations. The full AI-300 bank has 251 questions across 5 domains. Questions are scenario-based and written from the official Microsoft exam guide.

1.

A team is deploying a foundation model in Azure AI Foundry and must choose between a serverless API endpoint and a managed compute endpoint. The model will be used exclusively for internal batch evaluation runs that occur once a day for approximately 30 minutes. Which deployment approach is most cost-effective for this scenario?

  • A. Managed compute endpoint with autoscale configured to scale to zero when idle
  • B. Managed compute endpoint with a dedicated GPU VM that runs continuously
  • C. Serverless API endpoint with a reserved capacity commitment
  • D. Serverless API endpoint billed per token consumed✓ Correct
Explanation

A serverless API endpoint billed per token is the most cost-effective option for a low-frequency, short-duration batch workload because you pay only for the tokens processed during the 30-minute window each day, with no idle compute charges. A dedicated GPU VM running continuously incurs 24/7 compute costs regardless of usage, which is wasteful for a 30-minute daily job. While managed compute with scale-to-zero could reduce costs, Azure AI Foundry managed compute does not natively support scale-to-zero for all deployment types, and cold-start latency makes it unsuitable; serverless endpoints avoid this entirely. A serverless endpoint with a reserved capacity commitment adds a fixed upfront cost that is only economical for sustained high-volume workloads, not intermittent daily batch jobs.

2.

An organisation is running a high-throughput Azure AI Foundry workload that sends approximately 2 million tokens per hour to a GPT-4o deployment consistently throughout business hours. The team observes frequent 429 throttling errors and high per-token costs. Which deployment change would best address both the throttling and cost concerns for this sustained, predictable load?

  • A. Deploy the model to managed compute with a larger VM SKU to increase processing speed
  • B. Implement exponential backoff retry logic in the application to handle the 429 errors
  • C. Purchase provisioned throughput units (PTUs) for the deployment to reserve dedicated capacity✓ Correct
  • D. Switch to a serverless API endpoint to benefit from automatic scaling and eliminate throttling
Explanation

Provisioned throughput units (PTUs) reserve dedicated model capacity for the deployment, which eliminates the throttling caused by shared capacity limits and reduces the effective per-token cost for high-volume sustained workloads compared to pay-as-you-go serverless pricing. Switching to a serverless API endpoint does not resolve throttling because serverless endpoints are subject to tokens-per-minute quota limits and pay-as-you-go pricing, which is more expensive than PTUs at high consistent volumes. Deploying to managed compute with a larger VM increases infrastructure cost without directly addressing token throughput limits imposed by the model serving layer. Implementing retry logic handles failures gracefully but does not prevent throttling or reduce costs; it only masks the underlying capacity problem.

3.

A platform team is implementing GitOps for Azure AI Foundry prompt management. They store all prompt templates as versioned YAML files in a Git repository. The team wants to ensure that when a pull request is merged to the main branch, the updated prompt is automatically validated against a set of evaluation metrics before being deployed to production. Which three elements should be included in the CI/CD pipeline to achieve this? (Select THREE)

  • A. A pipeline stage that deletes the previous prompt version from the Git repository after successful deployment
  • B. A pipeline stage that runs the Azure AI Foundry Prompt Flow evaluation SDK against a fixed test dataset using the new prompt version✓ Correct
  • C. A gate or approval check that blocks the production deployment if evaluation metrics fall below predefined thresholds✓ Correct
  • D. A pipeline stage that deploys the new prompt version to a staging environment and executes automated evaluation runs✓ Correct
  • E. A pipeline stage that uses Azure CLI to update the prompt version reference in the production Azure AI Foundry project after all evaluation gates pass
  • F. A pipeline stage that automatically approves and merges the pull request if the Git diff shows fewer than 10 lines changed
Explanation

Running evaluation SDK tests against the new prompt on a fixed test dataset provides measurable quality signal before any deployment occurs. Deploying to staging and executing evaluation runs validates the prompt in a realistic environment that mirrors production. Blocking production deployment when metrics fall below thresholds is the safety gate that prevents regressions from reaching users. These three elements together form a complete validate-then-deploy pipeline. Auto-approving PRs based on line count bypasses human and automated quality review, which defeats the purpose of the evaluation pipeline. Deleting previous prompt versions from Git destroys version history needed for rollback and audit, violating version control best practices. Updating the production prompt reference via Azure CLI is a deployment step, not a validation step; while necessary, it is the final action after all gates pass and does not itself constitute a validation element.

4.

A security team conducting an audit of an Azure AI Foundry hub finds that two custom roles have been created: Role A allows 'Microsoft.MachineLearningServices/workspaces/read' and 'Microsoft.MachineLearningServices/workspaces/computes/read'. Role B allows 'Microsoft.MachineLearningServices/workspaces/write' and 'Microsoft.MachineLearningServices/workspaces/delete'. A junior engineer has been assigned both roles on the hub. What is the effective permission set for this engineer?

  • A. Neither role applies until a Deny assignment is reviewed and removed from the hub
  • B. Only Role A permissions apply because Role B is a higher-privilege role and must be explicitly confirmed
  • C. The engineer has all permissions from both Role A and Role B, as Azure RBAC is additive✓ Correct
  • D. Only Role B permissions apply because write and delete supersede read permissions
Explanation

Azure RBAC is additive: when a principal has multiple role assignments, their effective permissions are the union of all permissions granted across all assigned roles. The engineer therefore has read, computes/read, write, and delete permissions on the hub. It is incorrect that higher-privilege roles supersede lower ones; Azure RBAC does not have a precedence ordering between allow roles — all are combined. Similarly, write and delete do not replace or override read; they are simply added. The mention of a Deny assignment is a distractor; no deny assignment exists in this scenario, and even if one did, it would subtract permissions rather than require manual review.

5.

An Azure AI Foundry project needs to read secret values stored in Azure Key Vault at runtime without requiring a developer to manage credentials. The project is configured with a system-assigned managed identity. Which RBAC role should be assigned to the project's managed identity on the Key Vault to allow it to read secrets with least privilege?

  • A. Key Vault Administrator
  • B. Key Vault Secrets Officer
  • C. Key Vault Reader
  • D. Key Vault Secrets User✓ Correct
Explanation

Key Vault Secrets User grants only the get and list permissions needed to read secret values, satisfying least-privilege for a read-only runtime scenario. Key Vault Administrator grants full control including the ability to manage access policies and delete the vault, far exceeding what is needed. Key Vault Secrets Officer adds the ability to create, update, and delete secrets, which is more than read-only access requires. Key Vault Reader is an Azure Resource Manager role that allows viewing Key Vault metadata but does not grant data-plane access to read secret values.

Test yourself across every AI-300 domain

The free AI-300 practice test mixes about 20 questions weighted like the exam. The full 251-question bank adds instant grading, flashcards and a timed mock exam.

Study this domain

Design and implement a GenAIOps infrastructure study guide (AI-300) →

Other AI-300 domains

← All Microsoft Machine Learning Operations Engineer Associate study resources