Question 18 of 20Pro Only
Walk me through how you would write a deployment script. What components would it include and what error handling would you add?
Sample answer preview
A production deployment script needs to be reliable, idempotent, and provide clear feedback. Here is how I would structure it. First, the script header with strict error handling: #!/bin/bash set -euo pipefail IFS=$'\n\t' SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" &&…
set -euo pipefailtraprollbackhealth checkidempotentlogging