KS5H019/H119 F200 TA3 28 min read 10 question quiz 20 exam marks

F200 TA3: Accessing Data Across Platforms

APIs, interoperability, access control and the cloud: how data gets from one system to another, and who is allowed to see it.

APIs and moving data between systems

An API, an application programming interface, is a defined way for one system to ask another for data or ask it to do something, without either knowing how the other works inside.

A REST API request, in order

  1. The client sends a request to an endpoint, a URL such as /api/v1/orders
  2. It uses an HTTP method: GET to read, POST to create, PUT or PATCH to update, DELETE to remove
  3. It includes parameters to filter or page the data, and headers carrying the API key or token
  4. The server authenticates the key, authorises the action, and runs the query
  5. It returns a status code and a response body, usually JSON
  6. The client parses the response and handles errors and paging
StatusMeaning
200OK
201Created
400Bad request: your parameters are wrong
401Unauthenticated: no valid key
403Forbidden: valid key, not allowed to do this
404Not found
429Too many requests: you have hit the rate limit
500Server error: their fault, not yours

Why an organisation uses an API rather than a file

  • Live rather than a snapshot that is stale the moment it is written
  • Only the data you asked for, filtered server-side
  • Controlled: keys can be scoped, logged, revoked and rate limited
  • Stable contract: the provider can change their internals without breaking you
  • Auditable: every request is attributable to a key

What to plan for

  • Rate limits and the 429 response, which means back off and retry later
  • Paging: large results arrive in pages, and code that reads only the first page silently loses data
  • Versioning: build against /v1/, and watch for deprecation notices
  • Authentication: keys in a secrets store or environment variable, never in the code or the repository
  • Terms of use: an API being technically open does not make the data free to republish
Authentication against authorisation

Authentication is proving who you are. Authorisation is what you are then allowed to do. A 401 means the system does not know you; a 403 means it knows you and the answer is still no.

A REST API request and responseA single REST API exchange drawn as a sequence between your system and their API. First your system sends a GET request to the endpoint slash api slash v1 slash orders with query parameters limiting it to orders since the first of April and a page size of one hundred, which carries the method, the endpoint, the API version and the filters. The API key is sent in an Authorization header rather than in the URL. The API replies with a status of 200 OK, meaning the caller was authenticated, the action authorised and the query run, followed by a JSON body containing the orders and a link to the next page. The status codes worth knowing are: 200 OK; 201 Created; 400 bad request, meaning your parameters are wrong; 401 unauthenticated, meaning no valid key was supplied; 403 forbidden, meaning the key is valid but the action is not permitted; 404 not found; 429 too many requests, meaning you have hit the rate limit and should back off and retry; and 500, a server error at their end rather than yours. The practical warning is paging: code that reads only the first response silently processes one hundred records and ignores the rest.One API request, start to finishYOUR SYSTEMTHEIR APIGET /api/v1/orders?since=2026-04-01&limit=100method, endpoint, version, parametersAuthorization: Bearer •••• (your API key)sent in a header, never in the URL200 OKauthenticated, authorised, query ran{ "orders": [ … ], "next": "/v1/orders?page=2" }JSON body, and a link to the next pageThe status codes worth knowing200OK201Created400Bad request: your parameters401No valid key: who are you?403Valid key, not allowed404Not found429Rate limited: back off and retry500Their server broke, not youHandle paging or you will silently process only the first hundred records.
401 means it does not know you. 403 means it knows you and the answer is still no.

Interoperability and integration patterns

Interoperability is the ability of different systems to exchange data and use it meaningfully. It needs agreement at three levels, and failing any one of them breaks the exchange.

LevelWhat has to be agreedFailure looks like
TechnicalThe transport and format: HTTPS, JSON, CSV, SFTPThe file cannot be read at all
SyntacticThe structure: field names, nesting, encoding, date formatThe file parses but fields land in the wrong place
SemanticThe meaning: what "customer" counts as, what "active" meansEverything imports cleanly and the numbers are wrong

Semantic failures are the dangerous ones, because nothing errors.

Patterns for getting data from A to B

PatternHow it worksSuits
Manual export and importSomebody downloads a file and uploads itOne-off work only
Scheduled batchA file or extract transferred on a timetableNightly reporting
API pullYour system requests data when it needs itLive lookups, moderate volume
Webhook pushTheir system notifies yours when something changesNear real time, low volume
StreamingA continuous flow of eventsSensors, telemetry, fraud detection
Direct database accessOne system queries another's databaseRarely wise: it couples you to their schema

Standards that make interoperability possible

Shared formats (JSON, XML, CSV), shared identifiers (ISO country codes, ISBN, UUIDs), shared schemas within a sector, shared character encoding (UTF-8), and shared time representation (ISO 8601 with a timezone). Every one of these exists because somebody's integration broke without it.

The three levels of interoperabilityInteroperability needs agreement at three levels. Technical agreement is how the data physically moves: the protocol, the file format and the character encoding. Without it nothing transfers at all, which fails loudly and gets fixed. Syntactic agreement is how the data is structured: the field names, their order, whether records nest and how dates are written. Without it the file parses but values land in the wrong columns, which is usually visible on inspection. Semantic agreement is what the values mean: what counts as a customer, what counts as active, what counts as complete. Without it everything imports cleanly and the numbers are simply wrong, and nothing anywhere reports an error, which is why semantic failure is the dangerous one.Two systems have to agree at three levelsTECHNICALhow it physically movesAGREE ONHTTPS, SFTP, the file format, the encodingIF NOTNothing transfers. It failsloudly, and somebody fixes it.SYNTACTIChow it is structuredAGREE ONfield names, order, nesting, date formatIF NOTIt parses, and values land in thewrong columns. Usually visible.SEMANTICwhat the values meanAGREE ONwhat counts as a customer, as active, as completeIF NOTEverything imports cleanly and thenumbers are wrong. Nothing errors.Semantic failure is the dangerous one, because nothing anywhere reports an error.
The exchange that worked perfectly and produced the wrong total failed at the level nobody checks.

Access control, security and the cloud

Controlling who sees what

ControlWhat it does
AuthenticationEstablishes identity: password, passkey, certificate, token
Multi-factor authenticationRequires something else as well as the password
AuthorisationDecides what that identity may do
Role-based access controlPermissions attach to roles, and people are given roles
Least privilegeEveryone gets the minimum access their job needs, and no more
Row and column level securityRestricts which rows or which fields a user can see within one table
Audit loggingRecords who accessed what, which is itself a control
Separation of dutiesThe person who requests a change is not the person who approves it

Protecting the data itself

  • Encryption in transit: TLS, so an intercepted request is unreadable
  • Encryption at rest: the stored file or disk is encrypted
  • Hashing: passwords are hashed and salted, never stored or encrypted
  • Masking and redaction: showing only the last four digits of a card
  • Pseudonymisation: replacing identifiers with a key held separately. Still personal data
  • Anonymisation: removing identifiers irreversibly. No longer personal data, and genuinely hard to achieve
  • Backup: the 3-2-1 rule, three copies, two media, one off site, and a restore that has actually been tested

Cloud and on-premise

CloudOn-premise
Cost shapeOperating cost, pay for useCapital cost up front
ScalingMinutes, and down againBuy, rack and configure
MaintenanceThe provider patches the platformYour team patches everything
ResilienceMultiple regions available by defaultWhatever you build and pay for
ControlConstrained by the provider's optionsComplete
Data locationMust be chosen and checkedKnown by definition
RiskProvider outage, lock-in, misconfigurationYour own failures, and no one else to call

Hybrid is the common reality: sensitive or regulated data on premise, elastic analytics workloads in the cloud.

The most common cloud breach is not an attack

It is a storage bucket left public by mistake. The platform's security was never the weak point; the configuration was. Which is why access review is a scheduled task, not a one-off.

The layers of access controlAccess control drawn as five layers every request passes through. Authentication asks who you are, using a password with multi-factor authentication, a passkey, a token or a certificate. Authorisation asks what you may do, expressed through role based access control on the principle of least privilege. Row and column level security asks which part of the data you may see, so a user sees only their region's rows and the salary column is masked. Encryption asks whether the data could be read if intercepted or stolen, which means TLS in transit, encryption at rest, and passwords hashed rather than encrypted. Audit logging asks what you actually did, making every access attributable, reviewed and retained. Least privilege means everyone gets the minimum access their role needs, so a single compromised account exposes very little. The usual real world failure is not a broken cipher but a storage location left publicly readable, or a role granted once and never reviewed.Every request passes through all of theseAUTHENTICATIONwho are you?password + MFA, passkey, token, certificateAUTHORISATIONwhat may you do?role based access control, least privilegeROW AND COLUMN SECURITYwhich part may you see?your region's rows; the salary column maskedENCRYPTIONcan it be read if intercepted or stolen?TLS in transit, encrypted at rest, passwords hashedAUDIT LOGGINGwhat did you actually do?every access attributable, reviewed, retainedLEAST PRIVILEGEEveryone gets the minimum their role needs,so one compromised account exposes little.THE USUAL FAILURENot a broken cipher: a storage bucket leftpublic, or a role nobody ever reviewed.
The cipher is almost never the weak point. The configuration is.

Key terms you must be able to define

API
A defined interface letting one system request data or actions from another.
Endpoint
The specific URL an API request is sent to.
API key
A credential identifying the caller of an API so access can be controlled and logged.
Rate limit
A cap on how many API requests a caller may make in a period.
Interoperability
The ability of different systems to exchange data and use it meaningfully.
Webhook
A message sent by one system to another when an event occurs.
Authentication
Establishing who a user or system is.
Authorisation
Determining what an authenticated user or system is permitted to do.
Role-based access control
Granting permissions to roles and assigning roles to people.
Least privilege
Giving each user only the access their role requires.
Encryption in transit
Protecting data while it moves across a network, usually with TLS.
Encryption at rest
Protecting stored data so the files or disks are unreadable without a key.
Pseudonymisation
Replacing identifiers with a separately held key; the data remains personal data.
Anonymisation
Irreversibly removing identifying information so data is no longer personal data.

Flashcards

Say the definition out loud before you flip the card. Retrieving it from memory is what builds recall, reading it again is not.

DefineAPI
AnswerA defined interface letting one system request data or actions from another.
DefineEndpoint
AnswerThe specific URL an API request is sent to.
DefineAPI key
AnswerA credential identifying the caller of an API so access can be controlled and logged.
DefineRate limit
AnswerA cap on how many API requests a caller may make in a period.
DefineInteroperability
AnswerThe ability of different systems to exchange data and use it meaningfully.
DefineWebhook
AnswerA message sent by one system to another when an event occurs.
DefineAuthentication
AnswerEstablishing who a user or system is.
DefineAuthorisation
AnswerDetermining what an authenticated user or system is permitted to do.

Reach the top grade on this topic

Questions here are nearly always applied. Name the mechanism, then say what attack or failure it prevents and what it costs. "Role-based access control, so a new analyst inherits exactly the permissions of their role rather than being granted them individually, which means access can be audited by role and removed in one change when they leave."

Mistakes that cost marks here

Avoid these
  • Treating authentication and authorisation as the same thing.
  • Forgetting paging, so only the first page of an API response is ever processed.
  • Putting API keys in source code or a public repository.
  • Calling pseudonymised data anonymous. If it can be reversed with a key, it is still personal data.
  • Describing the cloud as automatically more or less secure, rather than differently configured.
  • Claiming a backup exists without ever having tested a restore.
Fun fact

A public API is a promise. When a large platform changes or withdraws one, thousands of applications built on it break at the same moment, which is why serious integrations are versioned and monitored rather than simply used.

Knowledge check

0 of 10 answered
1An API returns status 403. What does that mean?
2Which HTTP method is used to read data from an API?
3What does a 429 response mean you should do?
4Two systems exchange a file that imports cleanly, but the totals are wrong because each defines 'active customer' differently. What kind of interoperability has failed?
5What is the principle of least privilege?
6Which is true of pseudonymised data?
7How should passwords be stored?
8What does the 3-2-1 backup rule say?
9Which is the most common cause of cloud data exposure?
10Why would an organisation use an API rather than a nightly CSV export?
Score 0 / 10

Exam-style questions

Five written questions in the style of the real paper. Write a full answer, then let the marker check it against the mark scheme.

20 marks
1State what is meant by an API.2 marks
State

Mark scheme0 / 2
  • LA defined interface between two systems
  • LWithout either needing to know the other's internal workings, or for data or functionality
Model answer

An API is a defined interface that lets one system request data or functionality from another, without either system needing to know how the other works internally.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
2Explain the difference between authentication and authorisation in a data system.4 marks
Explain

Mark scheme0 / 4
  • LAuthentication establishes identity
  • LAn example of authentication
  • LAuthorisation determines what is permitted
  • LAn example, or why the distinction matters
Model answer

Authentication establishes who a user or system is, using something they know, have or are: a password with a second factor, a passkey, a certificate or an API token. Authorisation then determines what that identity is permitted to do, which is usually expressed through roles, so an analyst can read the sales table but not delete it and cannot see the payroll table at all. The distinction matters because the two fail differently: an HTTP 401 means the system does not recognise you, while a 403 means it recognises you perfectly well and the answer is still no, and fixing one would not fix the other.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
3A hospital wants to give its research team access to patient records for analysis.Explain three access control measures that should be applied, and why each is necessary.6 marks
Explain

Mark scheme0 / 6
  • LLeast privilege or role-based access control
  • LWhy it is necessary here
  • LPseudonymisation or masking of identifiers
  • LWhy it is necessary here
  • LAudit logging, or row and column level security
  • LWhy it is necessary here
Model answer

The team's access should be role based and set to least privilege: a research role granted read-only access to the specific dataset the approved study needs, rather than individual grants on the live clinical system. That matters because health records are special category data under the UK GDPR, the research purpose is narrower than clinical care, and a role can be audited and withdrawn in one change when the study ends. The data should be pseudonymised before it reaches them, with names, addresses and NHS numbers replaced by a study identifier and the linking key held separately by the clinical team, because researchers almost never need to know which individual a record belongs to and removing that need removes most of the risk. Finally every access should be logged and reviewed, with row level security limiting each researcher to their approved cohort, because logging is what makes misuse detectable and investigable rather than merely prohibited, and a hospital has to be able to evidence who looked at a record and why.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
4A growing company is deciding whether to keep its data warehouse on its own servers or move it to a cloud provider.Discuss the factors it should consider and recommend an approach.8 marks
Discuss

Mark scheme0 / 8
  • LCost shape is compared
  • LScalability is compared
  • LMaintenance and staffing are addressed
  • LResilience and backup are addressed
  • LSecurity and configuration risk are addressed
  • LLegal or data location issues are addressed
  • LA clear recommendation is made
  • LThe recommendation is justified against the drawbacks raised
Model answer

The decision turns on five factors. Cost shape comes first: on premise is a capital purchase that has to be sized for the busiest hour of the year and then sits idle, while cloud is an operating cost that tracks use, which suits a company whose volumes are growing and unpredictable but which becomes expensive if a steady, heavy workload is left running continuously. Scalability follows from that: cloud capacity changes in minutes and can be reduced again, whereas on premise growth means specifying, buying, racking and configuring hardware weeks in advance. Maintenance matters more than it first appears, because a growing company rarely has staff to spare: a managed cloud warehouse removes patching, backup and hardware replacement from a small team, and that reclaimed time is a real saving rather than an accounting one. Resilience favours cloud too, since multi-region redundancy and tested restores are available as configuration rather than as a second data centre. Against all that sit two genuine risks. Security does not improve automatically; the dominant cause of cloud data exposure is misconfiguration, so the company would need enforced encryption, role-based access, least privilege and scheduled access reviews. Legally, it must know and control where data physically sits, put a processor contract with appropriate safeguards in place, and check whether any dataset is subject to restrictions on international transfer. My recommendation is a cloud warehouse with a hybrid exception: move the analytical warehouse to the cloud, where the elasticity and reduced maintenance burden genuinely fit a growing company, and keep any regulated or special category data on premise or in a specifically contracted region. That answers the two drawbacks directly, because the configuration risk is addressed by governance the company needs in any case, and the legal risk is addressed by not moving the data that creates it.

The marker looks for key phrases. If you said it another way and it is still right, give yourself the mark.
Machine mark 0 / 20