You are migrating an existing Magento 2 website to Magento Commerce Cloud. After setting up the project you would like to migrate the database to the Integration branch. The database import fails with a disk space error.
How do you migrate the database without data loss?
A. Configure the mysql disk size using a variable in the .magento.env.yaml file
B. Open a Magento Support ticket to increase the Integration branch disk size
C. Trim down the database to a smaller size
D. Configure the mysql disk size in the .magento/services.yaml file
You are a technical admin on a Magento Commerce Cloud account. A coworker needs to submit a support request with Magento Support.
What is needed to enable support ticket access?
A. Ask the account owner to add the user to shared access.
B. Ask the launch manager to create a support account for this user.
C. Change the environment access role to contributor for this user.
D. Update the project role of this user to administrator.
You have a project deploying Static Content on the deploy phase. This process is optimized using the SCD_MATRIX configuration in the deploy stage of the .magento.env.yaml file.
After moving the process to the build phase, Static Content Deployment is no longer optimized and all themes and all locales are generating.
How do you resolve this?
A. The SCD_MATRIX configuration is only used on the deploy phase
B. Add the --use_scd_matrix flag to the ece-tools build:generate command in the .magento.app.yaml file
C. Move the SCD_MATRIX configuration to the build stage of the .magento.env.yaml file
D. Configure the variable ENABLE_SCD_MATRIX in the .magento.env.yaml file
You are debugging an issue with an extension that only occurs in Production. The extension writes
relevant information using the debug log level.
However, that specific information is not getting written to the logs on Production.
How do you fix this?
A. Enable developer mode in Production for a short period to gather the required information
B. Write a custom logger that writes the debug information to var/log/custom.log
C. Enable debug logging in app/etc/config.php locally and deploy it to Production
D. Enable debug logging in the Admin interface in Production
You want to exclude some themes from static assets generation only for integration environments. You are trying to choose where to set the SCD_EXCLUDE_THEMES variable in the .magento.env.yaml file or in the Project Web UI.
What prevents the usage of the .magento.env.yaml file?
A. Child environments inherit the variable when you use the .magento.env.yaml file
B. The code from integration would be merged into the Staging and Production branches
C. The .magento.env.yaml file can contain only deployment configuration options, which are only available if static assets generation runs on the deploy phase
D. Only variables which are set using the Project Web UI has the option visible during build
You upgraded an integration branch in your Magento Commerce Cloud project, but received an error during the deploy phase.
What are the two ways to review details about the deployment? (Choose two.)
A. View the logs in the var/reports/ directory on the remote server
B. View the exception.log file in the var/log/ directory
C. View the deploy.log file in the /var/log/ directory
D. View the cloud.log file in the var/log/ directory
Your company decided to move a Magento store to a subdomain https://shop.company.com/ and redirect traffic from the old URL https://company.com/ to the new one. Your company is using the Starter plan.
How do you implement the redirect?
A. Configure a rewrite rule in the .htaccess file in the pub folder.
B. Submit a support ticket to add the redirect on the web-server level.
C. Add a route using the MAGENTO_CLOUD_ROUTES environment variable.
D. Add a route into the .magento/routes.yaml configuration file.
You need to disable a module on a Magento Commerce 2.3 Cloud project and remove its database tables. The module uses the declarative schema system to manage its database changes.
Which action do you take?
A. Run bin/magento module:disable MyCompany_MyModule on the local environment and then commit and deploy the app/et/config.php file
B. Run bin/magento module:disable MyCompany_MyModule on the production environment and download and commit the app/etc/config.php file
C. Delete the module from the git repository leaving the record in app/etc/config.php intact and deploy the changes
D. Remove the module line from the app/etc/config.php file on the local environment and then deploy the file
You need to get code with a backend order placement security related fix into production as quickly as possible.
The project currently deploys static content during the build phase with both stage/global/SKIP_SCD and stage/deploy/STATIC_CONTENT_SYMLINK set to false.
What setting in magento.env.yaml minimizes the overall deployment time?
A. Remove all themes from stage/global/SCD_MATRIX so they will not be generated
B. Set stage/global/STATIC_CONTENT_SYMLINK to true to symlink static assets to the init directory
C. Set stage/global/SCD_COMPRESSION_LEVEL to 0 to avoid the compression overhead
D. Set stage/global/SKIP_SCD to true to completely avoid static content processing
After installing a Magento extension that implements a new class for a site and deploying this to an integration environment, you see it is not working.
In the logs, you discover the following error: The specified /app/generated/code/MyCompany/MyModule/MyClassFactory.php could not be written failed to open stream: Read-only file system
How do you fix this?
A. A support ticket should be filed with Magento Commerce Cloud to fix the filesystem issue.
B. The extension should be modified so it does not write to generated at runtime.
C. The file should be generated locally and pushed via Git.
D. The GENERATED_CODE_WRITABLE variable should be set to true whenever using extensions.