Courseiva

LPIC-2 Practice Question: Block Devices, Filesystems and Advanced Storage

Arrange the steps to configure a Linux system as a PostgreSQL database server.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Install PostgreSQL, then initialize the database cluster, then start the PostgreSQL service, then create a user and database, then test the connection.

The correct order to configure a Linux system as a PostgreSQL database server is: install PostgreSQL, initialize the database cluster using initdb, start the PostgreSQL service, create a database user and database, and then test the connection. Each step depends on the previous one; for example, starting the service requires the cluster to exist, and creating users requires the service to be running.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Install PostgreSQL, then initialize the database cluster, then start the PostgreSQL service, then create a user and database, then test the connection.

    Why this is correct

    This is the correct order because you must install the software first, then initialize the database cluster (creating the data directory), then start the service to accept connections, then create users/databases, and finally test the connection.

  • Install PostgreSQL, then start the PostgreSQL service, then initialize the database cluster, then create a user and database, then test the connection.

    Why it's wrong here

    This is incorrect because the PostgreSQL service cannot start successfully unless the database cluster has been initialized first. Starting before init will fail.

  • Install PostgreSQL, then initialize the database cluster, then create a user and database, then start the PostgreSQL service, then test the connection.

    Why it's wrong here

    This is incorrect because creating a user and database requires the PostgreSQL service to be running. The service must be started before you can create users or databases.

  • Install PostgreSQL, then start the PostgreSQL service, then create a user and database, then initialize the database cluster, then test the connection.

    Why it's wrong here

    This is incorrect because you cannot start the service or create users before initializing the database cluster. Initialization must happen first, before any other step involving the database.

About these practice questions

This LPIC-2 question is part of Courseiva's 507-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-2 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-2 exam.