Mock Exam Flashcards

1
Q

Status Code 401

A

Indicates authentication error. Often due to incorrect details.

Example - username error

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Status Code 404

A

Indicates that the requested resource could not be found on the server

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

200 OK Status Code

A

Indicates request was successful, and data loads as expected.

Example - Data loaded successfully

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Encryption

A

Used to secure data within a smart contract

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which technology provides security for secure transactions?

A

Blockchain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

When promoting the reliability of a DApps system, which feature would reassure a stakeholder with security concerns?

A

Answer - No single point of failure.

Definition - In DApps, no single point of failure ensures that if one component fails, the others can continue operating, improving reliability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the purpose of a ‘contract registry’ within a distributed application framework?

A

A contract registry is a list of all deployed smart contracts in a system, allowing easy reference and validation.

Example - contract registry might be used to ensure the correct version of a smart contract is being accessed by clients

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which cloud deployment model would be most appropriate for ensuring data security while still leveraging cloud resources?

A

Hybrid Cloud.

Hybrid Cloud combines public and private cloud resources, providing a balance of security and scalability

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Which term refers to the concept of distributing computing resources as close to the source of data as possible?

A

Edge Computing.

Edge computing brings data processing closer to the source, reducing latency and improving efficiency.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Which technology would allow for automating the process of deploying, scaling, and managing containerised applications?

A

Docker.

Docker automates container deployment and management, making it easier to scale and manage applications

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In a RESTful API, what is the purpose of the HTTP DELETE method?

A

Remove an existing resource - DELETE is used to remove resources on a server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the term ‘latency’ refer to in a distributed network?

A

The time delay in transmitting data across the network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which tool could be used to visually monitor and manage containerised applications?

A

Kubernetes Dashboard

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does the term ‘smart contract’ imply in the context of blockchain applications?

A

A smart contract is an agreement coded into the blockchain that automatically enforces the terms, ensuring the data integrity and protection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

API Rate Limiting

A

Restricts the number of API requests a user can make within a given timeframe

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Which characteristic is essential to consider in designing a distributed application for high availability?

A

Multiple instances across different locations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Explain the concept of ‘Service-Oriented Architecture’ (SOA) and its impact on distributed application design.

A

SOA - architectural style that enables different services to communicate over a network.

Impacts distributed applications by allowing modular, reusable services that can be independently maintained, enhancing flexibility and scalability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Summarise the process for testing a smart contract and the steps to take before releasing it.

A
  1. Compilation.
  2. Writing test cases for each function and possible scenarios using Mocha Chai Framework.
  3. Running automated tests using tools like Truffle or Hardhat.
  4. Conducting security audits to identify vulnerabilities.
  5. Deploying on a testnet before launching on the main network to check for issues.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Define and describe how ‘gas’ operates within the blockchain system to manage transaction fees.

A

Gas refers to the fees required to execute transactions on the blockchain.

Each operation has a gas cost, and users pay based on the computational resources they consume, ensuring fair usage and network stability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Illustrate how an IT team could benefit from an ‘Address Book’ within their system.

A

Address Book - stores user or contract addresses in a smart contract environment.

Could be used to manage and retrieve contract addresses efficiently, improving usability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Describe how REST APIs could support smart contracts.

A

REST APIs - provide a way for external systems to interact with smart contracts, enabling functions like querying contract states or sending transactions.

This facilitates seamless integration with other applications.

22
Q

What are the potential downsides to decentralising a database?

A
  1. Increased complexity in data consistency and coordination.
  2. Higher costs due to resource redundancy.
  3. Security concerns with open data access, requiring robust access control.
23
Q

Outline the key steps in compiling a smart contract for deployment.

A
  1. Writing the smart contract code in Solidity or another language.
  2. Using a compiler like solc to convert the code into bytecode.
  3. Deploying the bytecode to a blockchain, where it can be executed.
24
Q

Which reference model be adopted to explain interactions within distributed applications?

A

CORBA (Common Object Request Broker Architecture).

Helps distributed apps interact seamlessly.

25
Q

What type of agreement would be most appropriate to ensure data protection and integrity?

A

Smart Contract.

Smart contract is an agreement coded into the blockchain that automatically enforces the terms, ensuring data integrity and protection.

26
Q

What are the resource allocation regions in Azure commonly called?

A

Regions.

These are the designated geographic areas where resources are deployed and allocated.

27
Q

Which term describes older systems where services are centralised on a single server without division?

A

Monolithic.

A monolithic system is one where all components are interconnected within a single service, unlike a distributed system.

28
Q

To ensure transaction history, what encoding method does Ethereum use for storing strings?

A

Hexadecimal.

Ethereum stores data in hexadecimal format to ensure compatibility and data security within its blockchain.

29
Q

How does decentralisation in DApps lead to claims of ‘no downtime’?

A

A different node can continue if one fails - Decentralisation allows another node to take over if one goes down, which helps achieve zero downtime.

30
Q

When compiling smart contracts, which of these file types would Truffle be unable to recognise?

A
31
Q

Which two data formats are most commonly recognised in web services for APIs?

A

JSON and XML.

Commonly used data formats for APIs due to their structured and standardised formats.

32
Q

When using distributed applications, which of the following describes the concept of ‘horizontal scaling’?

A

Adding more servers to distribute the load.

Horizontal scaling means increasing system capacity by adding more servers, rather than upgrading a single server.

33
Q

Which API method would be most suitable for retrieving data from a server without modifying it?

A

The GET method

34
Q

In the context of cloud services, what does ‘IaaS’ stand for?

A

Infrastructure as a service

35
Q

What does the term ‘immutable’ mean in the context of blockchain?

A

Transactions cannot be altered (changed or deleted) once added.

36
Q

When creating a distributed application, what is the main benefit of using microservices?

A

Allows each component to be developed independently.

This is efficient and scalable.

37
Q

Which protocol is most commonly used for secure transactions over a distributed application?

A

HTTPS (HyperText Transfer Protocol Secure)

38
Q

API Response Methods commonly used in smart contracts

A

HttpResponseMessage - Returns detailed HTTP responses, ideal for sending status codes and messages.

IHttpActionResult - An abstract layer that simplifies creating various HTTP responses.

HttpResponseResult - A flexible response that can be used in smart contracts to send dynamic messages.

39
Q

Write the following API data in both JSON and XML formats:

Company Data: Report Title: Vehicles, Staff: 334, Cars: 226

Category: Diesel - 180, Petrol - 45, Electric - 37, Other - 14

A
40
Q

Discuss how blockchain transactions might be integrated within a company’s systems.

A

Blockchain transactions can provide verifiable records for the company’s operations.

Integrations could involve using a blockchain API to query and update transaction data securely.

41
Q

Explain the importance of Git for version control and how a company might benefit from it.

A

Git tracks code changes, allowing for rollback and collaborative development.

A company would benefit from using Git to manage smart contract code, ensuring version consistency and audit trails.

42
Q

Describe the primary features of an eWallet and how it enables users to perform secure transactions.

A

eWallet stores digital funds and allows users to transact.

Features include - unique address, balance tracking, transaction history, and security features like encryption and 2FA.

43
Q

Explain CAP theory and how it applies to a company’s distributed system model, providing examples.

A

CAP (Consistency, Availability, Partition Tolerance) theory states that a distributed system can only achieve 2 of these 3 aspects at any time.

A company’s system could prioritise availability and partition tolerance to handle a high volume of requests.

44
Q

List and discuss the key issues a company might face when transitions to a decentralised system architecture.

A

Challenges include managing data consistency, handling complex coordination, ensuring adequate security, and managing resource allocation efficiently.

45
Q

Describe the concept of ‘no single point of failure’ and why it is beneficial for distributed systems.

A

DApps are designed so that if one component fails, others can continue to operate. This design enhances reliability and minimises downtime.

46
Q

Describe how a company could use encryption to protect user data and transactions in a distributed app environment.

A

Encryption ensures that sensitive data remains protected when stored or transmitted.

A company could implement encryption to safeguard transaction data in its distributed app.

47
Q

What advantages do distributed apps have over centralised apps in terms of scalability?

A

DApps scale well by adding more nodes to the network, enabling the system to handle larger loads and more users without compromising performance.

48
Q

Explain how a contract registry might be utilised within a company’s systems, and provide a suitable use case.

A

A contract registry is a record of all deployed contracts, allowing easy access and updates.

A company might use it to ensure clients and interacting with the correct versions of contracts.

49
Q

Provide a detailed comparison of JSON and XML data formats, focusing on their suitability for API data transfer.

A

JSON - lightweight, easy to read, commonly used for data transfer in web apps.

XML - while more verbose, supports metadata and is suited for complex data hierarchies.

JSON is often preferred in APIs for its efficiency.

50
Q

Describe how the role of decentralisation in DApps can prevent downtime. Provide and example scenario.

A

In a decentralised DApp, tasks are distributed across multiple nodes. If one fails, others can continue, ensuring uptime.

For example, a company could rely on multiple nodes to provide continuous service even if one server goes down.