Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: pass65

Exam AD0-E722 All Questions
Exam AD0-E722 All Questions

View all questions & answers for the AD0-E722 exam

Adobe Commerce AD0-E722 Question # 7 Topic 1 Discussion

AD0-E722 Exam Topic 1 Question 7 Discussion:
Question #: 7
Topic #: 1

An existing Adobe Commerce website is moving to a headless implementation.

The existing website features an "All Brands'' page, as well as individual pages for each brand. All brand-related pages are cached in Varnish using tags in the same manner as products and categories.

Two new GraphQL queries have been created to make this information available to the frontend for the new headless implementation:

AD0-E722 Question 7

During testing, the queries sometimes return out-of-date information. How should this problem be solved while maintaining performance?


A.

Specify a @cacgecacheable(cacheable: false) directive for each GraphQL query, making sure that the data returned is not cached, and is up to date


B.

Specify a $cache(cacheidentity: Path\\To\\identityclass) directive for each GraphQL query, corresponding to a class that adds cache tags for relevant brands and associated products


C.

Each GraphQL query's resolver class should inject \Magento\GraphQlcache\Model\cacheableQuery and call setcachevalidity(true) on it as part of the resolver's resolve function.


Get Premium AD0-E722 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.