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

Adobe Exam AD0-E716 Topic 10 Question 42 Discussion

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

An Adobe Commerce developer has installed a module from a third-party vendor. This module fires a custom event named third_party_event_after and also defines an observer named third_party_event_after_observer that listens to that event. The developer wants to listen to this custom event in their own module but wants to execute their observer's logic after the third_party_event_after_observer observer has finished executing.

What would the developer do to ensure their observer runs after the observer defined by the third-party module?

Show Suggested Answer Hide Answer
Suggested Answer: A

The developer can fix this issue by increasing the disk space of the database service. The database service is one of the services that run on the Adobe Commerce Cloud platform and provide functionality for the application. The database service uses MySQL as the database engine and stores data for products, customers, orders, etc. The disk space of the database service determines how much data can be stored and processed by the database. If the disk space is insufficient, the database import can fail with a disk space error. The developer can increase the disk space of the database service by modifying the .magento/services.yaml file and redeploying the environment. Verified Reference: [Magento 2.4 DevDocs]


Contribute your Thoughts:

Cristy
9 days ago
Oh, this is a classic Magento question. I'm going with Option B - can't go wrong with sort order! Although, a little part of me wishes the answer was 'Summon the Observer Wizard to cast a spell of execution priority.'
upvoted 0 times
...
Valentine
16 days ago
Hold up, Option C can't be right. I know Magento observers can be finicky, but there has to be a way to control the order of execution. Option B FTW!
upvoted 0 times
Gary
4 days ago
User 2: Yeah, setting the sort order of the new observer lower should work.
upvoted 0 times
...
Sunshine
5 days ago
User 1: I think Option B is the way to go.
upvoted 0 times
...
...
Phyliss
18 days ago
Hmm, I was going to say Option A, but that doesn't sound right. I guess Option B is the correct answer. Observers can be tricky, but this seems like a straightforward solution.
upvoted 0 times
...
Clorinda
19 days ago
Option B is the way to go. Setting the sort order of the new observer to be less than the third-party vendor's observer will ensure my observer runs after theirs. Gotta love those Magento observer priorities!
upvoted 0 times
...
Ashley
21 days ago
I'm not sure, but I think the correct answer is C, as observers listening to the same event may be invoked in any order.
upvoted 0 times
...
Clay
22 days ago
I disagree, I believe setting the sort order of the new observer to be less than that of the third-party vendor's observer is the way to go.
upvoted 0 times
...
Han
24 days ago
I think the developer should ensure the third-party module is listed in the node of their module.xmi file.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77