exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 4 question 6 discussion

Actual exam question from Microsoft's AI-102
Question #: 6
Topic #: 4
[All AI-102 Questions]

HOTSPOT -
You are building an Azure Cognitive Search custom skill.
You have the following custom skill schema definition.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Yes -
Once you have defined a skillset, you must map the output fields of any skill that directly contributes values to a given field in your search index.

Box 2: Yes -
The definition is a custom skill that calls a web API as part of the enrichment process.

Box 3: No -
For each organization identified by entity recognition, this skill calls a web API to find the description of that organization.
Reference:
https://docs.microsoft.com/en-us/azure/search/cognitive-search-output-field-mapping

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
zellck
Highly Voted 1 year, 8 months ago
YYN is the answer. https://learn.microsoft.com/en-us/azure/search/cognitive-search-custom-skill-web-api#skill-outputs There are no predefined outputs for this skill. Be sure to define an output field mapping in the indexer if the skill's output should be sent to a field in the search index. https://learn.microsoft.com/en-us/azure/search/cognitive-search-defining-skillset#add-skills You can build complex skillsets with looping and branching using the Conditional skill to create the expressions. The syntax is based on the JSON Pointer path notation, with a few modifications to identify nodes in the enrichment tree. A "/" traverses a level lower in the tree and "*" acts as a for-each operator in the context.
upvoted 21 times
...
Mehe323
Highly Voted 1 year ago
The first answer should be no: https://learn.microsoft.com/en-us/azure/search/cognitive-search-output-field-mapping?tabs=rest "Output field mappings are required if your indexer has an attached skillset that creates new information, such as text translation or key phrase extraction. During indexer execution, AI-generated information exists in memory only. To persist this information in a search index, you'll need to tell the indexer where to send the data." According to my source, the code needs 'outputFieldMappings ', and that is not the case in this example.
upvoted 8 times
...
gyaansastra
Most Recent 2 weeks, 5 days ago
1. "CompanyDescription is available for indexing." - "Yes". In the schema, "companyDescription" is defined as an output of the custom skill. Outputs from skills are available for indexing or for use by other skills in the skillset. 2. "The definition calls a web API as part of the enrichment process." - "Yes". The "@odata.type" is set to "#Microsoft.Skills.Custom.WebApiSkill" and there's a "uri" field pointing to "https://contoso-webskill.azurewebsites.net/api/process". This indicates the skill calls an external web API to perform its enrichment. 3. "The enrichment step is called only for the first organization under '/document/organizations'." - "No". The "context" field is set to "/document/organizations/*" where the asterisk (*) wildcard indicates the skill will be called for each organization under the path, not just the first one. The asterisk is a path wildcard that processes all items in a collection.
upvoted 1 times
...
syupwsh
4 weeks ago
In order from top to bottom Yes is CORRECT because as defined In the schema definition, the "outputs" section has {"name": "companyDescription"}, which means the output of this custom skill, companyDescription, is defined and can be used for indexing in Azure Cognitive Search. Yes is CORRECT because as defined in the schema we have "uri": "https://contoso-webskill.azurewebsites.net/api/process" which indicates that the custom skill is calling a web API from this URI as part of the enrichment process. No is CORRECT because as defined in the schema we have "uri": "https://contoso-webskill.azurewebsites.net/api/process" which indicates that the custom skill is calling a web API from this URI as part of the enrichment process.
upvoted 1 times
...
Christian_garcia_martin
4 months, 3 weeks ago
I've never seen indexing by a description , i guess you index by a unique data as id or email , a description can be duplicated in 2 or more rows so NYN
upvoted 1 times
...
rookiee1111
8 months, 4 weeks ago
YYN output field must be mapped in index, otherwise how will it use in its output to user.. so yes it will be index so that users can query the field
upvoted 1 times
...
reiwanotora
9 months, 4 weeks ago
No Yes No
upvoted 5 times
...
anto69
11 months, 1 week ago
N, Y, N
upvoted 3 times
...
Murtuza
11 months, 3 weeks ago
CompanyDescription is available for indexing: Yes. The companyDescription is defined in the outputs section of the custom skill, which means it will be produced by the skill and can be used in subsequent steps of the enrichment pipeline, including indexing. The definition calls a web API as part of the enrichment process: Yes. The uri field in the custom skill definition is set to https://contoso-webskill.azurewebsites.net/api/process, which is a web API endpoint. This means that the custom skill will call this web API as part of the enrichment process. The enrichment step is called only for the first organization under “/document/organizations”: No. The context and source fields are set to /document/organizations/*, which means the custom skill will be applied to each organization under /document/organizations, not just the first one.
upvoted 4 times
...
varinder82
11 months, 3 weeks ago
Final Answer: NYN
upvoted 2 times
...
rdemontis
1 year, 4 months ago
I think the answer is correct https://learn.microsoft.com/en-us/azure/search/cognitive-search-custom-skill-web-api
upvoted 3 times
Mehe323
1 year ago
The first answer should be no: https://learn.microsoft.com/en-us/azure/search/cognitive-search-output-field-mapping?tabs=rest "Output field mappings are required if your indexer has an attached skillset that creates new information, such as text translation or key phrase extraction. During indexer execution, AI-generated information exists in memory only. To persist this information in a search index, you'll need to tell the indexer where to send the data." According to my source, the code needs 'outputFieldMappings ', and here it is not the case.
upvoted 4 times
...
...
sl_mslconsulting
1 year, 5 months ago
I think it’s No for the first question. It’s basically testing you if you know this: There are no predefined outputs for this skill. Be sure to define an output field mapping in the indexer if the skill's output should be sent to a field in the search index. So by default, it is not available for indexing. It can be available if you do whatever needs to be done as the above described.
upvoted 2 times
sl_mslconsulting
1 year, 4 months ago
Another way to look at this is that the output of a skill can be sent to a field in a search index, a knowledge store, or a downstream skill. You have choices not to send the output to a search index but use it for other purpose. It will be silly to throw it away then why bother to have this skill in the skillset to begin with.
upvoted 1 times
...
...
M25
1 year, 6 months ago
N, Y, N https://learn.microsoft.com/en-us/azure/search/cognitive-search-defining-skillset#send-output-to-a-destination Although skill output can be optionally cached for reuse purposes, it's usually temporary and exists only while skill execution is in progress. • To send output to a field in a search index, create an output field mapping in an indexer. • To send output to a knowledge store, create a projection. https://learn.microsoft.com/en-us/azure/search/cognitive-search-output-field-mapping?tabs=rest In contrast with a fieldMappings definition that maps a path between two physical data structures, an outputFieldMappings definition maps in-memory data to fields in a search index.
upvoted 4 times
pid
1 year, 5 months ago
Agree with zellck's answer. First one is Y: You can define output field mapping after Output to index 'CompanyDescription'. Techncially it is available for indexing.
upvoted 2 times
...
...
halfway
2 years, 3 months ago
The first answer is NO. This code snippet is a skill definition. The outputs need to be mapped before they are available for indexing: https://learn.microsoft.com/en-us/azure/search/cognitive-search-concept-annotations-syntax
upvoted 2 times
I think the first answer is YES. The outputs are available for indexing once mapped. If we answer no, it means that the outputs are not available for indexing, that that would be incorrect.
upvoted 2 times
...
It would also be incorrect to say that CompayDescription can be indexed. The wording can be better, but in concept it is correct to say that the output column is available for future indexing.
upvoted 1 times
...
...
nekkilodeon
2 years, 7 months ago
I'd say the box1 is NO. The property is available for mapping to an index property.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago