ExamGecko
Home / MuleSoft / MCD - Level 1 / Practice Test 1
Ask Question

MuleSoft MCD - Level 1 Practice Test 1

00:00:00
Show Answer
Report Issue   Restart test

Question 1 / 40

Refer to the exhibit.

MuleSoft MCD - Level 1 image Question 1 52556 09182024213609000000

What is the correct syntax to add an employee ID as a URI parameter in an HTTP Listener path?

(employeelD)
(employeelD)
${emp!oyeelD}
${emp!oyeelD}
{employeelD}
{employeelD}
# [employeelD]
# [employeelD]
Comment (0)
Suggested answer: C
Explanation:

Paths

The path of an HTTP listener can be static, which requires exact matches, or feature placeholders. Placeholders can be wildcards (*), which match against anything they are compared to, or parameters ({param}), which not only match against anything but also capture those values on a URI parameters map.

Take the following example paths for three listeners using a configuration that establishesapi/v1as the base path:

account/mulesoft/main-contact: only match the exact path requesthttp://awesome-company.com/api/v1/account/mulesoft/main-contact

account/{accountId}/main-contact: matches all path requests structured similarly, such ashttp://awesome-company.com/api/v1/account/salesforce/main-contact, and savesalesforceas the value ofaccountId.

account/{accountId}/*: matches all path requests different frommain-contact, such ashttp://awesome-company.com/api/v1/account/mulesoft/users, and savemulesoftas the value ofaccountId.

Mule Ref Doc :https://docs.mulesoft.com/http-connector/1.6/http-listener-ref#paths

asked 18/09/2024
Sean Kell
46 questions