Free Actual Microsoft Azure AZ-204 Actual Exam Questions - Question 2 Discussion
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.


I’d add searchable to name and description since users look for those by text, and filterable to location, cuisine, rating, and family-friendliness so users can narrow down results easily. That meets all requirements.
I’d make location and cuisine both searchable and filterable since users search by and filter on them. Plus, rating and family-friendliness should be filterable only. That covers both searching and narrowing effectively.
I'd mark name and description as searchable to cover full text queries, and location, cuisine, rating, family-friendliness as filterable to let users narrow down results easily. That matches the question details well.
I’d pick searchable for name and description to allow full text search, then filterable for location, cuisine, rating, and family friendliness so users can narrow results. That fits the requirements best.
I think the key here is making sure the description field is fully searchable with all words included, so it should be annotated as searchable without any filters or analyzers that could drop words. For narrowing results, location, cuisine, rating, and family-friendliness should be filterable and facetable fields. So probably description gets Searchable attribute, while the others get Filterable and Facetable attributes. This way, users can do free-text searches on descriptions but still filter down results easily. The name field should also be searchable to catch exact or partial matches.
What properties does the restaurant class currently have?