exam questions

Exam AD0-E722 All Questions

View all questions & answers for the AD0-E722 exam

Exam AD0-E722 topic 1 question 14 discussion

Actual exam question from Adobe's AD0-E722
Question #: 14
Topic #: 1
[All AD0-E722 Questions]

An Adobe Commerce store owner sets up a custom customer attribute “my_attribute”.
An Architect needs to display additional content on the home page, which should display only to Customers with “my_attribute” of a certain value and be the same content for all of them. The website is running Full Page Cache.
With simplicity in mind, which two steps should the Architect take to implement these requirements? (Choose two.)

  • A. Add a new context value of “my.attribute” to Magento\Framework\App\Http\Context
  • B. Create a Customer Segment and use “my_attribute” in the conditions
  • C. Add a custom block and a pHTML template with the content to the cmsjndexjndex.xml layout
  • D. Add a dynamic block with the content to the Home Page
  • E. Use customer-data JS library to retrieve “my_attribute” value
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
crino
3 months, 3 weeks ago
Selected Answer: AD
Explanation To display additional content on the home page based on a custom customer attribute, the Architect needs to do the following steps: Add a new context value of "my_attribute" to Magento\Framework\App\Http\Context. This will allow the Full Page Cache to generate different versions of the page for customers with different values of "my.attribute". The context value can be set using a plugin on the Magento\Customer\Model\Context class. Add a dynamic block with the content to the Home Page. A dynamic block is a type of content block that can be configured to display only to specific customer segments or conditions. The Architect can use the 'my.attribute' in the conditions of the dynamic block and assign it to the Home Page in the Content > Blocks section of the Admin Panel. References: Private content | Magento 2 Developer Documentation Dynamic Blocks | Adobe Commerce 2.3 User Guide - Magento
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago