Study sets
English

Fundamental Information Technology Engineer Examination (FE) | Subject A Network and Database Questions 01

1 / 100.0s

Problem 1

A router has the following routes and uses longest-prefix matching. 10.0.0.0/8 → Exit A 10.20.0.0/16 → Exit B 10.20.30.0/24 → Exit C 0.0.0.0/0 → Exit D

Which exit is used for a packet whose destination IPv4 address is 10.20.30.45?

View explanation

The destination matches the /8, /16, /24, and default routes. Of these, 10.20.30.0/24 has the longest prefix and is the most specific, so Exit C is selected. Route-table order and the broader /8 route do not take priority.

Problem 2

A 200 MB file is sent over a 100 Mbps link with a constant utilization of 80%. Assume 1 MB = 10^6 bytes and 1 byte = 8 bits. Ignore headers, retransmissions, and propagation delay.

How many seconds are required to transfer the file?

View explanation

The effective transfer rate is 100 Mbps × 0.8 = 80 Mbps. The 200 MB file contains 1,600 Mbit, so transfer time is 1,600 Mbit ÷ 80 Mbps = 20 seconds. Sixteen seconds ignores utilization, while 25 seconds divides the resulting 20 seconds by 0.8 again and applies utilization twice.

Problem 3

Host P is sending its first packet to host Q on the same IPv4 subnet. P knows Q's IPv4 address, but the corresponding MAC address is absent from P's ARP cache.

Which procedure correctly describes how P obtains Q's MAC address?

View explanation

An ARP request broadcasts a question on the local LAN asking which host owns the specified IPv4 address. Q, the owner, returns an ARP reply containing its MAC address. P cannot initially unicast to Q because that destination MAC address is unknown, and traffic to a host on the same subnet does not need the gateway's MAC address.

Problem 4

Endpoints continuously send short pieces of audio data. The available transport protocol is limited to TCP or UDP. The application can tolerate some loss and prioritizes low arrival delay over retransmission of old data.

Which selection and reason best meet these requirements?

View explanation

These conditions prioritize low delay over complete recovery from loss, so UDP is suitable because it does not guarantee delivery or order and does not retransmit at the transport layer. TCP provides reliable, ordered delivery and retransmits after loss, which can delay the arrival of older audio data.

Problem 5

A sending mail server consults DNS to deliver email addressed to example.jp.

Which DNS resource record identifies the mail exchange server that receives email for example.jp?

View explanation

An MX record identifies the mail exchange server that accepts email for a domain. An A record maps a host name to an IPv4 address, CNAME maps an alias to its canonical name, and PTR is mainly used to map an address back to a name.

Problem 6

The Departments table contains only rows with primary-key dept_id values 10 and 20. Employees.dept_id is a non-null foreign key referencing Departments(dept_id), and constraints are checked immediately when a row is inserted.

What happens when an employee with dept_id = 30 is inserted into Employees?

View explanation

The non-null foreign-key value 30 must exist among the referenced Departments.dept_id values. Because department 30 is absent, referential integrity is violated and the insertion is rejected. A foreign key does not create the referenced row automatically, and multiple employees may ordinarily reference the same department.

Problem 7

The Scores table contains these rows. (dept, score) (D01, 70), (D01, 90), (D02, 80), (D02, 100), (D03, 75) Run the following SQL statement. SELECT dept, AVG(score) AS avg_score FROM Scores GROUP BY dept HAVING AVG(score) >= 80 ORDER BY dept;

What is the query result?

View explanation

Grouping by department gives averages of 80 for D01, 90 for D02, and 75 for D03. HAVING applies AVG(score) ≥ 80 after aggregation, so two rows for D01 and D02 are returned in department order. It is not a WHERE condition that selects individual rows whose score is at least 80.

Problem 8

One transaction subtracts 3,000 yen from account A and adds 3,000 yen to account B. A failure occurs after subtracting from A but before adding to B.

Which combination gives the ACID-compliant action and the property that supports it?

View explanation

Both updates form one transaction, so either all must succeed or all must be undone. Because the failure occurs before crediting B, atomicity requires rolling back the debit from A and leaving no partial result. Durability preserves committed results after a failure; it does not permit a partial transaction to be committed.

Problem 9

Transaction T1 takes an exclusive lock on resource X and then requests an exclusive lock on Y. At the same time, T2 takes an exclusive lock on Y and then requests an exclusive lock on X. Locks are held until the transaction ends.

Which combination correctly identifies the state and a representative resolution?

View explanation

T1 waits for Y held by T2, while T2 waits for X held by T1. This circular wait prevents either transaction from progressing and is a deadlock. A DBMS commonly detects it and aborts one transaction to release its locks. The decisive condition is the wait cycle, not merely a long wait.

Problem 10

A frequent query on Orders selects rows whose created_at is at least a start timestamp and less than an end timestamp. The created_at value may also be changed by updates.

Which combination of index type and operational characteristic is most appropriate?

View explanation

A B-tree index can use key ordering for timestamp comparisons and range conditions. Inserts, deletes, and updates to indexed values also require index maintenance. Whether the optimizer actually uses the index depends on factors such as table size, selectivity, and statistics, so it is not guaranteed to be fastest for every query.