An Adobe Commerce developer must modify the PageBuilder slider content type so a new custom content type, rather than slide, can be assigned as its child. The developer has already created the new content type, named improved_slide, in their module. They now need to create view/adminhtml1/pagebuilder/content_type/slider.xml in that module to permit the new content type as a child of slider content types.
What XML correctly accomplishes this?
A
B
C
0
Community Discussion
No comments yet. Be the first to start the discussion!
An Adobe Commerce developer is building a new console command to perform a complex task that can generate a great deal of terminal output. If an error happens, they want to display a message with greater visibility than other content that may be shown, ensuring it is highlighted in red (as shown in the screenshot):
How can they customize this message's appearance?
ACall the setDecorationType($type) method on the Symfony\Console\Output\OutputInterface object before calling writeln().
BWrap the output content in tags like <error>, <info>, or <comment>.
CThrow a new CommandException with the desired message passed as an argument.
0
Community Discussion
No comments yet. Be the first to start the discussion!
A merchant on an Adobe Commerce Cloud Pro plan is encountering performance problems in its integration environments and wants to upgrade to Enhanced Integration Environments.
What steps are required before redeploying to upgrade to Enhanced Integration Environments?
A
Limit the number of Integration branches to two2. Submit a support ticket requesting the upgrade
B
Limit the number of Integration branches to three2. Set the ENV_ENVIRONMENT in .magento.env.yaml to ENHANCED_INTEGRATION
C
Limit the number of Integration branches to four2. Configure integration environments in the cloud GUI and set the Enhanced switch to On
0
Community Discussion
No comments yet. Be the first to start the discussion!
An Adobe Commerce developer has added a new API method to search for and retrieve a list of Posts for a custom Blog feature.
This is the module’s etc/webapi.xml file:
The new code has been deployed to production, and the merchant is using https://merchant.domain.com/swagger to review the new endpoint, but it is not displayed in Swagger.
What could explain this?
AThe webapi.xml file should be moved into the etc/webapi_rest/webapi.xml file.
BSince the new endpoint is not anonymous, the merchant needs to enter a valid integration token in swagger in order to see the new method.
CThe @return annotation is missing in the MyVendor\Blog\Api\PostRepositoryInterface class.
0
Community Discussion
No comments yet. Be the first to start the discussion!
A logistics company that uses an Adobe Commerce extension sends every client a CSV file containing a list of reviewed shipment fees each month. The merchant uploads this CSV file to a “file upload” field in Adobe Commerce Admin configuration.
Which two requirements are needed to display the “file upload” field and process the actual CSV import?
Choose two
A
B
C
D
E
0
Community Discussion
No comments yet. Be the first to start the discussion!
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
Save question
0
Community Discussion
No comments yet. Be the first to start the discussion!
An Adobe Commerce developer has created a new shipping carrier. All components have been implemented, and the collectRates() and getAllowedMethods() functions are shown below:
Based on this code, what cost will be displayed for the shipping method, and what final amount will the customer be charged?
AThe shipping method would display $0 but customers would pay a $10 handling fee for their order.
BThe shipping method would display $0 and customers would pay $0 for using the new shipping method.
CThe shipping method would display $10 and customers would pay $10 for using the new shipping method.
An Adobe Commerce developer is preparing to deploy a critical feature to Adobe Commerce Cloud (Pro Plan) production. They want to create a snapshot so they can roll back if the feature causes an issue.
How should they create the snapshot?
AUse the dedicated button on Project Web Interface.
BUse the Cloud CLI for Commerce dedicated command.
CCreate a ticket to Adobe Commerce Cloud support.
A module’s di.xml file registers two plugins for the Action class. PluginA defines the methods beforeDispatch, aroundDispatch, and afterDispatch. PluginB defines the methods beforeDispatch and afterDispatch.
The around-plugin code is:
What is the plugin execution order?
A
B
C
An Adobe Commerce developer must create a custom block that is displayed in the site footer on every page.
After the development is complete and optimized, the developer finds that generating the block on each page takes too long and chooses to store it in the system cache after enabling all cache groups.
What is the minimum requirement to accomplish this?
ASet a value for the cache_lifetime data property of the block.
BSet a value for cache_key data property of the block.
CSet values for both cache_lifetime and cache_key data properties of the block.
An Adobe Commerce developer has built a process that exports a specified order to an external accounting system. The process must be launched through the Magento CLI with:
An Adobe Commerce developer has built a module that adds a product attribute to every product type through a Data Patch.
According to best practices, how should the developer ensure that this product attribute is removed if the module is later uninstalled?
AAdd an Uninstall.php file extending \Magento\Framework\Setup\UninstallInterface to the module's setup directory and implement the uninstall method.
BAdd instructions to the module's README.md file instructing merchants and developers that they must manually remove this attribute if they want to uninstall the module.
CMake the Data Patch implement \Magento\Framework\Setup\Patch\PatchRevertableInterface and implement the revert method to remove the product attribute.
An Adobe Commerce developer has added a new configuration field in the Admin area. The option path is general/store_information/out_of_hours_phone.
With simplicity in mind, how should the developer ensure that this option contains a valid US telephone number?
AAdd <validate>phoneUS</validate> to the field in system.xml.
BCreate a backend model to check the validity of the phone number entered.
CAdd <validate type="phoneUS"/> to the field in system.xml.
An Adobe Commerce developer has installed a module supplied by a third-party vendor. The module dispatches a custom event named third_party_event_after and defines an observer named third_party_event_after_observer that listens for that event. The developer wants to listen for this custom event from their own module, but needs their observer’s logic to run after the third_party_event_after_observer observer has completed.
What should the developer do to ensure that their observer runs after the observer defined by the third-party module?
AEnsure the third-party module is listed in the <sequence> node of the developer's module.xml file.
BSet the sortOrder of the new observer to be less than that of the third-party vendor's observer.
CThis is not possible as observers listening to the same event may be invoked in any order.
An Adobe Commerce developer is building a Marketplace module (Vendor_ModuleName). The module creates a database table through declarative schema, and the developer now needs to ensure that the table is removed when the module is disabled.
What must the developer do to achieve this?
AThere is nothing further the developer needs to do. The table will be removed when the module is disabled and bin/magento setup:upgrade is run.
BThere is nothing further the developer needs to do. The table will be removed when the when bin/magento module:uninstall Vendor_ModuleName is run.
CAdd a schema patch that implements Magento\Framework\Setup\Patch\PatchRevertableInterface and drops the table in the revert function.
An Adobe Commerce developer is building a new module to extend cart functionality. The module is installed in app/code/CompanyName/ModuleName/.
How can the developer extend the existing CartItemPrices GraphQL schema to add a custom base_price field?
ACreate and configure a <preference> for Magento\QuoteGraphQl\Model\Resolver\CartitemPrices that adds the base_price field in the resolve() function.
B
C
An Adobe Commerce developer is attempting to create a custom table using declarative schema but is unable to do so.
What are two errors in the snippet shown above?
Choose two
AColumn (roll_no) does not have index. It is needed since attribute identity is set to true.
BColumn (entity_id) does not have index. It is needed since attribute identity is set to false.
CColumn (student_name) does not have attribute length.
DNULL is not a valid value for column (roll_no).
An Adobe Commerce developer is creating a module to manage custom brand entities and needs to reproduce the following SQL query with SearchCriteria:
Which code snippet would generate the required SQL query?
A
B
C
An international merchant reports that, after a full product import, changes take too long to appear on the frontend.
Suspecting database issues, the Adobe Commerce developer gathers these entity counts:
Categories: 900
Products: 300k
Customers: 700k
Customer groups: 106
Orders: 1600k
Invoices: 500k
Creditmemos: 50k
Websites: 15
Stores: 45
What is a likely cause?
AThe combination of the number of products, categories and stores is too big. This leads to a huge amount of values being stored in the flat catalog indexes which are too large to be processed at a normal speed.
BThe combination of the number of orders, customers, invoices and creditmemos is too big. This leads to a huge amount of values being stored in the customer grid index which is too large to be processed at a normal speed.
CThe combination of the number of products, customer groups and websites are too big. This leads to a huge amount of values being stored in the price index which is too large to be processed at a normal speed.
A developer is working on an Adobe Commerce Cloud project and needs to obtain connection data for the environment’s deployed services. The developer has all required permissions to do so.
Which two actions can the developer take to retrieve the connection credentials?
Choose two
ARun the magento-cloud relationships CLI command.
BGet the data from the Project Web Interface dedicated section.
DConnect to server via SSH and read $_ENV[‘SERVICES’] variable.
An Adobe Commerce developer is building a custom module. As part of the implementation, they have decided that every instance of their Custom\Module\Model\Example class must receive a new instance of Magento\Filesystem\Adapter\Local.
How can the developer accomplish this with di.xml?
A
B
C
While reviewing the cron logs, an Adobe Commerce developer observes that this job runs daily:
main.INFO: Cron Job inventory_cleanup_reservations is successfully finished.
However, the database inventory_reservation table is not cleared.
Why do records remain in the inventory_reservation table?
AOnly reservations matching canceled orders are removed by the cron job.
BOnly reservations no longer needed are removed by the cron job.
CThe “Auto Cleanup” feature from Multi Source Inventory was disabled in configuration.
An Adobe Commerce Developer has created an importer and exporter for a custom entity. The client uses them to modify exported data and then re-import the file to batch-update the entities.
A text attribute, media_gallery, contains imagery-related information in JSON form. The client does not want to change this field, but the software used to edit the exported data appears to modify it, preventing a successful import.
How should the developer prevent this?
A
B
C
An Adobe Commerce developer has been asked to create a new cron job that runs a method that has already been written.
What are the minimum required steps to do this?
ACreate a crontab.xml file and a new system configuration in system.xml for the schedule.
BCreate crontab.xml and cron_groups.xml files to assign the new job to a cron group.
CCreate a crontab.xml file and set a schedule for the new cron job.
Which hashing algorithm does Adobe Commerce select for hashing customer passwords?
AIf the Sodium extension is installed, SHA256 will be chosen, otherwise MD5 will be used as the Magento default hashing algorithm.
BIf the Sodium extension is installed, Argon 2ID13 will be chosen, otherwise SHA256 will be used as the Magento default hashing algorithm.
CIt does not matter if the Sodium extension is installed or not, the Magento hashing default algorithm will be SHA256.
For security purposes, a merchant asks a developer to change the default Admin URL to a unique URL for every branch/environment in their Adobe Commerce Cloud project.
Which CLI command would the developer use to update the Admin URL?
Community Discussion