ExamGecko
Home / Adobe / AD0-E716 / List of questions
Ask Question

Adobe AD0-E716 Practice Test - Questions Answers, Page 2

Add to Whishlist

List of questions

Question 11

Report Export Collapse

An Adobe Commerce developer is writing an integration test. They checked some Integration Tests for Magento core modules for reference and noticed that they use data fixtures initialized by adding annotations to test classes. For example:

Adobe AD0-E716 image Question 11 92078 10022024174755000000

The developer wants to add their own fixture to test a MyVendor_MyModule they created. Which steps will make this possible?

1- Create a PHP file with the fixture data inside their own module in [module dir]/Test/integration/_fiies/my_fixture.php.2- Add the following annotation to the test method:
1- Create a PHP file with the fixture data inside their own module in [module dir]/Test/integration/_fiies/my_fixture.php.2- Add the following annotation to the test method:
1- Create a PHP file With the fixture data in [magento root dir]/dev/tests/integration/testsuite/MyVendor/MyModule/_files/my_fixture.php.2- Add the following annotation to the test method:
1- Create a PHP file With the fixture data in [magento root dir]/dev/tests/integration/testsuite/MyVendor/MyModule/_files/my_fixture.php.2- Add the following annotation to the test method:
1- Create a PHP file with the fixture data inside their own module in [module dir]/Test/integration/_f iies/my_f ixture.php.2- Add the following annotation to the test method:
1- Create a PHP file with the fixture data inside their own module in [module dir]/Test/integration/_f iies/my_f ixture.php.2- Add the following annotation to the test method:
Suggested answer: B
Explanation:

To add a custom fixture to test a MyVendor_MyModule, the developer needs to do the following:

Create a PHP file with the fixture data in[magento root dir]/dev/tests/integration/testsuite/MyVendor/MyModule/_files/my_fixture.php.

Add the following annotation to the test method:

@magentoDataFixture(

'testsuite/MyVendor/MyModule/_files/my_fixture.php'

)

This will tell Magento to load the fixture data from the my_fixture.php file before the test method is executed.

asked 02/10/2024
Christopher Harden
56 questions

Question 12

Report Export Collapse

An Adobe Commerce developer has created a before plugin for the save() function within the

Magento\Framework\App\cache\Proxy class. The purpose of this plugin is to add a prefix on all cache identifiers that fulfill certain criteria.

Why is the plugin not executing as expected?

Another around plugin defined for the same function does not call the callable.
Another around plugin defined for the same function does not call the callable.
Cache identifiers are immutable and cannot be changed.
Cache identifiers are immutable and cannot be changed.
The target ClaSS implements Magento\Framework\ObjectManager\NoninterceptableInterface.
The target ClaSS implements Magento\Framework\ObjectManager\NoninterceptableInterface.
Suggested answer: C
Explanation:

According to the Plugins (Interceptors) guide for Magento 2 developers, plugins are class methods that modify the behavior of public class methods by intercepting them and running code before, after, or around them. However, some classes in Magento 2 implement the NoninterceptableInterface interface, which prevents plugins from being generated for them. The Magento\Framework\App\cache\Proxy class is one of them, as it extends from Magento\Framework\ObjectManager\NoninterceptableInterface. Therefore, the plugin is not executing as expected because the target class implements NoninterceptableInterface. Verified

Reference: https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html

asked 02/10/2024
Reed G Porter
34 questions

Question 13

Report Export Collapse

An Adobe Commerce developer has installed a module from a third-party vendor. This module fires a custom event named third_party_event_after and also defines an observer named third_party_event_after_observer that listens to that event. The developer wants to listen to this custom event in their own module but wants to execute their observer's logic after the third_party_event_after_observer observer has finished executing.

What would the developer do to ensure their observer runs after the observer defined by the third-party module?

Become a Premium Member for full access
  Unlock Premium Member

Question 14

Report Export Collapse

An Adobe Commerce developer has been asked to modify the PageBuilder slider content type to allow a new custom content type (other than slide) to be assigned as a child. The developer has already created the new content type called improved_slide in their module. They now need to create a new view/adminhtml/pagebuilder/content_type/slider. xml file in their module to allow the new content type to be a child of slider content types.

What is the correct xml to accomplish this?

A)

Adobe AD0-E716 image Question 14 92081 10022024174755000000

B)

Adobe AD0-E716 image Question 14 92081 10022024174755000000

C)

Adobe AD0-E716 image Question 14 92081 10022024174755000000

Become a Premium Member for full access
  Unlock Premium Member

Question 15

Report Export Collapse

An Adobe Commerce developer creates a new website using a data patch. Each website will have unique pricing by website. The developer does not have visibility into the production and staging environments so they do not know what the configuration currently is.

How would they ensure the configuration is deployed and consistent across all environments?

Become a Premium Member for full access
  Unlock Premium Member

Question 16

Report Export Collapse

An Adobe Commerce developer was asked to provide additional information on a quote. When getting several quotes, the extension attributes are returned, however, when getting a single quote it fails to be returned.

What is one reason the extension attributes are missing?

Become a Premium Member for full access
  Unlock Premium Member

Question 17

Report Export Collapse

A logistics company with an Adobe Commerce extension sends a list of reviewed shipment fees to all its clients every month in a CSV file. The merchant then uploads this CSV file to a 'file upload' field in admin configuration of Adobe Commerce.

What are the two requirements to display the 'file upload' field and process the actual CSV import? (Choose two.)

A)

Adobe AD0-E716 image Question 17 92084 10022024174755000000

B)

Adobe AD0-E716 image Question 17 92084 10022024174755000000

C)

Adobe AD0-E716 image Question 17 92084 10022024174755000000

D)

Adobe AD0-E716 image Question 17 92084 10022024174755000000

Become a Premium Member for full access
  Unlock Premium Member

Question 18

Report Export Collapse

An Adobe Commerce developer is tasked with adding custom data to orders fetched from the API. While keeping best practices in mind, how would the developer achieve this?

Become a Premium Member for full access
  Unlock Premium Member

Question 19

Report Export Collapse

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/magento my_module:order: process --order_id=<order_id> is required.

Example: php bin/magento my_module:order:process --order_id=1245.

What is the correct way to configure the command?

A)

Adobe AD0-E716 image Question 19 92086 10022024174755000000

B)

Adobe AD0-E716 image Question 19 92086 10022024174755000000

C)

Adobe AD0-E716 image Question 19 92086 10022024174755000000

D)

Adobe AD0-E716 image Question 19 92086 10022024174755000000

Become a Premium Member for full access
  Unlock Premium Member

Question 20

Report Export Collapse

An Adobe Commerce developer is working on a Magento 2 instance which contains a B2C and a B2B website, each of which contains 3 different store views for English, Welsh, and French language users. The developer is tasked with adding a link between the B2C and B2B websites using a generic link template which is used throughout the sites, but wants these links to display in English regardless of the store view.

The developer creates a custom block for use with this template, before rendering sets the translate locale and begins environment emulation using the following code:

Adobe AD0-E716 image Question 20 92087 10022024174755000000

They find that the template text is still being translated into each stores language. Why does this occur?

Become a Premium Member for full access
  Unlock Premium Member
Total 69 questions
Go to page: of 7
Search

Related questions