Salesforce Certified Marketing Cloud Engagement Developer Practice Questions

Salesforce Certified Marketing Cloud Engagement Developer exam preparation

Salesforce Certified Marketing Cloud Engagement Developer practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 105 minutes.

Salesforce Certified Marketing Cloud Engagement Developer free question 5 / 10 · Domain 2: Programmatic Languages

A developer hashes a value with MD5("sub-4821") and passes no second parameter. Which character set does the function use to encode the string?

  1. The character set of the sendable data extension, as the function reads it from the send
  2. UTF-16, as the function encodes with the wider character set by default
  3. UTF-8, as that is the default and UTF-16 is the other accepted value
  4. ASCII, as the function hashes the plain bytes of the string
Show the answer and explanation

Answer: C

Why this is correct
MD5() converts a string to a 128-bit hexadecimal MD5 hash. Its optional charSet parameter accepts UTF-8 and UTF-16, and the default is UTF-8. A value hashed with UTF-16 gives a different hash from the same value hashed with UTF-8.

Why the other options are wrong
"UTF-16, as the function encodes with the wider character set by default" … The page says the default value is UTF-8. UTF-16 is used when you pass it as the charSet parameter.
"ASCII, as the function hashes the plain bytes of the string" … The accepted values of the character set parameter are UTF-8 and UTF-16. ASCII is not listed.
"The character set of the sendable data extension, as the function reads it from the send" … The function takes its character set from the optional charSet parameter, and its default is UTF-8.

Key point
MD5() encodes with UTF-8 unless you pass UTF-16.

Go to the Salesforce Certified Marketing Cloud Engagement Developer practice app (10 free questions; purchase unlocks all questions)

See the full practice set