AI-102 Practice Question: Implement natural language processing solutions
Exhibit
{
"documents": [
{
"id": "1",
"keyPhrases": ["Azure", "NLP", "services"],
"warnings": []
},
{
"id": "2",
"keyPhrases": ["Microsoft", "AI"],
"warnings": []
}
],
"errors": []
}Refer to the exhibit. You called the Key Phrase Extraction API on two documents. What is the total number of key phrases extracted?
⚠ Common exam trap
The trap here is that candidates often deduplicate key phrases across documents, thinking the API returns a global set, but the API returns results per document and the question explicitly asks for the total number extracted from both documents, which requires summing the per-document counts.
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
✓
5
The Key Phrase Extraction API returns a list of key phrases per document. In this case, Document 1 returns 'weather', 'Seattle', and 'rainy', while Document 2 returns 'weather' and 'Seattle'. The total number of unique key phrases across both documents is 3 ('weather', 'Seattle', 'rainy'), but the question asks for the total number of key phrases extracted, which counts each occurrence per document. That gives 3 + 2 = 5 key phrases. Option B is correct because the API outputs phrases per document, not deduplicated globally.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
7
Why it's wrong here
There are no 7 phrases.
- ✓
5
Why this is correct
Sum of key phrases from both documents.
- ✗
3
Why it's wrong here
Only from document 1.
- ✗
2
Why it's wrong here
That is the number of documents, not key phrases.
Go deeper
Related to this question
About these practice questions
This AI-102 question is part of Courseiva's 945-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 →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AI-102 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-102 exam.