QuestionQ381

Infrastructure and Automation

Question Image

Refer to the exhibit. A developer manages an application and wants to deploy each newly released version to the test environment. To automate this workflow, the developer creates a Bash script. Drag the deployment steps into the order that identifies the workflow automated by the script.

Drag & Drop
connects to the server
installs the application
restarts the application
creates variables for remote execution
places a new application version on the server
step 1
step 2
step 3
step 4
step 5
Explanation

The script defines connection and deployment variables before opening an SSH session. The remote Git commands update the selected branch, npm install installs dependencies, and the PM2 stop/start commands restart the application process.

Community Discussion

No comments yet. Be the first to start the discussion!