Policies consist of what two files?

Prepare for the MuleSoft Developer 2 Certification Exam. Access practice quizzes featuring flashcards and multiple choice questions with explanations. Get confident and ready for your certification success!

Multiple Choice

Policies consist of what two files?

Explanation:
Policies in MuleSoft are delivered as a pair of artifacts: the runtime implementation packaged as a deployable JAR, and a YAML configuration file that defines the policy’s parameters and metadata. The JAR contains the actual policy logic that runs when the policy is applied to an API, while the YAML file provides the necessary configuration—such as the policy name, version, and parameter definitions—that the API Manager uses to apply and manage the policy. Without the JAR, there is no policy code to execute; without the YAML, the platform wouldn’t have the configuration to apply or parameterize the policy. The other options don’t fit because policies aren’t defined by an XML template, a single YAML file alone, or a Java source file with a resources directory at deployment time.

Policies in MuleSoft are delivered as a pair of artifacts: the runtime implementation packaged as a deployable JAR, and a YAML configuration file that defines the policy’s parameters and metadata. The JAR contains the actual policy logic that runs when the policy is applied to an API, while the YAML file provides the necessary configuration—such as the policy name, version, and parameter definitions—that the API Manager uses to apply and manage the policy. Without the JAR, there is no policy code to execute; without the YAML, the platform wouldn’t have the configuration to apply or parameterize the policy. The other options don’t fit because policies aren’t defined by an XML template, a single YAML file alone, or a Java source file with a resources directory at deployment time.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy