Skip to main content

AD0-E717 Adobe Commerce Developer Professional

  • Adobe
  • 5 free sample questions

About this exam

AD0-E717 is the Adobe exam Adobe Commerce Developer Professional. Paid practice material for this exam is not available yet, but you can try its free sample questions.

Exam code
AD0-E717
Vendor
Adobe
Practice questions
Not available yet
Free sample questions
5
Question bank last updated
Not available yet

Try 2 sample questions

Taken from the free sample set for AD0-E717.

Question 1

A developer is working on a task that includes a custom controller creation. A controller should forward the request to a different action.

How can the developer complete this task?

  1. Option A:

    Specify the forward action in the controllerjorward.xml configuration file.

  2. Option B:

    Implement a forwardToAction method in the controller, and return the action where the request should be forwarded.

  3. Option C:

    Return the forward object with action as an argument in the object's forward method

Show answer and explanation

Correct answer: C

To forward the request to a different action, the developer can use the following code in the controller:

return $resultForward- > forward(‘action’);

where $resultForward is an instance of \Magento\Framework\Controller\Result\ForwardInterface and ‘action’ is the name of the action where the request should be forwarded.

There is no controllerjorward.xml configuration file or forwardToAction method in Adobe Commerce.

Verified References: [Adobe Commerce Developer Guide - Forward action result]

In Magento, to forward a request from one controller action to another, a developer can utilize the forward method available in the controller action class. This is achieved by returning a result from the action method that instructs Magento to forward the request to another action. The forward object is obtained by calling the $this- > resultForwardFactory- > create() method within the controller action. Then, the target action is specified by calling the forward method on this object with the action name as the argument, such as $resultForward- > forward('targetAction') . This approach is consistent with Magento's emphasis on using result objects to control the flow of request processing within its MVC architecture.

Question 2

A merchant has noticed an error in the checkout. The accessed URL is /checkout.

Where can the developer find the responsible controller in the Magento.Checkout module?

  1. Option A:

    Controller/lndex/lndex.php

  2. Option B:

    Controller/lndex/Checkout.php

  3. Option C:

    Controller/Checkout/lndex.php

Show answer and explanation

Correct answer: C

The controller responsible for handling the /checkout URL is located in Controller/Checkout/Index.php in the Magento.Checkout module 1 .  This controller extends from \Magento\Checkout\Controller\Index\Index, which implements the execute() method that renders the checkout page 1 .

In the Magento_Checkout module, the responsible controller for the /checkout URL can be found in Controller/Checkout/Index.php . This controller handles the index action for the checkout process, initiating the checkout page when a customer navigates to /checkout. The organization of controllers in Magento follows a convention where the URL path corresponds to the directory structure within the module, making it easier to locate and understand the functionality associated with specific routes​​.

See all 5 free sample questions