exam questions

Exam AD0-E716 All Questions

View all questions & answers for the AD0-E716 exam

Exam AD0-E716 topic 1 question 4 discussion

Actual exam question from Adobe's AD0-E716
Question #: 4
Topic #: 1
[All AD0-E716 Questions]

The di.xml file of a module attaches two plugins for the class Action.
The PluginA has the methods: beforeDispatch, aroundDispatch, afterDispatch.
The PluginB has the methods: beforeDispatch, afterDispatch.

The around plugin code is:

What would be the plugin execution order?

  • A.
  • B.
  • C.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
DevTeat
1 month, 3 weeks ago
B PluginA::aroundDispatch() does not define the $next argument with a callable type. so answer is B.
upvoted 1 times
...
some_gyy
5 months, 2 weeks ago
Selected Answer: B
Because the `callable` type for the `$next` agrument is absent, original Action::dispatch() will be not called and Plugin B will be not triggered. Source: https://developer.adobe.com/commerce/php/development/components/plugins/#scenario-b-without-a-callable-around
upvoted 2 times
...
Faraj1997
7 months, 3 weeks ago
Selected Answer: B
I get a science math diplome of bacaloria
upvoted 1 times
...
LoganTa
7 months, 3 weeks ago
has anyone checked the answer to this question?
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago