Microsoft Azure AI Engineer Associate AI-102 Practice Question

You published an Azure AI Foundry project that contains a prompt flow named "summarize_docs" and successfully validated it in the Foundry portal. You now want to invoke the flow from a Python application by using the Azure AI Foundry SDK with the following code snippet:

from azure.ai.foundry import FoundryClient
from azure.identity import DefaultAzureCredential

client = FoundryClient(
    endpoint    = os.environ["FOUNDRY_ENDPOINT"],
    credential  = DefaultAzureCredential()
)
flow = client.get_prompt_flow("summarize_docs")
result = flow.invoke({"input_text": content})

When the invoke call runs, it raises an HTTP 404 error that states that no online deployment exists for the flow.

In the Foundry portal, which action must you take before the code will work without modification?

  • Regenerate the Foundry workspace primary access key.

  • Deploy the "summarize_docs" flow to an online endpoint.

  • Promote the flow from the dev stage to the staging stage.

  • Export the project as an Azure Resource Manager (ARM) template and redeploy it.

Microsoft Azure AI Engineer Associate AI-102
Implement generative AI solutions
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot