Question 5

 After adding new themes and locales, an Adobe Commerce developer
notices that the static content has exponentially grown since the last

deployment.

Which static content deployment strategy should the developer choose to

keep the file footprint at a minimum?

 

a) Quick

b) Compact

c)
Standard

 

Ans : B

 

Question 4

 A developer is working with a custom module and needs to use
virtualType with the class constructor array arguments in the di.xml.

How would the developer pass an array ['one', 'two'] as an argument to

virtualType using the di.xml?


a)  

<argument name=""custom_data"" xsi:type=""array"">one, two</argument>
 

b)

 <argument name=""custom_data"" xsi:type=""array"">
     <item name=""0"" xsi:type=""string"">one</item>

     <item name=""1"" xsi:type=""string"">two</item>

 </argument>


c)


<argument name=""custom_data"" xsi:type=""object"">

     <item name=""0"" xsi:type=""string"">one</item>

     <item name=""1"" xsi:type=""string"">two</item>

</argument>

 

d) 

<argument name=""custom data"" xsi:type=""array"" data=""one, two""/>

Ans : B

Question 3

 A developer is writing a customization for a third-party vendor module.
The developer needs to make sure the configuration files from the

module are loaded after the third-party module's configuration.

Where should the dependency be declared as per Adobe Commerce

architecture?

 

a) etc/config.xml

b) etc/module.xml

c)
etc/di.xml

 

Ans : B

Question2

 An Adobe Commerce developer has been asked to create a custom Page
Builder content type to render a grid of tiles showing available categories

that can be clicked to navigate to the resulting product listing page. This

content type accepts parameters to determine which categories to

display. The client has asked that the User be able to see the resulting

tiles appear in the Stage after the settings on the content type have been

saved.

How can this be accomplished?


a) Create a custom controller and layout to generate the resulting markup based on the provided parameters and call it via AJAX from the `preview.js` file.
 

b) Override the `afterObservablesUpdated` method of the `preview.js` file and call the `getPreview('content-type-name')` method from `Magento_PageBuilder/js/config`, where `content-type-name` is the name of the custom content type.
 

c) Create a renderer that implements `\Magento\PageBuilder\Model\Stage\RendererInterface` and use `di.xml` to add it to the `renderers` argument of `Magento\PageBuilder\Model\Stage\RendererPool`.

 

Ans : c 

Question 1

 A developer has built a custom module that introduces a new entity. A
client reports that after saving the new entity value in the backend, the

frontend page still contains an old value.

How should the developer make sure that the frontend page shows the

updated value?


a) sections.xml file must have defined routes where the cache should be cleared

b) An implementation of Identity Interface for the frontend block

c)
Layout files must have cacheable=false set on specific block

d)
cache.xml file must have a definition to clear the cache automatically

Ans : B