Chapter 2 Flashcards
Introduction to Services
Describe the ways to start server programs in Linux.
Server programs in Linux can either run continually in the background as a daemon process or be started from a super-server daemon when requested by a client.
Explain how clients know how to contact a server program.
Server applications listen for client connections on well-known ports. Clients must send a connection request to the server on the well-known port for the application they want to interact with.
Explain the components commonly used in a LAMP stack.
The LAMP stack uses the Linux operating system, the Apache web server, the MySQL database server, and the PHP programming language to provide a platform for web applications.
Describe the difference between a relational database and a NoSQL database.
A relational database stores data records in individual data tables. Each data type consists of one or more data fields that contain individual data elements. A data record is an instance of data for each data field in a table. A NoSQL database stores data values in documents. Each document is independent of all of the other documents in the database. Each document can also contain different data elements.
Understand the ways a Linux server can share files in a local network. olders located on Windows servers.
Linux servers can use the nfs-utils package to communicate with other Linux servers to share folders using NFS. The local Linux server can mount folders from the remote Linux server as if they were local disks. Linux servers can also use the Samba package to share files on Windows local networks with Windows clients and servers as well as map f
Understand which server packages are commonly used to support network features on a local network.
The DHCPd package provides DHCP server services to assign IP addresses to clients. The BIND package provides DNS server services to both clients and servers on a local network for hostname resolution. The net-snmp package allows you to implement remote device management using SNMP, and you can use the ntpd package to create an NTP time server for the local network.
Describe how to create a network directory server using Linux.
The OpenLDAP package allows you to create an LDAP directory of users and devices on the local network. Clients and other servers can use the LDAP directory to authenticate users and devices on the network.
Explain how to improve the performance of a network application.
For network applications in a high-volume environment, you can improve performance by implementing either a cluster or load balancing environment. In a cluster, you can split application functions between multiple servers by using a cluster package such as Apache Hadoop. With load balancing, you can distribute client connections between multiple servers using packages such as HAProxy and Linux Virtual Server (LVS).
Which web server is used in the popular LAMP stack?
nginX Apache Lighthttpd PostgreSQL
B. The Apache web server has gained popularity as being combined with the Linux OS, the MySQL database server, and the PHP programming server, making the LAMP stack. The nginX server is a newer web server that is gaining in popularity but is not part of the LAMP stack. The Lighthttpd web server has a small memory and CPU footprint, making it ideal for embedded systems but not for large-scale LAMP applications. The PostgreSQL package is a database server and not a web server.
A ________ runs in the background and listens for client connection requests for a single application.
Daemon Super-server Shell
A. A daemon is a single application that runs in background listening for client connection requests, so option A is the correct answer. A super-server listens for more than one application, so option B doesn’t apply. The shell doesn’t listen for network connections; it launches applications interactively, so option C is incorrect. The graphical desktop also allows you to launch applications, but it doesn’t listen for client connection requests, so option D is incorrect.
Which open source database provided fast performance and became a popular choice for web applications?
MongoDB PostgreSQL MySQL NoSQL
C. When first released, the MySQL database server focused on speed, making it a popular choice for high-volume Internet web applications, so option C is correct. The MongoDB database server provides object-oriented database features but doesn’t focus on performance, so option A is incorrect. The PostgreSQL database focused on implementing fancy database features instead of speed, so option B is incorrect. NoSQL is a database storage method that incorporates object-oriented data records and is not a database server package itself, so option D is incorrect.
How does a server know what client request is sent to which application daemon?
IP addresses Ports Ethernet addresses Services
B. Linux services listen on well-known ports for requests from clients, so option B is correct. A server normally has a single IP address to support multiple applications, so option A is incorrect. The server also normally has only a single Ethernet address, so option C is incorrect. The clients can’t launch individual services on the server, so option D is incorrect.
What popular open source web servers can also perform as a load balancer?
nginX Apache PostgreSQL Lighthttpd
A. The nginX web server can serve as a load balancer and send client requests to multiple backend web servers, so option A is correct. The Apache and lighthttpd web servers don’t support this feature, so options B and D are incorrect. The PostgreSQL server is a database and not a web server, so option C is incorrect.
What format does MongoDB use to store data elements in the database?
Relational YaML JSON
C. The MongoDB database server uses the JSON format for storing data records. The relational database is a type of database system and not a method for storing data, so option A is incorrect. YaML is a plaintext method for creating configuration files, but it is not used in MongoDB for storing data, so option B is incorrect. The MongoDB data is not normally encrypted, so option D is also incorrect.
Which part of the Linux mail process is responsible for sending emails to remote hosts?
MUA MTA MDA Evolution
B. The MTA package is responsible for connecting with remote mail hosts to deliver email messages, so option B is correct. The MUA allows clients to connect to the email server to read their messages, so option A is incorrect. The MDA allows you to create rules for processing mail locally, not to remote servers, so option C is incorrect. Evolution is an email MUA client application, not a server MTA package. The Evolution package is a graphical email client, so option D is incorrect.