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 AD0-E704 Exam - Topic 9 Question 72 Discussion

Suppose you are asked to disable/remove the customer review related functionalities. You can not disable the review module directly because the customer module depends on it. What is the possible way to remove all HTML outputs of the review module, from the frontend and backend? :
A) Turn-off Review module output globally by extending <Magento_install_dir>/vendor/magento/module-backend/etc/config.xml
B) Turn-off Review module output globally by extending <Magento_install_dir>/vendor/magento/module-backend/etc/module.xml
C) Create plugin or Override the class \Magento\Framework\View\Element\AbstractBlock and toHtml() method, and implement the logic to return empty data in case of review module's block instance is present.
D) Create plugin or Override the class \Magento\Backend\Block\Template and isOutputEnabled() method, and implement the logic to return false value in case of review module's block instance is present.

Adobe AD0-E704 Exam - Topic 9 Question 72 Discussion

Actual exam question for Adobe's AD0-E704 exam
Question #: 72
Topic #: 9
[All AD0-E704 Questions]

Suppose you are asked to disable/remove the customer review related functionalities. You can not disable the review module directly because the customer module depends on it. What is the possible way to remove all HTML outputs of the review module, from the frontend and backend? :

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Erasmo
1 month ago
Wait, can we really just override those methods?
upvoted 0 times
...
Remona
1 month ago
I think D is more straightforward, though.
upvoted 0 times
...
Dong
1 month ago
Option C sounds like a solid approach.
upvoted 0 times
...
Rosina
2 months ago
I’ve done something similar before, it works like a charm!
upvoted 0 times
...
Corinne
2 months ago
Wait, can you really override those methods? Sounds risky!
upvoted 0 times
...
Rosenda
2 months ago
A and B are not even viable options here.
upvoted 0 times
...
Nada
2 months ago
I disagree, I think D is more straightforward.
upvoted 0 times
...
Mozelle
2 months ago
Option C seems like the best approach for this.
upvoted 0 times
...
Berry
2 months ago
I have a vague memory of using plugins for similar tasks, so option C seems plausible, but I wonder if option D could also work in this case.
upvoted 0 times
...
Phillip
3 months ago
I recall a similar question about disabling modules, but I can't remember if we discussed the specifics of the isOutputEnabled() method in option D.
upvoted 0 times
...
Jarod
3 months ago
I'm not entirely sure, but I feel like option A might be the right choice since it mentions config.xml, which is often used for global settings.
upvoted 0 times
...
Pedro
3 months ago
I think option C sounds familiar; I remember practicing how to override the toHtml() method in class extensions.
upvoted 0 times
...

Save Cancel