exam questions

Exam AD0-E716 All Questions

View all questions & answers for the AD0-E716 exam

Exam AD0-E716 topic 1 question 25 discussion

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

An Adobe Commerce developer is tasked with creating a custom block that will be displayed on every page in the footer of the site.
After completing and optimizing the development, the developer notices that the block takes too much time to be generated on each page and decides to store it in the system cache after enabling it for all cache groups.
What would be the minimum requirement to achieve this?

  • A. Set a value for the cache_lifetime data property of the block.
  • B. Set a value for cache_key data property of the block.
  • C. Set values for both cache_lifetime and cache_key data properties of the block.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
arierave
3 months ago
Selected Answer: C
C is correct according to claude.ai epos
upvoted 1 times
...
falcofemoralis
3 months, 2 weeks ago
Selected Answer: A
according to the code setting a value for the cache_lifetime should be enough protected function _saveCache($data) { if (!$this->getCacheLifetime() || !$this->_cacheState->isEnabled(self::CACHE_GROUP)) { return false; } $cacheKey = $this->getCacheKey(); $this->_cache->save($data, $cacheKey, array_unique($this->getCacheTags()), $this->getCacheLifetime()); return $this; }
upvoted 1 times
...
some_gyy
5 months, 2 weeks ago
Selected Answer: A
I think lifetime is the only option required
upvoted 2 times
...
JasonZhuo
6 months, 2 weeks ago
I choose B
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