Magento


Magento-2-Certified-Associate-Developer


Magento 2 Certified Associate Developer


https://killexams.com/pass4sure/eMxaagme-ndteot-a2i-l/Certified-Associate-Developer

Question: 88


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


    A


    e: https://magento.stackexchange.com/questions/259547/how-to-a-third-party-module-uses-a-layout-up nges-the-template-path

    n: 89


    does Magento store customer address attribute values?

    omer address is a flat entity, so all values are stored in the customer_address_entity table omer address is not an entity, so its properties are customer attributes

    omer address is an attribute of the customer, so it doesn’t have its own attributes

    omer address is an EAV entity, so all values are stored in the customer_address_entity table and r ables


    D


    n: 90


    eveloping a module and need to add another column to a table introduced by another module pany_MyModule via db schema.

    ou do that?

    te a etc/db_schema.xml file in your module, add the column and run bin/magento setup:upgrade Create a etc/db.xml file in your module, add the column and run bin/magento setup:db-schema:upgrad

    command: bin/magento setup:db-schema:upgrade <table> <column definition>

    te a etc/db_schema_whitelist.json file in your module, add the column and run bin/magento setup:

  4. If another module is installed which also customizes the same core template, the templates will be rendered sequentially


Answer:


Referenc date-

that-cha

Questio


How

  1. Cust

  2. Cust

  3. Cust

  4. Cust elated

values t


Answer:


Questio


You are d MyCom How do y

  1. Crea

  2. e

  3. Run a

  4. Crea upgrade


Answer: C


Question: 91


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

Answer: BC


Question: 92


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


CD


e: https://inchoo.net/magento-2/how-to-create-a-basic-module-in-magento-2/

n: 93


hat $collection is a new instance of a class that extends FrameworkModelResourceModelDbCollectionAbstractCollection, and $ids is an array of ids. ou select a list of records from the database where the record ids are in the $ids list?

ection->addFieldToFilter(‘record_id’,[‘in’=>$ids]);


ection->in($ids); ection->filterIn($ids);


A


e: https://magento.stackexchange.com/questions/121040/how-to-get-product-collections-by-set-of-ids-i 2

n: 94


viewing a layout file named sales_order_view.xml you notice the element <update handle="customer_ac he purpose of this element?

Answer:


Referenc

Questio


Assume t Magento How do y

A. $coll B.


  1. $coll

  2. $coll


Answer:


Referenc n-

magento-

Questio


While re count"/>

What is t

  1. Replaces the customer_account handle with sales_order_view

  2. Nothing, this element has been deprecated

  3. Adds the customer_account handle to the page’s handles list

  4. Updates the current page handle to customer_account


Answer: D


Reference: https://magento.stackexchange.com/questions/236009/what-is-update-handle-customer-account

Question: 95


How can you access the select query of a collection?

  1. You can only access the select query after the collection has been loaded by calling the public method query()

  2. It is stored in a protected variable $query and can only be accessed from the inside of a collection class

  3. You can get it by using public method getSelect() which returns an instance of MagentoFrameworkDBSelect

  4. The select query is not available in the collection class, it will be generated by the MySQL adapter right before executing a query


Answer: C


Reference: https://mage2.pro/t/topic/610

Question: 96


You are developing a module MyCompany_StoreInfo to display information about brick and mortar stores on a frontend page. The displayed information varies based on the country of a given store.

k class="MagentoFrameworkViewElementAbstractBlock" name="shop.info.details"/>

<block class="MagentoFrameworkViewElementTemplate" name="shop.info.details"/> tainer name="shop.info.details"/>

k class="MagentoFrameworkViewElementTextListText" name="shop.info.details"/>


BC


e: https://magento.stackexchange.com/questions/202403/creating-a-new-container-and-placing-it-wher agento-2

n: 97


he connection between product attribute sets and categories?

gories have no connection to product attribute sets, and any product can be assigned to any categor category is linked to a single product attribute set, and only products from that attribute set are a ategory

category is linked to a single product attribute set, and only products from that category’s set or any ategories’ sets are allowed

gories can be connected to multiple product attribute sets, and only products from one of those sets n the category


D


e: https://www.cloudways.com/blog/configuring-product-attribute-sets-in-magento/

n: 98

What two elements automatically render their children? (Choose two.)

A. <bloc B.

  1. <con

  2. <bloc


Answer:


Referenc e-i-

want-in-m

Questio


What is t

  1. Cate y

  2. Each llowed

    in the c

  3. Each of its

    parent c

  4. Cate are

allowed i


Answer:


Referenc

Questio


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.


B


e: https://www.mageplaza.com/magento-2-module-development/magento-2-acl-access-control-lists.htm

n: 99


you are working on needs to send a newsletter to all subscribed customers at predefined intervals. wo actions do you take to make sure the newsletter is sent? (Choose two.)

ement MyCompanyMyModuleCronNewsLetterSender::execute and register it in etc/crontab/di.xm ement MyCompanyMyModuleCronNewsLetterSender::execute and register it in etc/crontab/.xml

sure bin/magento cron:run is added to the system crontab

ter the plugin for MagentoCustomerModelCustomer::authenticate in etc/crontab.xml


BC

C.


D.


Answer:


Referenc l

Questio


A module Which t

  1. Impl l

  2. Impl

  3. Make

  4. Regis


Answer:


Question: 100

Question: 101


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?

  1. Create a new Magento instance using composer create-project

  2. Clone the magento/magento2 GitHub repository

  3. Run php bin/magento setup:migrate <path-to-m1-installation> <new-version> command

  4. Create a new Magento instance by using the bin/magento install command


Answer: C

Question: 102


How many shipping addresses may be selected for an order during the checkout process?

  1. One shipping address per line item is possible

  2. Only one shipping address per order is possible

  3. One shipping address per unit of quantity is possible

  4. One shipping address per product type is possible


Answer: B


Reference: https://docs.magento.com/m2/ce/user_guide/sales/checkout-step1-shipping.html