Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

Certifications›LFCS›Objectives›Service Configuration
Objective 5.0

Service Configuration

LFCS Practice Questions

Use this page to practise Service Configuration questions for this certification. Focus on how the exam tests service configuration in scenario format — understanding the why behind each answer builds more durable knowledge than memorising options.

Full Practice Test →All Objectives

What this objective tests

LFCS Service Configuration — Key Topics

Service Configuration questions on this certification test your ability to deploy and manage service configuration concepts in scenario-based situations.

  • Core Service Configuration concepts and how they apply in real-world cloud scenarios.
  • How to deploy service configuration correctly and verify the outcome.
  • Troubleshooting service configuration issues by interpreting error output and system state.
  • Cloud best practices and Service Configuration design trade-offs tested by this certification.

Common exam traps

Where candidates lose marks on Service Configuration

  • ⚠Selecting the most expensive service when a simpler managed option meets the requirement.
  • ⚠Forgetting that cloud resources must be explicitly secured — defaults are rarely secure.
  • ⚠Choosing a global service fix when the issue is region-specific.
  • ⚠Overlooking cost implications of cross-region data transfer in architecture questions.

LFCS Service Configuration — Practice Questions

30 questions from this objective

Question 2mediummultiple choice
Full question →

A system administrator configures a web server using systemd. After creating a custom service unit file, the administrator runs `systemctl daemon-reload` but the service still fails to start with a 'Unit not found' error. What is the most likely cause?

Question 3hardmultiple choice
Full question →

A server runs a custom application that listens on TCP port 8080. The administrator wants to ensure the application starts automatically on boot and restarts if it crashes. Which systemd unit file directive should be used to achieve the restart behavior?

Question 4easymultiple choice
Full question →

An administrator needs to configure a service to run as a non-root user for security reasons. Which systemd unit file directive accomplishes this?

Question 5hardmultiple choice
Full question →

A developer reports that a web application's logs are not being written to /var/log/myapp.log. The service runs as user 'myapp' and the log directory /var/log/myapp/ has permissions 755 owned by root. What is the most likely cause?

Question 6mediummultiple choice
Full question →

An administrator wants to ensure that a custom service (myapp.service) starts only after the network is available and the PostgreSQL database service is running. Which systemd unit file directive should be used?

Question 7mediummulti select
Full question →

Which TWO statements are true about systemd service unit files? (Choose two.)

Question 8hardmulti select
Full question →

Which THREE actions will affect the state of a systemd service that is currently running? (Choose three.)

Question 9mediummultiple choice
Full question →

An administrator runs 'systemctl status sshd' and sees the output above. The administrator wants sshd to start automatically at boot. Which command should be used?

Exhibit

Refer to the exhibit.

# systemctl status sshd
● sshd.service - OpenSSH server daemon
   Loaded: loaded (/usr/lib/systemd/system/sshd.service; disabled; vendor preset: disabled)
   Active: active (running) since Mon 2025-03-10 14:23:45 UTC; 1h 30min ago
 Main PID: 1234 (sshd)
   CGroup: /system.slice/sshd.service
           └─1234 /usr/sbin/sshd -D

# netstat -tlnp | grep :22
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1234/sshd
Question 10hardmultiple choice
Study the full Python automation breakdown →

A system administrator is configuring a custom systemd service that runs a Python script. The script logs output to stdout. The administrator wants to ensure that the service restarts automatically if it crashes, but only after a 10-second delay. Which directive should be added to the [Service] section of the unit file?

Question 11easymultiple choice
Full question →

A Linux administrator needs to temporarily stop a service named 'httpd' without disabling it from starting automatically on subsequent boots. Which command should be used?

Question 12easymultiple choice
Full question →

A system administrator needs to ensure the Apache httpd service starts automatically on system boot. Which command should they use?

Question 13mediummulti select
Full question →

Which TWO commands can be used to check the status of the sshd service on a system using systemd?

Question 14hardmultiple choice
Full question →

A company runs a critical web application on a Linux server. The application is managed by a systemd service called 'myapp.service'. Recently, after a scheduled maintenance reboot, the service failed to start automatically. The administrator manually started it with 'systemctl start myapp' and it ran fine. The unit file is located at /etc/systemd/system/myapp.service and contains: [Unit] Description=MyApp After=network.target [Service] ExecStart=/usr/local/bin/myapp Restart=on-failure [Install] WantedBy=multi-user.target. The administrator wants to ensure the service starts automatically after future reboots. However, after running 'systemctl enable myapp', the service still didn't start after the next reboot. What is the most likely cause?

Question 15mediumdrag order
Full question →

Order the steps to create a new partition on a disk using fdisk.

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
Question 16mediummatching
Full question →

Match each Linux process signal to its numeric value.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

1

2

9

15

19

Question 17easymultiple choice
Full question →

Which command enables a service to start automatically at boot in a systemd-based system?

Question 18mediummultiple choice
Full question →

A custom systemd service unit file has been created but the service fails to start with 'Exec format error'. What is the most likely cause?

Question 19hardmultiple choice
Full question →

An administrator configures a systemd service with Restart=on-failure and RestartSec=10. What happens if the service exits with a non-zero exit code?

Question 20easymultiple choice
Full question →

To check the details of a failed systemd service unit, including the last log entries, which command is most appropriate?

Question 21mediummultiple choice
Full question →

A service is configured to run as a specific user. Which directive in the [Service] section sets the user?

Question 22easymultiple choice
Full question →

Which systemd unit type is used to group services and other units together for boot execution?

Question 23mediummultiple choice
Full question →

A system administrator wants to limit the CPU usage of a service. Which systemd resource control directive should be used?

Question 24hardmultiple choice
Full question →

To ensure a service starts only after /var/lib/mysql is mounted, which directive should be used in the unit file?

Question 25mediummultiple choice
Full question →

A service that was once enabled is now failing to start. The administrator wants to immediately disable it to prevent boot delays. Which command sequence is correct?

Question 26easymulti select
Full question →

Which TWO commands can be used to check the status of a service?

Question 27mediummulti select
Full question →

Which TWO directives are typically used in a systemd service unit file to configure dependencies?

Question 28hardmulti select
Full question →

Which THREE of the following are valid systemd unit types?

Question 29mediummultiple choice
Full question →

Based on the exhibit, what is the correct interpretation?

Exhibit

Refer to the exhibit.

Output of `systemctl status apache2`:

● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; generated; vendor preset: enabled)
   Active: active (running) since Mon 2023-08-14 10:15:30 UTC; 5min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 1234 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)
   Main PID: 5678 (apache2)

Warning: apache2.service changed on disk. Run 'systemctl daemon-reload' to reload units.
Question 30hardmultiple choice
Full question →

Which of the following statements is true about this unit?

Exhibit

Refer to the exhibit.

[Unit]
Description=My Custom Service
After=network-online.target
Wants=network-online.target

[Service]
ExecStart=/usr/local/bin/myservice.sh
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
Question 31easymultiple choice
Full question →

What can be concluded from the log?

Exhibit

Refer to the exhibit.

Output of `journalctl -u sshd.service --no-pager -p err`:

Jul 15 09:23:45 server sshd[1234]: Failed to start OpenSSH server daemon
Jul 15 09:23:45 server sshd[1234]: sshd.service: main process exited, code=exited, status=255/n/a
Jul 15 09:23:45 server sshd[1234]: Unit sshd.service entered failed state.

More Service Configuration questions available in the full practice test.

Continue Practising →
←

Previous objective

Networking

Next objective

Storage Management

→

All LFCS Objectives

  • 1.Essential Commands
  • 4.Networking
  • 5.Service Configuration
  • 6.Storage Management