GITHUB-ACTIONS practice question 15 of 15
Without the need to use additional infrastructure, what is the simplest and most maintainable method for configuring a workflow job to provide access to an empty PostgreSQL database?
Full set: 72 questionsCorrect Answer:
A. Use service containers with a Postgres database from Docker hub.
Explanation
GitHub Actions supports the use of service containers, which allows you to spin up a PostgreSQL database (or any other service) in a Docker container during your workflow. You can pull a PostgreSQL image from Docker Hub, and the container will automatically be available to your workflow job. This method requires no additional infrastructure and is easy to configure and maintain, as you simply define the container in the workflow file.
Keep practicing
Take the free GITHUB-ACTIONS practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GITHUB-ACTIONS practice questions
- Question 1Which statement is true about using default environment variables?
- Question 2Which default GitHub environment variable indicates the owner and repository name?
- Question 3Which workflow event is used to manually trigger a workflow run?
- Question 4Which default GitHub environment variable indicates the name of the person or app that in…
- Question 5You are reaching your organization's storage limit for GitHub artifacts and packages. Wha…
- Question 6Which choices represent best practices for publishing actions so that they can be consume…
