Salesforce certification · Exam Salesforce-Marketing-Cloud-Engagement-Developer

Salesforce-Marketing-Cloud-Engagement-Developer Mock Exam Page 6

Salesforce Marketing Cloud Engagement Developer

Free Salesforce-Marketing-Cloud-Engagement-Developer mock exam questions 51–58, each with the answer and an explanation.

20 questions · 33 minutes · free, no sign-up

Free Salesforce-Marketing-Cloud-Engagement-Developer questions

51–58 of 58 free
Question 51 Choose 1

A developer wants to delete a batch of subscribers from Marketing Cloud. The developer performs a Contact Delete on a batch of records in a data extension in Contact Builder. Which scenario would cause subscriber records to remain in the data extension?

Show answerHide answer

Correct answer: B Non-sendable data extension with SubscriberKey field

Explanation

Explanation:
In Salesforce Marketing Cloud Engagement, Contact Delete removes contact information from All Subscribers and associated sendable data extensions. However, it does not automatically remove records from non-sendable data extensions unless those data extensions are included in a population through Data Designer. Therefore, a non-sendable data extension containing a SubscriberKey can retain subscriber records even after the Contact Delete process completes. Developers must separately manage deletion from non-sendable data extensions to ensure complete removal of contact information.

Correct Option:

B. Non-sendable data extension with SubscriberKey field
A non-sendable data extension does not have a direct send relationship with the Subscribers data model. Consequently, Contact Delete does not automatically remove its records. Salesforce requires administrators or developers to manage deletion from these data extensions separately, unless they are included in a population through Data Designer. This distinction is important when handling privacy-related deletion requests because removing a contact from All Contacts does not necessarily remove every copy of their information stored in Marketing Cloud.

Incorrect Option:

A. Sendable data extension with SubscriberKey and EmailAddress fields
This option is incorrect because Contact Delete processes sendable data extensions and removes the associated contact information. A sendable data extension configured with SubscriberKey and EmailAddress fields can establish a relationship with the Subscribers data model. When a contact is deleted, Marketing Cloud removes the corresponding contact information from sendable data extensions after the applicable suppression period. Therefore, this configuration does not represent the scenario in which records remain because of the data extension's non-sendable status.

C. Contact Delete process does not delete rows from data extensions
This option is incorrect because Contact Delete does remove contact information from sendable data extensions. Salesforce Marketing Cloud scans sendable data extensions during the deletion process and removes records associated with the deleted contacts. However, non-sendable data extensions are generally excluded unless included in a population through Data Designer. Therefore, claiming that Contact Delete never deletes data extension rows is inaccurate. The deletion behavior depends on the data extension configuration and its relationship with the Contact model.

D. Sendable data extension with SubscriberKey field
This option is incorrect because a sendable data extension can use SubscriberKey as its subscriber relationship field. The presence of SubscriberKey establishes the connection required to associate records with subscriber identities. When Contact Delete processes the associated contact, its information is removed from sendable data extensions. The important distinction is whether the data extension is sendable or non-sendable, rather than simply whether it contains a SubscriberKey field. Therefore, this option does not describe the expected exception.

Reference:
Salesforce explains that Contact Delete removes contact information from lists and sendable data extensions after the suppression period. Non-sendable data extensions not included in a population through Data Designer are excluded and require separate deletion management.
Question 52 Choose 2

Which two AMPscript HTTP functions allow an OAuth token to be passed in a header?

Choose 2 answers

Show answerHide answer

Correct answer: C, D HTTPGet2HTTPPost2

Explanation

Explanation:
AMPscript provides HTTP functions that allow Marketing Cloud Engagement to communicate with external web services and APIs. When integrating with OAuth-secured endpoints, developers often need to pass an access token through the HTTP Authorization header. The standard HTTPGet and HTTPPost functions do not provide the same custom-header functionality as their extended versions. HTTPGet2 and HTTPPost2 support additional header name-value parameters, allowing developers to include OAuth bearer tokens when making GET and POST requests.

Correct Option:

C. HTTPGet2
HTTPGet2 is an AMPscript function used to retrieve information from an external URL through an HTTP GET request. It supports additional request headers through header name-value parameters. This capability allows developers to include an OAuth access token in the Authorization header, typically using the Bearer authentication scheme. For example, developers can pass Authorization as the header name and Bearer access_token as its value. This makes HTTPGet2 suitable for retrieving protected resources from external APIs that require OAuth authentication.

D. HTTPPost2
HTTPPost2 is an AMPscript function used to send data to an external URL through an HTTP POST request. It supports additional HTTP headers through optional header name-value parameters. Developers can use this functionality to pass OAuth bearer tokens in the Authorization header when submitting data to secured external APIs. In addition to custom headers, HTTPPost2 supports response handling and error management. This makes it useful for integrations requiring authenticated POST requests, particularly when exchanging JSON payloads with external services.

Incorrect Option:

A. HTTPPost
HTTPPost is an AMPscript function that sends data to an external URL using the HTTP POST method. However, the standard HTTPPost function does not provide the same straightforward optional header name-value parameter functionality associated with HTTPPost2. Consequently, it is not the expected answer when a question specifically asks which AMPscript functions support passing OAuth tokens through additional request headers. Developers should use HTTPPost2 when custom headers, such as an OAuth Authorization header, are required for external API communication.

B. HTTPGet
HTTPGet retrieves information from an external URL using the HTTP GET method. Although it is useful for retrieving external content, its standard AMPscript implementation does not provide the additional custom-header parameters available in HTTPGet2. Therefore, developers cannot use it in the same way to pass an OAuth bearer token through a custom Authorization header. When accessing OAuth-protected resources that require custom HTTP headers, HTTPGet2 is the appropriate alternative because it supports additional header name-value parameters.

Reference:
Salesforce documents HTTPGet2 and HTTPPost2 as functions supporting additional HTTP request headers through header name-value parameters. These parameters allow developers to provide Authorization headers containing OAuth bearer tokens when communicating with external services.
Question 53 Choose 1

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?

Show answerHide answer

Correct answer: D Event Notification Service

Explanation

Explanation:
Northern Trail Outfitters wants to trigger follow-up messages immediately after subscribers open an email. This requires access to real-time engagement events rather than periodically collected tracking information. Salesforce Marketing Cloud Engagement provides the Event Notification Service (ENS), which sends event notifications to an external endpoint when specific subscriber activities occur. By configuring ENS for email engagement events, organizations can receive open notifications and use them to initiate automated follow-up processes, enabling timely and event-driven customer communication.

Correct Option:

D. Event Notification Service
Event Notification Service (ENS) is a Salesforce Marketing Cloud capability that provides real-time notifications about subscriber engagement and other platform events. It can notify an external endpoint when a subscriber opens an email, allowing an organization to process the event and initiate follow-up actions. Northern Trail Outfitters can integrate ENS with its external applications or services to respond immediately to subscriber activity. This approach supports event-driven integrations and avoids relying on scheduled queries or periodic tracking-data extraction.

Incorrect Option:

A. Query Activity
Query Activity uses SQL to retrieve, filter, and manipulate information stored in Marketing Cloud data extensions and data views. Although it can access email tracking information, it generally operates through scheduled automation or an explicitly executed query rather than delivering immediate notifications when an email is opened. Therefore, Query Activity is not the appropriate solution for real-time engagement notifications. It is more suitable for reporting, segmentation, audience preparation, and analyzing subscriber engagement information collected within Marketing Cloud.

B. Client-Side JavaScript
Client-Side JavaScript executes within a user's browser and is commonly used to create interactive website experiences, manipulate page elements, or track website behavior. However, it is not the appropriate mechanism for receiving server-side email-open engagement notifications from Marketing Cloud. Email clients also restrict JavaScript execution for security reasons, making it unsuitable for reliably detecting email opens. Northern Trail Outfitters needs a platform-level event notification mechanism that can communicate engagement information to an external endpoint, which is provided by ENS.

C. WSProxy Service
WSProxy is a server-side JavaScript interface used in Marketing Cloud to interact with the platform's SOAP API objects. It supports operations such as retrieving, creating, updating, and deleting Marketing Cloud objects. Although developers can use WSProxy to retrieve tracking-related information, it does not independently push real-time email-open notifications to external systems. It generally requires an application to request or process information. Therefore, WSProxy is not the best solution when an organization needs immediate notifications triggered by subscriber engagement events.

Reference:
Salesforce documents ENS as a mechanism for delivering event notifications to configured endpoints. Email engagement events, including email opens, can be used to support event-driven integrations. Organizations can process these notifications to initiate external workflows and follow-up communication based on subscriber activity.
Question 54 Choose 1

An UpdateDE AMPscript function is used to update a column value in a data extension row when an email is sent. The emailis being sent to 250,000 subscribers, but the user decides to cancel the send during the sending process and only 400 emails are sent.

How many subscriber rows would be affected by the UpdateDE function?

Show answerHide answer

Correct answer: C 400 subscribers who were sent the email

Explanation

Explanation:
The AMPscript UpdateDE function updates a specified row in a data extension when the function is executed during email processing. In a Marketing Cloud send, AMPscript is evaluated separately for each subscriber as their email is processed. If a send is cancelled before completion, the function executes only for subscribers whose emails have reached the processing stage where the AMPscript is evaluated. Therefore, if only 400 emails are sent before cancellation, only those 400 subscribers' corresponding data extension rows are affected.

Correct Option:

C. 400 subscribers who were sent the email
The UpdateDE function executes during individual subscriber email processing and updates the specified data extension row based on the supplied search criteria. Marketing Cloud evaluates the AMPscript separately for each recipient rather than executing it once for the entire audience. Since the send was cancelled after 400 emails were sent, the function would have been executed for those 400 processed recipients. Consequently, only the corresponding 400 subscriber rows would be updated, assuming each function call successfully identifies and updates its intended row.

Incorrect Option:

A. No rows are updated
This option is incorrect because cancelling an email send does not automatically prevent AMPscript functions from executing for emails that have already been processed. The UpdateDE function performs its operation when the relevant email is processed and the function is evaluated. Therefore, subscribers whose emails were successfully processed before cancellation can have their corresponding data extension records updated. Since 400 emails were sent, the function can affect those subscribers' records rather than leaving every row unchanged.

B. All 250,000 subscribers
This option is incorrect because AMPscript does not automatically execute for every subscriber included in the original send audience. Instead, personalization and data extension functions are evaluated during individual email processing. When the send is cancelled, recipients whose emails have not reached the processing stage will not trigger the function. Therefore, the remaining 249,600 subscribers will not have their rows updated through this send. Only the recipients whose emails were processed before cancellation are considered.

D. Only subscribers who exist in All Subscribers
This option is incorrect because the UpdateDE function does not specifically depend on whether a subscriber exists in the All Subscribers list. It updates a data extension row using the specified search column and matching value. Its execution is associated with the email-processing context and the data extension referenced in the function. The important factor in this scenario is the number of emails processed before cancellation, not simply whether recipients have records in All Subscribers.

Reference:
Salesforce documents UpdateDE as an AMPscript function that updates specified column values in matching data extension rows. The function executes when the email processes the relevant subscriber context. Its behavior helps explain why cancelling a send limits updates to recipients whose emails have already been processed.
Question 55 Choose 1

A new record is appendedto the Orders data extension each time a customer makes a purchase. Which SQL statement would select a unique list of subscribers who have made multiple purchases?

Show answerHide answer

Correct answer: D SELECT SubscriberKey FROM Orders GROUP BY SubscriberKey HAVING COUNT(*)>1

Explanation

Explanation:
The Orders data extension stores a new record whenever a customer makes a purchase. To identify subscribers who have made multiple purchases, the SQL query must group records by SubscriberKey and count the number of purchases associated with each subscriber. The HAVING clause filters grouped results based on an aggregate condition. By applying COUNT(*) > 1, the query returns only subscribers with more than one order, producing a unique list of subscribers who have made multiple purchases.

Correct Option:

D. SELECT SubscriberKey FROM Orders GROUP BY SubscriberKey HAVING COUNT(*) > 1
This is the correct SQL statement because it identifies subscribers associated with multiple purchase records. The GROUP BY clause combines all Orders records belonging to the same SubscriberKey into individual groups. The COUNT() function calculates the number of records within each group, while HAVING COUNT() > 1 filters out subscribers with only one purchase. As a result, the query returns each qualifying SubscriberKey once, making it suitable for identifying repeat customers in Salesforce Marketing Cloud Engagement.

Incorrect Option:

A. SELECT TOP 1 SubscriberKey FROM Orders
This option is incorrect because the TOP 1 clause returns only one record from the Orders data extension. It does not identify subscribers who have made multiple purchases or calculate the number of orders associated with each subscriber. Additionally, without an ORDER BY clause, the returned record is not guaranteed to represent any particular subscriber. The query does not use aggregation or filtering to identify repeat purchasers, making it unsuitable for the requirement.

B. SELECT DISTINCT SubscriberKey FROM Orders
This option is incorrect because DISTINCT removes duplicate SubscriberKey values from the query results, returning each subscriber only once. However, it does not determine how many purchases each subscriber has made. Subscribers with one purchase and subscribers with multiple purchases would both appear in the results. Although DISTINCT produces a unique subscriber list, it cannot distinguish repeat purchasers from first-time customers. The query therefore does not satisfy the requirement to identify subscribers with multiple purchase records.

C. SELECT SubscriberKey FROM Orders GROUP BY SubscriberKey
This option is incorrect because GROUP BY SubscriberKey groups all purchase records belonging to the same subscriber and returns one result per subscriber. However, it does not apply any condition to determine whether a subscriber has made multiple purchases. Subscribers with only one order and those with several orders will both appear. To identify repeat purchasers, an aggregate condition must be added using the HAVING clause, such as COUNT(*) > 1.

Reference:
Salesforce documents GROUP BY for grouping records and HAVING for filtering grouped results using aggregate functions. COUNT(*) counts records within each group. Combining these SQL clauses enables developers to identify subscribers with multiple purchase records in a data extension.
Question 56 Choose 2

A developer wants to create a Send LogData Extension to increase efficiency with tracking email sends.

Which two best practices should the developer remember when configuring the Send Log Data Extension? Choose 2 answers

Show answerHide answer

Correct answer: A, B Use Data Retention to limit the amount of data captured.Limitcustom fields in the data extension to 10 or fewer.

Explanation

Explanation:
A Send Log Data Extension stores information about individual email send activities, allowing developers and marketers to maintain additional tracking details beyond standard tracking data. When configuring a Send Log, developers should consider storage efficiency and data extension performance. Data Retention helps control how long send records are stored, preventing unnecessary data accumulation. Additionally, limiting custom fields reduces the amount of information captured for each send and helps maintain an efficient Send Log structure.

Incorrect Option:

C. Create a number of fields equal to the fields in the source data extension.
This option is incorrect because a Send Log should capture only the information necessary for reporting and tracking purposes. Creating fields for every column in the source data extension can introduce unnecessary storage requirements and increase processing overhead. Developers should carefully select relevant subscriber attributes and additional fields based on business and reporting requirements. Salesforce recommends keeping the Send Log efficient by limiting custom fields to 10 or fewer rather than duplicating every source data extension field.

D. Maximize the field size to accommodate all incoming data.
This option is incorrect because maximizing field sizes unnecessarily increases data extension storage requirements. Salesforce recommends minimizing field lengths to accommodate only the expected data. Oversized fields can contribute to inefficient storage and processing, particularly when Send Logs contain large volumes of subscriber records. Developers should define appropriate field lengths based on the actual incoming values instead of assigning unnecessarily large limits. This approach helps maintain efficient Send Log performance and reduces unnecessary storage consumption.

Reference:
Salesforce recommends using Data Retention to control stored records, limiting custom fields to 10 or fewer, and minimizing field sizes. These practices help reduce storage consumption and maintain Send Log performance during large email campaigns.
Question 57 Choose 2

A developer wants to set a variable to use a field from a Sendable Data Extension.

Which two options could be used in an AMPscript block to set the variable as a 'First Name" field from a Sendable Data Extension usedto send the email? Choose 2 answers

Show answerHide answer

Correct answer: B, C SET @firstName = %%First Name%%SET @firstName = attributeValue (''First Name'')

Explanation

Explanation:
In Salesforce Marketing Cloud Engagement, AMPscript allows developers to retrieve subscriber attributes from a Sendable Data Extension used for an email send. These attributes can be accessed using personalization strings or AMPscript functions. The %%First Name%% personalization string retrieves the corresponding field value, while AttributeValue() retrieves an attribute by its name and returns its value. Both approaches can assign the First Name field to an AMPscript variable for personalization and dynamic email content.

Correct Option:

B. SET @firstName = %%First Name%%
This option uses a personalization string to retrieve the First Name attribute from the send context. Marketing Cloud replaces %%First Name%% with the corresponding subscriber's field value during email rendering. The retrieved value is assigned to the @firstName variable using AMPscript's SET statement. Personalization strings provide a straightforward way to access attributes from the Sendable Data Extension associated with the email send. This approach is useful when developers need to incorporate subscriber-specific information into personalized email content.

C. SET @firstName = AttributeValue('First Name')
This option uses the AMPscript AttributeValue() function to retrieve the value of the First Name attribute from the current send context. The function accepts the attribute name as a string and returns its corresponding value when available. It is particularly useful when accessing subscriber attributes dynamically because it safely handles attributes that might not exist in the current context by returning an empty value. Developers can assign the returned value to @firstName and use it throughout the email content.

Incorrect Option:

A. SET @firstName = [First Name]
This option is incorrect because square brackets are not the standard AMPscript syntax for retrieving personalization attributes from a Sendable Data Extension. AMPscript uses personalization strings enclosed in double percentage signs or functions such as AttributeValue() to access subscriber attributes. Although square brackets may appear in other programming or query languages, they do not provide the required attribute-retrieval mechanism in this AMPscript statement. Therefore, this syntax will not correctly assign the First Name field to the variable.

D. SET @firstName = 'First Name']
This option is incorrect because it contains improperly formatted syntax and does not use a valid AMPscript attribute-retrieval function or personalization string. The single quotation marks indicate a literal text string rather than retrieving the value of the First Name attribute. Additionally, the closing square bracket has no matching opening bracket and is not valid for this operation. To retrieve a subscriber's actual First Name value, developers should use personalization strings or the AttributeValue() function.

Reference:
Salesforce documents personalization strings as a method of retrieving subscriber attributes during email rendering. The AttributeValue() function retrieves an attribute by name from the current send context and returns its value, supporting dynamic email personalization.
Question 58 Choose 1

A developer is querying data from the _Bounce data view and storing it in a data extension. They have found that sometimes the fields SMTPBounceReason and SMTPCode exceed the 4000-character limits for each field as specified in the DE schema. After consulting with the original requestor, it was decided that they could simply store the first 4000 characters for each of those fields.

Which SQL function could be used for this purpose?

Show answerHide answer

Correct answer: C LEFT

Explanation

Explanation:
When querying the _Bounce data view in Salesforce Marketing Cloud Engagement, developers may encounter fields containing values longer than the destination data extension's permitted field length. In this scenario, the SMTPBounceReason and SMTPCode fields occasionally exceed 4,000 characters. Since the requirement is to retain only the first 4,000 characters, the SQL query must use a string function that extracts characters from the beginning of a value. The SQL LEFT() function provides exactly this functionality.

Correct Option:

C. LEFT
The LEFT() SQL function returns a specified number of characters from the beginning of a string. In this scenario, developers can use LEFT(SMTPBounceReason, 4000) and LEFT(SMTPCode, 4000) to retrieve only the first 4,000 characters from each field. This ensures that the extracted values fit within the destination data extension's configured field length. It is particularly useful when handling long text fields from Marketing Cloud data views and preventing data insertion failures caused by oversized values.

Incorrect Option:

A. RIGHT
The RIGHT() SQL function extracts a specified number of characters from the end of a string rather than its beginning. For example, RIGHT(SMTPBounceReason, 4000) would return the last 4,000 characters of the bounce reason. Although this function can limit the length of a string, it does not satisfy the requirement to preserve the first 4,000 characters. Therefore, RIGHT is unsuitable for this particular data extraction requirement.

B. FIRST
FIRST is not a standard SQL string function used to extract a specified number of characters from the beginning of a text value in Salesforce Marketing Cloud Query Activities. Although similar terminology may appear in other database operations, it does not provide the required functionality for truncating SMTPBounceReason and SMTPCode to 4,000 characters. Developers should use the appropriate SQL string manipulation function, which is LEFT(), to retain the beginning portion of each field.

Reference:
Salesforce Marketing Cloud Query Activities support SQL string functions for manipulating data retrieved from data views and data extensions. The LEFT() function extracts a specified number of characters from the beginning of a string, making it suitable for limiting field values to the destination data extension's maximum length.

That's the last free question

You've seen the free 30% (58 of 194 questions). Full access unlocks every question and full-length Salesforce-Marketing-Cloud-Engagement-Developer mock exams (65 questions, 105 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the Salesforce-Marketing-Cloud-Engagement-Developer exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real Salesforce-Marketing-Cloud-Engagement-Developer exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full Salesforce-Marketing-Cloud-Engagement-Developer mock exam
  • 65questions per mock
  • 105 mintime limit
  • 194questions in the bank
  • Newmock on every attempt