AI-102 Cognitive Services Activity (Data Factory) Practice Question
This AI-102 practice question tests your understanding of implement natural language processing solutions. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. A key principle to apply: cognitive Services Activity (Data Factory). Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
Refer to the exhibit. You are designing a Data Factory pipeline to perform sentiment analysis on a text column. The pipeline fails with a 'BadRequest' error. What is the most likely issue?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue: "most likely"
Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The input format is incorrect; it should be a JSON array of documents
The Cognitive Services activity in Azure Data Factory that performs sentiment analysis expects input in the form of a JSON array of documents, each containing an 'id' and 'text' field. A 'BadRequest' error typically indicates that the input format is incorrect, such as passing a single string or an improperly structured object instead of the required array. The other options are less likely because the error is specifically related to the request payload format.
For each option: why learners choose it and why it is or isn't the right answer here.
✗
The output variable 'sentimentResult' is not defined
Why it's wrong here
Output variables are defined at runtime; missing definition would cause a different error.
✗
The activity type should be 'AzureFunction'
Why it's wrong here
'CognitiveService' is a valid type for Azure AI services.
✓
The input format is incorrect; it should be a JSON array of documents
Why this is correct
The Cognitive Service activity requires input as a JSON object with 'documents' array, not a single string.
Clue confirmation
The clue word "most likely" in the question point toward this answer.
Related concept
Cognitive Services Activity (Data Factory)
✗
The linked service name is misspelled
Why it's wrong here
The name 'AzureAILanguageService' appears plausible.
Common exam traps
Common exam trap: answer the scenario, not the keyword
Candidates often suspect configuration errors like linked service names or activity types, but the most common cause of BadRequest is an incorrect input format for the Cognitive Services activity.
Trap categories for this question
Command / output trap
Output variables are defined at runtime; missing definition would cause a different error.
Detailed technical explanation
How to think about this question
The Azure Machine Learning Batch Execution activity sends a JSON payload to the web service endpoint. The service expects a root-level 'Inputs' object containing a 'input1' key with a value that is a JSON array of documents (e.g., [{"id": 1, "text": "sample"}]). A common mistake is passing a single document object or a CSV string, which fails schema validation and returns HTTP 400. This format is required by the standard sentiment analysis web service template in Azure AI Gallery.
KKey Concepts to Remember
Cognitive Services Activity (Data Factory)
JSON Array of Documents
TExam Day Tips
→Watch for words such as best, first, most likely and least administrative effort.
→Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Cognitive Services Activity (Data Factory)
Real-world example
How this comes up in practice
A media company stores terabytes of video archives that are accessed once a year for audit purposes. Moving these objects to a cold storage tier (Azure Archive, S3 Glacier, or Google Nearline) costs a fraction of hot storage. Questions like this test whether you understand storage tiers, access frequency tradeoffs, and retrieval latency requirements.
What to study next
Got this wrong? Here's your next step.
Review cognitive Services Activity (Data Factory), then practise related AI-102 questions on the same topic to reinforce the concept.
Implement natural language processing solutions — This question tests Implement natural language processing solutions — Cognitive Services Activity (Data Factory).
What is the correct answer to this question?
The correct answer is: The input format is incorrect; it should be a JSON array of documents — The Cognitive Services activity in Azure Data Factory that performs sentiment analysis expects input in the form of a JSON array of documents, each containing an 'id' and 'text' field. A 'BadRequest' error typically indicates that the input format is incorrect, such as passing a single string or an improperly structured object instead of the required array. The other options are less likely because the error is specifically related to the request payload format.
What should I do if I get this AI-102 question wrong?
Review cognitive Services Activity (Data Factory), then practise related AI-102 questions on the same topic to reinforce the concept.
Are there clue words in this question I should notice?
Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.
What is the key concept behind this question?
Cognitive Services Activity (Data Factory)
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.