tag Flashcards
What are the data types to choose from when creating database fields?
⚫️integer
⚫️float
⚫️date / time /Datetime
⚫️Char (FIXED length up to 8,000 characters)
⚫️Varchar (variable length string up to 8,000 characters )
⚫️Text (variable length string up to 2GB)
⚫️autonumber
What are flat file databases?
Stores sa single table of data inside a single text file
What are primary keys ?
A field that stores unique data for each record in a table.
What are some flat file database issues ?
🔵inconsistencies in the data , making it hard to search or sort the data
🔵redundant data, so the databases use more storage/memory than needed
What is a ‘flat file database “?
A database that has all the data stored in one table.
▪️Each record is identified as a new line
▪️flat file databases are often stored using a CSV (comma separated values )format
▪️each field is separated by a comma
What are relational databases ?
Contain multiple tables , each table is known as a relation. Each table has links to others known as relationships
What is a foreign key?
A field in a table that references the primary key of another table.
What is SQL?
Structured query language
The language allows you to create , query, update and delete data to and from databases
Write an SQL query to output all the first names of members and their memberID, who are male
- all normal PSEUDOCODE arithmetic and operational comparatives can be used
How do you select all the fields within a table to output
SELECT *
Wildcard
Write an SQL query to find all the fields of dogs that are older than four (including those that are 4) and whose colour contains the letter ‘B’
Sort this array called members into ascending order of town , up outputting the first name and memberID
Change the age of Molly from 5 to 6
Delete all the black spaniels from the table
Select the owner and dog names for all the four year old dogs
(Multiple tables )
Why are databases used?
They are used to store large amounts of data.
They make retrieving information easy and efficient
What are some advantages of flat file databases ?
All data in one table , so easier to set up and understand
What are some advantages of relational databases ?
🔵data is only stored in one place and then referenced. This means that to input , update or delete pieces of data, it only has to be done in one place which can prevent inconsistencies
🔵only storing the same price of dat once will also save storage space
🔵relational databases can be more secure , some tables can be made more confidential so only some users can see certain data (helps companies meet data protection laws)
What is a data redundancy?
Having the same piece of data stored in multiple places
How do you insert a full record into a table ?
How would insert bits of a record into a table ?
What is a record ?
The row of a table
What is a field ?
Columns of the table
How do relational databases eliminate data inconsistencies?
Since the data only has to be entered once, and can be referenced through other tables, there is less likely to be any inconsistencies such as spelling mistakes made when entering data in. This will reduce the amount of errors made when making queries
How do relational databases eliminate data redundancy?
Since the data can be referenced from other tables using foreign keys, the same pieces of data do not have to be repeated and stored in multiple places, there are no longer pieces of data that are being repeated unnecessarily
What is a computer system?
Two or more computers , that are CONNECTED together that are able to exchange data with each other. Allowing software and hardware to be shared.
What are the advantages of networks?
🟢communication eg: emails & text messages
🟢file sharing , eg: stored centrally and worked upon centrally
🟢hardware sharing , eg printers , making it more cost effective
🟢user account allow you to log in from any device
🟢installing software centrally , takes less time
What are some disadvantages of networks?
🟣expensive to set up as a lot of hardware is required. eg: NIC cards, switched , cables
🟣vulnerable to hacking and malware which can spread to networked computers
🟣hard to maintain and install , may require employing a specialist
Describe a PAN
Personal area network:
- very short range(few meters)
- cantered around 1 user
A network that is spread over a very small area used to connect personal devices
🟡don’t require additional hardware, can used them on the move
🟡often wireless technology eg: Bluetooth
Describe a LAN
Local area network
🟡small geographical area located on a single site
🟡wired or wireless
🟡owned an maintained by the organisation
Describe a WAN
Wide area network
🟡A combination of LANs in different geographical locations
🟡expensive as they need to hire infrastructure
🟡under collected or distributed ownership
What is a WLAN?
A wireless local area network
What is a wireless network?
A network that connect computers to a network through electromagnetic ☢️ radiation
What is a wired network?
Makes use of physical wire to connect computers to the network
Advantages wireless 🟢networks:
🟢Wireless are cheaper to set up.
🟢Wireless also requires less information and installation is automatic.
🟢wireless can add people more easily
Advantages of wired networks🔴
🔴wired have a larger transmission speed, higher bandwidth, more reliable
🔴wired are more secured. As physical connection is needed to intercept data
🔴wired have no interference from other Wireless networks or physical obstructions like walls
What is a NIC?
Network interface card, a piece of hardware inside a device that allows it to be connected to devices
What is a WAP?
Wireless access point
Needed in wireless networks
Basically a switch needed to connect devices wirelessly
What are switches?
Used to connect devices within a LAN to form a network
Device can access the switch simultaneously
What are routers?
Transmit data between different networks
Used to connect to the internet
Compare fibre optic cables and copper cables
Fibre: transmits dat as light.
More expensive but higher bandwidth
No interference and very large distance
Copper :
cheaper but have lower bandwidth
Describe a star topology
All devices are connected to a central switch or server, controlling the network. Can be wired or wireless
What is a node?
A device connected to a network
Star network pros and cons
✅if a device fails the network is unaffected
✅fewer data collisions as all devices can transmit data at the same time
✅easier to add devices
✅packets only sent to intended devices
❌expensive as it requires a switch and other hardware
❌problem with switch then the whole network is affected
Describe a bus network
Use a single ‘backbone ‘ cable to connect all devices.
Two terminator at the end to stop data reflections (interference)
Pros and cons of Bus networks
✅if one device fails the network remains unaffected
✅cheap to set up and maintain
✅not dependant on a switch
❌frequent data collisions slowing the network down
❌unsuitable for large networks as too many data collisions
❌network fails if the backbone cable is broken
Define network protocols
A set of rules that determine how devices communicate the transmission of data across a network
Describe Ethernet
🔌A family of protocols
🔌 manages data transfer for wired LANs
Describe HTTP
Hyper text transfer protocol
Used by web browsers to access websites / communicate with web servers .
Describe HTTPS
Hyper text transfer protocol secure
A more secure version of HTTP, as it uses encryption . The web browser will check the web servers security certificate and ensure it is legitimate. This means that it is not possible to eavesdrop
Describe FTP
File transfer protocol
Used to access , edit and move files between devices on a network, other devices
eg: to access files on a server from a client computer
What does IMAP do?
IMAP- internet message access protocol:
Retrieves emails from a server
What is TCP and how does it operate
Transport control protocol
Splits data into numbered packets to be sent over a network
What is UDP and how does it operate?
User diagram protocol
Splits data into packets to be sent over a network, without numbering them
Describe the differences between UDP and TCP
TCP is more reliable
UDP is more faster and efficient used for live video streaming
Describe Wi-Fi
🔴A family of related protocols
🔴wireless data transfer on WLANs(wireless lAN)
Describe IP and it’s purpose
Internet protocol,
🟣give them an IP address ,
🟣used to route the journey for packets by according to traffic
Responsible for packet switching
An IP adresss is a number code gIven to every device in the network
What is the 4 layer TCP/IP model?
Application layer
Transport layer
Internet layer
Link layer
What does the application layer do , and what are some examples?
Network applications like web browsers or email programs operate
Eg: HTTP, HTTPS,FTP,SMTP.IMTP
What does the transport layer do, and what are some examples?
🔵sets up communication between 2 hosts
🔵make the size of packets
Eg:TCP,UDP
What does the internet layer do, and what are some examples?
🔵addresses and packages the data for transmission
🔵routes the packets across the network
Eg: IP
What is the link layer, and what are some examples?
Passing data over a physical network, data sent as electrical signals over cables , wireless and other hardware
🔵network hardware is located
What is authentication, when would it be used?
🟣takes one or more specific data from a user
🟣only allows access to the system if credentials are valid
Preventing unauthorised access
eg: username and password
What is encryption and when would it be used?
🔢the process of disguising a message so that it cannot be understood by anyone but its intended recipient
Eg: ceaser cipher, web browsers
What is firewall , and when is it used?
🔥 acts as a barrier
🔥 Examines all packets entering and leaving
🔥 identifying potential threats from packets using security rules and blocking unwanted data
Software or hardware
What is MAC address filtering and when is it used?
🔵takes a MAC address for each device
🔵checks to see if it is in the list of allowed , and on that basis gives it permission to connect to the system
What is the purpose of a terminator?
Absorbs signals and stops data reflecting back along the bus
Compare bus and star
🚎 isn’t reliant on central switch/server, ⭐️ will completely fail if central device stops working
🚎 less cabling (no switch) and so are cheaper than a ⭐️
⭐️ all devices can access the switch simultaneously, so there are no data collisions, 🚎 data collisions are common
What does SMTP do?
Simple mail transfer protocol:
Sends emails to a server
What is an IP address?
Identifies devices on the internet
Used by routers to direct the packets to their location
When is UDP deemed better ?
🟡does not establish a connection between the two devices, making transmission quick
🟡does not require retransmission of lost/corrupt packet, making transmission quick
Why is network security important?
🟠prevent cyber attacks(targeting specifics)
🟠prevent unauthorised access
🟠protects data and programs against damage
what is malware?
malicious/harmful software, that is designed to cause harm or gain unauthorised access computer system
An umbrella term used to refer to a variety of forms of hostile or intrusive software.
What are some threats to a computer system
- social engineering
- malware
What is social engineering ?
a way of gaining illegal access to data or networks by influencing people (normally employees or large companies)
The art of manipulating people so that they give up confidential information
what are some forms of social engineering?
- blagging
- pharming
- phishing
- shouldering
what are some typical actions of malware?
- deleting or modifying files
- locking files (ransomware encrypting all the files)
- unwanted adverts
- mo
What is Pharming?
redirects the user from a websites’s traffic to a fake website , in hope to gain personal information , to access their genuine account
How could you prevent pharming?
- anti-malware software , up to date
- internet browsers using web filters
*not clicking or links or attachments from unknown users
What Phishing?
A technique if fraudulently obtaining private information, often using email or SMS
emails are sent to the user claiming to be from well known business, asking for bank details
How to prevent phishing?
- emails have anti-phishing features
- you can spot bad grammar , or will ask to redirect to a link
What is shouldering?
looking over someone’s shoulder and watching and observing their activity /private information (pin details)
how can you reduce the risk of shouldering?
being discrete (covering the keypad when you enter the pin)
some softwares output astreiks instead of the symbol typed , on the screen
What is Blagging ? (Pretexting)
The act of creating and using an invented scenario to engage a targeted victim in a manner that will increase the chance the victim will divulge information or perform actions that would be unlikely in ordinary circumstances.
how could you prevent blagging?
reduce the risk by using using security measures that cannot be given away,
eg: biometrics
what is penetration testing?
organisations employing specialists to stimulate potential attacks to their system, allowing them to identify their weaknesses in cyber security
The process of attempting to gain access to resources without knowledge of usernames, passwords and other normal means of access.
What is the difference between white and black penentration testing ?
white: when the person or team testing the system has knowledge of possibly basic credentials for the target system, stimulating an attack from inside the system (a malicious insider)
black: when the person of team testing the system has no knowledge of any credentials for the target system, stimulating an attack from outside the system (an external attack)
what are the different types of malware?
- trojan
- worms
- spyware
- ransomeware
- viruses
- adware
what is a trojan?
appears to be a piece of harmless legitimate piece of software, often given away for free, that contains malicious code hidden inside. *software must be installed by the user
what is spyware?
collects the data from one computer system and then sends the details to another person without the user being aware.
data being sent could be thing the user typed, or the sites that are visited, or even where the user is clicking on their screen. Spyware that records what is being typed is known as a keylogger. Keyloggers attempt to find out usernames and passwords by collecting everything that is entered into the system, which allows the hacker to search for personal data.
What are viruses?
programs that are activated by opening infected files
viruses attach themselves (by copying themselves) to certain files. Users then spread them by copying infected files
*replicates by itself
what are worms?
a computer program that replicates by itself without any user help, can spread rapidly within a network
What is an anti-virus software?
a database of viruses. When opening a file or installing a program .If the virus is similar to the one in the database, it will warn the user. That virus is then quarantined or removed.
What is adware?
legal, in extreme cases ad pop ups that do not go away. (can be solved with ani-virus software)
What is ransomeware ?
when files will be encrypted and in order to recieve a decrypting key, the hackr will demand a certain amount of money.
probably from suscpitious attachtments.
How can removable hardware also a cyber threat?
if attcahed to a computer on a network ,all the the comuters could get the virus
How is unpatched software a cyber secrutity threat?
unpatched sotware= not up to date software and so is more sucesptible to cyber attacks.
‘patching’ updates or fixes a problem or adds new features
reduces vunerability
More outadated software is more easily exploited
How do orgainsations keep their networks safe from threats?
- encryption, to prevent wire tapping or packet sniffing
- anti-malware software
- firewalls
- user access levels, stops attacks from within the organisation
- automatic software updates
- MAC Address filtering
*penetration testing (white & black) to find weaknesses and correct
*strong, regularly changed passwords, against automated software.
Describe encryption
data translated into cipher text, with the correct key to decipher, data can now be sent over a network securly
Describe Firewalls
examines all the data leaving and enetring the netwoek, can be software or hardware
Describe user access levels, prevnting threats
pwople with higher access levels have more access to senetive data , the UAL limits the amount of people who have accesss to the sensitive information.
*Helps prevent attacks from within the organisation
Describe MAC filtering
makes sure that the only people on the network are trusted employees.
It checks the unique MAC address of each devices that tries to connect to the network, and only allows certain devices to join.
What are some types of security measures ?
- email confirmation
- biometrics
- CAPTCHA
- passwords
*automatic software updates
Biometrics
✓secure (cannot be given away or manipualted)
✓convienient(don’t have to remeber
X more expensive, needs special hardware
CAPTCHA
completly automated public turning ( to tell) computers and humans apart
✓prevents programs from automatically doing things (creating user accounts)
Whats wrong with putting many security measures in at a time?
prevents normal users from being able to use the network easily
What is ‘cyber security’?
The processes , practices and technologies designed to protect networks, computers, programs and data from attack, damage or unauthorised access
Describe a binary search
- Find the middle item in the ordered list
- If this is the item you’ve been looking for, then stop the search, you’ve found it !
- If no then compare the item you are looking for to the middle item
If it comes before the middle item , get rid of the second half of the list (including the middle item)
If it comes after the middle item, then get rid of the first half of the list (including the middle item) - Repay these steps until you have found the item
Describe a linear search
- Look at the first item in the unordered list
- If this is the item you are looking for, then stop the search as the item has been found
- If not then look at the next item in the list
- Repeat until you have found the item you were looking for, or until you’ve checked every item
Compare a linear and a binary search
Describe a bubble sort
- Look at the first two items in the list
- If they are in the right order then do not have to do anything
If they are in the wrong order then swap them - Move onto the next pair of items (2nd and 3rd entries) and repeat step 2
- Repeat step 3 until you get to the end of a list, 1 row = 1 pass
- Repeat steps 1-4 until there are no swaps in a pass
Describe a merge sort
- Split the list into half (the smaller lists are called sun lists)
*second sub list starts at the middle item - Keep repeating step 1 on each sub-list , until all the lists only contain one item
- Merge pairs of sub-lists so that each sub list twice as many items.
Each time you merge the sub lists, sort the items into the right order - Repeat step 3 until you have merged all the sub lists together
Compare a merge sort and a bubble sort
Bubble sort pseudocode
Binary search
Linear search