An Adobe Commerce Developer has created a new custom block extending \Magento\Framework\view\Element\AbstractBlock and has set the cache_lifetime data property for the block so that the output gets cached.
The block is inserted into the sidebar, and displays differing content depending on which currency is being used. The developer finds that the block is displaying the same content for all currencies, depending on which currency is viewed first after the cache has been flushed.
How would the developer resolve this?
An Adobe Commerce developer is working on an Acme_Exceptions module which is supposed to overwrite logic inside some of Magento native exceptions such as \Magento\Frame-work\Exception\NoSuchEntityException or \Mogento\Framwork\GraphQ1\Exception\GrephQlInputException , The module is open-source and will be available on packagist.org.
The build of the codebase of projects, including the module, will sometimes take place in docker containers with full access to filesystem. but then it is deployed to a read-only filesystem.
Which two approaches would the developer use to overwrite logic in those exceptions? (Choose two.)
An Adobe Commerce developer wants to cover their custom modules with Integration Tests. However, the project they are working on includes a 3rd party module that introduces a new search engine which needs to be used in Integration Tests as well. To do so. catalog/search/engine in the core.config_data table needs to be set to the customSearchEngine on the default scope.
They already created a phpunit.xml file in [m2 base dir/dev/tests/integration by copying unmodified content of phpunit.xml.dist from the same directory and will be using it for their tests.
How do they make sure that this setting is used for all the Integration Tests in their project using best practices?
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 IURLJ 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.xmi file?
An Adobe Commerce developer is being tasked with storing additional data for products added to the cart in the quote. A new column should be added to the Quote_item table to store the value-Following best practices, how would the developer extend the database to accomplish this?
A)
B)