Service Configuration questions on this certification test your ability to deploy and manage service configuration concepts in scenario-based situations.
Start practicing
Service Configuration — choose a session length
Free · No account required
Domain overview
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
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.
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.
Click any question to see the full explanation and answer options, or start a focused practice session above.
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?
2A 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?
3An administrator needs to configure a service to run as a non-root user for security reasons. Which systemd unit file directive accomplishes this?
4A 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?
5An 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?
6Which TWO statements are true about systemd service unit files? (Choose two.)
7Which THREE actions will affect the state of a systemd service that is currently running? (Choose three.)
8An administrator runs 'systemctl status sshd' and sees the output above. The administrator wants sshd to start automatically at boot. Which command should be used?
9A 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?
10A Linux administrator needs to temporarily stop a service named 'httpd' without disabling it from starting automatically on subsequent boots. Which command should be used?
11A system administrator needs to ensure the Apache httpd service starts automatically on system boot. Which command should they use?
12Which TWO commands can be used to check the status of the sshd service on a system using systemd?
13A 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?
14Order the steps to create a new partition on a disk using fdisk.
15Match each Linux process signal to its numeric value.
16Which command enables a service to start automatically at boot in a systemd-based system?
17A custom systemd service unit file has been created but the service fails to start with 'Exec format error'. What is the most likely cause?
18An administrator configures a systemd service with Restart=on-failure and RestartSec=10. What happens if the service exits with a non-zero exit code?
19To check the details of a failed systemd service unit, including the last log entries, which command is most appropriate?
20A service is configured to run as a specific user. Which directive in the [Service] section sets the user?
21Which systemd unit type is used to group services and other units together for boot execution?
22A system administrator wants to limit the CPU usage of a service. Which systemd resource control directive should be used?
23To ensure a service starts only after /var/lib/mysql is mounted, which directive should be used in the unit file?
24A 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?
25Which TWO commands can be used to check the status of a service?
26Which TWO directives are typically used in a systemd service unit file to configure dependencies?
27Which THREE of the following are valid systemd unit types?
28Based on the exhibit, what is the correct interpretation?
29Which of the following statements is true about this unit?
30What can be concluded from the log?
31A system administrator wants to configure a custom service to start automatically at boot. Which command accomplishes this?
32After editing a service unit file, which command must be run for changes to take effect?
33Which command displays the current status of all active services?
34A 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?
35A 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?
36A service unit file includes the following: [Install] WantedBy=multi-user.target. What does this directive accomplish?
37A 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?
38An 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?
39A service unit has the directive 'ExecStartPre=/bin/true' and 'ExecStart=/usr/bin/myapp'. What is the effect of ExecStartPre?
40Which two commands produce output that includes the current runlevel or target? (Choose two.)
41Which two statements are true about systemd socket activation? (Choose two.)
42Which three of the following are valid reasons to use 'systemctl mask' instead of 'systemctl disable'? (Choose three.)
43Refer to the exhibit. What is the most likely cause of the sshd service failure?
44Refer 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?
45Refer to the exhibit. The service unit file has Restart=on-failure, but systemctl show displays Restart=no. What is the most likely reason?
46An 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?
47A 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?
48A 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?
49An 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?
50Which TWO commands can be used to check whether a systemd service is currently running?
51Which THREE of the following are valid directives for the [Service] section of a systemd unit file?
52A 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?
53A 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?
54A 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?
55A 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?
56A 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.)
57Refer 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?
58A 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?
Deep-dive questions
The most-searched questions in this domain — detailed explanations, worked examples, full answer breakdowns.
Service Configuration questions on this certification test your ability to deploy and manage service configuration concepts in scenario-based situations.
The Courseiva LFCS question bank contains 58 questions in the Service Configuration domain. Click any question to see the full explanation and answer breakdown.
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.
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.
Save your results, see per-domain analytics, and get readiness scores — free, for every certification.
Sign Up FreeFree forever · Every certification included