Magento Certified Professional Cloud Developer — Question 4
You need to increase the Admin Session Lifetime up to 86400 seconds for the branch named Integration and children branches, but not for the Staging and
Production branches.
How do you update this on the Integration branch and its child branches?
Answer options
- A. On your local environment, set the Admin Session Lifetime in the Magento admin backend under Stores > Configuration > Advanced > Admin > Security then dump this setting into the app/etc/config.php file and commit this file
- B. Add the following variable on the Integration branch and set its value to 86400: env:CONFIG_STORES_DEFAULT_ADMIN_SECURITY_SESSION_LIFETIME
- C. Run the following Magento CLI command: php bin/magento config:set admin/security/session_lifetime 86400
- D. On the Integration environment, set the Admin Session Lifetime in the Magento admin backend under Stores > Configuration > Advanced > Admin > Security
Correct answer: D
Explanation
The correct answer is D because it directly updates the Admin Session Lifetime in the Magento admin backend specifically for the Integration branch and its children. Options A and C suggest methods that are either not applicable for the specific branches or involve unnecessary steps. Option B is incorrect as it suggests setting an environment variable which does not directly affect the session lifetime in the context provided.