Download Magento.Magento-2-Certified-Associate-Developer.Pass4Sure.2019-09-26.61q.vcex

Download Exam

File Info

Exam Magento 2 Certified Associate Developer
Number Magento-2-Certified-Associate-Developer
File Name Magento.Magento-2-Certified-Associate-Developer.Pass4Sure.2019-09-26.61q.vcex
Size 714 KB
Posted Sep 26, 2019
Download Magento.Magento-2-Certified-Associate-Developer.Pass4Sure.2019-09-26.61q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

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?


  1.   
  2.   
  3.   
  4.   
Correct answer: B
Explanation:
Reference: https://www.mageplaza.com/magento-2-module-development/magento-2-acl-access-control-lists.html
Reference: https://www.mageplaza.com/magento-2-module-development/magento-2-acl-access-control-lists.html



Question 2

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.)


  1. Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/di.xml
  2. Implement \MyCompany\MyModule\Cron\NewsLetterSender::execute and register it in etc/crontab/.xml
  3. Make sure bin/magento cron:run is added to the system crontab
  4. Register the plugin for \Magento\Customer\Model\Customer::authenticate in etc/crontab.xml
Correct answer: BC



Question 3

What is the connection between product attribute sets and categories?


  1. Categories have no connection to product attribute sets, and any product can be assigned to any category
  2. Each category is linked to a single product attribute set, and only products from that attribute set are allowed in the category
  3. Each category is linked to a single product attribute set, and only products from that category’s set or any of its parent categories’
  4. Categories can be connected to multiple product attribute sets, and only products from one of those sets are allowed in the category
Correct answer: D
Explanation:
Reference: https://www.cloudways.com/blog/configuring-product-attribute-sets-in-magento/
Reference: https://www.cloudways.com/blog/configuring-product-attribute-sets-in-magento/



Question 4

Assume that $collection is a new instance of a class that extends 
Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection, and $ids is an array of ids. 
How do you select a list of records from the database where the record ids are in the $ids list?


  1. $collection->addFieldToFilter(‘record_id’,[‘in’=>$ids]);
  2.   
  3. $collection->in($ids);
  4. $collection->filterIn($ids);
Correct answer: A
Explanation:
Reference: https://magento.stackexchange.com/questions/121040/how-to-get-product-collections-by-set-of-ids-in-magento-2
Reference: https://magento.stackexchange.com/questions/121040/how-to-get-product-collections-by-set-of-ids-in-magento-2



Question 5

You have to install a new module on the production environment. All the module is adding a new product attribute. You enabled maintenance mode, copied the module code, run bin/magento setup:upgrade and disabled maintenance mode.
What two risks does this process pose? (Choose two.)


  1. It will clean all caches which will cause a performance degradation
  2. The new attribute will be invisible on the storefront until the cache is cleaned manually
  3. It will void all active sessions
  4. It will clean static assets from the pub/static folder
Correct answer: BC



Question 6

Magento 2’s architecture uses code to bootstrap a custom module that resides in app/code. 
What two files are required to make a module usable? (Choose two.) 


  1. Helper/Data.php
  2. etc/config.xml
  3. etc/module.xml
  4. registration.php
Correct answer: CD
Explanation:
Reference: https://inchoo.net/magento-2/how-to-create-a-basic-module-in-magento-2/
Reference: https://inchoo.net/magento-2/how-to-create-a-basic-module-in-magento-2/



Question 7

How does Magento store customer address attribute values?


  1. Customer address is a flat entity, so all values are stored in the customer_address_entity table
  2. Customer address is not an entity, so its properties are customer attributes
  3. Customer address is an attribute of the customer, so it doesn’t have its own attributes
  4. Customer address is an EAV entity, so all values are stored in the customer_address_entity table and related values tables
Correct answer: D



Question 8

You need to add a new text attribute to all products in the Magento store. When this attribute is displayed on the product page, its values must be different depending on the selected language. 
Keeping simplicity in mind, how do you add this attribute?


  1. Use the Magento CLI to create a new custom attribute, then generate dictionaries for all supported languages
  2. Use a Data Patch to create a new EAV attribute
  3. Add a new column to the catalog_product_entity table using declarative schema
  4. Use the admin panel to create a new extension attribute
Correct answer: D



Question 9

A third-party module uses a layout update that changes the template path for a core block from product/view/addto/compare.phtml of the Magento_Catalog module to custom/view/addto/compare.phtml of your custom module. The merchant has a customized version of this template in their custom theme. 
What is a consequence of this setup?


  1. If the custom module is removed, the custom template will no longer apply
  2. This setup will throw an IllegalStateException
  3. If a preference for the core block is set, the template will no longer apply
  4. If another module is installed which also customizes the same core template, the templates will be rendered sequentially
Correct answer: A
Explanation:
Reference: https://magento.stackexchange.com/questions/259547/how-to-a-third-party-module-uses-a-layout-update-that-changes-the-template-path
Reference: https://magento.stackexchange.com/questions/259547/how-to-a-third-party-module-uses-a-layout-update-that-changes-the-template-path



Question 10

In the module located at app/code/MyCompany/MyModule there is a JS module in the file view/frontend/web/register.js. The Magento base URL is https://magento.host/ and the luma theme with the en_US locate is used.
What is the public URL for this file?


  1. https://magento.host/pub/static/frontend//Magento/luma/en_US/MyCompany_MyModule/js/register.js
  2. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/register.js
  3. https://magento.host/pub/static/frontend/Magento/luma/en_US/MyCompany_MyModule/web/register.js
  4. https://magento.host/app/code/MyCompany_MyModule/view/frontend/web/register.js
Correct answer: A
Explanation:
Reference: https://devdocs.magento.com/guides/v2.3/javascript-dev-guide/javascript/js-resources.html
Reference: https://devdocs.magento.com/guides/v2.3/javascript-dev-guide/javascript/js-resources.html









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files