CertNote/ Commute Study Notes
Roadmap
KOEN
CLF-C02 · FoundationalCloud Practitioner - Foundational
DVA-C02 · AssociateDeveloper - Associate
SAA-C03 · AssociateSolutions Architect - Associate
SOA-C02 · AssociateCloudOps Engineer - Associate
SAP-C02 · ProfessionalSolutions Architect - Professional
DOP-C02 · ProfessionalDevOps Engineer - Professional
Linux Master 2 · 2급KAIT Linux Master - Level 2
SCS-C03 · SpecialtySecurity - Specialty
Linux Master 1 · 1급KAIT Linux Master - Level 1
  • Week 1
    • 1.Operating Systems and Linux: What the Kernel Does
    • 2.Free Software and Distributions: The Ecosystem Built by Licenses
    • 3.Installation and Booting: From the Moment You Power On
    • 4.Filesystem Structure and File Types: Everything Is a File
    • 5.Week 1 Comprehensive Review: Time to See Through the Concepts
  • Week 2
  • Week 3
  • Week 4
  • Week 5
  • Week 6
  • Week 7
  • Week 8
  • Week 9
  • Week 10
  • Week 11
  • Week 12
  • Week 13
    • 1.Network Configuration and Diagnostics Lab: Bring Up an IP by Hand and Open the Route
    • 2.Service Config File Short Answers: One Directive Decides Pass or Fail
    • 3.Shell Script Writing Tasks: Automate Real Work with Conditions, Loops, and Functions
    • 4.Security, Firewall, and Log Tasks: Write the Rules and Fix the Context
    • 5.Network and Service Lab Mock Exam + Wrong-Answer Notes
  • Week 14
MLA-C01 · AssociateMachine Learning Engineer - Associate
AIF-C01 · FoundationalAI Practitioner - Foundational
DEA-C01 · AssociateData Engineer - Associate
MLS-C01 · SpecialtyMachine Learning - Specialty
SQLD · 개발자SQL Developer (SQLD)

© CertNote · 주간랩스

  • About
  • Changelog
  • Contact
  • Terms
  • Privacy
← Linux Master 1/Week 13/Day 5

Based on the Linux Master 1 exam syllabus·Report an error

Linux Master 1· AssociateWeek 13 · Day 5~21 min read

Day 5 - Network and Service Lab Mock Exam + Wrong-Answer Notes

📌 Key Takeaways

  • This week's axis is network and service lab tasks: address configuration (Day 1), service config directives (Day 2), shell scripts (Day 3), and security (Day 4).
  • Today we compress the week into a 12-question mock exam for review. The explanations are wrong-answer notes that also point out why the other choices are traps.
  • In lab tasks, a single character (option, directive, direction) decides pass or fail. Partial credit is stingy here.
  • Three of the four choices are traps with one wrong direction, option, or spelling, so the elimination method of finding the error and crossing it out is fast.
  • When you read a question, recall in order: ① which area is it, ② temporary or persistent, ③ which file or command.

Quick Review of This Week's Essentials

  • Network configuration : Separate temporary (ip addr add/ip route add) from persistent (BOOTPROTO/ONBOOT=yes/IPADDR in ifcfg-*, nmcli con).
  • With nmcli, you must reactivate with con up after modifying for it to take effect.
  • The diagnostic ladder is ip a → ping gw → ping 8.8.8.8 → dig. For port checks, use ss -tuln.
  • Service config files : httpd DocumentRoot/Listen, named type master + SOA Serial + records (A/MX/CNAME/PTR).
  • dhcpd range/fixed-address, vsftpd anonymous_enable/chroot_local_user, smb.conf path/writable.
  • exports: no space before the parenthesis and root_squash; sshd: PermitRootLogin no.
  • Shell scripts : no spaces around the assignment =, spaces inside the brackets of if [ -gt/-eq/-f/-d ], for/while/case (done/done/esac).
  • Call functions without parentheses, and memorize $(...), $?, while read ... done < file, and sort|uniq -c|sort -rn as patterns.
  • Security : iptables direction (INPUT/OUTPUT/FORWARD), -A/-I/-P/-j, ACCEPT/DROP/REJECT, service iptables save.
  • firewalld: --permanent then --reload; SELinux: modes and chcon/restorecon.
  • rsyslog: facility.priority (.none/.=); logrotate: rotate N/compress.

💡 Pass signal: Lab tasks ask for "the exact command/directive that does this." If the direction, options, and spelling are exact, you are right; if even one is wrong, it is zero points.

🔍 Solving strategy: When you read a question, recall in order ① which area (network/service/script/security), ② temporary or persistent, ③ which file or command. Since three of the four choices are traps with one wrong direction, option, or spelling, the elimination method of finding the error and crossing it out is faster than picking the answer.

📖 Glossary

  • Temporary / persistent configuration : Configuration that disappears at reboot (ip) / configuration that remains in a file and persists (ifcfg-*, nmcli con).
  • ONBOOT : The directive in ifcfg-* that decides whether the interface is brought up automatically at boot. If it is not yes, it does not come up.
  • Diagnostic ladder : A method of breaking things down in the order IP → gateway → external IP → domain to narrow down where it is blocked.
  • SOA Serial : The version number of the zone data. It must be raised so the secondary (slave) server picks up the change.
  • exports whitespace trap : An NFS syntax trap where a space between the client and the parenthesis opens the options to all hosts.
  • PermitRootLogin : The directive that decides whether root may log in directly over SSH. Blocking is no.
  • done < file : The redirection that attaches input so while read reads the file line by line. It goes after done.
  • --permanent + --reload : The two steps in firewalld of saving permanently and then applying to the current session. Doing only one is half the job.
  • SELinux context : The label attached to files and processes. If permissions are right but access is blocked, suspect this.
  • facility.priority : The "source.severity" pair rsyslog uses to split logs. .none excludes, .= means only that level, and the default is that level and above.

📝 Practice Questions

Click a choice to reveal the answer and explanation.

Question 1

Which command combination temporarily assigns the address 192.168.0.50/24 to eth0 and sets the default gateway to 192.168.0.1?

Question 2

In the ifcfg-eth0 file, which combination of directives uses a static IP and makes the interface activate automatically even after a reboot?

Question 3

ping 8.8.8.8 succeeds but ping www.example.com fails. Which file should you check?

Question 4

After editing a BIND zone file, what must you do to propagate the change to the secondary (slave) server?

Question 5

Among the following /etc/exports entries, which is the faulty setting that unintentionally opens rw to all hosts?

Question 6

Which sshd_config setting blocks direct remote login by root on an SSH server?

Question 7

In the following shell script fragments, which line has a syntax error?

Question 8

Which is the correct blank for a script that reads the file users.txt line by line to create user accounts? while read u; do useradd "$u"; done ____ users.txt

Question 9

Which iptables command allows only incoming TCP connections to port 443 (HTTPS) from outside?

Question 10

How do you allow port 8080/tcp in firewalld so that it persists after reboot and takes effect immediately?

Question 11

"File permissions (rwx) are correct, but the web server cannot access a certain directory. After setenforce 0, access works." What is the most appropriate permanent fix?

Question 12

Which is the correct description of the logrotate settings daily, rotate 7, compress?

Summary of Easy-to-Miss Traps

I gathered the traps that mock exams catch most often into one table. Reviewing just this table right before the exam is also fine.

TrapAnswer / Caution
ip addr vs ip routeAddress is addr add, route is route add default via
Temporary vs persistentip = volatile, ifcfg ONBOOT=yes/nmcli con = persistent
Applying nmcliAfter modify, you must con up for it to take effect
ping IP succeeds, domain failsDNS (/etc/resolv.conf) problem
SOA SerialMust be increased whenever the zone is edited
exports whitespaceNo space between client(options)
Variable assignmentNo spaces around =
if conditionSpaces required inside [ and ], numeric -gt/string =
Reading a filewhile read ... done < file
iptables directionIncoming is INPUT, outgoing is OUTPUT
iptables policy changeIf remote, allow SSH first
Applying firewalld--permanent then --reload
SELinux access deniedSuspect context → restorecon
rsyslog.none = exclude, .= = exactly, .level = and above
logrotaterotate N = number of generations, interval is daily/weekly

⚠️ Exam-room mindset: Partial credit in lab tasks is stingy. One direction (INPUT/OUTPUT), one space, or one missing --reload makes the whole answer wrong. After writing a command, run it once in your head and double-check "what exactly happens if I execute this?"

Wrap-Up

We compressed the week into 12 questions. The core of network lab tasks is telling temporary from persistent (ip is volatile, ifcfg ONBOOT=yes/nmcli con is persistent) and layer-by-layer diagnosis (IP works but the domain fails = DNS). Service configuration is a battle of memorizing 1:1 directive mappings (DocumentRoot, SOA Serial, range, PermitRootLogin no, the exports whitespace trap) with exact spelling. For scripts, syntactic rigor (no spaces around =, spaces inside brackets, done < file) is vital, and in security, direction, options, --reload, and context decide pass or fail. Revisit the questions you missed until you can explain in words "what is wrong and why" for each choice. A lab exam is a test of writing exactly what you know.

PreviousSecurity, Firewall, and Log Tasks: Write the Rules and Fix the ContextWeek 13 · Day 4Next Primary Subject 1 Mock Exam: Weak Points in Understanding Practical LinuxWeek 14 · Day 1

Official references

  • Linux Master 1 official exam syllabus(opens in a new tab)

On this page

  • Key Takeaways
  • Quick Review of This Week's Essentials
  • Glossary
  • Practice Questions
  • Summary of Easy-to-Miss Traps
  • Wrap-Up