BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E716 Topic 8 Question 35 Discussion

Actual exam question for Adobe's AD0-E716 exam
Question #: 35
Topic #: 8
[All AD0-E716 Questions]

An Adobe Commerce developer has created a module that adds a product attribute to all product types via a Data Patch-According to best practices, how would the developer ensure this product attribute is removed in the event that the module is uninstalled at a later date?

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Renay
1 months ago
I'm not sure, but I think making the Data Patch implement PatchRevertableInterface could also work to remove the attribute.
upvoted 0 times
...
Janessa
1 months ago
Option C, no doubt. Gotta love those revertable patches - it's like having an 'undo' button for your database changes!
upvoted 0 times
...
Howard
1 months ago
Option C ftw! I'd rather not have to remember to manually remove that attribute every time I uninstall the module. Revertability is the way to go.
upvoted 0 times
Elsa
7 hours ago
User 2: I agree, having the revert method implemented in the Data Patch makes it much easier for developers and merchants.
upvoted 0 times
...
Kiley
14 days ago
Option C sounds like the best approach for ensuring the product attribute is removed when uninstalling the module.
upvoted 0 times
...
...
Winifred
1 months ago
Ah, the age-old question of how to handle module uninstallation. Option C is definitely the way to go, no need to burden the merchants with manual cleanup.
upvoted 0 times
Raymon
18 days ago
Lauran: Manual cleanup can be a hassle, so having the module handle it automatically is definitely the way to go.
upvoted 0 times
...
Lauran
24 days ago
Absolutely, it's important to make the uninstall process as seamless as possible for merchants.
upvoted 0 times
...
Ocie
1 months ago
I agree, option C is the most efficient way to ensure proper cleanup.
upvoted 0 times
...
...
Vanda
2 months ago
I agree with Benton. That way, the uninstall method can be implemented to remove the product attribute.
upvoted 0 times
...
Benton
2 months ago
I think the best practice would be to add an Uninstall.php file to the module's Setup directory.
upvoted 0 times
...
Myra
2 months ago
I agree, Option C is the best practice here. Keeping the uninstall logic within the module itself is crucial for maintaining a clean and reliable system.
upvoted 0 times
Johnathon
25 days ago
Vi: Okay, I see the benefit of Option C now. Thanks for the insight.
upvoted 0 times
...
Pearlie
26 days ago
I agree with Pearlie, keeping the uninstall logic within the module is important.
upvoted 0 times
...
Vi
1 months ago
I disagree, I believe Option C is the best practice.
upvoted 0 times
...
Ronny
1 months ago
I think Option A is the way to go.
upvoted 0 times
...
...
Quentin
2 months ago
Option C looks like the way to go. Implementing the revert method in the Data Patch is the most straightforward approach to ensure the attribute is removed on uninstall.
upvoted 0 times
Teddy
1 months ago
I agree, having the Data Patch implement the revert method is the cleanest solution.
upvoted 0 times
...
Deeanna
1 months ago
Option C is definitely the best choice. It ensures the attribute is removed properly.
upvoted 0 times
...
...

Save Cancel