Magento Magento 2 Certified Associate Developer Exam Practice Questions (P. 3)
- Full Access (102 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #11
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.)
What two risks does this process pose? (Choose two.)
- AIt will clean all caches which will cause a performance degradation
- BThe new attribute will be invisible on the storefront until the cache is cleaned manually
- CIt will void all active sessions
- DIt will clean static assets from the pub/static folder
Correct Answer:
BC
BC
send
light_mode
delete
Question #12
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.)
What two files are required to make a module usable? (Choose two.)
- AHelper/Data.php
- Betc/config.xml
- Cetc/module.xml
- Dregistration.php
Correct Answer:
CD
Reference:
https://inchoo.net/magento-2/how-to-create-a-basic-module-in-magento-2/
CD
Reference:
https://inchoo.net/magento-2/how-to-create-a-basic-module-in-magento-2/
send
light_mode
delete
Question #13
How does Magento store customer address attribute values?
- ACustomer address is a flat entity, so all values are stored in the customer_address_entity table
- BCustomer address is not an entity, so its properties are customer attributes
- CCustomer address is an attribute of the customer, so it doesn't have its own attributes
- DCustomer address is an EAV entity, so all values are stored in the customer_address_entity table and related values tables
Correct Answer:
D
D
send
light_mode
delete
Question #14
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?
How do you do that?
- ACreate a etc/db_schema.xml file in your module, add the column and run bin/magento setup:upgradeMost Voted
- BCreate a etc/db.xml file in your module, add the column and run bin/magento setup:db-schema:upgrade
- CRun a command: bin/magento setup:db-schema:upgrade <table> <column definition>
- DCreate a etc/db_schema_whitelist.json file in your module, add the column and run bin/magento setup:upgrade
Correct Answer:
C
C
send
light_mode
delete
Question #15
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?
Keeping simplicity in mind, how do you add this attribute?
- AUse the Magento CLI to create a new custom attribute, then generate dictionaries for all supported languages
- BUse a Data Patch to create a new EAV attribute
- CAdd a new column to the catalog_product_entity table using declarative schema
- DUse the admin panel to create a new extension attribute
Correct Answer:
D
D
send
light_mode
delete
All Pages