CompTIA XK0-006 (CompTIA Linux+) Practice Test 43

Question 420

A host might contain known rootkit artifacts, and the team wants a specialized heuristic inspection tool. Which utility is available?

  1. AIDE file integrity baseline
  2. Signed digests of archived logs
  3. rkhunter
  4. Package transaction logs and file-integrity reports

Explanation

Correct Answer

C:

rkhunter checks for certain rootkit indicators and suspicious configuration patterns. Results are heuristics and should be corroborated rather than treated as proof.

Incorrect Answers

A:

AIDE maintains file-property baselines and detects unexpected changes during subsequent checks; that changes a different part of the system; the requested outcome is scanning for rootkit-related indicators.

B:

A protected signature over archive hashes allows later integrity verification; this does not achieve scanning for rootkit-related indicators on the system described.

D:

Transaction history describes planned software changes, while integrity reports identify actual file deviations; using it would leave scanning for rootkit-related indicators unresolved.

Question 421

A Linux hardening project needs a distribution-specific configuration baseline AND a tool for automated assessment of machine-readable security policy. Which TWO resources fit? Choose TWO.

  1. /etc/issue
  2. OpenSCAP
  3. CIS Benchmarks
  4. Storage medium and sanitization capability
  5. /etc/motd

Explanation

Correct Answers

B:

OpenSCAP evaluates systems against supported SCAP profiles and reports compliance findings. Profiles must match the distribution and intended baseline.

C:

CIS Benchmarks provide distribution- or platform-specific configuration recommendations for secure baselines. An automated SCAP assessment can separately evaluate machine-readable checks, but the benchmark provides the hardening reference.

Incorrect Answers

A:

/etc/issue can display a local login banner through supported getty programs; it does not deliver choosing a published hardening reference and its automated assessment tooling, which is decisive in this scenario.

D:

Secure destruction methods depend on device behavior, controller support, encryption and retained copies; its scope differs from choosing a published hardening reference and its automated assessment tooling, so it cannot meet the stated requirement.

E:

The message-of-the-day is typically displayed after login via session startup components; that is not equivalent to choosing a published hardening reference and its automated assessment tooling.

Question 422

A system's console login warning needs to display before local text login. Which file is commonly used?

  1. /etc/issue.net
  2. /etc/issue
  3. OpenSCAP
  4. CIS Benchmarks

Explanation

Correct Answer

B:

/etc/issue can display a local login banner through supported getty programs. It differs from post-login motd messages.

Incorrect Answers

A:

/etc/issue.net commonly contains a remote pre-login warning referenced by the SSH Banner directive; the administrator instead needs configuring a pre-login console warning; this option serves a different purpose.

C:

OpenSCAP evaluates systems against supported SCAP profiles and reports compliance findings; that changes a different part of the system; the requested outcome is configuring a pre-login console warning.

D:

Center for Internet Security Benchmarks provide configuration guidance for named platforms; this does not achieve configuring a pre-login console warning on the system described.

Question 423

The SSH daemon should show a legal warning before remote authentication. Which file can be referenced by sshd Banner?

  1. Storage medium and sanitization capability
  2. /etc/issue.net
  3. /etc/motd
  4. CIS Benchmarks

Explanation

Correct Answer

B:

/etc/issue.net commonly contains a remote pre-login warning referenced by the SSH Banner directive. It does not itself change SSH access policy.

Incorrect Answers

A:

Secure destruction methods depend on device behavior, controller support, encryption and retained copies; using it would leave presenting a pre-authentication remote login notice unresolved.

C:

The message-of-the-day is typically displayed after login via session startup components; it does not deliver presenting a pre-authentication remote login notice, which is decisive in this scenario.

D:

Center for Internet Security Benchmarks provide configuration guidance for named platforms; the evidence calls for presenting a pre-authentication remote login notice, not merely this separate operation.

Question 424

Security investigators need to correlate newly installed packages with unexpected changes to critical files. Which evidence combination is strongest?

  1. Package transaction logs and file-integrity reports
  2. AIDE file integrity baseline
  3. Installed-package file verification
  4. Signed digests of archived logs

Explanation

Correct Answer

A:

Transaction history describes planned software changes, while integrity reports identify actual file deviations. Comparing the timelines can separate expected updates from anomalies.

Incorrect Answers

B:

AIDE maintains file-property baselines and detects unexpected changes during subsequent checks; that is not equivalent to connecting software changes with integrity alerts.

C:

RPM verification and comparable package-integrity tools compare recorded attributes with current files; the administrator instead needs connecting software changes with integrity alerts; this option serves a different purpose.

D:

A protected signature over archive hashes allows later integrity verification; it answers a neighboring question rather than connecting software changes with integrity alerts.

Question 425

A log archive needs tamper evidence after storage on a separate server. Which approach supports this?

  1. AIDE file integrity baseline
  2. Signed digests of archived logs
  3. Installed-package file verification
  4. Package transaction logs and file-integrity reports

Explanation

Correct Answer

B:

A protected signature over archive hashes allows later integrity verification. The signer keys and trusted reference must remain secure.

Incorrect Answers

A:

AIDE maintains file-property baselines and detects unexpected changes during subsequent checks; this does not achieve detecting modifications to stored log archives on the system described.

C:

RPM verification and comparable package-integrity tools compare recorded attributes with current files; using it would leave detecting modifications to stored log archives unresolved.

D:

Transaction history describes planned software changes, while integrity reports identify actual file deviations; the requirement is detecting modifications to stored log archives, outside the effect of this choice.

Question 426

Software must be accepted only if its publisher signature validates against a trusted key. Which supply-chain property matters?

  1. AIDE file integrity baseline
  2. Installed-package file verification
  3. Package signing and trust verification
  4. Package transaction logs and file-integrity reports

Explanation

Correct Answer

C:

Validating signed artifacts helps verify provenance and integrity from a trusted signer. A signature does not guarantee the code is free from vulnerabilities.

Incorrect Answers

A:

AIDE maintains file-property baselines and detects unexpected changes during subsequent checks; the evidence calls for validating software artifact provenance, not merely this separate operation.

B:

RPM verification and comparable package-integrity tools compare recorded attributes with current files; the task involves validating software artifact provenance, whereas this addresses another subsystem.

D:

Transaction history describes planned software changes, while integrity reports identify actual file deviations; that is not equivalent to validating software artifact provenance.

Question 427

Security responders want a machine-readable inventory of an application release’s third-party components, exact versions and dependency relationships so future vulnerability notices can be matched to deployed software. Which artifact best supplies that inventory?

  1. A software bill of materials (SBOM)
  2. A CVE identifier
  3. A CVSS base score
  4. A package signing certificate
  5. A CIS Benchmark checklist

Explanation

Correct Answer

A:

An SBOM inventories the software components and dependencies in a release, typically with identifiers and versions. Formats such as CycloneDX make the inventory machine-readable for exposure and vulnerability analysis.

Incorrect Answers

B:

A CVE identifies a particular publicly recorded vulnerability. It cannot by itself enumerate the components and dependency relationships present in this application release.

C:

CVSS expresses characteristics of a vulnerability and yields a severity score. It does not list all third-party libraries and versions shipped in an application.

D:

A signing certificate supports authenticity checks for a signed software artifact. That trust signal does not provide a complete machine-readable dependency inventory.

E:

CIS Benchmarks describe recommended system and application configurations. A hardening checklist is not an artifact listing exact software components in the released build.

Question 428

A cloud VM should receive hostname, SSH keys and initial commands when first provisioned. Which framework handles instance boot customization?

  1. Shift-left security testing
  2. cloud-init
  3. Kickstart
  4. GitOps reconciliation

Explanation

Correct Answer

B:

cloud-init processes metadata and user-data at instance initialization to configure supported images. It does not substitute for full image lifecycle management.

Incorrect Answers

A:

Shift-left adds security checks in earlier development and CI stages, reducing late discovery; the requirement is applying first-boot cloud instance customization, outside the effect of this choice.

C:

Kickstart automates installer choices such as partitions, packages and user creation on supported distributions; the evidence calls for applying first-boot cloud instance customization, not merely this separate operation.

D:

GitOps treats version-controlled declarative definitions as a desired-state source and automatically reconciles observed resources; the task involves applying first-boot cloud instance customization, whereas this addresses another subsystem.

Question 429

Agents authenticate a central Puppet server and receive signed credentials. Which mechanism is involved?

  1. Puppet certificate authority workflow
  2. Puppet module
  3. Puppet agent and server
  4. Puppet class
  5. Playbook
  6. Facter facts

Explanation

Correct Answer

A:

Puppet's PKI can authenticate agents and the primary server using certificates. Certificates must be approved and protected to avoid unauthorized node access.

Incorrect Answers

B:

Puppet modules package classes and supporting content into deployable units; the administrator instead needs establishing trusted Puppet agent identities; this option serves a different purpose.

C:

Puppet agents can fetch catalogs and apply declarative resources from a central service; it answers a neighboring question rather than establishing trusted Puppet agent identities.

D:

Puppet classes organize declared resources and can be assigned through roles or classification; that changes a different part of the system; the requested outcome is establishing trusted Puppet agent identities.

E:

Playbooks describe plays, hosts and ordered tasks in YAML; this does not achieve establishing trusted Puppet agent identities on the system described.

F:

Facter exposes system attributes such as OS family for Puppet classification; it will not provide establishing trusted Puppet agent identities under these conditions.

Question 430

A CI pipeline must test a package before deployment into production using the same immutable artifact. Which principle applies?

  1. GitOps reconciliation
  2. Shift-left security testing
  3. Build once, promote the validated artifact
  4. Kickstart

Explanation

Correct Answer

C:

Promoting one tested artifact avoids rebuilding a different binary between stages. Integrity checks and environment-specific configuration still matter.

Incorrect Answers

A:

GitOps treats version-controlled declarative definitions as a desired-state source and automatically reconciles observed resources; it will not provide promoting the exact artifact that passed testing under these conditions.

B:

Shift-left adds security checks in earlier development and CI stages, reducing late discovery; using it would leave promoting the exact artifact that passed testing unresolved.

D:

Kickstart automates installer choices such as partitions, packages and user creation on supported distributions; it does not deliver promoting the exact artifact that passed testing, which is decisive in this scenario.

CompTIA Linux+ (XK0-006) Practice Tests