Back to the topic

The mark scheme starts on a new page, so you can print pages one and two for a student and keep the last page yourself. Everything prints in black on white whichever theme you are using.

Data Analytics · F201 TA2

F201 TA2: The Infrastructure Challenges of Big Data

Section A: 10 multiple choice questions, 10 marks. Section B: 4 written questions, 20 marks. Total 30 marks.

Name

Class

Date

Mark  / 30

Section A

Circle the letter of the correct answer. One mark each.

  1. 1What does scaling out mean?1
    1. AMoving to the cloud
    2. BAdding more machines that work together
    3. CCompressing the data
    4. DBuying a more powerful single machine
  2. 2What is the main cost of replicating and partitioning data across a cluster?1
    1. AQueries become impossible
    2. BLatency becomes zero
    3. CThe data cannot be backed up
    4. DReplicas can briefly disagree, so consistency is weakened
  3. 3Which principle underlies distributed processing frameworks?1
    1. ACompress before processing
    2. BMove the data to the computation
    3. CMove the computation to the data
    4. DStore everything in memory
  4. 4A data lake applies structure:1
    1. AWhen the data is read
    2. BWhen the data is written
    3. CNever
    4. DOnly to structured sources
  5. 5Which workload type suits fraud detection on card transactions?1
    1. AMonthly batch processing
    2. BStream processing
    3. CInteractive query
    4. DNightly batch processing
  6. 6Why are GPUs used to train machine learning models?1
    1. AThey perform thousands of identical calculations in parallel
    2. BThey use less electricity
    3. CThey have more storage
    4. DThey have faster single-core speed
  7. 7What is egress cost?1
    1. AThe price of additional processing
    2. BThe cost of storing data
    3. CThe cost of a failed query
    4. DA charge for moving data out of a cloud provider
  8. 8What is edge processing?1
    1. AProcessing only the newest data
    2. BProcessing at the edge of a data centre
    3. CProcessing data on or near the device that produced it
    4. DProcessing in a separate region
  9. 9Why is cloud elasticity valuable for big data?1
    1. ACloud machines are faster than on premise
    2. BCapacity can be rented for the duration of a job and then released
    3. CCloud storage is always free
    4. DIt removes the need for governance
  10. 10At large scale, component failure should be treated as:1
    1. AA supplier fault
    2. BA rare incident
    3. CSomething to prevent entirely
    4. DThe normal operating condition, designed for

Section B

Answer in the space provided. The number of marks tells you how many separate points to make.

  1. 1StateState the difference between scaling up and scaling out.2
  2. 2ExplainExplain why a data lake is often chosen over a data warehouse for big data.4
  3. 3ExplainA manufacturer has 4,000 sensors on its production line, each sending a reading every second. The site has a limited internet connection. Explain how the data should be collected and processed, and justify your choices.6
  4. 4DiscussDiscuss the infrastructure challenges an organisation faces when moving from a single-server database to a big data platform.8

Mark scheme

Section A

1B2D3C4A5B6A7D8C9B10D

Section B

1 State the difference between scaling up and scaling out. 2

One mark for each of the following, to a maximum of 2.

  • Scaling up increases the capacity of one machine
  • Scaling out adds more machines working together

Model answer. Scaling up means increasing the capacity of a single machine, with more processors, memory or storage. Scaling out means adding more machines that work together as a cluster.

2 Explain why a data lake is often chosen over a data warehouse for big data. 4

One mark for each of the following, to a maximum of 4.

  • A lake accepts any structure
  • Schema is applied on read rather than on write
  • It avoids losing data that does not fit a schema
  • A drawback is recognised

Model answer. A data lake accepts data in whatever structure it arrives in, including unstructured content such as images, audio and free text that a relational warehouse cannot hold at all. It applies structure when the data is read rather than when it is written, so nothing has to fit a schema at the point of arrival and nothing is rejected or reshaped before anyone knows what questions will be asked of it. That matters for big data because variety is one of its defining characteristics and the useful questions are often not known in advance. The cost is governance: because the lake guarantees nothing about quality, structure or meaning, an undocumented lake becomes a swamp that is expensive to store and that nobody trusts enough to use, so a catalogue, lineage and retention policy are not optional extras.

3 A manufacturer has 4,000 sensors on its production line, each sending a reading every second. The site has a limited internet connection. Explain how the data should be collected and processed, and justify your choices. 6

One mark for each of the following, to a maximum of 6.

  • The data rate is quantified or recognised as high
  • Edge processing is proposed
  • Justified by bandwidth or connectivity
  • Aggregation or filtering at the edge is described
  • A suitable store is named for the retained data
  • Stream processing for alerts, with a reason

Model answer. Four thousand sensors at one reading a second is 4,000 values every second, around 345 million a day, and a limited connection will not carry that continuously, so the design has to reduce the data before it leaves the site. Processing should therefore start at the edge: a local gateway ingests every reading, applies threshold rules immediately so an out of range vibration raises an alert on site within milliseconds, and aggregates the rest into, say, one-minute summaries holding the mean, minimum, maximum and standard deviation per sensor. That cuts the uploaded volume by roughly sixty times while keeping the statistical shape of the signal, and it means the line keeps being monitored when the connection drops, which a cloud-only design would not. Full resolution readings should be buffered locally for a short window and uploaded only around an event, because that is when per-second detail is actually needed for diagnosis. In the cloud the summaries belong in a time series store, which is built for timestamped measurements and compresses them far better than a relational table, with the raw event windows in object storage as a lake for later model training. Alerting should be stream processed rather than batched, because the entire value of the data is in acting before a component fails, and a nightly batch would discover the failure after it had already stopped the line.

4 Discuss the infrastructure challenges an organisation faces when moving from a single-server database to a big data platform. 8

One mark for each of the following, to a maximum of 8.

  • Storage must be distributed rather than enlarged
  • Partitioning and replication are explained
  • The consistency trade-off is identified
  • Network bandwidth or data movement is addressed
  • Processing model change is addressed
  • Cost and skills are addressed
  • Resilience and failure handling are addressed
  • A judgement about the hardest challenge and why

Model answer. The first challenge is that the familiar answer stops working. A single server is improved by scaling up, and big data is by definition the point at which no affordable single machine is large enough, so storage has to become a cluster with the data partitioned across nodes for parallel processing and replicated so that a lost machine loses nothing. That immediately introduces a cost the organisation has not had to think about before: replicas can briefly disagree, so the immediate consistency a relational database guaranteed is replaced in many stores by eventual consistency, and every application has to be examined to see whether it can tolerate that. A balance cannot; a dashboard count can. The second challenge is movement. Data has weight, and at terabyte and petabyte scale the network becomes the binding constraint rather than storage: a migration that would take weeks of continuous transfer may need physical shipment, and cloud egress charges mean that moving data out later is a budget decision rather than a technical one. This is why the governing design principle inverts, from bringing data to the analysis to sending the computation to the machines that already hold the blocks. Third, the processing model changes. Queries become distributed jobs that split, process in parallel and combine, and workloads divide into batch for reporting and retraining and streaming for anything whose value decays within seconds, each needing different tooling and different thinking. Fourth, failure stops being an incident. With hundreds of components something is always broken, so jobs have to be retried, idempotent and checkpointed, and resilience has to be designed rather than hoped for. Finally there is cost and capability: elastic cloud capacity is genuinely cheaper than idle on premise hardware, but a runaway query that scans the whole lake produces a bill nobody approved, so cost monitoring belongs in the architecture, and the platform needs people who have run a distributed system before. Weighing these, the hardest challenge is not any of the technical ones; it is the skills and governance gap. Clusters can be rented in an afternoon, whereas the discipline to catalogue a lake, define ownership, control cost and reason correctly about consistency takes far longer to build, and it is the absence of that discipline, rather than any shortage of capacity, that turns most big data projects into expensive storage.