nerdexam
Adobe

AD0-E716 · Question #49

AD0-E716 Question #49: Real Exam Question with Answer & Explanation

The correct answer is C. Configure secondstore.example.com subdomain route in .magento/routes.yaml.. The developer can set up a subdomain for one of their websites by configuring the subdomain route in the .magento/routes.yaml file. This file defines how incoming requests are routed to different applications or services on the Adobe Commerce Cloud platform. The developer needs t

Question

A merchant of an Adobe Commerce Cloud project wants to setup one of their websites using a subdomain. The merchant is considering the domain to be set as secondstore.example.com. In addition to editing the magento-vars.php file, and apply a domain check and set $_SERVER["MAGE_RUN_CODE"] and $_SERVER["MAGE_RUN_TYPE"]. What file is required to perform this action?

Options

  • AConfigure secondstore.example.com subdomain route in NGINX virtual-host configuration file.
  • BConfigure secondstore.example.com subdomain route in .magento/services.yaml.
  • CConfigure secondstore.example.com subdomain route in .magento/routes.yaml.

Explanation

The developer can set up a subdomain for one of their websites by configuring the subdomain route in the .magento/routes.yaml file. This file defines how incoming requests are routed to different applications or services on the Adobe Commerce Cloud platform. The developer needs to add a route for secondstore.example.com and map it to the same application as example.com. The developer also needs to specify the upstream variable for secondstore.example.com as MAGE_RUN_CODE and MAGE_RUN_TYPE. Verified Reference: [Magento 2.4 DevDocs] 3

Community Discussion

No community discussion yet for this question.

Full AD0-E716 Practice