Which syntax is used to access a secure property value in the properties file?

Prepare for the MuleSoft Integration Architect exam. Study with flashcards and multiple-choice questions, each offering hints and explanations to deepen understanding. Ace your exam with our focused preparation tools!

Multiple Choice

Which syntax is used to access a secure property value in the properties file?

Explanation:
Secure properties are accessed using the secure namespace with a double colon. The correct syntax is ${secure::db.port}, which signals Mule to look up the value from the secure properties file for the key db.port. The double colon clearly distinguishes secure properties from regular ones, and the property name can include dots as part of its key. The other forms don’t match the secure-property lookup pattern: they use different delimiters or characters that aren’t recognized for secure property access, so they won’t resolve to a value from the secure store.

Secure properties are accessed using the secure namespace with a double colon. The correct syntax is ${secure::db.port}, which signals Mule to look up the value from the secure properties file for the key db.port. The double colon clearly distinguishes secure properties from regular ones, and the property name can include dots as part of its key.

The other forms don’t match the secure-property lookup pattern: they use different delimiters or characters that aren’t recognized for secure property access, so they won’t resolve to a value from the secure store.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy