Flashcardsfor IT Certifications

D1: Service Containers

GH-200 GitHub Actions exam practice questions · 10 flashcards

Question
services: keyword?
1 / 10

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 10 Service Containers practice questions and answers
  1. services: keyword?
    Run sidecar containers (DB, cache, queue) for a job.
  2. Service containers require?
    Linux runners; Docker available (hosted Ubuntu or self-hosted Linux).
  3. Job in container vs on runner?
    If job runs in container:, services reachable by service name; on runner, via localhost and mapped ports.
  4. Mapping ports?
    ports: - 5432:5432.
  5. Health checks for services?
    options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5.
  6. Service env vars?
    env: POSTGRES_PASSWORD etc. on the service.
  7. Service credentials for private images?
    credentials: username/password.
  8. Accessing dynamic mapped port?
    ${{ job.services.<name>.ports['5432'] }}.
  9. container: keyword?
    Run all job steps inside a specified container image.
  10. Scenario: integration tests need Redis. Config?
    services: redis: image: redis with ports 6379:6379 and health check.