Salesforce Certified Marketing Cloud Engagement Developer MCE-Dev-201 Exam Questions

Page: 1 / 14
Total 196 questions
Question 1

A developer wants to use the RaiseError Ampscript function when a subscriber does not have the necessary data to build an email. Which two outcomes are possible using this function? Choose 2 answer



Answer : A, B

Using the RaiseError AMPscript function allows a developer to handle errors when necessary data for building an email is missing. The possible outcomes of using this function include:

The send fails (A) - The entire email send can be stopped if a critical error is encountered.

The email is not sent to the particular subscriber (B) - The send can be aborted for specific subscribers who do not have the necessary data.


Salesforce Marketing Cloud AMPscript RaiseError Function

Salesforce Marketing Cloud Documentation

Question 2

A developer wants to design a custom subscription center in CloudPages. The developer prefers to code in AMPscript, but is also skilled in Server-Side JavaScript. While the developer is confident their code is of high quality, they would still like to handle unexprected errors gracefully to ensure the best user experience. Whichfeature should handle this scenario?



Answer : A

To handle unexpected errors gracefully in a custom subscription center, wrapping the code in a Server-Side JavaScript (SSJS) Try/Catch block is recommended.

Try/Catch Block: Using a Try/Catch block in SSJS allows the developer to catch and handle exceptions, providing a mechanism to manage errors without disrupting the user experience.

SSJS Example:

<script runat='server'> Platform.Load('Core', '1'); try { // Code that may throw an error } catch (e) { // Handle the error Write(Stringify(e)); } </script>

: Salesforce Server-Side JavaScript (SSJS) Guide


Question 3

New subscribers at Northern Trail Outfitters (NTO) are added to a data extension. NTO would like to send these subscribers a welcome series with Journey Builder.

What would allow the data extension to be selected for journey entry'



Answer : C

For a data extension to be selected for journey entry in Journey Builder, it must be configured for sending. This configuration ensures that the data extension is recognized as a source for sending communications.

Configure for Sending: When creating or editing a data extension, ensure that it is set as 'Sendable.' This involves specifying the appropriate fields for sending, such as Subscriber Key and Email Address.

: Salesforce Journey Builder Data Extension Configuration


Question 4

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?



Answer : B

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.


Salesforce Marketing Cloud AMPscript Date Functions

Salesforce Marketing Cloud Documentation

Question 5

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?



Answer : D

To select a unique list of subscribers who have made multiple purchases, the developer should use the following SQL statement:

SELECT SubscriberKey FROM Orders GROUP BY SubscriberKey HAVING COUNT(*) > 1

This query groups the records by SubscriberKey and selects only those groups where the count of records is greater than one, indicating multiple purchases.


SQL GROUP BY Statement

SQL HAVING Clause

Question 6

Adeveloper is working on cross-channel campaign functions for the email team at Northern Trail Outfitters. They are reviewing available APIs for the different Marketing Cloud applications to determine the most appropriate solution for each.

Which application utilizes the REST API?



Answer : C

Content Builder uses the REST API to manage content within Salesforce Marketing Cloud. The REST API allows developers to create, update, retrieve, and delete content assets, making it suitable for cross-channel campaign functions.

: Salesforce Content Builder API


Question 7

In which three ways should a developer optimize a query activity if it is currently timing out? Choose 3



Answer : C, D, E

To optimize a query activity that is currently timing out, a developer can use the following strategies:

Use Primary key(s) on fields used in joins (C) - Ensures that the join operations are efficient by utilizing indexed fields.

Use intermediate tables to stage data (D) - Breaks down complex queries into simpler steps, improving manageability and performance.

Only update records that have changed since last execution (E) - Reduces the amount of data processed by focusing only on changes since the last query run.


Salesforce Marketing Cloud SQL Optimization

Query Activity Best Practices

Page:    1 / 14   
Total 196 questions