You need to recommend a solution for the development team to retrieve the live metadata.
The solution must meet the development requirements.
What should you include in the recommendation?
Show answerHide answer
Correct answer: C Use an MCP server
Explanation
Explanation:This question tests how development teams using GitHub Copilot (typically in Visual Studio Code) can give the AI assistant accurate, up-to-date knowledge of a database’s structure. The key requirement is live metadata—current tables, columns, relationships, indexes, and related objects—rather than a static or outdated snapshot. Model Context Protocol (MCP) is the standardized mechanism that lets Copilot invoke external tools to query database metadata in real time. Other approaches rely on exported files or repository contents that quickly become stale.
✅ Correct Option:
C. Use an MCP server
An MCP server exposes tools that GitHub Copilot can call to retrieve the current database schema, objects, and related metadata on demand. This satisfies the need for live information because the assistant queries the actual connected database (or a governed endpoint such as SQL MCP Server built on Data API builder) instead of relying on previously supplied static content. The approach aligns with the DP-800 skills for configuring MCP tool options and connecting to MCP endpoints for Microsoft SQL Server and Fabric Lakehouse environments.
❌ Incorrect options:
A. Export the database schema as a .dacpac file and load the schema into a GitHub Copilot context window.
A .dacpac is a static package that reflects the schema only at the moment it was exported. Once loaded into the context window it becomes fixed; any later database changes are invisible to Copilot. It therefore fails the live-metadata requirement.
B. Add the schema to a GitHub Copilot instruction file.
Instruction files (for example, copilot-instructions.md) supply permanent guidance or sample text. They are static documents and cannot refresh themselves when the underlying database schema changes, so they do not provide live metadata.
D. Include the database project in the code repository.
A database project in the repository gives Copilot access to the source definitions that exist in source control. Those definitions represent a point-in-time version of the schema and are not automatically synchronized with the live database, so they do not meet the live-metadata requirement.
🔧 Reference:
→ Connect to MCP Server Endpoints for SQL Server and Fabric Lakehouse — Official Microsoft Learn unit explaining how MCP servers supply live database metadata to AI assistants such as GitHub Copilot.
→ SQL MCP Server documentation — Microsoft documentation on using Model Context Protocol to enable secure, real-time interaction between AI agents and SQL databases.