Migrating Knowledge Base to a Different Azure Region: Export and Import API Statements

Exporting and Importing Azure Knowledge Bases

Question

You have a requirement to migrate your knowledge base (KB) to a different region.

You plan to create a new knowledge base from an existing knowledge base using a migration method while maintaining the same knowledge base id.

To achieve this objective, you export the knowledge base in the existing region, create a new knowledge base in the new Azure region and import the knowledge base by using the exported file.

Review the REST API statements that you would use for exporting and importing KB.

(Select one option)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: D.

Option A is incorrect because GET is used to download the KB, and PUT is used for importing the Knowledge Base.

Option B is incorrect because the import KB command used here is meant to create a new KB.

It does not maintain the same KB id and hence does not meet the requirement.

Option B is incorrect because GET is used for downloading the KB, and PUT is used during the import process.

Option D is correct because the GET command here is used for exporting a KB, and the PUT command meets our requirement of importing the KB while maintaining the KB id.

Reference:

To learn more about creating a knowledge base from an existing knowledge base, use the link given below:

The correct answer is D.

Explanation: To export a knowledge base from Azure QnA Maker, you need to use the GET method with the following REST API endpoint:

bash
GET {Endpoint}/qnamaker/v4.0/knowledgebases/{kbId}/{environment}/qna

Where:

To import a knowledge base in a different region, you need to create a new knowledge base and use the PUT method with the following REST API endpoint:

bash
PUT {Endpoint}/qnamaker/v4.0/knowledgebases/{kbId}

Where:

The import process is achieved by sending the content of the exported knowledge base file in the request body. The file should be in a .tsv (Tab-Separated Values) or .json format. The import operation will overwrite any existing data in the destination knowledge base with the imported data.

Therefore, option D is the correct answer, as it uses the correct REST API statements for exporting and importing a knowledge base from one region to another, while maintaining the same knowledge base ID.