Adobe AD0-E704 Adobe Certified Master – Adobe Commerce Architect Online Training
Adobe AD0-E704 Online Training
The questions for AD0-E704 were last updated at Dec 24,2024.
- Exam Code: AD0-E704
- Exam Name: Adobe Certified Master - Adobe Commerce Architect
- Certification Provider: Adobe
- Latest update: Dec 24,2024
You are making a module MyCompany_MyModule and the merchant asks for an attribute that is only available to simple and configurable products. This needs to be defined in the catalog_eav_attribute table.
How can we create this behavior during the creation of this attribute?
A)
B)
C)
D)
- A . Option A
- B . Option B
- C . Option C
- D . Option D
You need to create a list of warehouses with a set of details in the configuration values: warehouse name, warehouse postcode. For this, suppose you created a custom configuration file under your module’s etc/warehouses_list.xml.
Now what should be the name of it’s XSD schema for this xml file validation:
- A . etc/warehouses_list.xsd
- B . etc/xsd/warehouses_list.xsd
- C . etc/warehouses/list.xsd
- D . xsd/warehouses_list.xsd
Suppose in a store there are 500 categories and it’s increasing as per the need. Let’s say your frontend developer asked you to modify the header and include CSS files on some specific category pages based on the custom category attribute selection from backend.
What should be the acceptable and easiest way to do this, so that no new file creation and code update will be required after implementation:
- A . create a new layout XML file for the category called catalog_category_view.xml and add the layout modification code
- B . create a new layout XML file for the category called catalog_category_view_selectable_<Category ID>_CustomLayout.xml and assign it to the needed categories from backend, and add the layout modification code in it.
- C . create a custom layout handle for the category using observer layout_load_before and add the layout modification code
- D . create a custom layout handle for the category using observer layout_load_after and add the layout modification code
You are working on a custom page where the content of a CMS block has to be rendered. You know the merchant is using Staging for CMS blocks. In your code you have access to the $repository object which is an instance of MagentoCmsApiBlockRepositoryInterface. $blockld which is the original block ID, and $current Version which is the current Staging version.
How do you load the CMS block with the right Staging version?
A)
B)
C)
D)
- A . Option A
- B . Option B
- C . Option C
- D . Option D
A furniture merchant have 100k products in the store. In a custom product list page, he advised you to enable the caching as per user paginate the products.
So what should the approach to cache the block data as per pagination request:
- A . In block class toHtml() method, define cache_lifetime, cache_tags and cache_key_<current_page_here>
- B . In block class _construct() method, define cache_lifetime, cache_tags and cache_key_<current_page_here>
- C . In block class toHtml() method, set _isScopePrivate property to false as per requested page number.
- D . In block class _construct() method, set _isScopePrivate property to false as per requested page number.
You are implementing a custom module MyCompany_MyModule which displays a new link in the Action column in the Orders grid. The purpose of this link is to synchronize the order summary data with an ERP system. You must make permissions to use this link manageable with the Magento ACL.
Which two steps are required to do this?
- A . Add a plugin On MagentoSalesUiComponentListingColumnViewAction: :prepareDataSource to add link and Check permission
- B . Add the configuration of the new link with aclResource value for the sales_order_grid. xmi
- C . Add a controller MyCompanyMyModuleControllerAdminhtmlSynchronizeOrders and specify a valid value for the ADMIN_REROURCE Constant
- D . Add a plugin on the gridMagentoFrameworkviewEiementUIComponentDataProviderDataProvider to add the link and check permissions
You are working on a module MyCompany_MyModule which adds a select attribute with a few options using the MagentoEavSetupEavSetup: :addAttribute() method in data in data install script.
There is no uninstall script. While debugging, you have uninstalled the module with the command:
bin magento module:uninstall MyCompany_MyModule
Then you reinstalled the module.
What will be the effect on the attribute?
- A . The attribute remains the same but the attribute options will be duplicated
- B . The attribute is deleted and created again
- C . The attribute is updated when attribute options differ
- D . A duplicate attribute will be created with a different attribute code
You want to run a script each time after all schema installation and schema upgrade scripts have executed, but before data setup scripts execution.
What do you do?
- A . You need to run bin magento module:recurring MyCompanyJlyModule each time after bin magento setup:update
- B . Create a Recurring, php Script in the MyCompany MyModule Setup folder
- C . Create a RecurringData. php Script in the MyCompany MyModule Setup folder
- D . Add an event observer for the event setup_upgrade_schema_after
A merchant has created a segment that applies to registered customers whose gender is female. You then migrate customers by copying data directly from one database to another.
What two ways are used to assign migrated customers with a female gender to the segment?
- A . They will be automatically assigned by a cron job at the scheduled time
- B . Run bin Mgento index:reinde. customer_segment
- C . Click on the Refresh Segment Data button in the Admin
- D . Re-save the customer segment in the Admin
You are working on a project where many catalog managers often change products in the admin panel.
The merchant is considering changing the indexers mode to "Update on Schedule" from "Update on Save" to achieve better performance. However, the merchant is concerned about data consistency and the probability of the scheduled updates being lost.
How does Magento store the IDs of updated products for reindex in "Update on Schedule" mode?
- A . Magento is gathering updated IDs using catalog_product_save_commit_after events and publishes them into the Message Queue.
- B . Magento sets a reindex_required flag on updated products and a later reindex run by the cron will pick up IDs based on that flag.
- C . Using the Staging update scheduled for every minute, which includes modified products, Magento will automatically reindex affected products when the update is applied.
- D . Magento enables database triggers which collect updated IDs and saves them in special changelog tables.