BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Adobe AD0-E722 Exam - Topic 7 Question 23 Discussion

Posted by Ryan on Aug 05, 2024 at 01:35 PM

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:

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

Suggested Answer: A, C

Option A is correct because enabling the config flag under deployment/blue_green/enabled is one of the steps to ensure zero downtime during the deployment process of Magento 2 on-premises. This flag enables the blue-green deployment feature, which allows deploying a new version of the Magento application to a separate environment (blue) without affecting the current live environment (green).Once the new version is ready, the traffic can be switched from green to blue with minimal or no downtime1.

Option C is correct because running bin/magento setup:upgrade --keep-generated is another step to ensure zero downtime during the deployment process of Magento 2 on-premises. This command updates the database schema and data without deleting the generated code and static view files.This way, the Magento application can still serve requests from the cache while the database is being upgraded2.

Option B is incorrect because running bin/magento setup:upgrade --dry-run=true does not upgrade the database, but only checks if there are any errors or conflicts in the database schema or data.This command can be used for testing purposes, but it does not affect the deployment process or the downtime3.

Option D is incorrect because there is no such option as --convert-old-scripts-true for the bin/magento setup:upgrade command. This option does not exist in Magento 2 and does not have any effect on the deployment process or the downtime.

Option E is incorrect because there is no such config flag as developer/zero_down_time/enabled in Magento 2. This flag does not exist in Magento 2 and does not have any effect on the deployment process or the downtime.


1: Blue-green deployment | Adobe Commerce Developer Guide

2: Deploy Magento to production | Adobe Commerce Developer Guide

3: Command-line installation options | Adobe Commerce Developer Guide

Get Premium AD0-E722 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
35 comments · newest first
AN
Antione 12 months ago
A is definitely not the way to go, we need to balance performance and freshness.
TA
Tamra 1 year ago
C seems complicated, but might be worth it for accuracy.
AP
Apolonia 1 year ago
Surprised that caching is causing outdated info, thought it was more reliable.
AN
Antonio 1 year ago
I disagree, I think A is too extreme, we need some caching!
ME
Meaghan 1 year ago
Option B sounds like the best approach for managing cache tags.
EL
Elmira 1 year ago
I’m uncertain about the cacheable directive in option A. It seems like it could lead to performance issues if we don't cache anything at all.
RO
Rolf 1 year ago
I feel like the resolver class approach in option C could be effective, but I can't recall the exact implementation details we covered.
DE
Denise 1 year ago
I think option B sounds familiar. We practiced something similar where we used cache tags to manage data freshness for products.
LO
Louis 1 year ago
I remember we discussed caching strategies in class, but I'm not sure if disabling the cache completely is the best approach.
TR
Tracie 1 year ago
I'm feeling pretty confident about this one. The cache identity directive seems like the most robust solution to ensure the data is up-to-date while still maintaining good performance.
JO
Johnathon 1 year ago
The key here is balancing performance and data freshness. I'll need to weigh the pros and cons of each option and decide which one best fits the requirements.
LI
Lindsey 1 year ago
Okay, I think I have a strategy here. I'll focus on using the cache identity directive to ensure the relevant cache tags are being invalidated when brand or product data changes.
BO
Bong 1 year ago
Hmm, I'm a bit confused by the different caching directives mentioned. I'll need to review the documentation to understand the differences and implications of each approach.
KR
Kristin 1 year ago
This seems like a tricky one. I'll need to carefully consider the caching options and how they impact the performance and freshness of the data.
CA
Carmen 1 year ago
Okay, I think I've got a handle on this. The key is understanding that USER1 is a common user across the application container and its PDBs. So based on the commands executed, I believe USER1 should be able to connect to APP1_ROOT and APP1_PDB1. I'll select those options.
OT
Otis 1 year ago
I think opening inventory is definitely a debit balance since it's an asset, but I can't recall about income tax expense.
HE
Helga 2 years ago
Option A? More like 'Option Oops, I Killed the Website'! Seriously, who wants to turn off caching entirely? That's like trying to drive a car without any tires.
BE
Benedict 2 years ago
This is a tricky one, but I agree that option B is the way to go. Gotta love those cache tags - they make life so much easier!
HE
Hester 1 year ago
↳ replying to Benedict
Definitely. Cache tags are a great tool for maintaining performance.
LI
Lizette 1 year ago
↳ replying to Benedict
Agreed. Option B seems like the most efficient solution for this issue.
DO
Doretha 1 year ago
↳ replying to Benedict
I think so too. It's important to make sure the data is up to date.
KE
Kenda 1 year ago
↳ replying to Benedict
Option B is definitely the way to go. Cache tags are a lifesaver!
JO
Josphine 2 years ago
Haha, option A is a bit overkill, don't you think? Turning off caching completely is just asking for a performance disaster. I prefer option B - it's a more targeted approach.
KA
Kathryn 2 years ago
Caching the GraphQL queries is important, but you're right, we need to make sure the data is fresh. Option B seems like the most robust solution here.
BL
Blair 1 year ago
↳ replying to Kathryn
Definitely, maintaining performance while ensuring data freshness is key in this scenario.
ST
Stephanie 1 year ago
↳ replying to Kathryn
Yeah, that sounds like a solid solution to keep the data up to date.
MI
Micheline 1 year ago
↳ replying to Kathryn
I think Option B is the way to go, it adds cache tags for relevant brands and products.
DI
Dion 2 years ago
Hmm, the key here is maintaining performance while ensuring the data is up-to-date. I think option B looks promising - using a cache identity class to add relevant cache tags seems like a good way to handle this.
DO
Donte 1 year ago
↳ replying to Dion
I think option B is the way to go to solve the issue of out-of-date information while keeping performance in check.
RA
Rachael 1 year ago
↳ replying to Dion
It's important to find a balance between performance and data accuracy, and option B seems to achieve that.
SA
Samuel 2 years ago
↳ replying to Dion
Yeah, using a cache identity class to add cache tags for relevant brands and products sounds like a smart approach.
AN
Angella 2 years ago
↳ replying to Dion
I agree, option B seems like a good solution to ensure the data is up-to-date while maintaining performance.
MA
Mayra 2 years ago
Hmm, that makes sense too. Option B could indeed be a good way to solve the problem while keeping performance in check.
BE
Bev 2 years ago
I disagree, I believe option B is more appropriate. Adding cache tags for relevant brands and products will help maintain performance.
MA
Mayra 2 years ago
I think option A is the best solution. We need to make sure the data returned is always up to date.
0/2000 characters

Save Cancel