GitHubGithub GH-600 Agentic AI Developer Certification ·EN ·Updated 15 Jul 2026

A developer asks Copilot CLI to add retry handling to a flaky deployment helper script. The script is used by a GitHub Actions job that must fail when deployment cannot be verified. Copilot proposes the following change. What should you change before accepting the proposed script? Select one answer.

#!/usr/bin/env bash
set -euo pipefail

deploy_preview() {
  ./scripts/deploy-preview.sh
}

for attempt in 1 2 3; do
  echo "deploy attempt ${attempt}"
  if deploy_preview; then
     echo "deployment completed"
     break
  fi

  echo "deployment failed, retrying"
  sleep 15
done

echo "verifying preview"
curl --fail --retry 3 --retry-delay 5 "$PREVIEW_HEALTH_URL"

Choose an answer

Tap an option to check your answer.

Pass your exam — without the endless answer hunt

Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.

Pass your exam faster No card needed
✓ Verified by ExamRoll editorial · Updated 15 July 2026
All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product