Service Containers Configuration Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering Design and Implement Workflow Structure

What you'll be asked

  1. What is the primary purpose of using a service container in a workflow configuration?
  2. When defining a service container in a GitHub Actions workflow, which keyword is used to specify the Docker image for the service?
  3. If your application code needs to connect to a database running in a service container, how do you reference the service host?
  4. You have a job that requires a Redis service. Why might you use the 'healthcheck' option within the service definition?
  5. When using multiple service containers that share the same network, how are ports handled to avoid conflicts on the runner?

Answers and explanations come after you submit.