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?
Correct answer:
A. SubscriberKey and JobID
Explanation:
When developing a custom preference center in Salesforce Marketing Cloud Engagement, developers must ensure unsubscribe events are recorded accurately. The LogUnsubEvent API method allows developers to log unsubscribe information programmatically from a CloudPage. To associate an unsubscribe request with the correct subscriber and email send, the required subscriber identifier and job identifier must be captured. The SubscriberKey identifies the subscriber, while JobID identifies the specific email send associated with the unsubscribe event.
Correct Option:
A. SubscriberKey and JobID
This is the correct answer because SubscriberKey and JobID provide the essential information needed to associate an unsubscribe event with the correct subscriber and email send. SubscriberKey uniquely identifies the subscriber within the Marketing Cloud account, while JobID identifies the specific email job that generated the unsubscribe request. When passed to the LogUnsubEvent Execute Call, these parameters help Marketing Cloud record the unsubscribe against the appropriate subscriber and send context, ensuring accurate unsubscribe tracking and reporting.
Incorrect Option:
B. SubscriberID and BatchID
SubscriberID and BatchID are not the correct parameter combination for this scenario. SubscriberID represents an internal subscriber identifier, while BatchID identifies a particular batch within an email send. Although these values can provide additional context in certain Marketing Cloud operations, they do not replace the SubscriberKey and JobID combination expected for identifying the subscriber and associated email job. Using these parameters alone may not provide the required subscriber and send identification for the intended unsubscribe logging process.
C. EmailAddress and JobID
EmailAddress and JobID are insufficient as the expected parameter combination for accurately logging unsubscribe events through the LogUnsubEvent Execute Call. Although JobID identifies the email send, EmailAddress is not the preferred unique subscriber identifier in Marketing Cloud Engagement. Email addresses can change or may not uniquely represent a subscriber across different business scenarios. SubscriberKey provides a more reliable subscriber identification method, allowing unsubscribe events to be associated with the correct contact independently of email address changes.
D. SubscriberKey and BatchID
SubscriberKey correctly identifies the subscriber, but BatchID does not identify the overall email job. BatchID represents a specific batch associated with a send, whereas JobID identifies the actual email send operation. The LogUnsubEvent method uses JobID to associate unsubscribe activity with the appropriate email job. Although BatchID can provide additional information when processing batched sends, it does not replace JobID as the required send identifier in this question. Therefore, this combination is not the expected answer.
Reference:
Salesforce documentation, LogUnsubEvent Execute Call, explains how to programmatically record unsubscribe events using subscriber and email job information. It describes the relevant parameters, including SubscriberKey, JobID, and additional send context for accurate unsubscribe processing.
A developer needs to create a fully-branded CloudPagewhich includes images hosted in Content Builder. The developer wants to secure the page and its elements using the SSL protocol.
What is the minimum number of SSL certificates required?
Correct answer:
D. One
Explanation:
Salesforce Marketing Cloud Engagement supports SSL certificates to secure CloudPages and their associated content, including images hosted in Content Builder. SSL encrypts communication between the browser and Marketing Cloud, protecting information transmitted through the page and its elements. For a fully branded CloudPage, the minimum certificate requirement depends on the domains serving the page and its images. In this exam scenario, one SSL certificate is considered sufficient to secure the branded CloudPage and its elements.
Correct Option:
D. One
One SSL certificate is the expected answer for this question. Marketing Cloud Engagement allows SSL certificates to secure branded web content, including CloudPages and Content Builder assets. When the page and its elements are configured under the appropriate secured domain arrangement, HTTPS protects the content during transmission. Salesforce also provides managed SSL certificate options, reducing the administrative effort required for certificate installation and renewal. Therefore, one certificate is the minimum expected answer in this exam scenario.
Incorrect Option:
A. Three
Three SSL certificates are not required for the described scenario. SSL certificates are associated with the domains or subdomains hosting Marketing Cloud content, rather than being required individually for every page element. A CloudPage containing multiple images does not automatically require a separate certificate for each image. Therefore, purchasing three certificates would introduce unnecessary complexity for the stated minimum requirement. The appropriate certificate configuration depends on the domains serving the page and its associated content.
B. Two
Two SSL certificates are not the expected answer according to the supplied exam scenario. Although CloudPages and Content Builder images can use different subdomains, requiring separate SSL coverage in certain configurations, the question asks for the minimum number under its assumed branding arrangement. The expected answer is one certificate. Developers should understand that actual certificate requirements depend on the number of domains and subdomains being secured, rather than simply counting the different content types displayed on a page.
C. None
This option is incorrect because SSL certificates are required to secure custom CloudPages domains and provide HTTPS protection for hosted content. Without appropriate SSL coverage, the developer cannot guarantee secure HTTPS access to the branded page and its associated assets. Salesforce Marketing Cloud supports Salesforce-provided and customer-supplied certificates for eligible domains. Therefore, selecting none would fail to satisfy the requirement to secure the CloudPage and its elements using SSL.
Reference:
Salesforce documentation, SSL Certificates for Custom Domain Security, explains how SSL certificates secure CloudPages, landing pages, and Content Builder assets. It also describes certificate requirements for individual subdomains and Salesforce-provided certificate management.
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'?
Correct answer:
B. 1
Explanation:
The AMPscript first retrieves the value of the x request parameter and assigns it to @point. Since x = 'Tacos', the value of @point is five characters long. The script initializes @value to 5 and then evaluates the IF conditions sequentially. The first condition, Length(@point) > 1, is true because five is greater than one. Therefore, @value becomes 1, and the remaining ELSEIF conditions are skipped.
Correct Option:
B. 1
This is correct because the Length() function returns the number of characters in a string. The word Tacos contains five characters, so Length(@point) returns 5. The first condition checks whether the length is greater than 1, which evaluates to TRUE. AMPscript executes the statements inside that IF block and assigns 1 to @value. Since the IF condition has already matched, none of the subsequent ELSEIF conditions are evaluated. The final value remains 1.
Incorrect Option:
A. 3
This option is incorrect because the script does not continue evaluating every ELSEIF condition after the first matching condition. Although the length of Tacos is greater than 3, the first condition (Length(@point) > 1) is already TRUE. AMPscript executes that branch and skips all remaining ELSEIF branches. Therefore, the statement assigning 3 is never executed. The value of @value remains 1 rather than becoming 3.
C. 5
This option is incorrect because 5 is only the initial value assigned to @value. The script sets @value = 5 before evaluating the IF statement. However, because Length('Tacos') equals 5, the first condition evaluates to TRUE and changes @value to 1. The initial value is therefore overwritten. The script does not retain 5 after the first IF condition executes.
D. 4
This option is incorrect because the ELSEIF condition that assigns 4 is never reached. Although Length('Tacos') > 4 is TRUE, AMPscript evaluates the IF/ELSEIF structure from top to bottom. The first condition, Length(@point) > 1, already evaluates to TRUE, so execution stops evaluating subsequent branches. Consequently, the assignment SET @value = 4 is skipped.
Reference:
Salesforce documentation, AMPscript IF and ELSEIF Statements and Length Function, explains conditional execution and string-length evaluation. These concepts establish why the first true condition determines the assigned value.
That's the last free question in CloudPages and Web Development
You've seen the free 25% of this topic (3 of 14 questions). Get complete access for every question, explanation and the timed exam simulator.
Our timed 2026 Salesforce Marketing Cloud Engagement Developer practice test mirrors the format, number of questions and time limit of the official exam.
The #1 challenge isn't just knowing the material, it's managing the clock. The simulation builds your speed and stamina, so you walk in knowing exactly what to expect.