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
1 months 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
Major
3 days ago
Definitely, it's all about the execution order of observers.
upvoted 0 times
...
Tequila
7 days ago
I agree, sort order is key in Magento development.
upvoted 0 times
...
Letha
1 months ago
Option B) Set the sort order of the new observer to be less than that of the third-party vendor's observer.
upvoted 0 times
...
...
Valentine
2 months 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
Sena
3 days ago
Gary: Exactly, we need to control the order of execution.
upvoted 0 times
...
Novella
5 days ago
User 3: That makes sense, we want our observer to run after the third-party one.
upvoted 0 times
...
Bronwyn
18 days ago
User 2: Yeah, Option B is the way to go. Setting the sort order will ensure the new observer runs after the third-party one.
upvoted 0 times
...
Grover
21 days ago
User 1: I agree, Option C doesn't sound right. Observers can definitely be ordered.
upvoted 0 times
...
Gary
1 months ago
User 2: Yeah, setting the sort order of the new observer lower should work.
upvoted 0 times
...
Sunshine
1 months ago
User 1: I think Option B is the way to go.
upvoted 0 times
...
...
Phyliss
2 months 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
2 months 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
2 months 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
2 months 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
2 months 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