PL-500 · Question #119
You create a custom connector that retrieves data from an API. The host URL of the API requires a connection with a dynamic subdirectory path. You need to ensure the custom connector's requests are…
The correct answer is A. Use references B. Define a base URL. Custom connectors with dynamic subdirectory paths require a defined base URL as the root endpoint and references to parameterize the dynamic path segments in the request URL.
Question
You create a custom connector that retrieves data from an API. The host URL of the API requires a connection with a dynamic subdirectory path. You need to ensure the custom connector's requests are completed successfully. Which two features should you use? Each correct answer presents a part of the solution. NOTE: Each correct selection is worth one point.
Options
- AUse references
- BDefine a base URL
- CDefine a policy
- DUse custom code
How the community answered
(47 responses)- A70% (33)
- C9% (4)
- D21% (10)
Why each option
Custom connectors with dynamic subdirectory paths require a defined base URL as the root endpoint and references to parameterize the dynamic path segments in the request URL.
References allow dynamic path segments to be defined as parameters within the URL template, enabling the connector to substitute different subdirectory values at runtime.
Defining a base URL establishes the fixed root endpoint of the API, which is required before any relative or dynamic path segments can be appended to form complete request URLs.
Policies modify request and response behavior such as headers or query parameters but do not provide a mechanism for constructing dynamic subdirectory URL paths.
Custom code extends connector logic with C# scripting for data transformation but is not the appropriate tool for handling dynamic URL path construction.
Concept tested: Custom connector dynamic URL path parameterization
Source: https://learn.microsoft.com/en-us/connectors/custom-connectors/define-openapi-definition
Topics
Community Discussion
No community discussion yet for this question.