Mulesoft Certified Developer Mcd · Free Practice Question Easy
Question 12
Refer to the exhibit. This RAML specification includes a resource and method to retrieve accounts by account_type and industry.
What is the correct URI to get all retail finance accounts?

-
A
/accounts/retail/finance -
B
/accounts?account_type=retail&industry=finance -
C
/accounts?account_type:retail?industry:finance -
D
/accounts?account_type:retail&industry:finance
Reveal correct answer
Correct answer: B
Explanation
Correct answer is /accounts?account_type=retail&industry=finance
Query parameters are a defined set of parameters attached to the end of a url. They are extensions of the URL that are used to help define specific content or actions based on the data being passed. To append query params to the end of a URL, a ‘?’ Is added followed immediately by a query parameter.
To add multiple parameters, an ‘&’ is added in between each.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
