Winter Special Flat 65% Limited Time Discount offer - Ends in 0d 00h 00m 00s - Coupon code: suredis

Adobe AD0-E716 Adobe Commerce Developer Expert Exam Practice Test

Demo: 20 questions
Total 69 questions

Adobe Commerce Developer Expert Questions and Answers

Question 1

A developer wants to deploy a new release to the Adobe Commerce Cloud Staging environment, but first they need the latest code from Production.

What would the developer do to update the Staging environment?

Options:

A.

1. Log in to the Project Web Interface.

2. Choose the Staging environment, and click Sync

B.

1. Log in to the Project Web Interface.

2. Choose the Staging environment, and click Merge

C.

1. Checkout to Production environment

2. Use the magento-cloud synchronize Commerce CLI Command

Question 2

An Adobe Commerce developer has added a new configuration field to the admin area. The path for this option is general/store_information/out_of_hours_phone.

Keeping simplicity in mind, how would the developer ensure this option contains a valid US telephone number?

Options:

A.

Add phoneUS to the field in system.xml.

B.

Create a backend model to check the validity of the phone number entered.

C.

Add to the field in system.xml.

Question 3

An Adobe Commerce developer has created a module that adds a product attribute to all product types via a Data Patch-According to best practices, how would the developer ensure this product attribute is removed in the event that the module is uninstalled at a later date?

Options:

A.

Add an Uninstall.php file extending \l1agento\Framework\Setup\UninstallInterface tO the module's Setup directory and implement the uninstall

method.

B.

Add instructions to the module's README.md file instructing merchants and developers that they must manually remove this attribute if they want to uninstall the module.

C.

Make the Data Patch implement \Magento\Framework\setup\Patch\PatchRevertabieinterface and implement the revert method to remove the® product attribute.

Question 4

An Adobe Commerce developer wants to create a product EAV attribute programmatically which should appear as WYSIWYG in the admin panel. They have made sure that wysiwyg_enabled has been set to true, however, the attribute is not appearing as WYSIWYG in the admin panel.

What would be a possible reason?

Options:

A.

The is_html_allowed_on_front Option iS Set tO false.

B.

The input type is not set to text.

C.

The input type is not set to textarea.

Question 5

A developer is working on an Adobe Commerce Cloud project and wants to get connection data for the environment's deployed services. The developer has all of the necessary permissions to do this.

Which two options would the developer take to get the connection credentials? (Choose Two.)

Options:

A.

Run the magento-cloud relationships CLI Command.

B.

Get the data from the Project Web Interface dedicated section.

C.

Execute ece-tools env:config:show services Command.

D.

Connect to server via SSH and read $_ENV['services'] variable.

Question 6

An Adobe Commerce Developer has written an importer and exporter for a custom entity. The client is using this to modify the exported data and then re-importing the file to batch update the entities.

There is a text attribute, which contains information related to imagery in JSON form, media_gallery. This is not a field that the client wants to change, but the software they are using to edit the exported data seems to be modifying it and not allowing it to import correctly.

How would the developer prevent this?

A) Specify a serializer class for the attribute using the $_transformAttrs class property array for both the exporter and importer so it gets converted:

B) Strip the attribute from the imported file by adding it to the s_strippedAttrs class property array:

C) Prevent it from being exported by adding it to the $_disat>iedAttrs class property array:

Options:

A.

Option A

B.

Option B

C.

Option C

Question 7

An Adobe Commerce Developer wishes to add an action to a pre-existing route, but does not wish to interfere with the functionality of the actions from the original route.

What must the developer do to ensure that their action works without any side effects in the original module?

Options:

A.

In the route declaration, use the before or after parameters to load their module in before or after the original module.

B.

Inject the new action into the standard router constructor's $actiomist parameter.

C.

Add the action into to the controllers/front_name/ in My.Module, Magento will automatically detect and use it.

Question 8

An Adobe Commerce Cloud developer wants to be sure that, even after transferring database from Production to Staging, the payment configurations are still valid on the Staging environment.

What does the developer need to add to be sure that the configurations are always properly set?

Options:

A.

Lines in the dedicated core_conf ig_data_stg table.

B.

Project level environment variables.

C.

Environment level environment variables.

Question 9

An Adobe Commerce Cloud merchant has been experiencing significant downtime during production deployment. They have already checked that the application is in ideal state.

In addition to the configuration of the SCD.MATRIX variable to reduce amount of unnecessary theme files, what would be the next steps to reduce the downtime?

Options:

A.

1. Check SCD is configured under the build phase.

2. Increase the SCD.THREADS to speed up the build process.

B.

1. Check SCD is configured under deploy phase.

2. Decrease the SCD.THREADS to speed up the build process

C.

1. Check SCD is configured under the build phase.

2. Check if Adobe Commerce Cloud automatically adjusts SCD.THREADS.

Question 10

A merchant of an Adobe Commerce Cloud project wants to setup one of their websites using a subdomain. The merchant is considering the domain to be set as secondstore.example.com.

In addition to editing the magento-vars.php file, and apply a domain check and set $_SERVER["MAGE_RUN_CODE"] and $_SERVER["MAGE_RUN_TYPE"].

What file is required to perform this action?

Options:

A.

Configure secondstore.example.com subdomain route in NGINX virtual-host configuration file.

B.

Configure secondstore.example.com subdomain route in .magento/services.yaml.

C.

Configure secondstore.example.com subdomain route in .magento/routes.yaml.

Question 11

A merchant is experiencing performance issues on integration environments of their Adobe Commerce Cloud Pro plan and wants to upgrade to Enhanced Integration Environments.

What are the steps necessary prior to redeploying in order to upgrade to Enhanced Integration Environments?

Options:

A.

1. Limit the number of Integration branches to two

2. Submit a support ticket requesting the upgrade

B.

1. Limit the number of Integration branches to three

2. Set the ENV.ENVIRONMENT in .magento.env.yaml to ENHANCEDJNTEGRATION

C.

1. Limit the number of Integration branches to four

2. Configure integration environments in the cloud GUI and set the Enhanced switch to On

Question 12

ECE-Tools provides a set of tools that can be used to manage and maintain your Adobe Commerce Cloud environment. What are some of the features provided by ECE-Tools?

Options:

A.

Builds application, Applies custom patches and Dump configuration for static content deployment.

B.

Fastly configuration, Applies custom patches and Dump configuration for static content deployment.

C.

Builds application, Applies custom patches, and Shows the list of S3 backup tar.gz files.

Question 13

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).

Question 14

What is the command used to upgrade ECE-Tools on an Adobe Commerce Cloud platform?

Options:

A.

php ./vendor/bin/ece-tools upgrade

B.

composer update magento/ece-tools --with-all-dependencies

C.

magento-cloud ece-tools:upgrade

Question 15

An Adobe Commerce developer creates a new website using a data patch. Each website will have unique pricing by website. The developer does not have visibility into the production and staging environments so they do not know what the configuration currently is.

How would they ensure the configuration is deployed and consistent across all environments?

A)

B)

C)

Options:

A.

Option A

B.

Option B

C.

Option C

Question 16

When attempting operations that require lengthy processing, a merchant on Adobe Commerce Cloud receives a timeout error after 180 seconds.

How would the developer deal with this issue?

Options:

A.

1. Modify admin timeout into .magento.app.yamifile.

2. Commit and push that code from the local environment.

3. Move code to Production environment.

B.

1. In the Fastly Configuration section > Advanced Configuration.

2. Set the Admin path timeout value in seconds.

3. Save config and Upload VCL to Fastly.

C.

1. Modify admin timeout into app/etc/config.php file.

2. Commit and push that code from the local environment.

3. Submit a support ticket to apply the changes.

Question 17

An Adobe Commerce developer is tasked with adding custom data to orders fetched from the API. While keeping best practices in mind, how would the developer achieve this?

Options:

A.

Create an extension attribute on Nagento\sales\Api\E)ata\orderinterface and an after plugin on

Magento\Sales\Model\Order: :getExtensionAttributes() to add the custom data.

B.

Create an extension attribute On Magento\Sales\Api\Data\OrderInterface and an after plugin On Magento\Sales\Api\OrderRepositoryInterface On geto and getListo to add the custom data.

C.

Create a before plugin on Magento\sales\model\ResourceModel\order\collection: :load and alter the query to fetch the additional data. Data will then be automatically added to the items fetched from the API.

Question 18

An Adobe Commerce developer has created a new shipping carrier Everything has been implemented and the collectRates() and getAllowedMethodsQ functions can be seen below:

Given the above code, what would be the displayed cost of the shipping method and final amount charged to the customer?

Options:

A.

The shipping method would display SO but customers would pay a $10 handling fee for their order.

B.

The shipping method would display $0 and customers would pay $0 for using the new shipping method.

C.

The shipping method would display $10 and customers would pay $10 for using the new shipping method.

Question 19

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:

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.

Question 20

What are two features with Adobe Commerce Cloud that come out of the box? (Choose Two.)

Options:

A.

Support ACL

B.

Continuous deployment provided with the platform

C.

A built in connector with all major blog platforms

D.

Fastly

Demo: 20 questions
Total 69 questions