Question 31

An Adobe Commerce Cloud project is using Enhanced Integration Environments with two install a new payment module.
The developer is using Cloud CLI for Commerce tool.
What would a developer do to test this new feature under the integration environment?

Correct Answer:C
The developer can test the new feature under the integration environment by deactivating one of the active integration environment branches, creating a new active branch from integration and installing the module, and pushing the changes. This is because Enhanced Integration Environments have a limit of four active branches at a time, and each branch has its own dedicated database and services. The developer can use the Cloud CLI for Commerce tool to manage the branches and deploy the code changes. Verified References: [Magento 2.4 DevDocs] 1
Enhanced Integration Environments in Adobe Commerce Cloud have a limit on the number of active branches. If both integration branches are currently active, one must be deactivated to create a new active branch for testing.
✑ Creating a New Active Integration Branch:
✑ uk.co.certification.simulator.questionpool.PList@400543f4
✑ Why Option C is Correct:
: Adobe Commerce Cloud documentation onBranch Management

Question 32

An Adobe Commerce developer has added an iframe and included a JavaScript library from an external domain to the website. After that, they found the following error in the console:
Refused to frame [URL] because it violates the Content Security Policy directive.
In order to fix this error, what would be the correct policy ids to add to the csp_whitelist.xml file?

Correct Answer:A
The Content Security Policy (CSP) in Adobe Commerce (Magento) restricts the types of content that can be loaded on a page to protect against malicious attacks, such as cross-site scripting (XSS). When an iframe is added, and a JavaScript library is loaded from an external source, these resources must be whitelisted explicitly using the csp_whitelist.xml file.
In this specific case:
✑ The frame-src directive controls the sources from which iframes can be embedded. Since the developer is embedding an iframe from an external domain, they need to whitelist this domain for frame-src.
✑ The script-src directive controls the sources from which JavaScript files can be loaded. The external JavaScript library must be whitelisted under script-src to allow it to execute.
Therefore, the correct policy IDs to whitelist are:
✑ frame-src: to allow the embedding of content from an external domain in an iframe.
✑ script-src: to allow the loading and execution of JavaScript files from the external domain.
Here??s how to update the csp_whitelist.xml file with the correct directives:
<?xml version="1.0"?>
<whitelist xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Csp:etc/csp_whitelist.x sd">
<policy id="frame-src">
<values>
<value id="your-external-domain.com"/>
</values>
</policy>
<policy id="script-src">
<values>
<value id="your-external-domain.com"/>
</values>
</policy>
</whitelist>
Replace your-external-domain.com with the actual domain of the external iframe and JavaScript source.
Additional Resources:
✑ Adobe Commerce Developer Guide: Content Security Policy (CSP)
✑ CSP Policies and Directives: Explanation of all supported CSP directives and how to configure them.

Question 33

An Adobe Commerce developer is tasked with creating a custom block that will be displayed on every page in the footer of the site.
After completing and optimizing the development, the developer notices that the block takes too much time to be generated on each page and decides to store it in the system cache after enabling it for all cache groups.
What would be the minimum requirement to achieve this?

Correct Answer:A

Question 34

For security reasons, merchant requested to a developer to change default admin url to a
unique url for every branch/environment of their Adobe Commerce Cloud project. Which CLI command would the developer use update the admin url?

Correct Answer:B
The CLI command that the developer would use to update the admin url is magento-cloud variable:set ADMIN_URL. This command sets an environment variable called ADMIN_URL with a custom value for the admin url on a specific environment. Environment variables are configuration settings that affect the behavior of the Adobe Commerce Cloud application and services. By setting an environment variable for ADMIN_URL, the developer can change the default admin urlto a unique url for every branch/environment of their Adobe Commerce Cloud project. Verified References: [Magento 2.4 DevDocs]

Question 35

What is an advantage of the read-only core file system using Adobe Commerce Cloud?

Correct Answer:A
The read-only core file system on Adobe Commerce Cloud ensures that all changes to the production environment are tracked. This is because any changes to the code must go through version control, and the deployment pipeline, which includes stages like build, staging, and production. This approach helps maintain consistency across environments, ensures deployment best practices, and reduces human error by preventing direct changes on production servers.

Question 36

On the Adobe Commerce Cloud Project Web Interface, what will be performed when clicking on the "Delete" button of an integration environment?

Correct Answer:B
On the Adobe Commerce Cloud Project Web Interface, clicking on the "Delete" button of an integration environment will completely delete the environment, including the associated git branch and database. This action is irreversible and is used to remove an environment that is no longer needed. The environment, once deleted, frees up resources for the project and cannot be restored.

START AD0-E724 EXAM