exam questions

Exam Magento 2 Certified Associate Developer All Questions

View all questions & answers for the Magento 2 Certified Associate Developer exam

Exam Magento 2 Certified Associate Developer topic 1 question 21 discussion

Actual exam question from Magento's Magento 2 Certified Associate Developer
Question #: 21
Topic #: 1
[All Magento 2 Certified Associate Developer Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️
Reference:
https://magento.stackexchange.com/questions/123553/how-to-add-the-sku-to-the-url-key-magento-2/250339

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
Rizwan407
5 months, 1 week ago
Correct Answer is C. Set the configuration value of catalog/seo/product_use_categories to Yes
upvoted 1 times
...
mr_acronym
1 year, 11 months ago
This can be managed in configuration, and does not require custom code. https://docs.magento.com/user-guide/catalog/catalog-urls.html
upvoted 3 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