AD0-E709 Adobe Commerce Developer Expert

Loading demo links...

Showing 7–9 of 10 questions

Question 7

A Data Patch in a module being investigated implements \Magento\Framework\Setup\Patch\Patchversionlnterface and contains a getversion method which returns the string '2.4.2'.

What is the implication of this when php bin/magento setup:upgrade is run?

Select an option, then click Submit answer.

  • The patch will only apply if the version specified in the data_version column of the setbpjnodule table for our module is lower than '2.4.2'.

  • The patch will only apply if the version specified in the data_version column of the setup_module table for our module is higher than '2.4.2'.

  • The patch will only apply if the current version of the Magento Framework is '2.4.2', and likely contains code that is incompatible with later versions.

Question 8

An Adobe Commerce developer is developing a class that is executed in both the frontend and crontab areas. When executed in the frontend \Magnto\Customer\Model\session::getCu5tonteria() is called but when executed in the crontab this section of code is skipped.

Keeping performance and best practices in mind, what would be the best approach to achieve this?

Select an option, then click Submit answer.

  • Inject the \Magento\Customer\Model\Session\Proxy class in the constructor of their class and call the getCustomer id function wherever required in the class.

  • Declare \Magento\Customer\Model\Session in the constructor dependency of their class and declare a proxy in the di.xml. Then call the getCustomerid function wherever required in the class.

  • Declare \Magento\Customer\Model\.session in the constructor of their class dependency and call the getCustomrid() function wherever required.

Question 9

An Adobe Commerce developer has created a process that exports a given order to some external accounting system. Launching this process using the Magento CLI with the command php bin/tagento "/.module:order:process --oruer_id- is required.

Example: php bin/magento ny_module:order:proeess --order_id=1245.

What is the correct way to configure the command?

A)

B)

C)

Select an option, then click Submit answer.

  • Option

  • Option

  • Option