Review 102 MAGENTO-2-CERTIFIED-ASSOCIATE-DEVELOPER practice questions with answer explanations and community insights.
Question 1
Products may be accessed using SEO friendly URLs like /my-product instead of /catalog/product/view/id/{ID} How is this one?
An event observer adds RewriteRules to .htaccess on product save
Magento\Catalog\Controller\Product\View::loadByUrlKey loads product pages using the url_key attribute value
Using a URL Rewrite stored in the database connecting the request path with the target path
A plugin on \Magento\UrlRewrite\Controller\Router::match loads products by the url_key attribute
Question 2
You are setting up a brand new Magento installation for a merchant who is migrating from Magento 1 to Magento 2. Keeping in mind upgradability and the need to customize, which one do you choose?
Create a new Magento instance using composer create-project
Clone the magento/magento2 GitHub repository
Run php bin/magento setup:migrate <new-version> command
Create a new Magento instance by using the bin/magento install command
Question 3
How many shipping addresses may be selected for an order during the checkout process?
One shipping address per line item is possible
Only one shipping address per order is possible
One shipping address per unit of quantity is possible
One shipping address per product type is possible
Question 4
You have created a new section in system configuration under the Catalog tab: How do you restrict an access to the section using Magento ACL? A. B. C. D.
Question 5
A module you are working on needs to send a newsletter to all subscribed customers at predefined intervals. Which two actions do you take to make sure the newsletter is sent? (Choose two.)
Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/di.xml
Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/.xml
Make sure bin/magento cron:run is added to the system crontab
Register the plugin for \Magento\Customer\Model\Customer::authenticate in etc/crontab.xml
We are moving to a new platform
CertificationTest is being migrated. Some pages may be slow or briefly unavailable; everything will be back to normal within a few hours. If you run into any issue, email support@certificationtest.net.