Question 1 (choose 2)
A developer is working on an Adobe Commerce Cloud project and wants to get connection data for the environment ' s deployed services. The developer has all of the necessary permissions to do this.
Which two options would the developer take to get the connection credentials? (Choose Two.)
- AOption A:
Run the magento-cloud relationships CLI Command.
- BOption B:
Get the data from the Project Web Interface dedicated section.
- COption C:
Execute ece-tools env:config:show services Command.
- DOption D:
Connect to server via SSH and read $_ENV[ ' services ' ] variable.
Show answer and explanation
Correct answer: A, B
In Adobe Commerce Cloud, connection data for deployed services (such as databases, caches, and other services) can be retrieved using different methods depending on the developer’s access and the tools available.
Using magento-cloud relationships Command :
This CLI command retrieves the connection credentials for the services associated with the environment, such as database and Redis, directly from the command line.
Project Web Interface :
The Project Web Interface provides a dedicated section where developers can access service connection details, making it convenient for those who prefer a graphical interface.
Why Options A and B are Correct :
Both methods are valid and frequently used for accessing connection information. Option C, ece-tools env:config:show services, does not exist. Option D, reading $_ENV[ ' services ' ], would require SSH access and does not provide direct connection details in a user-friendly format.
References :
Adobe Commerce documentation on Accessing Services