nerdexam
MuleSoft

MCD-LEVEL-1 · Question #61

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?

The correct answer is B. /accounts?account_type=retail&industry=finance. 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…

Designing APIs

Question

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?

Exhibit

MCD-LEVEL-1 question #61 exhibit

Options

  • 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

How the community answered

(18 responses)
  • B
    89% (16)
  • C
    6% (1)
  • D
    6% (1)

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.

Topics

#RAML#query parameters#REST URI#API design

Community Discussion

No community discussion yet for this question.

Full MCD-LEVEL-1 Practice