Salesforce Certified Marketing Cloud Engagement Developer free question 10 / 10 · Domain 5: Security
A developer wants a value in a custom data extension to be stored encrypted with a key created in Key Management, and to read it back in a message. Which AMPscript functions does the documentation name?
- EncryptSymmetric() and DecryptSymmetric()
- EncryptAsymmetric() and DecryptAsymmetric()
- UpsertDE() and RetrieveSalesforceObjects()
- Lookup() and LookupRows()
Show the answer and explanation
Answer: A
Why this is correct
The page walks through three steps: create the necessary keys, create the information in the data extension, and include the AMPscript that does the encryption. The functions are EncryptSymmetric() and DecryptSymmetric(), which can take either values supplied in the call or the external keys of the keys that were created.
Why the other options are wrong
"EncryptAsymmetric() and DecryptAsymmetric()" … The page names EncryptSymmetric() and DecryptSymmetric() as the AMPscript that is needed.
"Lookup() and LookupRows()" … Lookup functions read data from a data extension. The page names EncryptSymmetric() and DecryptSymmetric() for encrypting and decrypting.
"UpsertDE() and RetrieveSalesforceObjects()" … UpsertDE() writes rows and the other function reads Salesforce objects. Neither encrypts a value with a key from Key Management.
Key point
Encrypt and decrypt in AMPscript: EncryptSymmetric() and DecryptSymmetric().