20:00

Free Test
/ 10

Quiz

1/10
Argument1
The module MyCompany_MyModule provides custom admin interface pages. Access to these pages should only be granted to specific users. You add the required configuration to the module's acl.xml file, but the setting does not seem to work as expected. How do you visually check if Magento evaluates your ACL resource as expected?
Select the answer
1 correct answer
A.
Write a plugin for the class \Magento\Framework\Acl\LoaderInterface::populateAcl() and echo out the loaded roles
B.
Inspect the output of the CLI command bin/magento admin:role:resources - all
C.
In the browser, open the admin User Roles page. Choose a role and inspect the tree of available resources
D.
Inspect the response of a GET request to the webapi endpoint

Quiz

2/10
Argument1
How do you add a foreign key to an existing table created by another module?
Select the answer
1 correct answer
A.
Create etc/db_schema.xml file with the table node and constraint child node
B.
Run the command bin/magento setup:db-schema:upgrade <table> <constraint declaration>
C.
This can only be done with raw SQL in a Schema Patch file
D.
Create the etc/db_constraints.xml file and specify foreign key there in the constraint node

Quiz

3/10
Argument0
What order operation is available in the My Account section in the storefront?
Select the answer
1 correct answer
A.
Edit order
B.
Refund
C.
Reorder
D.
Invoice

Quiz

4/10
Argument1
You are working on a new entity called vendor. You implemented the model, resource model and collection. You want to ensure that standard model events will be fired for your model, so an observer can be created for the events vendor_save_after, vendor_save_commit_after and others. How do you do that?
Select the answer
1 correct answer
A.
Create an entry in etc/di.xml and add the argument eventPrefix with the value of vendor
B.
Declare the $_eventPrefix property in your vendor model and set it to vendor
C.
You must implement all appropriate methods and fire the events manually
D.
Ensure that the primary key in the corresponding table is named vendor_id

Quiz

5/10
Argument0
You are writing a customization for the customer module. You need to make sure the configuration files from your module are loaded after the customer module's configuration. Where should the dependency be declared?
Select the answer
1 correct answer
A.
composer.json
B.
etc/module.xml
C.
etc/config.xml
D.
etc/di.xml

Quiz

6/10
Argument1
You got a notification about error that occurred on a production environment. The merchant gave you the error identifier. How do you find the error message based on the identifier?
Select the answer
1 correct answer
A.
An error is written to the var/log/exception.log file including the identifier
B.
The error is sent to the pre-configured error email with the identifier in the subject
C.
A file with a name matching the identifier is written to the var/report folder
D.
An error message is written to the database table error_log with an error_id field matching the identifier

Quiz

7/10
Argument0
How can you access the select query of a collection?
Select the answer
1 correct answer
A.
You can only access the select query after the collection has been loaded by calling the public method query()
B.
It is stored in a protected variable $query and can only be accessed from the inside of a collection class
C.
You can get it by using public method getSelect() which returns an instance of Magento\Framework\DB\Select
D.
The select query is not available in the collection class, it will be generated by the MySQL adapter right before executing a query

Quiz

8/10
Argument1
You are implementing a custom module MyModule, which provides an implementation of \Psr\Log\LoggerInterface called \MyCompany\MyModule\Logger. The LoggerInterface has the default preference declared in app/etc/di.xml. Keeping upgradability in mind, how do you make \MyCompany\MyModule\Logger the default implementation of the LoggerInterface globally?
Select the answer
1 correct answer
A.
Declare a new preference for the LoggerInterface in app/code/myCompany/MyModule/etc/frontend/di.xml
B.
Declare a new preference for the LoggerInterface in MyCompany/MyModule/etc/di.xml
C.
Overwrite the existing preference for the LoggerInterface in app/etc/di.xml
D.
Declare a new preference for the LoggerInterface in app/code/MyCompany/MyModule/etc/global/di.xml

Quiz

9/10
Argument0
In a code review of a merchant's site you have discovered that there are multiple observers for the checkout_submit_all_after event. After closer inspection, you notice one of these observers is relying on the others being executed before it is called. What risk does this pose, and how can it be mitigated?
Select the answer
1 correct answer
A.
There is no risk posed as long as each event observer specifies a correct sortOrder. Nothing needs to be changed.
B.
Event observers are fired in alphabetical order of the observer name. There is no risk here.
C.
Magento only supports one observer per event. These observers will need to be combined into a single point of customization.
D.
Order of listener execution cannot be guaranteed, resulting in a fragile implementation. This code should be re-worked using plugins

Quiz

10/10
Argument1
You are developing a module and need to add another column to a table introduced by another module MyCompany_MyModule via db schema. How do you do that?
Select the answer
1 correct answer
A.
Create a etc/db_schema.xml file in your module, add the column and run bin/magento setup:upgrade
B.
Create a etc/db.xml file in your module, add the column and run bin/magento setup:db- schema:upgrade
C.
Run a command: bin/magento setup:db-schema:upgrade <table> <column definition>
D.
Create a etc/db_schema_whitelist.json file in your module, add the column and run bin/magento setup:upgrade
Looking for more questions?Buy now

Magento-Magento-2-Associate-Developer Practice test unlocks all online simulator questions

Thank you for choosing the free version of the Magento-Magento-2-Associate-Developer practice test! Further deepen your knowledge on Magento Simulator; by unlocking the full version of our Magento-Magento-2-Associate-Developer Simulator you will be able to take tests with over 103 constantly updated questions and easily pass your exam. 98% of people pass the exam in the first attempt after preparing with our 103 questions.

BUY NOW

What to expect from our Magento-Magento-2-Associate-Developer practice tests and how to prepare for any exam?

The Magento-Magento-2-Associate-Developer Simulator Practice Tests are part of the Magento Database and are the best way to prepare for any Magento-Magento-2-Associate-Developer exam. The Magento-Magento-2-Associate-Developer practice tests consist of 103 questions and are written by experts to help you and prepare you to pass the exam on the first attempt. The Magento-Magento-2-Associate-Developer database includes questions from previous and other exams, which means you will be able to practice simulating past and future questions. Preparation with Magento-Magento-2-Associate-Developer Simulator will also give you an idea of the time it will take to complete each section of the Magento-Magento-2-Associate-Developer practice test . It is important to note that the Magento-Magento-2-Associate-Developer Simulator does not replace the classic Magento-Magento-2-Associate-Developer study guides; however, the Simulator provides valuable insights into what to expect and how much work needs to be done to prepare for the Magento-Magento-2-Associate-Developer exam.

BUY NOW

Magento-Magento-2-Associate-Developer Practice test therefore represents an excellent tool to prepare for the actual exam together with our Magento practice test . Our Magento-Magento-2-Associate-Developer Simulator will help you assess your level of preparation and understand your strengths and weaknesses. Below you can read all the quizzes you will find in our Magento-Magento-2-Associate-Developer Simulator and how our unique Magento-Magento-2-Associate-Developer Database made up of real questions:

Info quiz:

  • Quiz name:Magento-Magento-2-Associate-Developer
  • Total number of questions:103
  • Number of questions for the test:50
  • Pass score:80%

You can prepare for the Magento-Magento-2-Associate-Developer exams with our mobile app. It is very easy to use and even works offline in case of network failure, with all the functions you need to study and practice with our Magento-Magento-2-Associate-Developer Simulator.

Use our Mobile App, available for both Android and iOS devices, with our Magento-Magento-2-Associate-Developer Simulator . You can use it anywhere and always remember that our mobile app is free and available on all stores.

Our Mobile App contains all Magento-Magento-2-Associate-Developer practice tests which consist of 103 questions and also provide study material to pass the final Magento-Magento-2-Associate-Developer exam with guaranteed success. Our Magento-Magento-2-Associate-Developer database contain hundreds of questions and Magento Tests related to Magento-Magento-2-Associate-Developer Exam. This way you can practice anywhere you want, even offline without the internet.

BUY NOW