Salesforce-Marketing-Cloud-Engagement-Developer Practice Test

Salesforce Spring 25 Release -
Updated On 18-Sep-2025

196 Questions

A developer has a text field in a data extension they want to format using the FormatCurrency AMPscript function. Which two values would return $6.96? (Choose 2)

A. 6,961

B. 6.96

C. $6.96

B.   6.96
C.   $6.96

Explanation:

✅ B.  6.96
This is a numeric value in proper decimal format, and FormatCurrency(6.96) will output $6.96 using AMPscript’s built-in formatting rules. The function adds the appropriate currency symbol and formats it to two decimal places. This is a standard and expected input for this function. It demonstrates AMPscript’s ability to handle numerical formatting in dynamic email content, ensuring professional display of prices or financial data.

✅ C. $6.96
While this may seem counterintuitive, AMPscript is forgiving in some cases and can recognize this as a string representing currency. It automatically parses the value and still outputs $6.96. This only works because the input format already matches the desired output and contains the symbol. However, developers should prefer passing numeric values to avoid unintended results with localized formats or currency symbols other than $.

❌ A. 6,961
This input has a comma, which could be misinterpreted depending on the AMPscript context or locale settings. AMPscript expects a number, and if commas are present, they may either cause the function to fail or produce unintended formatting results. For example, this might be treated as "6" or even throw an error. In most cases, currency formatting does not work well with pre-formatted input, especially when commas or thousands separators are involved.

A developer wants to create a Synchronized Data Extension containing Lead data from Sales Cloud. They only want to include record which contain a phone number. Each of the following flied contains this information per these rules: -Phone is not black (Data Type = Phone) -PhoneExist is true (Data Type = Boolean) -ValidPhone is 'true' (Data Type = Formula(Boolean)) -ContactType equals 'Phone' (Data Type = Text). Which field could be used to select a subset of records in the synchronization configuration?

A. ValidPhone

B. Phone

C. ContactType

D. PhoneExists

D.   PhoneExists

Explanation:

✅ D. PhoneExists
This is the only supported field type for filtering synchronized data extensions in the Synchronized Data Sources configuration. It’s a Boolean field, which can be used directly in the synchronization setup UI to filter data during the sync process. Marketing Cloud only allows fields of data type Boolean, Date, or String to be used as filters in Synchronized Data Extensions. Since PhoneExists is already a Boolean and its logic is validated in Sales Cloud, it is reliable and directly usable during sync setup.

❌ A. ValidPhone
Although ValidPhone is also a Boolean, it’s a formula field, not a raw Boolean field. Marketing Cloud does not allow Salesforce formula fields to be used as filters in synchronized data extensions. This restriction exists because formula values can change based on logic, which may not behave consistently during synchronization. Even if the formula evaluates to a Boolean value, it’s still ineligible for use in filtering synchronized DEs. Therefore, this field can’t be used to limit what records are pulled into Marketing Cloud.

❌ B. Phone
Phone is a text field with a specialized data type (Phone), and while it contains the actual phone number, it’s not supported in sync filtering because it’s not a Boolean, Date, or String data type that meets the Marketing Cloud synchronization filter criteria. Even if it’s not blank, the sync configuration does not support checking for empty/non-empty text fields directly. Hence, relying on the presence of a value in the Phone field is insufficient during configuration.

❌ C. ContactType
This is a text field that contains values like "Phone", but it’s not directly tied to the presence of an actual phone number. For example, someone could have a ContactType of "Phone" even if their phone field is blank. Also, filtering by ContactType may exclude valid leads or include false positives. Although it's technically a String and could be used in some filters, it’s not the most accurate or recommended choice for filtering based on phone number presence.

A developer wants to transform the date and time 'Data_Enrolled' from Daylight Savings time. How would the developer change the time to fall back one hour?

A. %%=DataAdd(Date_Enrolled,-1)=%%

B. %%=DateAdd(Date_Enrolled,-1 'H')=%%

C. %%=DateDiff(Date_Enrolled, 1,'H')=%%

D. %%=FormatDate(Date_Enrolled,-1,'HH','en-us')=%%

B.   %%=DateAdd(Date_Enrolled,-1 'H')=%%

Explanation:

✅ B. DateAdd(Date_Enrolled,-1, 'H')
The DateAdd function adds (or subtracts) a specific unit of time to a date. To subtract 1 hour, you specify -1 as the value and 'H' (hour) as the unit. This is the correct and standard way to adjust for daylight saving fallback.

❌ A. DataAdd(Date_Enrolled,-1)
This syntax is incomplete—it doesn’t specify the unit (like 'H' for hours). AMPscript will fail or default unexpectedly.

❌ C. DateDiff(Date_Enrolled, 1,'H')
DateDiff calculates the difference between two dates. It’s not used for transforming or adjusting date values.

❌ D. FormatDate(...)
FormatDate is used for displaying a date in a specific format. It does not adjust the actual date/time value.

Certification Aid wants to trigger and email send in Marketing Cloud when a purchase is made on their website. Which API should be used for this? (Choose 2.)

A. Subscriber API

B. Email API

C. REST API

D. SOAP API

C.   REST API
D.   SOAP API

Explanation:

✅ C. REST API
REST API is well-suited for modern, lightweight integration needs and supports Triggered Sends, including transactional emails after an event like a purchase. REST is recommended for web apps due to its lower overhead and modern design.

✅ D. SOAP API
SOAP API also supports TriggeredSend functionality and is widely used in enterprise systems. It allows email send definitions and contact data to be dynamically provided.

❌ A. Subscriber API
There is no standalone "Subscriber API" in Marketing Cloud. Managing subscriber data happens via SOAP or REST APIs, but "Subscriber API" is not a valid option.

❌ B. Email API
“Email API” is not a specific SFMC API. Triggered sends are implemented via SOAP or REST, not a separate “Email API”.

When do synchronous REST API calls to Marketing Cloud time out? (Choose 2.)

A. 240 seconds for tracking and data retrieve operations.

B. 300 seconds for tracking and data retrieve operations.

C. 120seconds for non-tracking operations.

D. 240 seconds for non-tracking operations.

B.   300 seconds for tracking and data retrieve operations.
C.   120seconds for non-tracking operations.

Explanation:

✅ B. 300 seconds for tracking and data retrieve operations
Marketing Cloud REST API allows longer timeouts (up to 5 minutes / 300 seconds) for tracking and data retrieval operations. These types of calls might involve large datasets and need extended processing time.

✅ C. 120 seconds for non-tracking operations
For other types of synchronous operations (like data manipulation, triggered sends, etc.), the timeout is 120 seconds. These operations are expected to be faster and more transactional in nature.

❌ A. 240 seconds for tracking and data retrieve operations
This is not accurate—although 240 seconds seems plausible, the correct limit for tracking/data operations is 300 seconds.

❌ D. 240 seconds for non-tracking operations
The timeout for non-tracking REST API calls is 120 seconds, not 240. This ensures system resources aren’t held unnecessarily long.

Page 1 out of 40 Pages