Salesforce Certified Marketing Cloud Engagement Developer Practice Questions

Salesforce Certified Marketing Cloud Engagement Developer exam preparation

Salesforce Certified Marketing Cloud Engagement Developer practice questions in English: 180 questions with explanations. The mock exam has 60 questions and 105 minutes.

Salesforce Certified Marketing Cloud Engagement Developer free question 2 / 10 · Domain 2: Programmatic Languages

A developer runs UpsertDE('Flights', 1, 'FlightId', 7, 'Price', 80), and the Flights data extension has no row with FlightId 7. What does the function do?

  1. It updates the row with the nearest FlightId value and sets the Price of that row to 80
  2. It skips the missing row, and the developer has to call InsertDE() to add that row
  3. It returns an error and leaves the Flights data extension unchanged for the missing row
  4. It inserts a new row into the Flights data extension with FlightId 7 and Price 80
Show the answer and explanation

Answer: D

Why this is correct
UpsertDE() updates data in a data extension if matching columns and values are found, and inserts rows if no matches are found. No row has FlightId 7, so the call adds a new row that holds FlightId 7 and Price 80. The function does not return any output.

Why the other options are wrong
"It returns an error and leaves the Flights data extension unchanged for the missing row" … UpsertDE() produces an exception for a search column that doesn't exist in the data extension, and not for a value that matches no row. The page says it inserts rows if no matches are found.
"It updates the row with the nearest FlightId value and sets the Price of that row to 80" … The function updates data if matching columns and values are found. With no matching value, the page says it inserts a row.
"It skips the missing row, and the developer has to call InsertDE() to add that row" … UpsertDE() combines both actions. The page says it updates data if matches are found and inserts rows if no matches are found, so a separate InsertDE() call is not needed.

Key point
UpsertDE() updates a matching row and inserts a row when nothing matches.

Go to the Salesforce Certified Marketing Cloud Engagement Developer practice app (10 free questions; purchase unlocks all questions)

See the full practice set