- Home
- Salesforce
- Developers
- Marketing-Cloud-Developer
- Salesforce Certified Marketing Cloud Developer (SP25) Questions and Answers
Marketing-Cloud-Developer Salesforce Certified Marketing Cloud Developer (SP25) Questions and Answers
A developer wants to create an AMPscript FOR loop that populates HTML table rows based on the number of rows and data in a target DE. Where should the developer place the FOR keyword to begin the loop?
Options:
Before the <title> tag
Before the
Before the
tagBefore the
Answer:
DExplanation:
In AMPscript, to create a FOR loop that populates HTML table rows, the developer should place the FOR keyword before the<tr>tag. This ensures that each iteration of the loop creates a new table row with the appropriate data.
Example:
<title>
%%[ FOR @i = 1 TO RowCount(@TargetDE) DO ]%%References:
- AMPscript Guide
- Salesforce Marketing Cloud Documentation
A developer needs to find all subscribers on the Customers data extension who made a purchase in the last 30 days. Purchase data is on the Orders data extension which contains a columncalled 'PurchaseDate'. Contacts are identified in both data extensions by a column called 'ContactKey', and the Orders data extension can contain many instances of the same subscnber.
Which SQL keyword should the developer use to achieve the desired result?
Options:
INNER JOIN
OUTER JOIN
ORDER BY PurchaseDate ASC
Answer:
AExplanation:
To find all subscribers who made a purchase in the last 30 days, an INNER JOIN should be used to join the Customers data extension with the Orders data extension on theContactKey. This ensures that only subscribers with matching records in both data extensions are retrieved.
- SQL Query Example:
SELECTc.ContactKeyFROMCustomers cINNERJOINOrders oONc.ContactKey=o.ContactKeyWHEREo.PurchaseDate>=DATEADD(day,-30, GETDATE())
NTO had an Enterprise 2.0 account; subscribers unsubscribes from the business unit only. A developer is identifying subscribers who unsubscribed from any of the NTO child business units. Which method wouldidentify the most accurate status for subscribers of each business unit?
Options:
Create Data Extract of all Subscribers within the Parent Business unit
Create Data Extracts of All Subscribers within each Child business unit
Query unsubscriber from _Subscribers within the Parent business unit
Query status from _ListSusbscribers within the Parent business unit
Answer:
BExplanation:
To accurately identify subscribers who have unsubscribed from any of the child business units in an Enterprise 2.0 account, it is necessary to create data extracts of all subscribers within each child business unit. This approach ensures that unsubscribes specific to each business unit are captured.
- Data Extracts: By creating data extracts within each child business unit, you can gather comprehensive unsubscribe data for all subscribers specific to each unit.
A developer wants to create a CloudPage which is linked from an email. %%[SET @point = RequestParameter(x) SET @value = 5 IF Length(@point) > 1 THEN SET @value = 1 ELSEIF Length(@point)>2 THEN SET @value = 2 ELSEIF Length(@point) >3 THEN SET@value = 3 ELSEIF Length(@point) >4 THEN SET @value = 4 ENDIF]%% Which is the expected value of @value if x = 'Tacos'?
Options:
3
1
5
4
Answer:
BExplanation:
In the provided AMPscript, theIFstatement checks the length of the@pointvariable and sets@valueaccordingly. Sincex = 'Tacos'has a length of 5, it meets the first conditionLength(@point) > 1, which sets@valueto 1. Subsequent conditions are not evaluated because the first condition is already true.
- AMPscript IF-ELSEIF Example:
%%[ SET @point = RequestParameter('x') SET @value = 5 IF Length(@point) > 1 THEN SET @value = 1 ELSEIF Length(@point) > 2 THEN SET @value = 2 ELSEIF Length(@point) > 3 THEN SET @value = 3 ELSEIF Length(@point) > 4 THEN SET @value = 4 ENDIF ]%%
A developer, who is new to Marketing Cloud, needs to design a landing page for a new customer. They choose to use Server-Side JavaScript (SSJS) due to their extensive knowledge of JavaScript from previous projects.
Which two features would the developer be able to leverage in their Server-Side code? Choose 2 answers
Options:
Wrapping of AMPscript inSSJS code
Direct modification of the DOM
External Libraries to extend functionality
Include Try/Catch blocks within the code
Answer:
A, DExplanation:
When using Server-Side JavaScript (SSJS) in Salesforce Marketing Cloud, the developer can leverage the following features:
- Wrapping of AMPscript in SSJS code (A)- SSJS can include AMPscript within its code, allowing for dynamic content generation and manipulation.
- Include Try/Catch blocks within the code (D)- SSJS supports the use of Try/Catch blocks to handle errors and exceptions in the script, providing better control over error management.
References:
- Salesforce Marketing Cloud Server-Side JavaScript Guide
- AMPscript and SSJS Integration
Certification Aid wants to include SSJS in an email message. Which code block can be used for this? Choose 2.
Options:
<script runat=server></script>
<script language=ssjs></script>
<script runat=serverlanguage=javascript></script>
<script language=javascript></script>
Answer:
A, CExplanation:
To include Server-Side JavaScript (SSJS) in an email message, you need to use the<script>tag with therunat="server"attribute. This ensures that the script runs on the server side before the email is sent.
- <script runat=server></script>: This is a valid way to include SSJS in an email. It specifies that the enclosed code should be executed on the server.
<scriptrunat="server">Platform.Load("Core","1");varrows =Platform.Function.LookupRows("DataExtensionName","EmailAddress","example@example.com");</script>
- uk.co.certification.simulator.questionpool.PList@1c42a7e0
Northern Trail Outfitters (NTO) wants to prevent competitors fromreceiving a coupon email. They also want to capture email addresses of competitors who are included in the targeted audience.
Which feature could NTO use to prevent the coupon from being sent and report the email addresses skipped?
Options:
Auto-Suppression list
RaiseError AMPscript function
Exclusion Script
Try/Catch SSJS functions
Answer:
CExplanation:
An Exclusion Script is used to exclude certain subscribers from an email send based on defined criteria. It can also log or capture details of those excluded addresses for reporting purposes.
- Exclusion Script: This script runs before the send and can dynamically exclude recipients based on logic you define. It allows you to prevent competitors from receiving the email and to log their email addresses.
Certification Aid wants to update Contact data stored in a Data Extension using the REST API. What is required to achieve this? Choose 1.
Options:
The Data Extension must be in an Attribute Group.
The Data Extensionmust be in a Population.
The Data Extension must be sendable.
The Data Extension must be created in Email Studio.
Answer:
AExplanation:
To update Contact data stored in a Data Extension using the REST API, the Data Extension must be in anAttribute Group (A). This is necessary because the REST API interacts with Contact data through Attribute Groups, which organize Data Extensions and their relationships within Contact Builder.
References:
- Salesforce Marketing Cloud REST API
- Contact Builder and Attribute Groups
A developer wants to build an audience by identifying subscribers who opened a specific email. Which query should the developer use?
Options:
SELECT * FROM _Open WHERE ListID = '1234'
SELECT * FROM_Open WHERE JobID = "1234"
SELECT SubscriberID FROM _Open WHERE JobID = "1234"
SELECT SubscriberKey FROM _Open WHERE JobID = '1234'
Answer:
DExplanation:
To build an audience by identifying subscribers who opened a specific email, the developer should use the following query:
SELECTSubscriberKeyFROM_OpenWHEREJobID='1234'
This query selects the SubscriberKey from the _Open data view where the JobID matches the specific email send.
References:
- Salesforce Marketing Cloud Data Views
- Salesforce SQL Reference Guide
Northern Trail Outfitters uses a number to uniquely identify contacts across different marketing channels.
Which two actions should the developertake to ensure the contacts relate across channels in Marketing Cloud when working with the data model?
Choose 2 answers
Options:
store the numeric unique identifier value as a Text data type In data extensions.
Link the numeric field value to the Contact IDin Attribute Groups in Contact Builder.
Use a unique identifier spec fie to each channel and automatically connect then-..
Create Attribute Groups linking the unique identifier to the Contact for each channel.
Answer:
B, DExplanation:
To ensure that contacts relate across different channels in Marketing Cloud, you need to link the unique identifier used across channels to the Contact ID in Contact Builder. This involves creating Attribute Groups and establishing the relationships between the unique identifier and the Contact ID.
- Link the Numeric Field Value: By linking the numeric unique identifier to the Contact ID in Attribute Groups, you ensure that each contact is uniquely identified across channels.
- Create Attribute Groups: Attribute Groups in Contact Builder allow you to map the relationships between different data sources and the Contact object, ensuring that the unique identifier is connected correctly for each channel.
The Contact Delete feature can be used within an Enterprise 2.0 account from which business unit?
Options:
Only in Agency accounts
The Parent account
Any business unit
The business unit where the contact was introduced
None of these
Answer:
BExplanation:
The Contact Delete feature can be used within an Enterprise 2.0 accountfrom the Parent account (B). This ensures centralized management and compliance with organizational data governance policies.
References:
- Salesforce Marketing Cloud Documentation on Contact Delete
- Enterprise 2.0 Account Management
A developer needs to add From Addresses to Marketing Cloud and wants to ensure they are verified before being used for sending.
Which tworoutes would allow this?
Choose 2 answers
Options:
POST /messaging/vl/domainverification
POST /messaging/vl/domainverification/bulk/insert
POST /messaging/vl/dataevents/domainverification
POST/messaging/vl/push/domain/verification
Answer:
A, BExplanation:
To add and verify From Addresses in Marketing Cloud, you can use the following routes:
- POST /messaging/v1/domainverification: This endpoint is used to verify a single domain.
- POST /messaging/v1/domainverification/bulk/insert: This endpoint is used to verify multiple domains in bulk.
A developer wants a link to be dynamic based on subscriber attributes. Rather than create numerous links, the developer uses AMPscript to set the link's value as a variable. The variable will be used within the <a> tag. What should thedeveloper do within the <a> tag to ensure clicks are tracked for the variable? Choose 2
Options:
Wrap the variable in a RedirectTo function
Ensure the Conversion attribute is 'true'
Wrap the variable in a v function
Include a variable for the Alias attribute
Answer:
A, DExplanation:
To ensure that clicks are tracked for a dynamic link created using AMPscript, the developer should wrap the link variable in aRedirectTofunction and include an alias attribute for tracking purposes.
- RedirectTo Function: This function helps ensure that the link click is properly tracked by Salesforce Marketing Cloud (SFMC). The function takes a URL and ensures that tracking parameters are appended correctly.
%%[ SET @dynamicLink = "http://example.com/?id=" + AttributeValue("SubscriberID") ]%% Click Here
- uk.co.certification.simulator.questionpool.PList@17d31af0
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
Options:
6,961
6.96
$6.96
6.96
Answer:
B, DExplanation:
TheFormatCurrencyAMPscript function is used to format a numeric value as a currency. To return a value of $6.96, the function would correctly format inputs like:
- 6.96 (B)- This is a direct numeric value that will be formatted to $6.96.
- 6.96 (D)- Same as above, the numeric value is directly formatted to $6.96.
UsingFormatCurrency(6.96)in AMPscript will result in$6.96.
References:
- Salesforce Marketing Cloud Documentation on FormatCurrency
- AMPscript Guide
Clock Kicks would like to encrypt and storeform data submitted from a CloudPage in a data extension using AMPscript. Which three encryption options could be used when creating a new key in Key Management? Choose 3
Options:
SAML
Asymmetric
RSA
Salt
Symmetric
Answer:
B, C, EExplanation:
Salesforce Marketing Cloud offers various encryption options when creating a new key in Key Management. The three encryption options that can be used are:
- Asymmetric (B)- Asymmetric encryption uses a pair of keys (public and private) for encryption and decryption. This method is highly secure as the private key remains confidential.
- RSA (C)- RSA is a specific type of asymmetric encryption. RSA stands for Rivest-Shamir-Adleman, and it is widely used for secure data transmission.
- Symmetric (E)- Symmetric encryption uses the same key for both encryption and decryption. It is efficient for encrypting large amounts of data.
References:
- Salesforce Marketing Cloud Documentation
- AMPscript Guide
A developer wants to build an email that dynamically populates the physical address of a company's locations using the variable ©address. The deployment goes to millions of subscribers and the developer wants the fastest possible performance.
Which AMPscript solution should be recommended?
Options:
%%[ SET @address = field(Lookcup("Building_Locations"/ "Address", "Id",@Id), "Address") ]%%
%% [ SET @address - field(Row(LookupRows("Building_Locations", "Address","Id"), 1),"Address") ]%%
%%; SET @address = LookupRows(Building_Locations", "Address", "Id") ]%%
%: SET @address = Lookup(''Building_locations'', Address'', ''id''@id) ] %%
Answer:
DExplanation:
To dynamically populate the physical address of a company's locations using the variable@addressand ensure the fastest possible performance for millions of subscribers, the recommended AMPscript solution is:
%%[ SET @address = Lookup("Building_Locations", "Address", "Id", @Id) ]%%
This solution uses theLookupfunction, which retrieves a specific field value from a data extension based on the given criteria. It is efficient and performs well for high-volume sends.
References:
- Salesforce Marketing Cloud AMPscript Guide
- Salesforce Marketing Cloud Documentation
A developer is making an API REST call to trigger an email send. An accesstoken is used to authenticate the call.
How long are Marketing Cloud v1 access tokens valid?
Options:
Access tokens expire after 24 hours.
REST calls do not require an access token.
Each API call requires a new access token.
Access tokens expire after one hour.
Answer:
DExplanation:
In Salesforce Marketing Cloud, access tokens are valid forone hour (D). After one hour, a new access token must be obtained to continue making API calls. This ensures security and helps manage the lifespan of tokens effectively.
References:
- Salesforce Marketing Cloud API Authentication
- Salesforce Marketing Cloud REST API Overview
A developer is creating a custom preference center and wants to log unsubscribeevents from the CloudPage. Which set of parameters should be captured and provided to the LongUnsubEvent Execute Call to ensure accurate unsubscribe information?
Options:
SubscriberKey and JobID
SubscriberID and BatchID
EmailAddress and JobID
SubscriberKey and BatchID
Answer:
AExplanation:
When logging unsubscribe events from a CloudPage using the LogUnsubEvent Execute Call, it's crucial to capture and provide both the SubscriberKey and the JobID. The SubscriberKey uniquely identifies the subscriber, while the JobID identifies the specific email job from which the subscriber is unsubscribing.
- SubscriberKey: Identifies the subscriber in the Marketing Cloud.
- JobID: Identifies the email job that triggered the unsubscribe event.
Which AMPscript function returns the result of interpreted code within a code block and includes the result in the rendered content, where the code block is located?
Options:
V
Output
TreatAsContentArea
Answer:
BExplanation:
TheOutputfunction in AMPscript is used to include the result of interpreted code within a code block in the rendered content. This function ensures that the evaluated result of the code is included directly where theOutputfunction is called.
- Example:
ampscript
Copy code
%%[ SET @message = "Hello, World!" ]%% %%=Output(@message)=%%
Northern Trail Outfitters is using a mobile campaign to collect email addresses of interested subscribers. Using AMPScript'sAPI functions they will send a confirmation email when an email is texted into their short code.
Which two objects are required to successfully create a TriggeredSend object? Choose 2 answers
Options:
Subscribers
TriggeredSendDefinition
Attribute
Contact
Answer:
A, BExplanation:
To successfully create a TriggeredSend object using AMPscript's API functions to send a confirmation email when an email is texted into their shortcode, the following objects are required:
- Subscribers (A)- Represents the individual recipients who will receive the triggered email.
- TriggeredSendDefinition (B)- Defines the parameters of the triggered send, including the email to be sent and the associated attributes.
References:
- Salesforce Marketing Cloud Triggered Send
- Salesforce Marketing Cloud AMPscript API Functions
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.
Options:
Subscriber API
Email API
REST API
SOAP API
Answer:
C, DExplanation:
To trigger an email send in Marketing Cloud when a purchase is made on a website, you can use either the REST API or the SOAP API. Both APIs provide methods to send triggered emails.
- REST API: The REST API can be used to trigger emails by making a call to the/messaging/v1/messageDefinitionSends/{key}/sendendpoint.
- SOAP API: The SOAP API can also be used to trigger sends by utilizing theTriggeredSendobject.
A developer needs to configure an Email Send Logging Data Extension for a new business unit. Which option should be used?
Options:
Create and ensure it has the name "Send Log"
Salesforce Support should create the data extension
Create from a copy of an existing Send Log in another business unit
Create using the SendLog Data ExtensionTemplate
Answer:
DExplanation:
To configure an Email Send Logging Data Extension for a new business unit, the recommended approach is to use the SendLog Data Extension Template. This ensures that all necessary fields and configurations are correctly set up to log email send data.
- SendLog Data Extension Template: This template includes predefined fields and settings that are required for logging email sends. Using this template ensures that the data extension is set up correctly for tracking send logs.
How often should a developer request a new token when making multiple API calls in v1?
Options:
When changing routes/objects
Before every new call
Once an hour
Every 15 minutes
Answer:
CExplanation:
A developer should request a new tokenonce an hourwhen making multiple API calls in v1. Salesforce Marketing Cloud access tokens are typically valid for one hour, and refreshing them every hour ensures that the API calls are authenticated.
References:
- Salesforce Marketing Cloud API Token Management
- Salesforce Marketing Cloud Authentication
Which of the followingis a valid comment within an AMPscript code block? Choose 1.
Options:
--comment
// comment
- comment -->
/* comment */
Answer:
DExplanation:
In AMPscript, the valid syntax for comments is/* comment */. This allows you to add comments within your AMPscript code for documentation or clarification purposes.
Certification Aid wants to add new customers to a cross-channel welcome campaign when they register on the company website. Which API should be used for this? Choose 1.
Options:
Personalization Builder API
Event Notification API
Transactional Messaging API
Journey Builder API
Answer:
DExplanation:
To add new customers to a cross-channel welcome campaign when they register on the company website, theJourney Builder API (D)should be used. This API allows you to programmatically inject contacts into a journey, triggering personalized marketing interactions across multiple channels.
References:
- Salesforce Marketing Cloud Journey Builder API
- Cross-Channel Campaign Management
A developerwants to transform the date and time 'Data_Enrolled' from Daylight Savings time. How would the developer change the time to fall back one hour?
Options:
%%=DataAdd(Date_Enrolled,-1)=%%
%%=DateAdd(Date_Enrolled,-1 'H')=%%
%%=DateDiff(Date_Enrolled, 1,'H')=%%
%%=FormatDate(Date_Enrolled,-1,'HH','en-us')=%%
Answer:
BExplanation:
To transform the date and time 'Data_Enrolled' from Daylight Savings time and fall back one hour, the developer should use the following AMPscript function:
%%=DateAdd(Data_Enrolled, -1, 'H')=%%
This function subtracts one hour from the 'Data_Enrolled' date and time.
References:
- Salesforce Marketing Cloud AMPscript Date Functions
- Salesforce Marketing Cloud Documentation
In what order is AMPscript evaluated before an email is sent?
Options:
Subject Line, HTML Body, Text Body
HTML Body, Text Body, Subject Line
Text Body, HTML Body, Subject Line
HTML Body, Text Body, Text Body
Answer:
AExplanation:
AMPscript is evaluated in the following order before an email is sent:
- Subject Line: Evaluates AMPscript in the subject line first.
- HTML Body: Evaluates AMPscript within the HTML body of the email.
- Text Body: Evaluates AMPscript within the text body of the email.
This order ensures that any dynamic content or personalization logic is correctly applied in all parts of the email.
NTO uses an external CRM which only exports encrypted files. NTO's marketing manager team wants to use some of the subscriber data found in the CRM for future marketing sends. Which three actions should be included in an automation given these requirements? Choose 3
Options:
Import definition to the necessary data extension
File transfer activity to the Import directory for decryption
File drop to the SFTP Root directory
File drop to the SFTP Import directory
File transfer activity to the Safehouse for decryption
Answer:
A, D, EExplanation:
To automate the process of importing encrypted files from an external CRM, the following actions should be included:
- File drop to the SFTP Import directory: Place the encrypted files in the SFTP Import directory to trigger the automation.
- File transfer activity to the Safehouse for decryption: Move the encrypted files to the Safehouse for decryption, ensuring the data is securely handled.
- Import definition to the necessary data extension: After decryption, import the data into the relevant Data Extension for use in marketing sends.
From which business unit could the Contact Delete feature be used within an Enterprise 2.0 account?
Options:
Any business unit
The Parent account
Only in Agency accounts
The business unit where the contactwas introduced
Answer:
BExplanation:
In an Enterprise 2.0 account, the Contact Delete feature can only be used from the Parent account. This centralization ensures that contact deletion is managed consistently and in compliance with organizational policies.
References:
- Salesforce Marketing Cloud Contact Builder
- Contact Management in Enterprise 2.0
Northtrn Trail Outfitters has set up their North American business unit to unsubscribe at the business unit level.
Which dataview would they query to identify all subscribers who are unsubscribed from that Business Unit?
Options:
ListSubscribers
ENT._Subscribers
_BusinessUnitUnsubscribes
.Subscribers
Answer:
AExplanation:
To identify all subscribers who are unsubscribed from a specific Business Unit, the correct Data View to query isListSubscribers (A). This Data View contains information about the subscription status of subscribers at the list level, including unsubscribe status for specific Business Units.
References:
- Salesforce Marketing Cloud Data Views
- ListSubscribers Data View
Northern Trail Outfitters (NTO) wants to determine the best identifier for subscribers across all channels.
What should be recommended5
Options:
Contact Key
Mobile ID
Email Address
Subscriber ID
Answer:
AExplanation:
To determine the best identifier for subscribers across all channels,Contact Key (A)should be recommended. The Contact Key is a unique identifier that can be used consistently across all channels, ensuring a unified view of the subscriber's interactions and data.
References:
- Salesforce Marketing Cloud Contact Builder
- Contact Key Overview
A marketer is troubleshooting why an email send's tracking information is not available in Sales Cloud. The marketer confirms MarketingCloud Connect is installed properly. What should be confirmed next to continue troubleshooting the send's tracking information?
Options:
The audience was a Salesforce Data Extension containing the appropriate SFID
The email was sent to the All Subscribers list
The tracking destination folder was set to My Tracking
The audience was built using a Triggered Send Data Extension template
Answer:
AExplanation:
If the email send's tracking information is not available in Sales Cloud, the next step is to confirm that the audience was a Salesforce Data Extension containing the appropriate Salesforce ID (SFID).
- Salesforce Data Extension: Ensure that the data extension used for the send is a Salesforce Data Extension that includes the appropriate SFID for each subscriber. This is crucial for the integration to correctly match the tracking data with the Salesforce records.
A developer wants to retrieve a row of data from a data extension using the SOAP API. Which API Object should be used for this call?
Options:
DataExtensionField
DataExtension
DataExtensionObject
Row
Answer:
CExplanation:
To retrieve a row of data from a data extension using the SOAP API, the developer should use theDataExtensionObjectAPI Object. This object allows for operations such as retrieving, updating, and inserting rows within a data extension.
References:
- Salesforce Marketing Cloud SOAP API DataExtensionObject
- Salesforce Marketing Cloud SOAP API Reference
A developer wants to write a query to compile data originating from an HTML form so it can be exported in CSV format. However, the source data extension may containline breaks within the Comments field, which makes it difficult to read and sort the resulting CSV.
Which SQL functions could be used to change each line break to a single space?
Options:
REPLACE and CHAR
FORMAT and SPACE
LTRIM and RTRJM
REPLICATE and NCHAR
Answer:
AExplanation:
To remove line breaks within the Comments field and replace them with a single space, you can use theREPLACEfunction in combination with theCHARfunction. TheCHAR(13)andCHAR(10)functions represent carriage return and line feed characters, respectively.
- REPLACE Function: This function is used to replace occurrences of a specified string with another string.
- CHAR Function: This function returns the character based on the ASCII code provided.
- Example:
SELECTREPLACE(REPLACE(Comments,CHAR(13),' '),CHAR(10),' ')ASCommentsFROMYourDataExtension
A developer created a landing page in CloudPages which return unique content when subscriber data is located on a related data extension. The developer does not know if all subscribers have rows in the related data extension, and want default content to render if no subscriber data is found on the related data extension. Which best practice should the developer follow to control the unique and default content?
Options:
Use the RowCount function and an IF statement
Use the Lookup, Row and Field functions
Use the LookupOrderRows and Row functions
Use the DataExtensionRowCount function
Answer:
AExplanation:
To control the rendering of unique and default content based on the presence of subscriber data in a related data extension, the best practice is to use theRowCountfunction and anIFstatement:
%%[ VAR @rowCount SET @rowCount = RowCount(LookupRows("RelatedDataExtension", "SubscriberKey", _subscriberKey)) IF @rowCount > 0 THEN /* Render unique content */ ELSE /* Render default content */ ENDIF ]%%
This approach checks if there are any rows in the related data extension for the subscriber and conditionally renders the appropriate content.
References:
- AMPscript Guide
- Salesforce Marketing Cloud Documentation
Certification Aid created a journey and event definition in Marketing Cloud. Which of the following resources are relevant to inject Contacts into the journey using the REST API? Choose 2.
Options:
POST/eventDefinitions/key:{key} or /eventDefinitions/{id}
POST /interaction/v1/events
POST /interaction/v1/interactions/contactentry
GET /eventDefinitions/key:{key}
Answer:
A, BExplanation:
To inject contacts into a journey using the REST API, the correct endpoints involve the event definitions and events.
- POST /eventDefinitions/key:{key} or /eventDefinitions/{id}: This endpoint allows you to interact with event definitions by key or ID, which is essential for managing journey events.
- POST /interaction/v1/events: This endpoint is used to inject events into the journey, thus adding contacts to the journey based on the defined event.
A developer needs to process a payload from an external system in a CloudPage.
What Marketing Cloud Server-Side JavaScript Platform function should be used for converting a string payload in JSON format to a JavaScript object?
Options:
Base64Decode
ParseJSON
CreateObject
Stringify
Answer:
BExplanation:
To convert a string payload in JSON format to a JavaScript object on a CloudPage, the developer should use theParseJSON (B)function in Marketing Cloud Server-Side JavaScript (SSJS). This function parses a JSON string and returns a corresponding JavaScript object.
Example:
varjsonString ='{"key1":"value1", "key2":"value2"}';varjsonObject =Platform.Function.ParseJSON(jsonString);
References:
- Salesforce Marketing Cloud SSJS Guide
- SSJS Platform.Function.ParseJSON
A developer wants to trigger an SMS message to a subscriber using a form published on CloudPages. How should the SMS message be triggered once the subscriber submits the form?
Options:
Outbound SMS template and Automation Send Method
InsertData AMPscript function to add the subscriber to a MobileConnect list
CreateSMSConservation AMPscript function
requestToken and messageContact REST API objects
Answer:
DExplanation:
To trigger an SMS message to a subscriber using a form published on CloudPages, the developer should use therequestToken and messageContact REST API objects (D). These objects can be used to authenticate and send the SMS message programmatically when the form is submitted.
References:
- Salesforce Marketing Cloud MobileConnect API
- Salesforce Marketing Cloud REST API
A marketer from Cloud Kicks wants to make sure no email from their welcome journey getssent to their competitor at Rainbow Run.
Which two best practices should the developer use when setting up the Send Email Activity in the welcome journey?
Choose 2 answers
Options:
Create a Filter Activity In the journey that removes the Rainbow Run domain
Create a Suppression List with all possible email addresses from Rainbow Run
Create a data extension with the Rainbow Run domain for use with a Domain Exclusion
Create an Exclusion Script with the Rainbow Run domain for use In the activity
Answer:
B, DExplanation:
To ensure that emails are not sent to a competitor, the best practices are:
- Suppression List: Create a Suppression List that includes all possible email addresses from Rainbow Run. This list will prevent these email addresses from receiving emails.
- Exclusion Script: Create an Exclusion Script that checks the domain of the email address and excludes addresses from Rainbow Run.
An email requires custom AMPscript to append the subscriber's zip code to a link in theemail. A field name zipcode already exist in the sending data extension. Its important Marketing Cloud tracks subscribers who click on the link. Which two AMPscript functions should be used in the setup? Choose
Options:
2Lookup
Contact
RedirectTo
HTTPGet
Answer:
A, CExplanation:
To append the subscriber's zip code to a link and ensure that the clicks are tracked, you should use theLookupfunction to retrieve the zip code from the data extension and theRedirectTofunction to create the link with tracking enabled.
- Lookup: Retrieves the zip code from the data extension.
- RedirectTo: Ensures that the link with the appended zip code is tracked.
- Example:
ampscript
Copy code
%%[ SET @zipcode = Lookup("DataExtensionName", "zipcode", "SubscriberKey", _subscriberkey) SET @link = Concat("http://example.com?zip=", @zipcode) ]%% Click Here
A developer wants to populate a data extension with information about all emails deployed in the last seven days. The data extension needsto contain JobID, EventDate, and the counts of how many emails were sent with each JobID.
Which data view is required to gather this information?
Options:
Job
Sent
Journey
Subscribers
Answer:
BExplanation:
TheSentdata view contains records of all emails that have been sent, including details such as JobID, EventDate, and other relevant information. To gather the required information about emails deployed in the last seven days, theSentdata view should be used.
- Query Example:
SELECTJobID, EventDate,COUNT(*)asSentCountFROM_SentWHEREEventDate>=DATEADD(day,-7, GETDATE())GROUPBYJobID, EventDate
Certification Aid wants to import an encrypted CSV file from the Marketing Cloud Enhanced FTP server. Which two File Transfer activities are needed to achieve this? Choose 2.
Options:
To decryptthe import file on the Enhanced FTP server.
To move the import file from the Safehouse to Marketing Cloud.
To decrypt the import file on the Safehouse.
To move the import file from the Enhanced FTP server to the Safehouse
Answer:
C, DExplanation:
When importing an encrypted file from the Enhanced FTP server, you need to move the file to the Safehouse first, and then decrypt it within the Safehouse.
- Move to Safehouse: Use a File Transfer activity to move the encrypted file from the Enhanced FTP server to the Safehouse.
- Decrypt in Safehouse: Use another File Transfer activity to decrypt the file within the Safehouse.
NTO is reconsidering the requirement to have English, Spanish and French versions of their email campaigns. They request a developer to create a query which aggregates clicks grouped by language of the recipient. Language is stored in a Profile Attribute. Which two Data Views would be included in the query? Choose 2 answer
Options:
_Subscribers
_Subscribers
_AllSubscribers
_Click
Answer:
A, DExplanation:
To create a query that aggregates clicks grouped by the language of the recipient, the developer needs to use Data Views that store subscriber and click information. The required Data Views are:
- _Subscribers (A)- This Data View contains information about subscribers, including their profile attributes such as language.
- _Click (D)- This Data View contains information about click events for email messages, which can be used to aggregate clicks.
The query would join these Data Views on a common identifier (e.g., SubscriberKey) and group the results by the language attribute.
References:
- Salesforce Marketing Cloud Data Views
- SQL Reference Guide
Contact Builder can be used to create a relational model of an organization's data within Marketing Cloud. Which three factors should be taken into consideration when preparing data to be used in Contact Builder? Choose 3 answer
Options:
Assigningdata relationships and primary keys across all channels
Verifying data address marketing needs
Verifying all data extensions have a sendable value
Verifying each data extension has the required Email Address field populated
Normalizing data toreduce redundancy
Answer:
A, B, EExplanation:
When preparing data to be used in Contact Builder, the following factors should be taken into consideration:
- Assigning data relationships and primary keys across all channels (A)- This ensures that data is linked properly and can be utilized across different marketing channels.
- Verifying data address marketing needs (B)- Ensuring that the data aligns with the marketing goals and requirements.
- Normalizing data to reduce redundancy (E)- Organizing the data to eliminate duplicate entries and improve efficiency.
References:
- Salesforce Marketing Cloud Documentation on Contact Builder
- Data Preparation Best Practices
=========================
Northern Trail Outfitters wants to trigger follow upmessages after a subscriber opens an email.
What process would they use to get real-time engagement data?
Options:
Query Activity
Client-Side JavaScript
WSproxy Service
Event Notification Service
Answer:
DExplanation:
The Event Notification Service (ENS) in Salesforce Marketing Cloud provides real-time event notifications, such as email opens and clicks. Using ENS, Northern Trail Outfitters can trigger follow-up messages based on real-time engagement data.
Which of the following statements are correct concerning Populations in Contact Builder? Choose 2.
Options:
Populations are used to create largesubgroups Contacts.
Populations need to be added to an Attribute Group.
No more than three Populations should be created.
Populations should be used for segmentation
Answer:
B, CExplanation:
Regarding Populations in Contact Builder:
- Populations need to be added to an Attribute Group (B)- This is necessary to define the relationship between the population and the associated data extensions and attributes.
- No more than three Populations should be created (C)- Creating more than three populations can lead to performance issues and complexity in managing contacts.
References:
- Salesforce Marketing Cloud Contact Builder
- Populations in Contact Builder
A sendable data extension with a text field named 'Balance' contains the value S6.96 fora particular record. The following AMPscript statement is included in an email:
IF (Balance > 6.00) THEN
SET @Result = 'Balance is more than $6.00
ENDIF
Why would this IF statement yield unintended results?
Options:
The operands are not the same data type.
The comparison should use the < operator.
Balance is a protected keyword.
Double quotes should be used instead of single quotes.
Answer:
AExplanation:
TheBalancefield is a text field and contains the value "S6.96", which is a string. TheIFstatement is comparing a string with a numeric value (6.00). Since the operands are not of the same data type, this can yield unintended results. To correctly compare the balance, the string should be converted to a numeric value.
- Example:
%%[ SET @Balance = "6.96" /* Simulating text field value */ IF (Value(@Balance) > 6.00) THEN SET @Result = 'Balance is more than $6.00' ENDIF ]%%
A developer wants to retrieve all recordsin the OrderDetails data extension which are associated with a particular customer.
Which two AMPscript functions would return a suitable rowset?
Choose 2 answers
Options:
LookupRows
LookupOrderedRows
Row
Lookup
Answer:
A, BExplanation:
To retrieve multiple records associated with a particular customer from theOrderDetailsdata extension, theLookupRowsandLookupOrderedRowsfunctions are suitable. These functions return a rowset containing the records that match the specified criteria.
- LookupRows: Retrieves a rowset of records based on specified criteria.
ampscript
Copy code
SET @rows = LookupRows('OrderDetails', 'CustomerID', @customerID)
- LookupOrderedRows: Retrieves a rowset of records based on specified criteria and allows for sorting.
SET @rows = LookupOrderedRows('OrderDetails', 0, 'OrderDate DESC', 'CustomerID', @customerID)
A developer is leveraging the SOAP API to dynamically display Profile and PreferenceAttributes in a custom profile center. Which method could be used to support the dynamic functionality?
Options:
Describe
Extract
Perform
Configure
Answer:
AExplanation:
TheDescribemethod in the SOAP API provides metadata about the objects available in the system, including Profile and Preference Attributes. This method can be used to dynamically retrieve and display these attributes in a custom profile center.
- Describe Method: This method returns the schema of the objects, including fields and their properties, which can be used to dynamically generate forms and interfaces.
A developer needs to write AMPscript to ensure the expiration date on a coupon is the last day of the month. What would produce the desired result?
Options:
Find the first day of next month and subtract one day
Use the date format stringfor last day of month within FormatDate
Add one month using DateAdd to now
Add 30 days using DateAdd to now
Answer:
AExplanation:
To ensure the expiration date on a coupon is the last day of the month, the developer shouldfind the first day of the next month and subtract one day (A). This approach guarantees that the expiration date is set to the last day of the current month.
Example AMPscript:
SET @firstDayNextMonth = DateAdd(DatePart(Now(), "MM"), 1, "M") SET @lastDayCurrentMonth = DateAdd(@firstDayNextMonth, -1, "D")
References:
- Salesforce Marketing Cloud AMPscript Guide
- Salesforce Marketing Cloud Documentation
A developer is building an integration with theMarketing Cloud API. Which configuration should be used for the API integration component in the associated Installed Package?
Options:
Select the minimum required scope for the integration
Select all available options to enable package reuse for the futureintegrations
Select the 'Require Secret for Web Flor' option
Select the 'Admin-approved users are pre-authorized' option under Permitted Users.
Answer:
AExplanation:
When configuring an API integration component in an Installed Package, it is best practice to select the minimum required scope for the integration. This approach ensures that the integration has only the necessary permissions, enhancing security by limiting access to only what is required.
- Minimum Required Scope: Selecting only the scopes that are necessary for the integration helps maintain a secure and controlled environment.
What parameter should a developer include to ensure the MobileConnect Contactis tied to the Email Contact when making a QueueMO call for an existing email subscriber?
Options:
mobilenumbers
phonenumbers
emailaddress
subscribers
Answer:
CExplanation:
When making a QueueMO call for an existing email subscriber in MobileConnect, the developer should include theemailaddress (C)parameter. This ensures that the MobileConnect Contact is correctly tied to the corresponding Email Contact.
References:
- Salesforce Marketing Cloud MobileConnect API
- AMPscript and MobileConnect
A developer wants to create a JavaScript Web Token using a key from Key Management.
What function should the developer use?
Options:
ContentBlockByKey()
GetJWTByKeyName()
RegExMatch()
GeUWT()
Answer:
BExplanation:
To create a JavaScript Web Token (JWT) using a key from Key Management in Salesforce Marketing Cloud, theGetJWTByKeyNamefunction should be used. This function generates a JWT using the specified key from Key Management.
A developer started a Contact Delete process that is now complete.
In which twoplaces would the Contact Delete process remove data? Choose 2 answers
Options:
Non-Sendable Data Extensions
Import Files on the Enhanced SFTP
Sendable Data Extensions
Mobile Lists
Answer:
C, DExplanation:
The Contact Delete process in Marketing Cloud removes contact data from various locations to ensure complete deletion. This includes both sendable data extensions and mobile lists.
- Sendable Data Extensions: The Contact Delete process will remove contact data from sendable data extensions, ensuring that the contact is no longer present in any data used for sending.
- Mobile Lists: Contact data will also be removed from mobile lists, ensuring that the contact is fully deleted across all communication channels.
A developer wants to create an HTML table where rows will alternate background colors between white and red.The developer does not know how many rows will be sent within each email, and decides to use a loop and assigns the RowCount() of the table rows to the variable @numerator. What is the recommended AMPscript logic to determine the background color of each table row within the loop?
Options:
%%[IF DIVIDE(@numerator,2) =1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF]%%
%%[IF SUBSTRING(DIVIDE(@numerator,2),1) = 1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF]%%
%%[IF @numerator/2 = 1 THENSET @color = 'Red' ELSE SET @color = 'White' ENDIF]%%
%%[IF MOD(@numerator,2) = 1 THEN SET @color = 'Red' ELSE SET @color = 'White' ENDIF]%%
Answer:
DExplanation:
To alternate the background color of rows in an HTML table using AMPscript, theMODfunction can be used to determine if the row number is odd or even.
- MOD Function: TheMODfunction returns the remainder of a division operation. By usingMOD(@numerator, 2), the function returns 1 for odd rows and 0 for even rows, allowing the background color to be set accordingly.
%%[ SET @numerator = 1 FOR @i = 1 TO RowCount(@rows) DO SET @color = IF MOD(@numerator, 2) == 1 THEN 'Red' ELSE 'White' ENDIF SET @numerator = ADD(@numerator, 1) ]%%
Quick Links
Why Us
Unlimited Packages
Site Secure
TESTED 19 Jan 2026
We Accept
DumpsBuddy. All Rights Reserved
Copyright © 2014-2026 DumpsBuddy. All Rights Reserved