Networking, Security and Cloud questions
OSI, TCP/IP, protocols, security threats and cloud models.
1. How many layers does the OSI model have?
- 5
- 6
- 7
- 4
Answer
C. 7 Physical, Data Link, Network, Transport, Session, Presentation, Application.
2. Which layer of the OSI model handles routing between networks?
- Network layer
- Data link layer
- Transport layer
- Session layer
Answer
A. Network layer IP addressing and routing are at layer 3.
3. TCP differs from UDP because TCP is:
- Used only for video
- Faster with no acknowledgements
- Connection-oriented and reliable
- A physical layer protocol
Answer
C. Connection-oriented and reliable TCP guarantees ordered delivery; UDP does not.
4. What does DNS do?
- Assigns MAC addresses
- Stores emails
- Translates domain names into IP addresses
- Encrypts web pages
Answer
C. Translates domain names into IP addresses DNS resolves names like example.com to IPs.
5. Which protocol automatically assigns IP addresses to devices on a network?
- DNS
- SMTP
- FTP
- DHCP
Answer
D. DHCP Dynamic Host Configuration Protocol.
6. The default port for HTTPS is:
- 80
- 21
- 25
- 443
Answer
D. 443 HTTP uses 80; HTTPS uses 443.
7. An IPv4 address is how many bits long?
- 32
- 16
- 128
- 64
Answer
A. 32 IPv6 addresses are 128 bits.
8. Which device forwards packets between different networks?
- Router
- Hub
- Repeater
- Modem only
Answer
A. Router Routers connect networks.
9. A MAC address identifies:
- An email account
- A website
- A network interface card
- A domain
Answer
C. A network interface card MAC addresses are hardware addresses.
10. Which protocol is used to send email?
- FTP
- HTTP
- SNMP
- SMTP
Answer
D. SMTP Simple Mail Transfer Protocol.
11. Phishing is:
- A network cable
- A type of firewall
- Tricking people into revealing information through fake messages or sites
- A backup method
Answer
C. Tricking people into revealing information through fake messages or sites Phishing imitates trusted senders.
12. A firewall is used to:
- Speed up the internet
- Filter network traffic based on security rules
- Cool the server
- Store passwords
Answer
B. Filter network traffic based on security rules Firewalls allow or block traffic.
13. Which is an example of two-factor authentication?
- A long password
- A username and email
- A password plus a one-time code sent to your phone
- Two passwords
Answer
C. A password plus a one-time code sent to your phone Two different factors: something you know and something you have.
14. Encryption converts data into:
- A database table
- A smaller file
- A form that only authorised parties can read
- Plain text
Answer
C. A form that only authorised parties can read Encrypted data needs a key to read.
15. Malware that encrypts files and demands payment is called:
- Adware
- Ransomware
- Spyware
- Firmware
Answer
B. Ransomware Ransomware holds data hostage.
16. A DDoS attack aims to:
- Steal a password silently
- Fix software bugs
- Overwhelm a service with traffic so it becomes unavailable
- Encrypt a hard drive
Answer
C. Overwhelm a service with traffic so it becomes unavailable Distributed Denial of Service floods a target.
17. SQL injection happens when:
- A database is backed up
- Untrusted input is inserted into a database query without proper handling
- Too many users log in
- A table has no index
Answer
B. Untrusted input is inserted into a database query without proper handling Parameterised queries prevent it.
18. HTTPS is more secure than HTTP because it:
- Removes cookies
- Stores pages offline
- Uses a faster port
- Encrypts data in transit using TLS
Answer
D. Encrypts data in transit using TLS TLS protects data between browser and server.
19. Cloud computing means:
- Weather prediction software
- Storing data on a pen drive
- Using only local servers
- Using computing resources such as servers and storage over the internet on demand
Answer
D. Using computing resources such as servers and storage over the internet on demand Resources are rented as services.
20. IaaS, PaaS and SaaS are:
- Database types
- Programming languages
- Cloud service models
- Network cables
Answer
C. Cloud service models Infrastructure, Platform and Software as a Service.
21. Gmail is an example of:
- SaaS
- PaaS
- IaaS
- On-premise software
Answer
A. SaaS Users use the software directly over the internet.
22. Renting virtual machines from a provider such as AWS EC2 is an example of:
- SaaS
- PaaS
- IaaS
- FaaS only
Answer
C. IaaS You manage the OS; the provider runs the hardware.
23. Which is a benefit of cloud computing?
- Unlimited free storage
- Scaling resources up or down as needed
- No internet needed
- No security needed
Answer
B. Scaling resources up or down as needed Elastic scaling is a key benefit.
24. A public cloud is:
- A government website
- A server in your own office only
- Shared infrastructure offered by a provider to many customers
- A free Wi-Fi network
Answer
C. Shared infrastructure offered by a provider to many customers Examples include AWS, Azure and Google Cloud.
25. Serverless computing (e.g. AWS Lambda) means:
- Code runs only on your laptop
- You run code without managing servers; the provider handles scaling
- There are no servers anywhere
- Servers are shut down
Answer
B. You run code without managing servers; the provider handles scaling Servers exist but are fully managed.
26. A VPN mainly provides:
- An encrypted connection over a public network
- Faster downloads
- Antivirus scanning
- Free storage
Answer
A. An encrypted connection over a public network Virtual Private Network.
27. Which protocol transfers files between client and server?
- FTP
- ARP
- SMTP
- DHCP
Answer
A. FTP File Transfer Protocol.
28. Which network topology connects every device to a central hub or switch?
- Mesh
- Bus
- Star
- Ring
Answer
C. Star Star topology has a central device.
29. What does a subnet mask do?
- Encrypts traffic
- Separates the network part of an IP address from the host part
- Hides the IP address
- Assigns domain names
Answer
B. Separates the network part of an IP address from the host part It defines which bits identify the network.
30. Which of these is a strong password practice?
- Write it on your monitor
- Use your birth date
- Use a long, unique password for each account
- Reuse one password everywhere
Answer
C. Use a long, unique password for each account Unique long passwords limit the damage of leaks.
31. How many layers does the OSI model have?
- 5
- 7
- 4
- 6
Answer
B. 7 Physical, data link, network, transport, session, presentation, application.
32. Which OSI layer is responsible for routing packets between networks?
- Network layer
- Data link layer
- Session layer
- Transport layer
Answer
A. Network layer Routers work at the network layer (layer 3).
33. Which protocol is connection-oriented and guarantees delivery?
- IP
- UDP
- TCP
- ICMP
Answer
C. TCP TCP uses acknowledgements and retransmission.
34. Which protocol is used for video calls where speed matters more than perfect delivery?
- UDP
- SMTP
- TCP
- FTP
Answer
A. UDP UDP has low overhead and no retransmission delay.
35. DNS is used to:
- Encrypt emails
- Compress files
- Assign MAC addresses
- Translate domain names into IP addresses
Answer
D. Translate domain names into IP addresses DNS works like the internet's phone book.
36. Which protocol automatically assigns IP addresses to devices on a network?
- DNS
- ARP
- SMTP
- DHCP
Answer
D. DHCP DHCP leases addresses to clients.
37. What is the default port for HTTPS?
- 25
- 443
- 80
- 21
Answer
B. 443 HTTP uses 80; HTTPS uses 443.
38. ARP maps:
- Ports to services
- Domain names to IP addresses
- MAC addresses to domain names
- IP addresses to MAC addresses
Answer
D. IP addresses to MAC addresses ARP finds the hardware address for a known IP.
39. How many bits are in an IPv4 address?
- 64
- 128
- 16
- 32
Answer
D. 32 IPv4 is 32 bits; IPv6 is 128 bits.
40. Which device connects different networks and forwards packets by IP address?
- Modem only
- Hub
- Repeater
- Router
Answer
D. Router Routers choose paths between networks.
41. A firewall is used to:
- Speed up the internet
- Filter network traffic based on rules
- Store backups
- Assign IP addresses
Answer
B. Filter network traffic based on rules It allows or blocks traffic.
42. An email pretending to be from your bank asking for your password is an example of:
- Load balancing
- Encryption
- Phishing
- Firewall
Answer
C. Phishing Phishing tricks users into revealing secrets.
43. Encryption that uses the same key to encrypt and decrypt is called:
- Symmetric encryption
- Asymmetric encryption
- Hashing
- Encoding
Answer
A. Symmetric encryption AES is a common symmetric cipher.
44. Which of these is a hashing algorithm?
- RSA
- SHA-256
- AES
- TLS
Answer
B. SHA-256 SHA-256 produces a fixed-size digest and cannot be reversed.
45. Two-factor authentication requires:
- Two usernames
- Two passwords
- Two different types of proof, such as a password and an OTP
- Logging in twice
Answer
C. Two different types of proof, such as a password and an OTP It combines something you know with something you have or are.
46. A DDoS attack aims to:
- Make a service unavailable by flooding it with traffic
- Encrypt files for ransom
- Steal passwords by guessing
- Read emails
Answer
A. Make a service unavailable by flooding it with traffic Many machines overwhelm a target.
47. In cloud computing, SaaS means:
- Server as a System
- Software as a Service
- Storage as a Service
- Security as a Service
Answer
B. Software as a Service Example: Gmail, used through a browser.
48. Which cloud model gives you virtual machines, storage and networks to manage yourself?
- SaaS
- IaaS
- FaaS only
- PaaS
Answer
B. IaaS Infrastructure as a Service, e.g. AWS EC2.
49. A cloud owned by one organisation for its own use is a:
- Hybrid cloud
- Community cloud
- Private cloud
- Public cloud
Answer
C. Private cloud Public clouds are shared; private clouds serve one organisation.
50. Automatically adding servers when traffic rises is called:
- Compression
- Caching
- Virtualisation
- Auto-scaling
Answer
D. Auto-scaling Auto-scaling adjusts capacity to demand.
Mock test
- Networking, Security and Cloud Mock Test 15 questions · 15 min