Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free LPI LPIC-3: Mixed Environments Exam (version 3.0) 300-300 Exam Questions

Last updated: · 12 practice questions with answers and explanations

Page: 1 / 6 Total 53 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Samba Basics

Skill tested: Diagnoses Samba service activation and validates effective configuration before deployment.

A Linux file server was migrated to a new host. The package installation completed, but clients cannot connect and the administrator is unsure which Samba services are enabled. The host is intended to provide SMB file sharing only; it will not serve as an AD domain controller or provide NetBIOS name service. The configuration file has been copied from the old host, and the maintenance window allows a controlled validation before clients are redirected. What is the best next operational procedure?

Correct Answer: A. Start smbd, validate smb.conf with testparm, and inspect the service status and logs; do not enable nmbd for the stated role.
Explanation:

For an ordinary Samba file server, smbd provides SMB file and printer services. Since the stated design does not require NetBIOS name service, nmbd is not required; winbindd is likewise not universally required for standalone sharing. Running testparm first checks the parsed configuration and can reveal errors before cutover. Checking the active service state and logs then confirms whether smbd started successfully. Starting nmbd alone cannot serve SMB shares, and restarting everything without validation risks repeating a configuration failure.

Question 2

New Single answer

Topic: Samba and Active Directory Domains

Skill tested: Troubleshoots AD DNS discovery requirements for Samba domain membership.

A Samba member server is being joined to the AD domain corp.example. Its administrator configured a public DNS resolver because that resolver provides reliable Internet lookups. The join fails to locate a domain controller, although ping to the controller's IP address succeeds. The site has no static host overrides, and administrators must retain the public resolver for unrelated lookups if possible. Which change is the most appropriate first step?

Correct Answer: A. Configure the member server to use the AD DNS service and ensure that the AD DNS zone can resolve required external names through forwarding.
Explanation:

AD domain discovery depends on DNS records, including service-location records used to find domain controllers and Kerberos services. A public resolver generally will not have the organization's private AD records. Pointing the member server at AD DNS addresses the discovery failure; AD DNS can forward appropriate external queries to an upstream resolver, preserving Internet name resolution. A hosts entry does not supply the required SRV records, a workgroup setting does not repair DNS discovery, and bypassing Kerberos would undermine normal secure domain operations.

Question 3

New Multiple answers

Topic: Samba Share Configuration

Skill tested: Combines share-level authorization with filesystem permissions for secure SMB access.

A department share on a Samba member server must be writable by the AD group Engineering-Editors and readable by Engineering-Reviewers. Other authenticated domain users must receive no access, and filesystem permissions must remain the final enforcement point. The directory is owned by root, and the server uses Winbind to resolve domain groups. Which two configuration actions best meet these requirements? Select TWO.

Correct Answer: A. Use a share-level valid users rule that permits the two named groups, with write list granting write access only to Engineering-Editors.; B. Set the directory's group ownership and access ACLs so that Engineering-Editors can write and Engineering-Reviewers can read, with no permissions for other users.
Explanation:

The share's valid users rule limits which identities may connect, while write list differentiates users allowed to write at the share level. Unix ownership and ACLs provide the required filesystem-level enforcement and should grant the two groups only their respective permissions. Guest access would bypass the intended identity-based access model. Forcing all clients to an editor account erases individual authorization distinctions. A writable share alone does not override restrictive filesystem permissions, and share-level access does not replace filesystem controls.

Question 4

New Single answer

Topic: Samba Client Configuration

Skill tested: Configures persistent CIFS mounts using protected credentials and systemd-aware mounting.

A Linux application server must mount //files.corp.example/reports at /srv/reports after boot. The share requires an AD account, and the organization prohibits storing a password in /etc/fstab. The mount must not delay boot when the file server is temporarily unavailable, but applications should access it normally when the server is online. Which approach best satisfies these requirements?

Correct Answer: A. Create a root-readable credentials file, reference it with the CIFS credentials option in an fstab entry, and use systemd automount behavior with appropriate network dependency handling.
Explanation:

The CIFS mount helper supports a credentials file, allowing the password to be kept out of the world-readable fstab entry; the file should be protected, typically readable only by root. A systemd automount configuration can defer the actual mount until access and avoid making boot depend on the server being immediately available. Network-aware mount settings should reflect the host's systemd and distribution configuration. Putting a password in fstab or a broadly readable script exposes credentials, while switching to NFS changes the required protocol and does not solve the stated SMB access requirement.

Question 5

New Multiple answers

Topic: Linux Identity Management and File Sharing

Skill tested: Integrates FreeIPA identities with AD while preserving reliable NFS identity mapping.

A company has FreeIPA-managed Linux identities and an existing AD forest. Linux clients must authenticate using centrally managed identities, and NFSv4 home directories must preserve consistent ownership across clients. The organization wants to avoid separately maintained duplicate accounts, and an IPA server is already deployed. Which TWO design actions are most appropriate? Select TWO.

Correct Answer: B. Establish the supported FreeIPA-AD trust and configure the Linux clients to use the intended IPA identity and authentication services.; D. Plan consistent identity and ID mapping for AD users represented through the trust, and ensure the NFSv4 clients and server use compatible identity mapping.
Explanation:

A FreeIPA-AD trust allows the environments to interoperate without creating a separate, unrelated account for every user. Client authentication and identity lookups must be configured to use the intended IPA integration. NFSv4 ownership also depends on consistent identity representation and mapping across the server and clients; trust alone does not guarantee consistent ownership if mapping differs. Matching usernames in local files does not guarantee matching UIDs or secure authentication. Disabling Kerberos or substituting Samba passdb does not address the desired centralized cross-environment identity design.

Question 6

New Single answer

Topic: Samba Configuration

Skill tested: Selects an appropriate file-based configuration workflow and validates Samba parameter changes.

An operations team manages a Samba file server through smb.conf. A change request requires a new share and a revised authentication-related parameter, but the team's registry-based configuration workflow is not deployed. The change must be reviewed before activation, and the administrator needs to distinguish a syntax or parameter problem from an access-control problem. Which workflow is most appropriate?

Correct Answer: C. Edit smb.conf, validate the effective configuration with testparm, reload or restart the relevant Samba service as appropriate, and then test access separately.
Explanation:

When the server is managed through smb.conf, the change should be made in that file and checked with testparm, which parses and reports the effective configuration. Applying the change through the appropriate service reload or restart makes it active; an SMB client test then evaluates connection and authorization behavior separately. net conf commands apply to Samba's registry-style configuration database rather than validating a file-based workflow. TDB files should not be edited directly, and a Windows management tool does not automatically rewrite a manually managed smb.conf.

Question 7

New Single answer

Topic: Regular Samba Maintenance

Skill tested: Plans a consistent Samba AD domain-controller backup and restore procedure.

A small organization runs a Samba AD domain controller as a virtual machine. A backup job currently copies individual files from the live Samba database directories while the services remain active. After a storage failure, the team found that the copied state could not be restored consistently. Downtime for a coordinated backup is acceptable, and recovery must preserve the domain's directory and associated state. What should the team do?

Correct Answer: C. Use Samba's domain-controller backup procedure, such as the supported samba-tool domain backup workflow, and validate the resulting backup and restore process.
Explanation:

An AD domain controller contains interrelated directory and supporting state, so copying live database files independently can capture inconsistent points in time. Samba provides domain backup tooling intended for backing up a domain controller's state; the organization should use that supported workflow and test restoration rather than assume a backup is usable. smb.conf alone does not contain the directory database. A live VM snapshot may be useful as part of a broader recovery plan, but by itself it does not establish a consistent, tested AD backup and restore procedure.

Question 8

New Single answer

Topic: Troubleshooting Samba

Skill tested: Uses Samba database integrity tools to investigate an AD domain-controller health problem.

Administrators observe replication and directory-operation errors on a Samba AD domain controller after an unclean host shutdown. DNS still responds, but that does not establish that the directory database is healthy. Before attempting repair or restoring from backup, the team wants a diagnostic assessment that does not modify the database. Which action is the best next step?

Correct Answer: A. Run samba-tool dbcheck in its non-fixing diagnostic mode and review reported directory database inconsistencies.
Explanation:

samba-tool dbcheck is the relevant utility for checking a Samba AD database for directory inconsistencies. Starting with a diagnostic run avoids making unreviewed changes and gives administrators evidence to guide a controlled repair or recovery decision. Enabling fixes immediately may alter directory data before the scope and backup state are understood. DNS availability neither proves nor disproves database integrity, and deleting DNS data is not a general database-integrity test. smbpasswd manages password data and does not assess the AD directory database.

Question 9

New Multiple answers

Topic: Samba and Active Directory Domains

Skill tested: Plans safe Samba AD domain-controller promotion using DNS and domain prerequisites.

A second Samba AD domain controller is planned for a branch site to improve local authentication availability. The existing domain is healthy, uses Samba internal DNS, and has a current verified backup. The branch server has a unique static address and can reach the existing controller, but its resolver currently points to a public DNS service. The promotion must join the existing domain rather than create a separate forest. Which TWO actions are required before and during the promotion? Select TWO.

Correct Answer: C. Configure the prospective controller to use the existing AD DNS service for domain discovery, and verify required DNS and time synchronization before promotion.; E. Use the Samba domain-controller join workflow to join the existing domain, then confirm replication and DNS operation after promotion.
Explanation:

A prospective domain controller must be able to discover and communicate with the existing domain services; using AD DNS and checking time synchronization are essential preparation steps for reliable domain operations. It must be joined to the existing domain using Samba's domain-controller join procedure, not provisioned as a separate forest. Post-promotion checks should verify replication and DNS. Reusing an IP address creates a conflict, and disabling the existing DNS service during promotion would disrupt discovery and registration rather than improve the process.

Question 10

New Multiple answers

Topic: Active Directory User Management

Skill tested: Manages AD Unix attributes and Kerberos service principals for Linux service integration.

A Linux-hosted application must run under a centrally managed AD account and access a Kerberos-protected service without prompting for a password. Linux clients also require consistent Unix identity attributes for the account. The organization does not permit a reusable administrator password to be stored on the application host. Which TWO actions best satisfy the requirements? Select TWO.

Correct Answer: A. Set the account's required RFC2307 Unix attributes in AD and verify that the Linux identity service exposes them consistently.; C. Create the application's service principal name on the correct AD account and export the corresponding keytab for the service.
Explanation:

RFC2307 attributes such as Unix identity fields allow Linux systems to obtain the account's Unix identity through the configured directory integration. A Kerberos service must have the appropriate SPN associated with its service account, and a keytab provides the service with keys without embedding an administrator's reusable password. A local same-name account does not create Kerberos identity mapping. Plaintext administrator credentials are an unacceptable security risk, while removing SPNs prevents the intended service-ticket use.

Question 11

New Single answer

Topic: Samba Domain Membership

Skill tested: Configures Winbind ID mapping and NSS integration for domain users on a Samba member server.

A Samba file server has successfully joined an AD domain, but Linux commands such as id cannot resolve domain users, and file ownership appears inconsistent between restarts. The server must authorize domain users through Unix access checks and show stable numeric IDs to local processes. The organization uses Winbind and has not yet assigned an ID-mapping range for the domain. What is the most appropriate remediation?

Correct Answer: B. Configure a suitable, non-overlapping Winbind idmap range and backend for the domain, enable Winbind NSS lookups, and verify resolved users and groups.
Explanation:

A successful domain join does not by itself ensure Unix identity resolution. Winbind needs an appropriate ID-mapping configuration, including a stable range that does not conflict with local or other mapped identities, and NSS must be configured to consult Winbind. Verifying lookups with tools such as getent and id helps confirm the integration. Guest mapping does not provide the intended individual domain identities. Manually maintaining duplicate local users undermines central management and can produce inconsistent ownership, while leaving the domain is unnecessary.

Question 12

New Single answer

Topic: Samba Local User Management

Skill tested: Maintains standalone Samba passdb accounts and synchronizes Unix and SMB credentials securely.

A standalone Samba server uses local Unix accounts and the tdbsam passdb backend. A new employee can log in to the Linux host but receives an SMB authentication failure. The security policy requires an individual SMB password and forbids enabling guest access. The Unix account already exists, and administrators want to retain the current backend. What should they do?

Correct Answer: D. Add the Unix account to Samba's passdb with smbpasswd and set its SMB password; establish an approved process to keep account lifecycle and credentials synchronized.
Explanation:

Unix account creation and Samba passdb account creation are separate operations. With tdbsam, smbpasswd can add the existing Unix user to Samba's password database and set the SMB password. The organization should manage the two account lifecycles consistently, including disabling access when appropriate. Changing the backend is unnecessary because tdbsam supports local Samba accounts. Guest access would bypass individual authentication, and changing a shell does not create a passdb entry or set an SMB credential.