AI-102 Practice Question: Implement natural language processing solutions
You are developing a solution that uses Azure AI Translator to translate documents from English to French. You need to ensure that the translated text maintains the original formatting, such as HTML tags. Which feature should you use?
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
✓
Set the content type to 'text/html' in the translation request.
The translator can preserve the original formatting when using the appropriate content type or using the 'textType' parameter set to 'html'. Option A is wrong because the glossary is for custom translations. Option B is wrong because the parallel corpus is for training custom models. Option D is wrong because transliteration converts between scripts, not formats.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use the Translator glossary to preserve formatting.
Why it's wrong here
Glossary is for custom translations, not for preserving formatting.
- ✗
Use the Translator parallel corpus to train a custom model.
Why it's wrong here
Parallel corpus is for training custom translation models, not for preserving formatting.
- ✓
Set the content type to 'text/html' in the translation request.
Why this is correct
Setting content type to 'text/html' tells the translator to preserve HTML tags.
- ✗
Use the Transliterate method to preserve formatting.
Why it's wrong here
Transliteration converts text from one script to another, not preserve formatting.
Go deeper
Related to this question
About these practice questions
One of 945 original AI-102 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.