I am preparing to get Magento certified, doing some test questions I have found this:

A client has asked you to include category url keys in product URLs. How is this done?

A. Create an observer for controller_action_postdispatch_catalog_product_view
B. This is not possible because products can belong to multiple categories
C. Set the configuration value of catalog/seo/product_use_categories to Yes
D. Create an after plugin on \Magento\UrlRewrite\Controller\Router::generateRewrite

The answer marked as correct is D but I think the correct answer is C.

Can someone give me their opinion on this?

Thanks in advance.

1 Answer 1


C is the correct answer, sometimes you can see an incorrect answer when taking the Online sample test.

  • I thought so but wanted to make sure. Thank you very much.
    – Noty
    Oct 25, 2022 at 8:27
  • You're welcome. Cheers!
    – Tu Van
    Oct 25, 2022 at 8:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.