nerdexam
Adobe

AD0-E716 · Question #35

An Adobe Commerce developer is tasked with adding an new export option for the order grid, they have added the following code for the export button within sales_order_grid.xml: Upon testing, they…

The correct answer is C. The developer has to add a formkey for the new export option. The developer has to add a formkey for the new export option because the formkey is required for security reasons. Without the formkey, the request will be rejected and redirected to the dashboard page. Verified Reference: [Magento 2.4 User Guide] [Magento 2.4 DevDocs]

Security

Question

An Adobe Commerce developer is tasked with adding an new export option for the order grid, they have added the following code for the export button within sales_order_grid.xml:

Upon testing, they are getting redirected, what would be a cause for this error?

Exhibit

AD0-E716 question #35 exhibit

Options

  • AThe option's uri attribute is not valid.
  • BThe layout cache needs to be refreshed.
  • CThe developer has to add a formkey for the new export option.

How the community answered

(30 responses)
  • A
    17% (5)
  • B
    10% (3)
  • C
    73% (22)

Explanation

The developer has to add a formkey for the new export option because the formkey is required for security reasons. Without the formkey, the request will be rejected and redirected to the dashboard page. Verified Reference: [Magento 2.4 User Guide] [Magento 2.4 DevDocs]

Topics

#formkey#CSRF protection#order grid export#admin panel

Community Discussion

No community discussion yet for this question.

Full AD0-E716 Practice