QuestionQ45

VerifiedConnect applications and data sources such as databases, files, SaaS apps, and messaging queues

Refer to the exhibit.

A Mule application uses a property-placeholder file named config.yaml to define property placeholders for an HTTP connector. Which properties placeholder file validly sets these values?

Question Image

Question Image

Explanation

In a YAML properties file, nested keys are defined with colon-and-indentation syntax, and Mule flattens the hierarchy using dot notation, so an http: mapping with indented host: and port: children resolves as http.host and http.port for the ${http.host} and ${http.port} placeholders. Entries written with equals signs, such as port = "8081" or http.port = 8081, are Java properties-file syntax and are not valid YAML mappings, and wrapping an indented block mapping in curly braces is also invalid YAML. An additional key such as basePath is simply an extra property and does not affect resolution of the two placeholders.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!