Back to homeTechnology and Engineering II · 2nd Bach. Science · Change subject
Start for free
BAC2 tech · Technology and Engineering II
Emerging computer systems · Emerging technologies

Distributed databases and cybersecurity

A service that cannot be allowed to go down spreads its data across several different computers; in exchange, new problems appear that a database on a single machine never had. And the more valuable the data at stake, the more attractive it becomes to attackers: cybersecurity is the other, inseparable side of any distributed system.

Before you start, make sure you know: Scams and attacks on people (3rd ESO)
Before you start, make sure you know: Viruses and malicious programs (3rd ESO)

Distributed databases: replication and availability

Diagram of a distributed database: users send requests to a load balancer, which distributes them between nodes 1 and 3 (active copies) and sends no traffic to node 2, which is down. users load balancer node 1 (copy) node 2 (down) node 3 (copy)
Practice★☆☆Not started
Explain what a distributed database is and give two advantages compared to a centralised database (availability, scalability) and one complication it introduces…

Explain what a distributed database is and give two advantages compared to a centralised database (availability, scalability) and one complication it introduces (consistency between copies).

Solve
Practice★★☆Not started
Explain what data replication is and how it differs from a backup: what problem each one solves (hot failover vs loss or corruption of data) and why a reliable service…

Explain what data replication is and how it differs from a backup: what problem each one solves (hot failover vs loss or corruption of data) and why a reliable service needs both.

Solve
Practice★☆☆Not started
The figure shows a service with its data replicated across three nodes; one of them has failed and is marked with a question mark. Explain what happens to the service…

The figure shows a service with its data replicated across three nodes; one of them has failed and is marked with a question mark. Explain what happens to the service while the node is down, what the system must do upon recovering it, and what property of distributed systems is being taken advantage of.

users load balancer node 1: data copy active node 2: data copy ? node 3: data copy active
Solve

The CAP theorem and eventual consistency

Diagram of the CAP theorem illustrating the choice between consistency and availability when a network partition occurs in a distributed system. consistency (C) availability (A) partition tolerance (P) with the network cut, you can only guarantee two of the three corners
Practice★★★Not started
An online shop replicates its database across two distant data centres. Following a network outage between them, each centre continues to accept orders. Analyse the…

An online shop replicates its database across two distant data centres. Following a network outage between them, each centre continues to accept orders. Analyse the consistency issue that arises (the CAP theorem: consistency, availability, and partition tolerance), which option you would choose for product stock and which for customer reviews, justifying the difference.

Solve
Practice★★★Not started
A global platform combining a social network and a microtransaction gateway replicates its databases across nodes located in Europe, the Americas, and Asia. An…

A global platform combining a social network and a microtransaction gateway replicates its databases across nodes located in Europe, the Americas, and Asia. An unexpected cut in submarine communication cables temporarily isolates the European region from the rest of the continents. Apply the CAP theorem to predict the operational consequences if the system attempts to prioritize availability (AP systems) versus strict consistency (CP systems). Justify technically and economically why an eventual consistency model should be adopted for a video's view counter, whereas for users' digital wallet balances it is imperative to block unsynchronized transactions, analyzing the risk of double-spending.

Solve

Threats: phishing, ransomware and social engineering

Diagram of the phishing process: receiving a fake urgent email, clicking the link and having credentials stolen, and the account being compromised. "urgent" email impersonates the bank click on the link credentials stolen account compromised
Practice★☆☆Not started
Define each of these common threats in one sentence: phishing, ransomware, denial-of-service (DoS) attack, and data breach. State which one primarily targets the human…

Define each of these common threats in one sentence: phishing, ransomware, denial-of-service (DoS) attack, and data breach. State which one primarily targets the human factor.

Solve
Practice★★☆Not started
You receive an email that appears to be from your bank: it urgently asks you to 'verify your account' via a link. Detail at least four red flags that would betray a…

You receive an email that appears to be from your bank: it urgently asks you to 'verify your account' via a link. Detail at least four red flags that would betray a phishing attempt (sender, actual link, urgency, spelling errors, attachments) and what you should do step by step.

Solve
Practice★★☆Not started
A 'maintenance technician' calls reception saying they need the management Wi-Fi password to repair the printer. Explain what pretexting (social engineering) is, what…

A 'maintenance technician' calls reception saying they need the management Wi-Fi password to repair the printer. Explain what pretexting (social engineering) is, what red flags betray the call, and what verification protocol should be in place (never share credentials over the phone, verify identity through an official channel).

Solve

Defences: encryption, authentication and incident response

Diagram of the defence-in-depth model showing successive layers of protection that stop an attack before it compromises the data. firewall two-factor data encryption backups
Practice★☆☆Not started
Explain what a password manager does and why it allows using a long, distinct password for each service. What risk does it concentrate (the master password) and how is…

Explain what a password manager does and why it allows using a long, distinct password for each service. What risk does it concentrate (the master password) and how is it mitigated?

Solve
Practice★☆☆Not started
Explain the basic concept of encryption: transforming readable data into unreadable data without the key. Distinguish between encrypting stored data (at rest) and…

Explain the basic concept of encryption: transforming readable data into unreadable data without the key. Distinguish between encrypting stored data (at rest) and encrypting communication (in transit, as HTTPS does), and explain what each one protects.

Solve
Practice★★★Not started
The support department of an e-commerce company discovers on a Monday at 08:00 that, due to a security breach in its web gateway, an attacker has exfiltrated a database…

The support department of an e-commerce company discovers on a Monday at 08:00 that, due to a security breach in its web gateway, an attacker has exfiltrated a database containing names, home addresses, national ID numbers (DNI), and credit card numbers belonging to 25.000 customers. The commercial director proposes not to disclose the leak publicly in order to prevent a reputation crisis and the financial losses resulting from customer churn, arguing that the technical flaw has already been resolved by 11:00. Assess the director's proposal from both a legal and security perspective: determine the mandatory and non-extendable deadlines established by the GDPR regarding the supervisory authority and the affected individuals, classify the risk level to the users' rights, and predict the sanctions and legal liabilities the company faces if it deliberately conceals the incident.

Solve

Summary

See all the exercises in this section