View all detail and faqs for the Marketing-Cloud-Developer exam
Which two ways would a developer write an Exclusion Script to exclude sending an email at send time when comparing against a Boolean field in the Sendable Data Extension?
Choose 2 answers
%%SendBoo1%%
%%SendBoo1 < 1
%%=Lookup ('Excluded' , SendBoo1'. Subscribekey'. _Subscribekey) =%%
%%=Lookup ('Excluded’ , SendBoo1'. _Subscribekey'. _Subscribekey) =%%
To write an Exclusion Script to exclude sending an email at send time when comparing against a Boolean field in the Sendable Data Extension, the developer can use:
%%SendBoo1 < 1 (B) - This script directly checks if the Boolean field SendBoo1 is less than 1, effectively excluding records where the field is false.
%%=Lookup('Excluded', 'SendBoo1', 'Subscribekey', _Subscribekey) == false (C) - This script performs a lookup to check the value of SendBoo1 in the 'Excluded' data extension, comparing it against the Subscribekey. If the value is false, the email is excluded.
References:
AMPscript Guide
Salesforce Marketing Cloud Documentation
A developer is building a landing page in Marketing Cloud and an email with a Call-To page will display personal information about the subscriber.
In which way could the developer create the CTA link?
Use the AMPscript CloudPagesURLfunction.
Append EmailAddress to the URL as an encoded parameter.
Append SubscnberKey to the URL as an encoded parameter.
To create a Call-To-Action (CTA) link in an email that will display personal information about the subscriber on a landing page, the developer should use the AMPscript CloudPagesURL function (A). This function generates a URL for a CloudPage and can include parameters such as SubscriberKey or EmailAddress, which will be passed to the landing page securely.
Example usage:
rectTo(@url)=%%">View Your Information</a>
This ensures that the SubscriberKey is securely passed to the CloudPage without exposing it directly in the URL.
References:
Salesforce Marketing Cloud AMPscript Guide: CloudPagesURL
Salesforce Marketing Cloud Documentation
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?
Before the <title> tag
Before the
Before the
tagBefore the
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 company needs to retrieve a large number of rows from a data extension via the API.
Which two solutions would optimize the performance?
Choose 2 answers
Use the REST API instead of the SOAP API.
Use the AMPscript API functions on a CloudPage.
Use the ContinueRequest feature.
Use a SimpleFilterPart to retrieve small sets of relevant data.
To optimize the performance when retrieving a large number of rows from a data extension via the API, the following solutions can be used:
Use the REST API instead of the SOAP API (A) - The REST API generally offers better performance for data retrieval operations compared to the SOAP API.
Use the ContinueRequest feature (C) - This feature allows for the pagination of results, enabling the retrieval of large datasets in manageable chunks.
References:
Salesforce Marketing Cloud REST API
Salesforce Marketing Cloud SOAP API ContinueRequest
When do synchronous REST API calls to Marketing Cloudtime out? Choose 2.
240 seconds for tracking and data retrieve operations.
300 seconds for tracking and data retrieve operations.
120 seconds for non-tracking operations.
240 seconds for non-tracking operations.
Synchronous REST API calls to Marketing Cloud have different timeout limits based on the type of operation:
300 seconds for tracking and data retrieve operations: These operations involve more extensive data processing, hence the higher timeout limit.
120 seconds for non-tracking operations: Standard non-tracking API calls have a shorter timeout limit.
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
Wrapping of AMPscript inSSJS code
Direct modification of the DOM
External Libraries to extend functionality
Include Try/Catch blocks within the code
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
Northtrn Trail Outfitters (NTO) wants to import a data file. It will be uploaded at regular intervals to their Enhanced FTP Account where an automation will import the file Into a data extension. NTO requires the file to be encrypted.
Which two file encryption options are supported when importing data files to Marketing Cloud?
Choose 2 answers
PGP encryption
RSA encryption
GPG encryption
AES encryption
When importing data files to Marketing Cloud, the supported file encryption options are:
PGP encryption (A) - Pretty Good Privacy (PGP) encryption is supported for securing files.
AES encryption (D) - Advanced Encryption Standard (AES) encryption is also supported for file security.
References:
Salesforce Marketing Cloud File Import Activity
File Transfer and Encryption Options
NTO is using a mobile campaign to collect an email addresses of interested subscribers. Using AMPscript's API functions they will send a confirmation email when an email is texted into their short code. Which two objects are required tosuccessfully create a TriggerSend object? Choose 2
Attribute
TriggerSendDefinition
Contact
Subscribers
To successfully create a TriggerSend object using AMPscript's API functions, the following objects are required:
TriggerSendDefinition (B) - Defines the parameters of the triggered send, including the email to be sent and the associated attributes.
Subscribers (D) - Represents the individual recipients who will receive the email.
These objects ensure that the correct email is sent to the specified subscribers when the TriggerSend is executed.
References:
Salesforce Marketing Cloud API
AMPscript API Functions
A company need to retrieve a large number of rows from a DE via the API. Which two solutions would optimize the performance? Choose2
Use a SimpleFilterPart to retrieve small sets of relevant data.
Use AMPscript API functions on a CloudPage
Use the ContinueRequest feature
Use the REST API instead of the SOAP API
To optimize the performance when retrieving a large number of rows from a Data Extension via the API:
Use a SimpleFilterPart to retrieve small sets of relevant data (A) - This approach helps in fetching only the necessary data by applying filters, thus reducing the amount of data transferred and processed.
Use the ContinueRequest feature (C) - This feature in the SOAP API allows for pagination of results, making it possible to handle large sets of data in manageable chunks.
References:
Salesforce Marketing Cloud API
Salesforce Marketing Cloud ContinueRequest
A developer wants to include an AMPscript if/else statement in an email to satisfy the condition "if the subscriber's tier is not premier then display heading encouraging them to upgrade." The tier value has already been set as variable named @level. How should the developer write this AMPscript conditional statement?
%%[IF @level == 'premier' THEN SET @message = You are premier member
" ENDIF IF @level == 'premier' THEN SET @message = 'Upgrade to premier now
'" ENDIF]%% %%=v(message)=%%%%=IF(@level IS 'premier', Upgrade to premier now! You are a premier member%%=IIF(@level = 'premier', 'You are a premier member!', Upgrade to premier now!
%%=IIF @level == premier, You are a premier member" Upgrade to premier now!
%%IF(@level == 'premier') THEN 'Upgrade to premier now!' ELSE 'You are a premier member' ENDIF]%%
The IIF function in AMPscript is a shorthand way to perform conditional logic within an inline expression. It evaluates a condition and returns one of two values based on whether the condition is true or false.
AMPscript IIF Example:
%%=IIF(@level = 'premier', 'You are a premier member!', 'Upgrade to premier now!')=%%
