Courseiva
ML Model Lifecycle And OperationsmediumMultiple ChoiceObjective-mapped

AI-300 ML Model Lifecycle And Operations Practice Question

You need to ensure that your model inference code has access to the latest secret keys without hardcoding them. What is the recommended integration?

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use the workspace Key Vault to store and retrieve secrets.

You should integrate your scoring script with Azure Key Vault using the workspace 'get_default_keyvault()' function to retrieve secrets at runtime.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Store keys as environment variables in the Dockerfile.

    Why it's wrong here

    This is insecure as it's baked into the image.

  • Use the workspace Key Vault to store and retrieve secrets.

    Why this is correct

    This is the secure pattern for runtime secrets.

  • Use a configuration file on the VM.

    Why it's wrong here

    This is not secure.

  • Pass them as arguments to the 'init()' function.

    Why it's wrong here

    Arguments are not a secure way to pass sensitive keys.

About these practice questions

This AI-300 question is part of Courseiva's 204-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official Microsoft exam blueprint

This AI-300 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AI-300 exam.