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

Free Resources

Difficulty IndexLearn — Free ChaptersIT GlossaryFree Tools & LabsStudy GuidesCareer RoadmapsBrowse by VendorCisco Command ReferenceCCNA Scenarios

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.

HomeCertificationsLFCSDomainsService Configuration
LFCSFree — No Signup

Service Configuration

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

58questions

Start practicing

Service Configuration — choose a session length

10 questions~10 min20 questions~20 min30 questions~30 min50 questions~50 min

Free · No account required

LFCS Domains

User and Group ManagementOperation of Running SystemsEssential CommandsNetworkingService ConfigurationStorage Management

Domain overview

About the Service Configuration domain

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.

Exam objectives

What Service Configuration tests on LFCS

  1. 1

    Core Service Configuration concepts and how they apply in real-world cloud scenarios.

  2. 2

    How to deploy service configuration correctly and verify the outcome.

  3. 3

    Troubleshooting service configuration issues by interpreting error output and system state.

  4. 4

    Cloud best practices and Service Configuration design trade-offs tested by this certification.

Watch out — common Service Configuration traps

  • !

    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.

Practice Service Configuration questions

10Q20Q30Q50Q

All LFCS Service Configuration questions (58)

Start session

Click any question to see the full explanation and answer options, or start a focused practice session above.

1

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?

2

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?

3

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

4

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?

5

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?

6

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

7

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

8

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?

9

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?

10

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?

11

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

12

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

13

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?

14

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

15

Match each Linux process signal to its numeric value.

16

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

17

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?

18

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?

19

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

20

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

21

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

22

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

23

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

24

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?

25

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

26

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

27

Which THREE of the following are valid systemd unit types?

28

Based on the exhibit, what is the correct interpretation?

29

Which of the following statements is true about this unit?

30

What can be concluded from the log?

31

A system administrator wants to configure a custom service to start automatically at boot. Which command accomplishes this?

32

After editing a service unit file, which command must be run for changes to take effect?

33

Which command displays the current status of all active services?

34

A service requires read-write access to a specific directory that is mounted from an NFS share. The directory is mounted via fstab with the option 'noauto'. The service starts before the mount is available. Which configuration change should be made in the service unit file to ensure the service only starts after the mount is mounted?

35

A system administrator is debugging why a service named 'myapp.service' fails to start. He runs 'systemctl status myapp.service' and sees the status 'failed' with details 'Exit code: 1' and 'Failed with result exit-code'. Which command should be used next to view the full log of the service?

36

A service unit file includes the following: [Install] WantedBy=multi-user.target. What does this directive accomplish?

37

A system administrator cannot restart a service because another unit 'stop' the request. The status message says 'Unit test.service is not running, but has pending stop job'. What is the most likely cause?

38

An administrator wants to run a script daily at 2 AM. They create a timer unit and a service unit. The service unit uses Type=oneshot. Which of the following timer configurations is correct?

39

A service unit has the directive 'ExecStartPre=/bin/true' and 'ExecStart=/usr/bin/myapp'. What is the effect of ExecStartPre?

40

Which two commands produce output that includes the current runlevel or target? (Choose two.)

41

Which two statements are true about systemd socket activation? (Choose two.)

42

Which three of the following are valid reasons to use 'systemctl mask' instead of 'systemctl disable'? (Choose three.)

43

Refer to the exhibit. What is the most likely cause of the sshd service failure?

44

Refer to the exhibit. An administrator tries to start myapp.service with 'systemctl start myapp.service' but receives 'Failed to start myapp.service: Unit myapp.service is not loaded properly: Invalid argument'. What is the most likely issue?

45

Refer to the exhibit. The service unit file has Restart=on-failure, but systemctl show displays Restart=no. What is the most likely reason?

46

An administrator deploys a new custom service using a unit file called myapp.service. The service needs to start automatically at system boot. Which command should the administrator run to achieve this?

47

A service named webserver.service is failing to start. The administrator wants to see the most recent error messages related to this service. Which command provides this information?

48

A custom service requires that the network is fully operational before it starts. Which directive should be added to the [Unit] section of the service's unit file to ensure this dependency?

49

An administrator wants to limit the CPU usage of a service to at most 50% of a single CPU core. Which directive should be set in the [Service] section of the unit file?

50

Which TWO commands can be used to check whether a systemd service is currently running?

51

Which THREE of the following are valid directives for the [Service] section of a systemd unit file?

52

A system administrator is managing a web application running as a systemd service on a new Linux server. The application requires a specific environment variable, DATABASE_URL, to be set before starting. The administrator has created a custom service unit file at /etc/systemd/system/webapp.service with the following content: [Unit] Description=Web Application Service [Service] ExecStart=/usr/local/bin/webapp Restart=on-failure The administrator prefers to keep configuration separate from the unit file for easier updates. The service fails to start. Upon investigation, the administrator notices that the DATABASE_URL variable is not being passed to the process. What is the most appropriate course of action to ensure the environment variable is correctly set?

53

A company runs a monitoring agent service (monitor.service) that must start after the network is fully up and the DNS resolver is ready. The service currently has the following dependencies in its unit file: [Unit] Description=Monitoring Agent After=network.target Wants=network.target [Service] ExecStart=/usr/bin/monitor The service starts, but often fails to resolve hostnames because DNS is not yet available. Which change should be made to the unit file to ensure the service only starts after DNS is ready?

54

A system administrator manages a database server service (database.service) that experiences periodic CPU spikes, causing excessive load on the server. The administrator wants to limit the service's CPU usage to 25% of a single CPU core. The service is running on a system with cgroup v2. Which directive should be added to the [Service] section of the unit file to achieve this?

55

A company runs a web application stack consisting of a frontend web server (web.service) and a backend application server (app.service). The app.service uses Restart=on-failure to automatically restart if it crashes. The administrator wants the web.service to automatically restart whenever app.service restarts, so that the frontend remains in sync with the backend. Which directive should be added to the web.service unit file's [Unit] section to achieve this?

56

A system administrator needs to ensure that a custom service named 'myapp.service' starts automatically after a reboot and also restarts automatically no matter how the service stops, even if it exits normally. Which two actions should the administrator take? (Choose two.)

57

Refer to the exhibit. A Linux administrator sees that 'myapp.service' is in a failed state with exit status 1. To troubleshoot, which command should the administrator use to view the full error output that the service produced before exiting?

58

A company runs an Apache HTTP server hosting multiple virtual hosts on a single server. The server is managed by systemd. After editing the configuration file for one of the virtual hosts, the administrator notices that the entire Apache service fails to start with a syntax error. Other virtual hosts are currently down because the service failed. The administrator must resolve the issue with minimal downtime and without affecting the configuration of the working virtual hosts. Which course of action is most appropriate?

Practice all 58 Service Configuration questions

Deep-dive questions

Must-know Service Configuration questions

The most-searched questions in this domain — detailed explanations, worked examples, full answer breakdowns.

  • Why a systemd Service Fails to Start Automatically After Reboot→
  • Troubleshooting 'Unit not found' Error After systemctl daemon-reload→
  • Understanding Mandatory Sections in systemd Service Unit Files→
  • Troubleshooting Write Permission Issues for Service Logs→
  • How to Create a New Partition Using fdisk→
  • Commands to Check the Status of a systemd Service→
  • Using After= in systemd to Order Service Startup→
  • Linux Process Signal Numbers: Matching Signals to Their Numeric Values→

Other LFCS exam domains

User and Group ManagementOperation of Running SystemsEssential CommandsNetworkingStorage Management

Frequently asked questions

What does the Service Configuration domain cover on the LFCS exam?

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

How many Service Configuration questions are in the LFCS question bank?

The Courseiva LFCS question bank contains 58 questions in the Service Configuration domain. Click any question to see the full explanation and answer breakdown.

What is the best way to practice Service Configuration for LFCS?

Start with a 10-question focused session to identify your baseline accuracy in this domain. Read every explanation — even for questions you answer correctly — to understand the reasoning. Once you score consistently above 80%, move to a 20–30 question session to confirm depth before moving to the next domain.

Can I practice only Service Configuration questions for LFCS?

Yes — the session launcher on this page draws questions exclusively from the Service Configuration domain. Choose 10, 20, 30, or 50 questions for a focused session, or click individual questions to review them one by one.

Free forever · No credit card required

Track your LFCS domain progress

Save your results, see per-domain analytics, and get readiness scores — free, for every certification.

Sign Up Free

Free forever · Every certification included

Practice Session

10 questions20 questions30 questions50 questions

Study Resources

All DomainsPractice TestMock ExamFlashcardsStudy Guide