exam questions

Exam AZ-203 All Questions

View all questions & answers for the AZ-203 exam

Exam AZ-203 topic 6 question 4 discussion

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

HOTSPOT -
A company runs an international travel and bookings management service. The company plans to begin offering restaurant bookings.
You must develop a solution that uses Azure Search and meets the following requirements:
✑ Users must be able to search for restaurants by name, description, location, and cuisine.
✑ Users must be able to narrow the results further by location, cuisine, rating, and family-friendliness.
✑ All words in descriptions must be included in searches.
You need to add annotations to the restaurant class.
How should you complete the code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation
Box 1: [IsSearchable.IsFilterable.IsSortable,IsFacetable]

Location -
Users must be able to search for restaurants by name, description, location, and cuisine.
Users must be able to narrow the results further by location, cuisine, rating, and family-friendliness.
Box 2: [IsSearchable.IsFilterable.IsSortable,Required]

Description -
Users must be able to search for restaurants by name, description, location, and cuisine.
All words in descriptions must be included in searches.
Box 3: [IsFilterable,IsSortable,IsFaceTable]

Rating -
Users must be able to narrow the results further by location, cuisine, rating, and family-friendliness.
Box 4: [IsSearchable.IsFilterable,IsFacetable]

Cuisines -
Users must be able to search for restaurants by name, description, location, and cuisine.
Users must be able to narrow the results further by location, cuisine, rating, and family-friendliness.
Box 5: [IsFilterable,IsFacetable]

FamilyFriendly -
Users must be able to narrow the results further by location, cuisine, rating, and family-friendliness.
References:
https://www.henkboelman.com/azure-search-the-basics/

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
chaudh
Highly Voted 4 years, 11 months ago
(1) Users must be able to search for restaurants by name, description, location, and cuisine --> isSearchable, isFilterable, isSortable (2) Users must be able to narrow the results further by location, cuisine, rating, and family-friendliness. --> isFacetable & isFilterable are required, isSortable is good to have. (3) All words in descriptions must be included in searches --> isSearchable (only) 1. location: (1) & (2) --> [IsSearchable.IsFilterable.IsSortable,IsFacetable] 2. description: (3) --> isSearchable 3. rating: (2) --> isFilterable, isSortable, isFacetable. 4. cuisines: (1) & (2) --> IsSearchable, IsFilterable, IsFacetable 5. familyfriendly (2) --> IsFilterable, IsFacetable
upvoted 26 times
gayan1991
4 years, 11 months ago
Why doesn't familyfriendly have isSortable option?
upvoted 1 times
...
Cornholioz
4 years, 6 months ago
Great stuff!
upvoted 1 times
...
Juanlu
4 years, 4 months ago
Agree and Good Explanation. Thanks.
upvoted 1 times
...
...
ens1z
Highly Voted 5 years ago
Options: https://pasteboard.co/Jb6TVTz.png
upvoted 17 times
...
dancsita
Most Recent 4 years, 4 months ago
https://docs.microsoft.com/en-us/rest/api/searchservice/create-index
upvoted 1 times
...
Chilred
4 years, 6 months ago
Why does all the solutions do not contains Name and Phone? The post from lau13 and ens1z does them clearly show them
upvoted 1 times
Chilred
4 years, 6 months ago
forget this :D
upvoted 1 times
...
...
Balajicr7
4 years, 10 months ago
Why do we need isSortable it is not mentioned as a requirement in the question right?
upvoted 1 times
...
waitingzero
5 years ago
i believe the Description ans is [IsSearchable]
upvoted 2 times
...
an26
5 years ago
All words in descriptions must be included in searches. [IsSearchable] Description Because: If you set a searchable field to a value like "Sunny day", internally it will be normalized and split into the individual tokens "sunny" and "day". This enables full-text searches for these terms.
upvoted 4 times
...
lau13
5 years, 1 month ago
options Key, IsFilterable public int RestaurantId IsSearchable, isFilterable, IsSoratble public string Name Box 1: IsSearchable, IsFilterable, IsSortable, IsFacetable IsFilterable, isFacetable, Required IsSearchable IsSearchable, Required public string location public string Phone Box 2: IsSearchableReq, Required IsSearchable IsFilterable, IsFacetable, Required IsSearchable, IsFilterable, IsSortable, IsFacetable public string Description Box 3: IsFiltable,IsSortable,IsSearchable IsFilterable, IsSortable, IsFacetable IsFiltable, IsSortable, Key IsFilterable, IsSortable, IsSearchable, Required public double Rating Box 4: IsSearchable, IsFilterable, IsFacetable IsFilterable, IsSortable, Key IsFilterable, IsSortable, IsSearchable IsFilterable, IsSortable, Key, Required public List<string> Cuisines Box 5: IsFilterable, IsSortable, Key, Required IsSearchable, IsSortable, IsFacetable IsFilterable, IsSortable, Key, IsSearchable IsFilterable, IsFacetable public bool FamilyFriendly
upvoted 4 times
...
riley5
5 years, 2 months ago
The answer makes no sense. If users "must" do something then why isn't required by more of them?
upvoted 4 times
lau13
5 years, 1 month ago
I agreed that this question is poorly designed, the requirements are at least non-sense for web development.
upvoted 1 times
...
...
Rishi_22
5 years, 2 months ago
options please.
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 ...