Adobe AD0-E703 Adobe Certified Expert – Adobe Commerce Developer Online Training
Adobe AD0-E703 Online Training
The questions for AD0-E703 were last updated at Nov 22,2024.
- Exam Code: AD0-E703
- Exam Name: Adobe Certified Expert - Adobe Commerce Developer
- Certification Provider: Adobe
- Latest update: Nov 22,2024
How do you pass an array [‘one’, ‘two] as a parameter to you block using the layout XML arguments directive?
- A . Option A
- B . Option B
- C . Option C
- D . Option D
A Magento industry partner shipping provider has tasked you to build their integration module called MyCompany_ShippingProvider.
Where do you define the class that provides options for the select field that enables or disables the provider in the file etc/adminhtml/system.xml?
- A . <option_model>MagentoConfigModelConfigOptionYesno</option_model>
- B . <source_model>MagentoConfigModelConfigSourceYesno</source_model>
- C . <frontend_model>MagentoConfigModelConfigFrontendYesno</frontend_model>
- D . <backend_model>MagentoConfigModelConfigBackendYesno</backend_model>
A custom module is performing an optimized custom query for quote items.
The class applies the query customizations on the select object of a quote item collection instance.
You are tasked to resolve an issue where the query sometimes does not deliver the expected results. You have debugged the problem and found another class is also using a quote item collection and is loading the collection before the custom module.
How do you resolve the issue, keeping maintainability in mind?
- A . You change the argument type toMagentoQuoteModelResourceModelQuoteItemCollectionFactory and instantiate the collection using $collectionFactory->create();
- B . You remove the constructor argument and use ObjectManager::getInstance()->create(MagentoQuoteModelResourceModelQuoteItemCollection::class) to instantiate the collection instead.
- C . You inject MagentoFrameworkDBSelect instead of the collection and perform the desired query independently of the collection.
- D . You inject MagentoQuoteApiCartItemRepositoryInterface because low level query customizations are not allowed.
A merchant tasks you to keep sales managers out of the system configuration backend pages.
How do you do that using the admin interface?
- A . You remove access to the restricted pages from each user’s ACL settings
- B . You create a role with limited permissions and assign all sales manager users to the new role
- C . This is not possible in a native Magento instance and requires customization
- D . You create a role with access to the system configuration pages and assign it to all users except the sales managers
A merchant tasked you to add an input field for notes to the Customer Account Information backend page.
Which three actions do you specify in a module’s Data Patch to add a customer notes attribute? (Choose three.)
- A . $cache->clean([‘eav’, ‘db_ddl’]);
- B . $customerSetup->addAttribute(‘customer’, ‘notes’, $options);
- C . $customerSetup->getConnection()->addColumn(‘customer_entity’, ‘notes’, $columnSpecs);
- D . $notesAttribute->setData(‘used_in_forms’, [‘adminhtml_customer’]);
- E . $customerSetup->addAttributeToSet(‘customer’, $attributeSetIdCustomer, $groupId, ‘notes’);
You want to remove a column introduced by a third-party extension via declarative schema.
How do you do that?
- A . Create the etc/db_schema.xml file and specify disable=”true” on the column
- B . Modify the original etc/db_schema.xml file and remove the column from there
- C . Create a SchemaPatch file and remove the column programmatically
- D . Copy the etc/db_schema.xml file into your module and remove the column from your copy
You need to find all orders in the processing state. You have written the code:
How do you resolve the exception?
- A . Use dependency injection to load an instance of the SearchCriteria class
- B . Change the getList parameter to: $searchCriteraBuilder->addFilter(‘state’,’processing’)->create()
- C . Clear generated code to get a new version of SearchCriteriaBuilder
- D . Specify a preference in di.xml to map SearchCriteriaBuilder to SearchCriteriaInterface
How do you add a foreign key to an existing table created by another module?
- 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
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?
- A . If the custom module is removed, the custom template will no longer apply
- B . This setup will throw an IllegalStateException
- C . If a preference for the core block is set, the template will no longer apply
- D . If another module is installed which also customizes the same core template, the templates will be rendered sequentially
You see this code in etc/adminhtml/routes.xml:
<route id="mymodule" frontName="user-subscriptions">
<module name="MyCompany_MyModule" />
</route> You have placed a controller in Controller/Index/Subscribe.php.
If you want to create layout XML instructions for this controller, what would be the layout XML’s filename?
- A . mymodule_index_subscribe.xml
- B . mymodule_subscribe_[ACTION NAME].xml
- C . user_subscriptions_index_subscribe.xml
- D . user_subscriptions_subscribe_[ACTION NAME].xml