Exam4Training

Which files does the developer need to create in order to package the custom policy?

A healthcare portal needs to validate the token that it sends to a Mule API. The developer plans to implement a custom policy using the HTTP Policy Transform Extension to match the token received in the header from the heathcare portal.

Which files does the developer need to create in order to package the custom policy?
A . Deployable ZIP file, YAML configuration file
B . JSON properties file, YAML configuration file
C . JSON properties file, XML template file
D . XML template file, YAML configuration file

Answer: D

Explanation:

To package a custom policy using the HTTP Policy Transform Extension, the developer needs to create an XML template file and a YAML configuration file. The XML template file defines the policy logic using Mule components and placeholders for user-defined properties. The YAML configuration file defines the metadata of the policy, such as its name, description, category, parameters, and dependencies.

References: https://docs.mulesoft.com/api-manager/2.x/http-policy-transform#packaging-the-policy

Exit mobile version