exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 1 question 28 discussion

Actual exam question from Microsoft's AZ-204
Question #: 28
Topic #: 1
[All AZ-204 Questions]

You are developing a .NET Core MVC application that allows customers to research independent holiday accommodation providers.
You want to implement Azure Search to allow the application to search the index by using various criteria to locate documents related to accommodation venues.
You want the application to list holiday accommodation venues that fall within a specific price range and are within a specified distance to an airport.
What should you do?

  • A. Configure the SearchMode property of the SearchParameters class.
  • B. Configure the QueryType property of the SearchParameters class.
  • C. Configure the Facets property of the SearchParameters class.
  • D. Configure the Filter property of the SearchParameters class.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
7ack
Highly Voted 2 years, 1 month ago
Azure search was in AZ-203, but it's not in the AZ-204 list of measured skills. Is this even still relevant?
upvoted 20 times
Bogdan75
1 year, 5 months ago
You're right, it's not on the list of measured skills: https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RE4oZ7B
upvoted 3 times
...
...
hstml
Highly Voted 1 year, 11 months ago
The solution D - Filter is correct. The thing is that you filter the queried information by a price range and distance to airport. The QueryType is about the syntax of what you can pass into the search. Read the explanations in the docs: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.search.models.searchparameters?view=azure-dotnet
upvoted 13 times
MiraA
1 year, 10 months ago
Geo-search example: https://docs.microsoft.com/en-us/azure/search/search-query-simple-examples#example-6-geo-search
upvoted 4 times
PhilLI
1 year, 7 months ago
So [A] should be the answer then? https://docs.microsoft.com/en-us/azure/search/query-simple-syntax The searchMode parameter is relevant in this example. Whenever boolean operators are on the query, you should generally set searchMode=all to ensure that all of the criteria is matched. Otherwise, you can use the default searchMode=any that favors recall over precision.
upvoted 1 times
PhilLI
1 year, 7 months ago
I see I'm wrong ...
upvoted 1 times
...
...
aruni_mishra
1 year, 7 months ago
correct link: https://docs.microsoft.com/en-us/azure/search/search-query-simple-examples#example-6-geospatial-search
upvoted 1 times
...
...
...
forgetfulalligator
Most Recent 6 months ago
Selected Answer: D
The Filter property is used to narrow down search results by specifying one or more filter expressions to apply to the search query. A filter expression is a Boolean expression that is used to match specific criteria, such as a specific price range or proximity to an airport.
upvoted 2 times
...
wrak
6 months, 1 week ago
out-of-the-scope for the AZ-204 Exam; please remove from the Question Bank
upvoted 5 times
...
examinator007
6 months, 3 weeks ago
Azure Search is not part of the AZ-204 - see: https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RE4oZ7B
upvoted 2 times
...
alexein74
7 months ago
Selected Answer: D
D. Configure the Filter property of the SearchParameters class. To allow the application to list holiday accommodation venues that fall within a specific price range and are within a specified distance to an airport, you should configure the Filter property of the SearchParameters class in your .NET Core MVC application. The filter property allows you to filter the search results by applying conditions to specific fields in the indexed documents. You can use this property to specify the price range and distance range of the accommodation venues.
upvoted 1 times
...
KingChuang
8 months, 2 weeks ago
Selected Answer: D
My Answer:D Ref:https://learn.microsoft.com/en-us/azure/search/search-query-simple-examples#example-5-range-filters
upvoted 1 times
...
Chang401
10 months ago
Selected Answer: D
similar type of question is there on examtopics az-204. but the ask is different in both the questions.
upvoted 2 times
...
PhilLI
1 year, 7 months ago
Selected Answer: D
checkout MiraA's link
upvoted 3 times
...
ning
1 year, 11 months ago
querytype cannot work for geo search, it is D, filter with odata can work with geo data
upvoted 2 times
...
BishopeL
1 year, 12 months ago
https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.search.models.searchparameters.filter?view=azure-dotnet#Microsoft_Azure_Search_Models_SearchParameters_Filter
upvoted 1 times
...
BishopeL
1 year, 12 months ago
Correct answer is D.
upvoted 3 times
...
hussamAlHunaiti
2 years ago
Wrong answer, the correct answer is B- Querytype property
upvoted 2 times
...
wolf_lu
2 years ago
choose B ,querytype
upvoted 2 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