Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Comm-Dev-101 Exam - Topic 2 Question 1 Discussion

A developer has these requirements for out-of-stock products:* Save the SKUs of the out-of-stock products that the customer is interested in.* Save the customer email regardless if the customer is a guest or registered.* Email the customer when the product is back-in-stock.Which step should the developer perform as part of the solution to achieve the requirements?
C) Create a new custom object type that has a set-of-string type custom attribute for the SKUs and a string for the email field.
A) Create a new set-of-string type custom attribute to the system object type Profile to save all the SKUs and use the existing email field for the email.
B) Create a new set-of-string type custom attribute to the system object type Product to save all the customer email addresses for back-in-stock notification.

Salesforce Comm-Dev-101 Exam - Topic 2 Question 1 Discussion

Actual exam question for Salesforce's Comm-Dev-101 exam
Question #: 1
Topic #: 2
[All Comm-Dev-101 Questions]

A developer has these requirements for out-of-stock products:

* Save the SKUs of the out-of-stock products that the customer is interested in.

* Save the customer email regardless if the customer is a guest or registered.

* Email the customer when the product is back-in-stock.

Which step should the developer perform as part of the solution to achieve the requirements?

Show Suggested Answer Hide Answer
Suggested Answer: C

A custom object is the most appropriate persistent data structure because the requirement applies toboth registered and guest shoppers. A Profile-based solution cannot satisfy the requirement reliably because anonymous/guest customers do not have a persistent registered customer profile. Storing customer email lists directly on Product records would also create an inappropriate product-to-shopper coupling and potentially large mutable collections on product system objects.

B2C Commerce custom objects are intended to extend the persistent commerce data model for application-specific requirements. Developers can define custom object types with custom attributes, including multi-valuedSet of Stringattributes, and choose organization or site storage scope.

A custom back-in-stock object can therefore persist the shopper's email address plus one or more interested SKUs independently of authentication status. Subsequent job or inventory-update logic can identify subscriptions when inventory becomes available and trigger the notification process.

This design also keeps notification-subscription data separate from core customer and product objects, reducing unintended effects on standard platform data models and supporting anonymous shoppers cleanly.

Study Guide reference:Data Management Using Business Manager Usage --- custom object types, custom attributes, persistent business data, guest shoppers, and application-specific data modeling.

===============


Contribute your Thoughts:

0/2000 characters
Zachary
1 day ago
I remember a similar question where we had to decide between using existing attributes or creating new ones. I feel like option C might be more flexible since it allows for a dedicated structure for both SKUs and emails.
upvoted 0 times
...
Gladys
7 days ago
I think option A makes sense because it mentions using the existing email field, which seems efficient. But I'm not entirely sure if saving SKUs in the Profile is the best approach.
upvoted 0 times
...

Save Cancel