A merchant gives you the module MyCompany_MyModule to install.
How do you identify which REST endpoints are supported by the module?
A. REST endpoints are declared in etc/webapi_rest/di.xml
B. Every public method of every interface in the Api folder automatically is exposed as a REST endpoint
C. REST endpoints are declared in etc/rest.xml
D. REST endpoints are declared in etc/webapi.xml
Answer:- D
To configure a web API, developers define some of the elements of each API call in the /vendor///etc/webapi.xml file, where is your vendor name (for example, magento) and is your module name (which exactly matches its definition in composer.json). For example, the web API for the Customer service is defined in the /vendor/magento/module-customer/etc/webapi.xml configuration file. Service data interfaces and builders define the required and optional parameters and the return values for the API calls.
Answer: D
Answer: D
Reference for D: https://devdocs.magento.com/guides/v2.4/get-started/gs-web-api-request.html