Pass the Adobe Adobe Commerce AD0-E724 Questions and answers with CertsForce

Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions
Questions # 21:

How can a developer prioritize a plugin's execution, if possible?

Options:

A.

The developer can use sortOrder property by specifying a lower value than the target plugin.


B.

The developer can use sortOrder property by specifying a higher value than the target plugin.


C.

This cannot be achieved as the plugins are always executed by their module's load order in app/etc/config.php file.


Expert Solution
Questions # 22:

A developer has informed the Adobe Support team about a planned traffic surge on an Adobe Commerce Cloud project that will take place in a little over 48 hours.

What is an advantage of this prior notice?

Options:

A.

When the traffic arrives, extra server resources will be available.


B.

The project will temporarily use an upgraded Fastly plan


C.

The Support team will monitor the website during that time


Expert Solution
Questions # 23:

An Adobe Commerce developer is working on a Magento 2 instance which contains a B2C and a B2B website, each of which contains 3 different store views for English, Welsh, and French language users. The developer is tasked with adding a link between the B2C and B2B websites using a generic link template which is used throughout the sites, but wants these links to display in English regardless of the store view.

The developer creates a custom block for use with this template, before rendering sets the translate locale and begins environment emulation using the following code:

Question # 23

They find that the template text is still being translated into each stores language. Why does this occur?

Options:

A.

startEnvironmffntEmulation() SetS and locks the locale by Using the setLocale() Optional Second $lock parameter, i.e. setLocale($newLocaleCode,

true), to override and lock the locale of the emulated store. If this is set and locked initially then the environment emulation will not be able to override this.


B.

startEnvironmentEmuiation() resets the translation locale to the one of the emulated stores, which overrides the locale the developer has set when the order of setLocate and startEnvironmentEmulation is used as displayed above.


C.

setLocate() does not change translation locale after it has been initially set, the $this->_translate->emulate($newLocaiecode) method exists to temporarily modify this by pushing the new locale to the top of the current emuiatedLocales stack.


Expert Solution
Questions # 24:

How would a developer turn on outgoing emails on an Adobe Commerce Cloud Staging environment?

Options:

A.

From the command line

ece-tools enable_smtp true


B.

From the command line

magento-cloud environment:info -p -e enable_smtp true


C.

Access the Project Web Interface and select the Staging environment.

Select Configure environment.

Toggle Outgoing emails On


Expert Solution
Questions # 25:

What action can be performed from the Cloud Project Portal (Onboarding Ul) of an Adobe Commerce Cloud project?

Options:

A.

Set your developer SSH public key.


B.

Update Project and environment variables


C.

Add a Technical Admin


Expert Solution
Questions # 26:

Which two actions will the developer need to take to translate strings added in JS files? (Choose two.)

Options:

A.

define ([

'jquery,

'mage/translate'

), function ($, $t) {.„»;


B.

$ trans( ,')


C.

$.mage._(');


D.

translate('');


Expert Solution
Questions # 27:

Which method type can be intercepted by plugins?

Options:

A.

final


B.

static


C.

public


Expert Solution
Questions # 28:

On an Adobe Commerce Cloud platform, at what level is the variable env: composer_auth located in the Project Web Interface?

Options:

A.

In the Environment-specific variables.


B.

In the Integration variables.


C.

In the Project variables.


Expert Solution
Questions # 29:

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

Options:

A.

The environment is marked as "inactive", the git branch is still present but the database is deleted.


B.

The environment is completely deleted. Including git branch and database.


C.

The environment is marked as "inactive", the git branch and the database are still present.


Expert Solution
Questions # 30:

An Adobe Commerce developer is asked to implement a 15% surcharge for all users from a 'Wholesale' customer group. Keeping best practices in mind, what is a correct to accomplish this?

Options:

A.

Declare a new total collector class to calculate the modified total if the current user is in the group, register it in the module's etc/sales .xml file, modify the checkout_cart_index.xml and checkout_index_index.xml layouts to include a new child in the totals block.


B.

Create a Cart Price Rule that applies only to the 'Wholesale' group. Specify no conditions for the rule, and in the Actions section, specify for the rule to apply a "Percent of product price discount", with the 'Discount Amount" field set to -15.


C.

Create an Observer to the cataiog_product_get_final_price event. Check if the current customer is in the 'Wholesale' group, and if so, retrieve the

product from the $observer->getEventC) data and Call $product->setData('final_price', $product->getData( 'final_price') * 1.15).


Expert Solution
Viewing page 3 out of 5 pages
Viewing questions 21-30 out of questions