AI-102 Practice Question: Implement natural language processing solutions
Exhibit
Refer to the exhibit.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.CognitiveServices/accounts",
"apiVersion": "2023-05-01",
"name": "myLanguageService",
"location": "[resourceGroup().location]",
"sku": {
"name": "S"
},
"kind": "TextAnalytics",
"properties": {
"customSubDomainName": "mylanguageservice",
"networkAcls": {
"defaultAction": "Deny"
}
}
}
]
}You deploy the ARM template shown in the exhibit. After deployment, you need to allow access to the Language service from your on-premises application. What should you do?
⚠ Common exam trap
Many candidates confuse the 'defaultAction' property with a simple on/off switch for public access, not realizing that IP rules are evaluated first and can selectively permit traffic even when defaultAction is Deny.
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
✓
Add an IP rule with your on-premises public IP address.
The ARM template deploys an Azure Cognitive Services Language service with a network ACL that defaults to denying all traffic (defaultAction: Deny). To allow your on-premises application to access the service, you must add an IP rule that permits traffic from your on-premises public IP address. This is because the network ACL evaluates IP rules before the default action, and adding a rule with your public IP overrides the default deny for that specific source.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Add an IP rule with your on-premises public IP address.
Why this is correct
IP rule allows specific IPs.
- ✗
Remove the customSubDomainName property.
Why it's wrong here
Custom subdomain is for endpoint.
- ✗
Set the defaultAction to Allow.
Why it's wrong here
That would allow all, not secure.
- ✗
Change the SKU to F0 to allow public access.
Why it's wrong here
SKU does not affect network access.
Visual reference
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.