Free AI-102 Exam Braindumps
Designing and Implementing a Microsoft Azure AI Solution Questions 15–19 (page: 19)

Updated On: 10-Feb-2026

HOTSPOT (Drag and Drop is not supported)
You develop an application that uses the Face API.
You need to add multiple images to a person group.
How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.
Hot Area:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: Stream
The File.OpenRead(String) method opens an existing file for reading.

Example: Open the stream and read it back.
using (FileStream fs = File.OpenRead(path))

Box 2: CreateAsync
Create the persons for the PersonGroup. Persons are created concurrently. Example:
await faceClient.PersonGroupPerson.CreateAsync(personGroupId, personName);


Reference:

https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/how-to-add-faces



Your company uses an Azure Cognitive Services solution to detect faces in uploaded images. The method to detect the faces uses the following code.



You discover that the solution frequently fails to detect faces in blurred images and in images that contain sideways faces.

You need to increase the likelihood that the solution can detect faces in blurred images and images that contain sideways faces.

What should you do?

  1. Use a different version of the Face API.
  2. Use the Computer Vision service instead of the Face service.
  3. Use the Identify method instead of the Detect method.
  4. Change the detection model.

Answer(s): D

Explanation:

Evaluate different models.
The best way to compare the performances of the detection models is to use them on a sample dataset. We recommend calling the Face - Detect API on a variety of images, especially images of many faces or of faces that are difficult to see, using each detection model. Pay attention to the number of faces that each model returns.

The different face detection models are optimized for different tasks. See the following table for an overview of the differences.


Reference:

https://docs.microsoft.com/en-us/azure/cognitive-services/face/face-api-how-to-topics/specify-detection-model



You have the following Python function for creating Azure Cognitive Services resources programmatically.

def create_resource (resource_name, kind, account_tier, location) :
parameters = CognitiveServicesAccount(sku=Sku(name=account_tier), kind=kind, location=location, properties={})
result = client.accounts.create(resource_group_name, resource_name, parameters)

You need to call the function to create a free Azure resource in the West US Azure region. The resource will be used to generate captions of images automatically.

Which code should you use?

  1. create_resource("res1", "ComputerVision", "F0", "westus")
  2. create_resource("res1", "CustomVision.Prediction", "F0", "westus")
  3. create_resource("res1", "ComputerVision", "S0", "westus")
  4. create_resource("res1", "CustomVision.Prediction", "S0", "westus")

Answer(s): A


Reference:

https://docs.microsoft.com/en-us/python/api/overview/azure/cognitive-services?view=azure-python



You are developing a method that uses the Computer Vision client library. The method will perform optical character recognition (OCR) in images. The method has the following code.



During testing, you discover that the call to the GetReadResultAsync method occurs before the read operation is complete.

You need to prevent the GetReadResultAsync method from proceeding until the read operation is complete.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

  1. Remove the operation_id parameter.
  2. Add code to verify the read_results.status value.
  3. Add code to verify the status of the read_operation_location value.
  4. Wrap the call to get_read_result within a loop that contains a delay.

Answer(s): B,D



HOTSPOT (Drag and Drop is not supported)
You are building an app that will enable users to upload images. The solution must meet the following requirements:

•Automatically suggest alt text for the images.
•Detect inappropriate images and block them.
•Minimize development effort.

You need to recommend a computer vision endpoint for each requirement.

What should you recommend? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.

  1. See Explanation section for answer.

Answer(s): A

Explanation:



Box 1: https://westus.api.cognitive.microsoft.com/customvision/v3.1/prediction/projectid/classify/iterations/publishName/image

Box 2: https://westus.api.cognitive.microsoft.com/vision/v3.2/analyze/?visualFeatures=Adult,Description
Computer Vision can detect adult material in images so that developers can restrict the display of these images in their software. Content flags are applied with a score between zero and one so developers can interpret the results according to their own preferences.

You can detect adult content with the Analyze Image API. When you add the value of Adult to the visualFeatures query parameter

Incorrect:
Use the Image Moderation API in Azure Content Moderator to scan image content. The moderation job scans your content for profanity, and compares it against custom and shared blocklists.


Reference:

https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/concept-detecting-adult-content
https://docs.microsoft.com/en-us/azure/cognitive-services/content-moderator/try-image-api
https://docs.microsoft.com/en-us/legal/cognitive-services/custom-vision/custom-vision-cvs-transparency-note



Viewing page 19 of 61
Viewing questions 91 - 95 out of 379 questions


Post your Comments and Discuss Microsoft AI-102 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!