Microsoft AI-300 Practice Test Questions and Exam Dumps Part15 Q281-300

View Full Microsoft AI-300 Exam Dumps and Practice Test Dumps

 

Question 281. Which practice provides a reliable record of changes made to ML pipeline code?

  1. Source control
    2. Endpoint scaling
    3. Data sampling
    4. Model compression

Correct Answer: 1. Source control

Explanation:

Source control maintains a history of changes made to pipeline code and related configuration. Each revision can be associated with a specific commit, allowing teams to determine what changed between versions and when the change was introduced. In an ML workflow, this improves traceability because training and deployment processes can be linked to the exact code used for a run. Source control also supports collaboration through review processes and provides a mechanism for restoring earlier versions when necessary. When combined with model, environment, and infrastructure versioning, it creates a more complete record of the ML lifecycle and helps teams reproduce and troubleshoot pipeline behavior.

Question 282. Which validation helps detect missing or invalid values before data is passed to a model?

  1. Traffic splitting
    2. Data-quality validation
    3. Blue-green switching
    4. Endpoint scaling

Correct Answer: 2. Data-quality validation

Explanation:

Data-quality validation checks whether input data satisfies defined requirements before it is consumed by a training or inference process. Depending on the workload, checks may include required fields, data types, missing-value limits, acceptable ranges, duplicate records, and expected categories. Detecting problems before inference or training can prevent invalid inputs from producing unexpected results. These checks can be automated as part of an ML pipeline and can also be applied to production data. Data-quality validation should be treated as one layer of a broader data-management process. Monitoring for drift and changes in distributions can provide additional information about evolving production inputs.

Question 283. What is a primary benefit of experiment tracking in an ML workflow?

  1. It removes the need for model evaluation
    2. It records run parameters, metrics, and artifacts for comparison
    3. It automatically fixes production errors
    4. It prevents model retraining

Correct Answer: 2. It records run parameters, metrics, and artifacts for comparison

Explanation:

Experiment tracking records information about model-development runs so that teams can compare experiments and understand how different configurations affected results. Useful information can include hyperparameters, evaluation metrics, data references, generated artifacts, timestamps, and other metadata. This history helps developers identify promising experiments and connect a trained model with the process that produced it. Experiment tracking also supports reproducibility because the team can review the conditions associated with a particular run. It does not replace validation or monitoring, but it provides an important development record that complements model versioning and helps establish lineage from experimentation through deployment.

Question 284. Which mechanism can control access to secrets required by an ML deployment pipeline?

  1. Public configuration files
    2. Shared administrator password
    3. Managed identity with access to a secret store
    4. Credentials committed to source control

Correct Answer: 3. Managed identity with access to a secret store

Explanation:

A managed identity combined with a secret-management service allows an application or deployment pipeline to access sensitive values without embedding long-lived credentials directly in source code. The identity can be assigned narrowly scoped permissions to retrieve only the secrets it requires. This approach reduces exposure through repositories, scripts, configuration files, and logs. Access can also be monitored and audited through the relevant platform capabilities. Secret management should be combined with least-privilege permissions and appropriate credential rotation practices. The goal is to ensure that sensitive values remain protected while still allowing automated workflows to perform their required deployment operations.

Question 285. Which metric can help determine whether a deployed endpoint remains responsive under changing workloads?

  1. Request latency
    2. Model filename
    3. Experiment description
    4. Number of source-code comments

Correct Answer: 1. Request latency

Explanation:

Request latency measures the time taken for an endpoint to process a request and return a response. Monitoring latency over time can reveal whether the service remains responsive as traffic, resource usage, or deployment conditions change. A sudden increase may indicate resource constraints, inefficient inference, dependency problems, network conditions, or a configuration change. Teams can compare current measurements against established baselines and investigate significant deviations. Latency is only one aspect of endpoint health, so it should be evaluated with error rate, availability, throughput, and resource metrics. Together, these measurements provide a more complete understanding of online service behavior.

Question 286. Which approach helps ensure that only validated model versions are promoted to production?

  1. Uncontrolled deployment
    2. Automated validation and promotion gates
    3. Manual file copying without testing
    4. Deleting model evaluation results

Correct Answer: 2. Automated validation and promotion gates

Explanation:

Automated validation and promotion gates establish conditions that a model must satisfy before progressing toward production. Validation can include model-performance checks, data validation, security testing, integration testing, and other requirements relevant to the application. A promotion gate can stop or pause the workflow when a required condition fails. This creates a repeatable process and reduces the possibility of an unvalidated artifact being promoted accidentally. When the model passes the required checks, the pipeline can continue through controlled stages. Combining automated gates with versioned artifacts and deployment metadata also makes the promotion decision easier to trace and investigate later.

Question 287. Which deployment method can support gradual exposure of a new model while monitoring production behavior?

  1. Canary deployment
    2. Immediate full replacement
    3. Manual deletion
    4. Unversioned deployment

Correct Answer: 1. Canary deployment

Explanation:

Canary deployment allows a new model version to receive a limited portion of production traffic while the established version continues serving the majority. This provides an opportunity to observe the candidate under real operating conditions before increasing its exposure. Teams can monitor error rate, latency, availability, resource consumption, prediction distributions, data quality, and available model-performance signals. If the candidate behaves as expected, traffic can be increased in stages. If problems appear, traffic can be reduced or redirected. This approach creates a controlled release process that limits initial exposure and provides operational evidence before a new model becomes responsible for a larger share of production requests.

Question 288. What is the purpose of maintaining a known-good deployment version?

  1. To provide a validated recovery target if a new release fails
    2. To prevent all future deployments
    3. To eliminate model monitoring
    4. To avoid testing new models

Correct Answer: 1. To provide a validated recovery target if a new release fails

Explanation:

A known-good deployment version provides a validated state that can be restored when a newer release causes unacceptable behavior. The recovery target should include not only the model artifact but also compatible configuration, environment information, dependencies, and other necessary deployment metadata. Maintaining this information makes rollback more predictable and reduces the time required to recover service. The known-good version should be clearly identified and retained according to the organization’s lifecycle policies. Keeping previous validated releases also supports troubleshooting because teams can compare the failing deployment with the version that previously operated within expected conditions.

Question 289. Which monitoring signal can indicate that the percentage of failed endpoint requests has increased?

  1. Model size
    2. Error rate
    3. Training dataset name
    4. Pipeline component count

Correct Answer: 2. Error rate

Explanation:

Error rate measures the frequency or proportion of requests that result in failures. Monitoring this metric helps identify changes in endpoint reliability and can reveal issues following a deployment or during periods of increased traffic. An elevated error rate may result from application defects, invalid input, dependency failures, insufficient resources, or infrastructure problems. Operators should correlate error-rate changes with logs, latency, availability, and resource measurements to identify potential causes. Establishing meaningful baselines and alert thresholds allows abnormal behavior to be detected more quickly. Error-rate monitoring is therefore a core part of operational observability for online ML services.

Question 290. Why should model artifacts be versioned independently from informal filenames?

  1. To provide reliable identity and traceability for each model release
    2. To eliminate evaluation requirements
    3. To prevent rollback
    4. To make deployments completely manual

Correct Answer: 1. To provide reliable identity and traceability for each model release

Explanation:

Informal filenames can be ambiguous and may be changed accidentally, making them unsuitable as the sole mechanism for identifying production model versions. Formal artifact versioning provides a consistent identity that can be associated with training runs, evaluation results, source revisions, environment definitions, and deployment records. This makes it easier to determine exactly which artifact was used in a particular release. Versioning also supports rollback because a previous validated version can be identified precisely. When model artifacts are managed through a registry or another controlled system, teams can maintain a structured lifecycle and avoid confusion when many candidate models exist.

Question 291. Which practice can help identify configuration changes that introduced a production deployment problem?

  1. Versioning and reviewing deployment configuration
    2. Deleting previous configurations
    3. Making undocumented manual changes
    4. Disabling source control

Correct Answer: 1. Versioning and reviewing deployment configuration

Explanation:

Versioning deployment configuration creates a history that can be compared when a production issue occurs. If a deployment begins failing after a configuration change, engineers can examine the relevant revisions to determine what changed and whether the change corresponds with the observed problem. Review processes can also identify potentially risky modifications before they are deployed. Keeping configuration in source control makes the deployment process more reproducible and reduces the possibility of hidden environment differences. This practice is particularly valuable when configuration affects resource allocation, endpoint behavior, identity permissions, networking, or model-serving parameters. Traceable configuration helps connect operational incidents with specific changes.

Question 292. Which component can provide a structured location for approved model versions and associated metadata?

  1. Model registry
    2. DNS resolver
    3. Browser cache
    4. Local temporary folder

Correct Answer: 1. Model registry

Explanation:

A model registry provides a structured mechanism for storing and managing model versions and associated metadata throughout their lifecycle. Depending on the implementation, metadata may include model descriptions, version identifiers, evaluation results, lineage information, and promotion status. This makes it easier for teams to distinguish candidate models from validated or production versions. A registry can also support controlled promotion because deployment workflows can reference specific model versions rather than relying on arbitrary files. It does not replace model evaluation, testing, or monitoring. Instead, it provides an organized layer for managing the artifacts and information that those processes use.

Question 293. Which practice helps detect changes in model input characteristics after deployment?

  1. Data-drift monitoring
    2. Endpoint renaming
    3. Model compression
    4. Source-code formatting

Correct Answer: 1. Data-drift monitoring

Explanation:

Data-drift monitoring compares production input characteristics with a reference distribution or baseline. Changes may occur because of evolving user behavior, operational processes, external conditions, or changes in data collection. Monitoring can identify which features or data characteristics have changed and provide an early signal for further investigation. Drift does not automatically mean that the model is producing incorrect predictions, so it should be considered alongside data-quality checks and actual model-performance measurements when available. A structured monitoring process allows teams to identify meaningful changes in production conditions and assess whether retraining, data investigation, configuration changes, or other lifecycle actions may be appropriate.

Question 294. What is the main purpose of an automated CI pipeline in an ML project?

  1. To repeatedly build and validate changes in a consistent process
    2. To bypass source control
    3. To deploy every change directly to production
    4. To remove all testing

Correct Answer: 1. To repeatedly build and validate changes in a consistent process

Explanation:

Continuous integration pipelines automate recurring activities such as building software, running tests, validating configuration, checking dependencies, and producing deployment artifacts. This creates a repeatable process whenever changes are introduced into the managed codebase. In an ML project, CI can help verify pipeline components, preprocessing logic, application code, and other artifacts before they move toward later deployment stages. CI does not mean that every successful build should automatically reach production. Additional model validation, security checks, approval gates, and controlled promotion may still be required. The primary value is consistency and early detection of problems through repeatable automated checks.

Question 295. Which information should be retained to support investigation of a failed ML deployment?

  1. Deployment logs, model version, configuration, environment, and pipeline metadata
    2. Only the model filename
    3. Only the endpoint display name
    4. Only the number of users

Correct Answer: 1. Deployment logs, model version, configuration, environment, and pipeline metadata

Explanation:

Investigating a failed deployment requires enough context to reconstruct what happened and determine which change may have caused the problem. Useful information includes deployment logs, model and source versions, environment definitions, configuration settings, pipeline run identifiers, validation results, and relevant monitoring data. These records allow engineers to connect an incident with a specific release and compare it with previous known-good deployments. Retaining this information also supports auditing and reproducibility. Logs should be protected appropriately and should not expose secrets or other sensitive values. Comprehensive deployment metadata is especially valuable when releases are performed frequently through automated CI/CD pipelines.

Question 296. Which approach helps maintain consistent dependencies between environments?

  1. Versioned environment definitions
    2. Manual package installation without records
    3. Different undocumented dependency versions
    4. Random package upgrades

Correct Answer: 1. Versioned environment definitions

Explanation:

Versioned environment definitions specify the software dependencies and runtime conditions required by an ML workload. Using controlled definitions helps teams reproduce an environment across development, testing, and production while making dependency changes traceable. If a deployment behaves differently after a dependency update, the environment revision can be compared with the previous version to identify the change. Environment definitions can include package versions, runtime versions, and other configuration needed by the workload. They do not guarantee that every infrastructure characteristic will be identical across environments, but they provide an important foundation for repeatability and reduce unexpected differences caused by unmanaged dependency changes.

Question 297. Which process should occur before increasing traffic to a newly deployed canary model?

  1. Review health, validation, and monitoring results
    2. Delete the existing production version
    3. Disable alerts
    4. Remove deployment metadata

Correct Answer: 1. Review health, validation, and monitoring results

Explanation:

Before increasing traffic to a canary model, the team should verify that the deployment is operating within the required conditions. Relevant evidence can include endpoint health, error rate, latency, resource usage, prediction behavior, data quality, and model-performance measurements where available. The canary phase is intended to provide real production evidence before broader exposure, so traffic should not be increased simply because the deployment completed successfully. If the monitored results are satisfactory, the release can proceed according to the defined promotion strategy. If problems are detected, the traffic allocation can remain unchanged or be reduced while the issue is investigated.

Question 298. What is the purpose of maintaining monitoring baselines for production ML services?

  1. To provide reference values for detecting abnormal behavior
    2. To eliminate the need for alerts
    3. To prevent model retraining
    4. To replace source control

Correct Answer: 1. To provide reference values for detecting abnormal behavior

Explanation:

Monitoring baselines provide reference values or expected ranges against which current production measurements can be compared. For an ML endpoint, baselines can be established for latency, error rate, availability, resource utilization, prediction distributions, and other relevant signals. When current behavior deviates substantially from the expected range, the difference can trigger investigation. Baselines should be based on appropriate historical or validation information and updated when legitimate changes alter normal operating conditions. They are not proof of a model failure by themselves. Instead, they provide context that helps teams distinguish ordinary variation from potentially significant operational or model-related changes.

Question 299. Which security practice reduces the risk of exposing secrets through application source code?

  1. Store secrets in a managed secret-management service
    2. Commit passwords to source control
    3. Place credentials in public configuration
    4. Write access tokens to logs

Correct Answer: 1. Store secrets in a managed secret-management service

Explanation:

Managed secret-management services provide a dedicated location for sensitive values such as credentials, keys, and certificates. Keeping these values outside application source code reduces the risk that a repository, source archive, or deployment artifact will expose them. Access can be controlled using identities and narrowly scoped permissions, and appropriate services may support auditing and credential rotation. Secrets should also be prevented from appearing in logs or error messages. Separating secret values from application code allows credentials to be updated without changing the application itself. This practice is an important part of securing automated ML workloads and deployment pipelines.

Question 300. Which combination supports a traceable and controlled ML production lifecycle?

  1. Version control, automated validation, controlled promotion, monitoring, and rollback
    2. Manual changes without records
    3. Direct deployment without testing
    4. Unversioned models with disabled monitoring

Correct Answer: 1. Version control, automated validation, controlled promotion, monitoring, and rollback

Explanation:

A traceable and controlled ML production lifecycle combines multiple practices that address different stages of the model’s operation. Version control provides a history for code and configuration, while model and environment versioning identify the artifacts used by a release. Automated validation and testing provide evidence before promotion, and controlled deployment stages reduce unnecessary production exposure. Once a model is deployed, monitoring provides visibility into operational and model-related behavior, including errors, latency, availability, data quality, and drift. Finally, maintaining validated versions and rollback procedures provides a recovery mechanism when unexpected problems occur. Together, these controls create a repeatable lifecycle that supports traceability, observability, and operational recovery.