AD0-E725 practice question 1 of 10

A Developer working on an Adobe Commerce Cloud project encounters an issue with the database service that requires investigation. To troubleshoot the issue, the Developer decides to securely access the cloud services from the local machine to directly interact with the services and run diagnostic commands. Which command step is required to achieve this?

Full set: 50 questions
Answer options
A: Use the php bin/magento cloud:tunnel:connect command to access the cloud services.
B: Use the magento-cloud service:connect command to access the cloud services.
C: Use the magento-cloud tunnel:open command to access the cloud services. Correct answer
Correct Answer:
C. Use the magento-cloud tunnel:open command to access the cloud services.
Explanation

The magento-cloud tunnel:open command is the correct and standard method provided by the Adobe Commerce Cloud CLI to establish a secure SSH tunnel. This tunnel connects a local port on the developer's machine to a specific service (like a database or Redis) within the cloud environment. This allows the developer to use local clients and tools to directly and securely interact with the remote service for troubleshooting and diagnostics, as described in the scenario.

Why Incorrect

A. The php bin/magento executable is used for Magento application-specific commands, not for managing the cloud infrastructure or establishing network connections like SSH tunnels.
B. The command magento-cloud service:connect is not a valid command within the Adobe Commerce Cloud CLI toolset. The correct command group for this functionality is tunnel.

References

1. Adobe Commerce on Cloud Infrastructure Guide: In the section "Connect to the database," the guide explicitly instructs developers to use the magento-cloud tunnel:open command to create a secure connection to the database service. (See Adobe Commerce Developer Guide -> Cloud for Adobe Commerce -> Develop -> Connect to the database).

2. Adobe Commerce Cloud CLI Reference: The official documentation for the Cloud CLI lists tunnel:open as the command to "Open a tunnel to a service in the environment." It details the usage and arguments for connecting to services like database, redis, or elasticsearch. (See Adobe Commerce Developer Guide -> Cloud for Adobe Commerce -> Reference -> Cloud CLI reference -> CLI commands -> tunnel:open).

Scroll to Top