How do you define the encrypted part of a secure property? Use the example of a property named "password".

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

How do you define the encrypted part of a secure property? Use the example of a property named "password".

Explanation:
In secure properties, the encrypted portion of a value is indicated by a special marker that tells the runtime to decrypt that piece at load time. The marker is written as the encrypted string, and wrapping it in quotes makes it a string literal, which is how the configuration file treats the encrypted reference. So defining the property as password: "![encrypted string]" correctly marks the value as an encrypted placeholder to be decrypted by the secure properties mechanism. Using the plain word encrypted or placing the marker without quotes would not reliably signal the runtime to decrypt, and would either be treated as ordinary text or as a YAML tag rather than an encrypted reference.

In secure properties, the encrypted portion of a value is indicated by a special marker that tells the runtime to decrypt that piece at load time. The marker is written as the encrypted string, and wrapping it in quotes makes it a string literal, which is how the configuration file treats the encrypted reference. So defining the property as password: "![encrypted string]" correctly marks the value as an encrypted placeholder to be decrypted by the secure properties mechanism. Using the plain word encrypted or placing the marker without quotes would not reliably signal the runtime to decrypt, and would either be treated as ordinary text or as a YAML tag rather than an encrypted reference.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy