Docsity

LFCA Linux Foundation Certified IT Associate Practice Exam, Exams of Technology

Toggle sidebar
bg1
LFCA Linux Foundation Certified IT
Associate Practice Exam
**Question 1. Which component of Linux is responsible for managing hardware resources and
providing core services to other software?**
A) Shell
B) Kernel
C) Init system
D) Desktop environment
Answer: B
Explanation: The kernel is the central part of the OS that interacts directly with hardware and
offers essential services to user‑space programs.
**Question 2. In the Linux Filesystem Hierarchy, where are system configuration files typically
stored?**
A) /var
B) /home
C) /etc
D) /tmp
Answer: C
Explanation: The `/etc` directory contains system‑wide configuration files such as `fstab`,
network settings, and service configs.
**Question 3. Which command would you use to display the current working directory?**
A) pwd
B) cd
C) ls
D) dir
Answer: A
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c

Partial preview of the text

Download LFCA Linux Foundation Certified IT Associate Practice Exam and more Exams Technology in PDF only on Docsity!

Associate Practice Exam

Question 1. Which component of Linux is responsible for managing hardware resources and providing core services to other software? A) Shell B) Kernel C) Init system D) Desktop environment Answer: B Explanation: The kernel is the central part of the OS that interacts directly with hardware and offers essential services to user‑space programs. Question 2. In the Linux Filesystem Hierarchy, where are system configuration files typically stored? A) /var B) /home C) /etc D) /tmp Answer: C Explanation: The /etc directory contains system‑wide configuration files such as fstab, network settings, and service configs. Question 3. Which command would you use to display the current working directory? A) pwd B) cd C) ls D) dir Answer: A

Associate Practice Exam

Explanation: pwd (print working directory) shows the absolute path of the directory you are in. Question 4. To install a package on an Ubuntu system using the default package manager, you would run: A) yum install package_name B) apt-get install package_name C) pacman - S package_name D) zypper install package_name Answer: B Explanation: Ubuntu uses apt/apt-get; apt-get install <pkg> fetches and installs the package from configured repositories. Question 5. Which of the following is a GPL‑compatible open‑source license? A) Apache License 2. B) MIT License C) Proprietary License D) BSD 4‑Clause License Answer: B Explanation: The MIT License is permissive and compatible with the GNU GPL, allowing redistribution under GPL terms. Question 6. Which command concatenates the contents of two files and displays the result on the screen? A) cat file1 file B) cp file1 file C) mv file1 file

Associate Practice Exam

B) free - h C) top D) vmstat Answer: B Explanation: free - h shows total, used, and free memory in human‑readable units. Question 10. What does the man command do? A) Shows manual pages for commands B) Lists running processes C) Modifies file permissions D) Creates a new user Answer: A Explanation: man <command> displays the manual (help) page that describes usage, options, and examples. Question 11. Which runlevel (or systemd target) is used for a multi‑user graphical environment? A) runlevel 1 / rescue.target B) runlevel 3 / multi-user.target C) runlevel 5 / graphical.target D) runlevel 0 / poweroff.target Answer: C Explanation: In SysV, runlevel 5 starts X11; in systemd the equivalent is graphical.target. Question 12. To change the ownership of a file named report.txt to user alice and group staff, you would use:

Associate Practice Exam

A) chmod alice:staff report.txt B) chown alice:staff report.txt C) chgrp alice:staff report.txt D) su alice staff report.txt Answer: B Explanation: chown changes file owner and group; the syntax chown user:group file. Question 13. Which command lists all active network interfaces and their IP addresses? A) ifconfig - a B) ip addr show C) netstat - i D) ping - c 1 localhost Answer: B Explanation: ip addr show (or ip a) displays detailed information about each network interface, including assigned IPs. Question 14. Which utility can be used to monitor real‑time CPU usage per process? A) df B) top C) lsblk D) uname Answer: B Explanation: top provides a dynamic, real‑time view of system processes, CPU, memory, and load.

Associate Practice Exam

Question 18. Which file typically stores user account information such as usernames and UIDs? A) /etc/passwd B) /etc/shadow C) /etc/group D) /etc/hosts Answer: A Explanation: /etc/passwd contains human‑readable account entries; encrypted passwords are kept in /etc/shadow. Question 19. To view the most recent entries in the systemd journal, you would run: A) journalctl - r B) journalctl - f C) dmesg - T D) syslogd - c Answer: B Explanation: journalctl - f follows the journal in real time, similar to tail - f. Question 20. Which command compresses a directory named backup into a gzipped tar archive called backup.tar.gz? A) zip - r backup.tar.gz backup B) tar - czvf backup.tar.gz backup C) gzip - r backup backup.tar.gz D) compress - c backup > backup.tar.gz Answer: B

Associate Practice Exam

Explanation: tar - czvf creates (c) a gzip‑compressed (z) archive, verbose output (v), and writes to the specified file. Question 21. In DNS, which record type maps a domain name to an IPv4 address? A) AAAA B) CNAME C) MX D) A Answer: D Explanation: An A record stores the IPv4 address associated with a hostname. Question 22. Which protocol is used to securely copy files between a local and a remote host? A) FTP B) SCP C) HTTP D) Telnet Answer: B Explanation: scp (Secure Copy) uses SSH for encrypted file transfer. Question 23. What does the ping command primarily test? A) DNS resolution only B) Network latency and reachability via ICMP echo requests C) TCP port availability D) Bandwidth throughput

Associate Practice Exam

C) A cloud‑based storage service D) A network load balancer Answer: B Explanation: A hypervisor (Type 1 or Type 2) abstracts hardware and runs multiple VMs concurrently. Question 27. Which AWS service provides object storage that is highly durable and scalable? A) EC B) S C) RDS D) Lambda Answer: B Explanation: Amazon Simple Storage Service (S3) stores objects (files) with 99.999999999% durability. Question 28. Which of the following is a characteristic of serverless computing? A) You manage the underlying operating system B) Functions are executed on demand without provisioning servers C) You must configure virtual machines manually D) It only works for static websites Answer: B Explanation: Serverless platforms (e.g., AWS Lambda) run code in response to events, handling scaling and infrastructure automatically. Question 29. What does “elasticity” refer to in cloud computing?

Associate Practice Exam

A) Ability to run applications offline B) Automatic scaling of resources up or down based on demand C) Fixed resource allocation for predictable performance D) Using only open‑source software Answer: B Explanation: Elasticity allows cloud services to dynamically adjust capacity to match workload fluctuations. Question 30. Which cost model charges you for the exact amount of compute time your code consumes? A) Reserved instances B) Spot pricing C) Pay‑as‑you‑go D) Fixed‑rate subscription Answer: C Explanation: Pay‑as‑you‑go bills customers based on actual usage (CPU seconds, storage GB, etc.). Question 31. Which Linux command can be used to view active firewall rules when using nftables? A) iptables - L B) nft list ruleset C) firewalld status D) ufw status Answer: B Explanation: nft list ruleset displays the current nftables configuration.

Associate Practice Exam

Question 35. In Git, which command creates a new local repository in the current directory? A) git clone B) git init C) git start D) git new Answer: B Explanation: git init initializes an empty Git repository in the current folder. Question 36. Which Git command stages changes of a file named app.py for the next commit? A) git commit app.py B) git add app.py C) git push app.py D) git merge app.py Answer: B Explanation: git add moves modifications to the staging area, preparing them for a commit. Question 37. What does “CI” stand for in DevOps, and what is its main goal? A) Cloud Integration – merging cloud services B) Continuous Integration – automatically build and test code changes frequently C) Configuration Inspection – auditing system configs D) Container Isolation – separating containers Answer: B

Associate Practice Exam

Explanation: Continuous Integration encourages developers to integrate code often, triggering automated builds and tests to detect issues early. Question 38. Which tool is most commonly used for container orchestration? A) Docker Compose B) Vagrant C) Kubernetes D) Ansible Answer: C Explanation: Kubernetes automates deployment, scaling, and management of containerized applications across clusters. Question 39. In Agile project management, what is a “sprint”? A) A long‑term roadmap document B) A fixed‑time iteration during which a set of work is completed C) A testing framework for code D) A security audit process Answer: B Explanation: Sprints are time‑boxed periods (often 2‑4 weeks) where the team delivers potentially shippable product increments. Question 40. Which licensing model allows users to modify and redistribute software as long as they include the original license and copyright notice? A) Proprietary B) GPLv C) Creative Commons Zero

Associate Practice Exam

A) netstat - tulpn B) ip link show C) ping - c 1 localhost D) traceroute google.com Answer: A Explanation: netstat - tulpn lists TCP/UDP listening sockets with associated PID/Program names. Question 44. How would you display the first 5 lines of a file named notes.txt? A) tail - n 5 notes.txt B) head - n 5 notes.txt C) cat - 5 notes.txt D) grep - m 5 '' notes.txt Answer: B Explanation: head - n 5 prints the first five lines of the file. Question 45. Which command changes the permissions of a file to read‑only for everyone? A) chmod 644 file.txt B) chmod 777 file.txt C) chmod 444 file.txt D) chmod 000 file.txt Answer: C Explanation: Permission 444 grants read access to owner, group, and others, removing write and execute bits. Question 46. What does the df - h command report?

Associate Practice Exam

A) Disk usage per filesystem in human‑readable format B) Free memory in megabytes C) Detailed file attributes D) Network bandwidth usage Answer: A Explanation: df shows filesystem space; -h makes the sizes human‑readable (e.g., GiB). Question 47. Which of the following best describes “high availability” in cloud services? A) The ability to run only on a single server B) Redundant components that minimize downtime C) Manual scaling of resources by an administrator D) Using only open‑source software Answer: B Explanation: High availability architectures employ redundancy, failover, and load balancing to keep services accessible. Question 48. In Docker, what does the -d flag do when running a container? A) Deletes the container after exit B) Runs the container in detached mode (background) C) Displays debug information D) Limits the container’s CPU usage Answer: B Explanation: -d starts the container in the background, returning the container ID immediately.

Associate Practice Exam

Question 52. Which of the following is NOT a typical responsibility of a system administrator? A) Managing user accounts B) Writing application business logic C) Applying security patches D) Monitoring system performance Answer: B Explanation: Developing application business logic is a developer task; sysadmins focus on infrastructure and maintenance. Question 53. To view the contents of a compressed gzip file without extracting it, you would use: A) cat file.gz B) gunzip - c file.gz C) unzip file.gz D) tar - xvf file.gz Answer: B Explanation: gunzip - c streams the decompressed data to stdout, allowing you to view it without creating an intermediate file. Question 54. Which Linux command can be used to change the system hostname temporarily (until next reboot)? A) hostnamectl set-hostname newname B) sysctl - w kernel.hostname=newname C) echo newname > /etc/hostname

Associate Practice Exam

D) hostname newname Answer: D Explanation: The hostname command sets the hostname for the current session; changes are lost after reboot unless persisted. Question 55. In the context of IT disaster recovery, what does RPO stand for? A) Recovery Point Objective – maximum tolerable data loss B) Remote Procedure Operation C) Redundant Power Output D) Resource Provisioning Order Answer: A Explanation: RPO defines the age of files that must be recovered to resume operations after a disruption. Question 56. Which of the following best describes “immutability” in container images? A) Images can be edited after deployment B) Once built, the image’s contents do not change, ensuring consistency C) Images are stored in volatile memory D) Images automatically update themselves at runtime Answer: B Explanation: Immutable images guarantee that the same bits are run everywhere, improving reproducibility and security. Question 57. Which command would you use to display the network routing table? A) route - n B) ip route show