You add an existing agent to a custom solution and export it. In test, its workflow and environment variables are missing. What step was skipped?
- Exam domain
- Test and manage agents25–30% of the exam
- Difficulty
- Hard
- In this mock
- 13 questions on this domainPractise this domain
Why the exam asks this
Implement application lifecycle management (ALM) for agents in Copilot Studio
Objective in the exam guide: Add existing agents to a solution
Most failed agent imports are missing dependencies.
Why C is the answer
Add required objects
Adding the agent does not pull in everything it uses. Add required objects brings in dependencies such as workflows and environment variables before export.
Remember: Add required objects before export.
How it works
Solutions only contain what you add. Add required objects finds the agent's dependencies and adds them.
Clues in the question
The words that point to the answer, and what each one tells you.
- workflow and environment variables are missing
- Dependencies were not added.
In detail
- Import custom connectors before the connection references and agent solution.
- Removing an agent from a solution does not remove its components.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Publishing the agent before exportWrongMost tempting
Publishing does not add components to a solution.
Why it tempts: Publishing feels like a final step before export, but it does not package anything.
B. Turning on MemoryWrong
Memory is unrelated to packaging.
C. Add required objectsRight
Add required objects before export.
D. Exporting as unmanagedWrong
Unmanaged export does not add missing components.
Use case
An illustrative scenario, not a real incident.
Illustrative: after Add required objects, the solution lists the agent, two workflows, a connection reference and three environment variables.
See it in different ways
flowchart LR S0["Add existing agent"] --> S1["Add required objects"] --> S2["Check environment variables"] --> S3["Export"]
How to read this chart
- Read it in order: Add existing agent, then Add required objects, then Check environment variables, then Export.
mindmap
root(("Agent ALM"))
n1["In the solution"]
n2["Agent"]
n3["Workflows"]
n4["Environment variables"]
n5["Connection references"]
n6["Set per environment"]
n7["Variable values"]
n8["Connections"]
n9["Channels and sharing"]How to read this chart
- The centre is "Agent ALM".
- "In the solution" covers "Agent", "Workflows", "Environment variables", "Connection references".
- "Set per environment" covers "Variable values", "Connections", "Channels and sharing".