Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe Exam AD0-E720 Topic 4 Question 22 Discussion

Actual exam question for Adobe's AD0-E720 exam
Question #: 22
Topic #: 4
[All AD0-E720 Questions]

An Adobe Commerce developer needs to pass JSON data to a JavaScript component while keeping XSS prevention strategies in mind.

Which two options would the developer use? (Choose two.)

A)

C)

D)

Show Suggested Answer Hide Answer
Suggested Answer: B

The bin/magento dev:source-theme:deploy command is used to create symlinks for frontend theme files during development. This command allows the developer to modify source files without running static content deployment every time. The developer can use parameters to specify the type, locale, theme, and file names for creating symlinks. For example, to create symlinks for a CSS file named styles-l.css for the Vendor/Orange theme and the en_US locale, the developer can use:

bin/magento dev:source-theme:deploy --type=less --locale=en_US --theme=Vendor/Orange css/styles-l

The other two options are incorrect because they do not create symlinks for frontend theme files. The bin/magento dev:theme:deploy command is used to register themes with Magento and clear caches. The bin/magento deploy:mode:set command is used to change the application mode. Reference:Adobe Commerce Developer Documentation,Adobe Inc.


Contribute your Thoughts:

Kathrine
2 days ago
I agree with Thaddeus. Option A seems like the best choice for preventing XSS attacks while passing JSON data.
upvoted 0 times
...
Thaddeus
3 days ago
I think the developer should use Option A because it looks like it provides a secure way to pass JSON data to a JavaScript component.
upvoted 0 times
...

Save Cancel