Sunteți pe pagina 1din 12

Question

Which two tasks are supported by Magento CLI? Customer password reset, Clearing cache, Codebase deployment from
developer machinemust
A custom module to staging server, Administrator
make changes to the schemaaccount
followingcreation
each setup:upgrade run. This must
be
Which three scopes can be used to set different System ConfigurationHow
done after all other module’s schema updates have been applied. is this
values accomplished?
in Magento?: Language, Area, Store View,
Store, Website
enables or disables the
provider
You addedinathe
new file etc/adminhtml/system.xml?
constructor argument to an existing action controller class. When you reload the page you get a PHP
error
to that the wrong argument is passed to the class. How do you fix this?
work as expected.
exception: Uncaught HowTypeError:
do you visually
Argumentcheck1ifpassed
Magento to evaluates your ACL resourcemust
OrderRepository::getList() as expected?
be an instance of
SearchCriteriaInterface.How
observer can be created for thedoevents you resolve the exception?
vendor_save_after, vendor_save_commit_after and others.
How
C. Rundophp
youbin/magento
do that? setup:migrate <path-to-m1-installation> <new-version> command
D. Create a new Magento instance by using the bin/magento install command
default
implementation of the LoggerInterface
value for the configuration globally?
path mycompany/mymodule/myoption. How do you supply the default value for that
configuration option?
C. Make sure bin/magento cron:run is added to the system crontab
D. Register the plugin for \Magento\Customer\Model\Customer::authenticate in etc/crontab.xml
C. etc/module.xml
D. registration.php
intercepting the doSomething method. The aroundDoSomething plugin method is called
successfully,
product page, itsthe
but original
values mustdoSomething method is on
be different depending no the
longer beinglanguage.
selected executed as expected.
Keeping What isincausing
simplicity this?do you
mind, how
add thisaattribute?
C. Set sortOrder=”10” for MyCompany_Admission’s plugin in MyCompany_Magic’s etc/di.xml
D. Add MyCompany_Admission
You are writing a customization for as the
a dependency in MyCompany_Magic’s
customer module. You need to makeetc/module.xml file
sure the configuration files from your
module are loaded after the customer
A custom module needs to log all calls of module’s configuration. Where should the dependency be declared?
\Magento\Customer\Api\AddressRepositoryInterface::save().
A merchant gives you the module MyCompany_MyModule to install. Which mechanism
How do youwhich
do you identify use? REST endpoints are
supported by the module?
You have configured an event observer to watch the checkout_submit_all_after event. What is the required class
definition for the event
C. Use Magento web setup observer?
wizard to pull the code from Magento’s composer repository
D. Use composer CLI to pull the code before
relying on the others being executed from MyCompany’s
it is called. repository
What risk does this pose, and how can it be mitigated?
What scopes are available for customer attributes?
What is a valid use case for an around plugin?
What
C. Thewill be the
plugin willeffect of thisbecause
be ignored declaration?
ActionInterface will never be instantiated directly
D. The plugin will be applied to all implementors
You are reviewing a Magento module and see a directory of the ActionInterface
named Service.
What can you determine
you the error identifier. from this directory’s name?
How do you find the error message based on the identifier?
information.
How
With do
theyou obtain an
automatic order repository
dependency injection so that
you Magento
can fetch provides,
an order?how is the
StoreManagerInterface resolved?
Number

72
2
75
76
5
12
80
15
18
82
84
85
88
26
31
33
34
37
38
42
44
45
96
Question
Where do you change the frontName for the admin router?
Your module adds a new controller class which will return a JSON response. What will be the return type of the exe
Products may be accessed using SEO friendly URLs like /my-product
\MyCompany\MyModule\Controller\Adminhtml\CustomEntity\Index. instead
Which twoof /catalog/product/view/id/{ID}.
actions are required to make the How
new
https://your.store.base.url/admin/my_module/custom_entity URL?
AAmodule
module MyModule
declares the route:
needs to <route id="mimodulo"
send notifications frontname="custom">
to customers What
only when the is thewas
account layout handlefrom
modified of the storefron
a mobile a
In which file do you declare the observer?
class responsible for the frontend path /mymodule/custom.
What file contains the controller class for the frontend path /mymodule/custom?
store front.
Where do you define your module’s frontName?
Number

1
77
91
27
35
43
Question
product view page to have a custom color schema and page layout depending on the product
price range. How do you implement this, keeping simplicity in mind?
How can you
following: render
<move> a text on a page using only layout xml?
instruction
before
You wantandtoafter element
declare a blockattributes?How are two methods different?
of the type \Magento\Framework\View\Element\Template with a
template named view.phtml in the layout XML.
How do you set the custom block MyCompany\MyModule\Block\A as a child for the block named
product.info
How do you using
set thelayout
customXML? block MyCompany\MyModule\Block\A as a child for the block named
product.info using layout XML?
frontend page. The displayed information varies based on the country of a given store. What two elements
automatically
While reviewing render theirfile
a layout children?
named (Choose two.)
sales_order_view.xml you notice the element <update
handle=”customer_account”/>. What is the purpose of this element?
A third-party module uses a layout update that changes the template path for a core block from product/view/addto/
How will this block be rendered?
In the module located at app/code/MyCompany/MyModule there is a JS module in the file view/frontend/web/registe
How do you pass an array [‘one’, ‘two] as a parameter to you block using the layout XML arguments directive?
You are developing a new theme which inherits from the Magento_Luma theme. How is this accomplished?
You are reviewing a theme in app/design/frontend/MyCompany/MyTheme and see the file
etc/view.xml. What
You are creating is thepage
a new function of for
layout thisyour
file?custom module.
What is the primary difference between container and block elements?
How do you obtain
user-specific customer
information and information in a JavaScript
cannot be cached. module?
The block is added to the default.xml with:
What does this accomplish?
Number

66
67
68
69
8
10
16
17
19
24
25

90
46
48
49
Question
While developing a module you need to modify an existing Data Patch. How can you force Magento to execute an existing
again?
How do you add a foreign key to an existing table created by another module?
Which
Which entity in Magento
two ways supports
does Magento scoped
persist attributes?
category relationships in the database? (Choose two.) : Using slash-separated valu
in the table catalog_category_index, in the parent_id field, Using comma-separated values in the parent-ids field
You
You want to remove
have added a newa column introduced
attribute by atype
origin of the third-party
varchar extension via declarative
to the product schema.
entity. Which Howwill
two calls do you
filterdoa that?
product coll
set to “California”?
How can you access the select query of a collection?
How do you persist an entity to the database?
Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection, and $ids is an array of ids. How do you
records from the database where the record ids are in the $ids list?
D. Create a etc/db_schema_whitelist.json file in your module, add the column and run bin/magento
setup:upgrade
How do you resolve the exception?
What will be the result of calling the save() method on a collection instance?
You
filterare
andbuilding a report using complex SQL aggregations to locate the required data.
sort information.
What class assists in creating an instance for SearchCriteriaInterface?
Which method of a Magento resource model will remove a record from the database?
C. \Magento\Catalog\Model\ResourceModel\Product\Collection::fetchItemById($id)
D. \Magento\Catalog\Api\ProductRepositoryInterface::getById($id)
It is made available in the Magento API for the purpose of data manipulation
It maps an entity to one or more database rows
Number

71
73
7
78
9
14
21
23
87
29
30
32
98
Question
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?
During
How doayoucode review
name theoffile
a containing
module MyCompany_PaymentCurrencies
the action controller class so theyou see router
admin a configuration field declared
matches the
path
Whattodothe
youclass?
specify as the menu item action attribute value so it links to
/admin/mycompany/mymodule/?
of your module.
Which threetasks
A merchant itemsyou
are to
restricted based
keep sales on ACL out
managers roleofpermissions? (Choose three.)
the system configuration backend pages.
How do you do that using the
resource="Magento_Sitemap::sitemap" admin interface?
What
a CSVactions do you
file upload. Thetake to configure
module already the new
exists andmenu entry an
contains location?
etc/adminhtml/system.xml file
where the new field can be added.
Number
4
20
28
36
40
47
92
93
Question
What orderthe
know that operation is available
loaded product has in
thethe Myconfigurable
type Account section
with in thevariations.
four storefront?These variations have
the prices: $10, $12, $12, $15. What will be the result of the $product->getFinalPrice() call?
How many shipping addresses may be selected for an order during the checkout process?
What
amountis the connection
of simple between
products product attribute
that represent sets and
a combination of categories?
color and size
needs to be created in order to make a shoe salable?
How does Magento store customer address attribute values?
What happens when a category’s is_anchor attribute is set to 1?
A merchant tasked you to add an input field for notes to the Customer Account Information
What is the difference between online and offline shipping methods?

You have
project, to need
you installtoa verify
new module on the
additional dataproduction environment.
in this process. KeepingAll
in the module
mind is adding
upgradeability,
how is this done?
A merchant asks you to extend customer functionality to allow customer accounts to be associated
with two or
required more billing addresses. How is this implemented?
size.
How is this represented
A merchant is interestedininMagento?
setting different prices for the same products in different store scopes.
What do you reply to this inquiry?
Assume that a customer’s cart only includes one downloadable product. What effect will it c
Create one website, two store views
Create
cart withtwo
thewebsites, two store
same selected views
variation?
How will they be displayed?
What is the
Magento relationship
allows between
you to specify products
custom andper
values categories
store forinproduct
Magento?
attributes created in the admin
panel. Which architectural pattern makes it possible?
A client has asked you to include category url keys in product URLs. How is this done?
Number
se variations have
Price() call?
3
6
79
13
81
22
83

11
86
89
39
41
96
97
99
100
101
102
103

S-ar putea să vă placă și