ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 42 - AD0-E722 discussion

Report
Export

A client is migrating to Adobe Commerce Cloud and has approximately 800 existing redirects that must be implemented. The number of redirects cannot be reduced because all redirects are specific, and do not match any pattern.

How should the redirects be configured to ensure performance?

A.
Add each redirect in the magento/routes.yaml file.
Answers
A.
Add each redirect in the magento/routes.yaml file.
B.
Use VCL snippets to offload the redirect to Fastly.
Answers
B.
Use VCL snippets to offload the redirect to Fastly.
C.
Add each redirect as a URL rewrite via the admin Ul.
Answers
C.
Add each redirect as a URL rewrite via the admin Ul.
Suggested answer: B

Explanation:

Option B is correct because using VCL snippets to offload the redirect to Fastly is the best way to configure the redirects and ensure performance. VCL snippets are custom code segments that can be added to the Fastly configuration to modify the behavior of the caching service. By using VCL snippets, the redirects can be handled at the edge server level, without reaching the Magento application or the database.This reduces the server load and improves the response time for the redirected requests1.

Option A is incorrect because adding each redirect in the magento/routes.yaml file is not a recommended way to configure the redirects. The magento/routes.yaml file is used to define custom routes for Magento Cloud projects, such as mapping domains or subdomains to environments or services.Adding redirects in this file can cause conflicts with the existing routes and affect the routing logic of the project2.

Option C is incorrect because adding each redirect as a URL rewrite via the admin UI is not an optimal way to configure the redirects. The URL rewrite feature in Magento allows creating custom URLs for products, categories, and CMS pages, and redirecting them to their canonical URLs. However, adding a large number of URL rewrites can increase the database size and affect the performance of the Magento application.Moreover, using the admin UI for this task can be tedious and error-prone3.

1: Custom VCL snippets | Adobe Commerce Developer Guide

2: Configure routes | Adobe Commerce Developer Guide

3: URL Rewrites | Adobe Commerce User Guide

asked 02/10/2024
Courage Marume
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first