Section A Answer Section A Questions in Answer Book A A2
Section A Answer Section A Questions in Answer Book A A2
Section A Answer Section A Questions in Answer Book A A2
- HTTP (Hypertext Transfer Protocol) operates over a plain text format, while
HTTPS (Hypertext Transfer Protocol Secure) is encrypted using SSL/TLS.
- Advantages:
- 2FA: Requires two different authentication factors (e.g., password and SMS
code), providing an additional layer of security.
**Implementing 2FA:**
Certainly! Here's how you might approach answering each part of question A2:
### A2.
**BitTorrent:**
- **How it works:** Utilizes a P2P protocol for file sharing, breaking files into
small chunks and distributing them among peers who share the same file.
- **Purpose:** They enable website owners to secure specific areas of their sites,
requiring a username and password
for access.
- **Principles:**
5. **Layered System:** A client interacts with the server without knowing the
underlying system's complexities, allowing for system scalability.
For each aspect, use examples, diagrams, or case studies to illustrate and support
your explanations and evaluations. This structure will ensure a comprehensive
and well-supported response to each part of the question.
Section B Answer Section B questions in Answer Book B B3. a) Assess FOUR main
advantages OR disadvantages of file-based and databasebased data storage for
XML web applications. Explain when it is advantageous to use each. (8 marks) b)
Evaluate an architecture that is designed to protect a database server connected
to a web application from external attack. Evaluate the effectiveness in doing this.
(7 marks) c) Describe the principles of a SQL Injection attack. What data could be
accessed by means of such an attack and how might this be prevented? Provide
an example of how such an attack can be prevented, with example code. (10
marks)
### B3.
**a) File-based vs. Database-based Data Storage for XML Web Applications:**
**File-based Storage:**
- **Advantages:**
2. **Speed:** Faster access for small-scale applications due to direct file access.
- **Disadvantages:**
1. **Limited Scalability:** Not suitable for large datasets due to limited query
capabilities.
**Database-based Storage:**
- **Advantages:**
- **Disadvantages:**
- Regularly update and patch the database server and application to fix
vulnerabilities.
**Effectiveness Evaluation:**
- Assess how well the architecture addresses potential vulnerabilities and threats.
**Prevention Strategies:**
### B4.
```xml
```
- **Modified DTD:**
```xml
```
- **Explanation:**
This revised DTD includes the required structure for both employer and job
vacancy information. The addition of the `Job_type` element provides the
flexibility to identify job roles as either Full or Part-time, ensuring that each
vacancy includes this information.
Ensure to check the syntax and specifics of the DTD based on your XML
requirements, adapting it accordingly for your project's needs.
B5. a) What is meant by the following acronyms? i) DOM; ii) CGI; iii) XSLT. Explain
with examples when you would use EACH. (12 marks) b) What are blogs, WIKIS
and RSS? Evaluate how they differ in the way in which they are used and assess
the differences that make each appropriate for particular uses, with examples.
Evaluate how they differ from traditional web applications. (13 marks) End of
Examination
### B5.
- **Use Case:** Developers use DOM to dynamically access and alter document
content using scripting languages like JavaScript. For instance, updating text or
modifying HTML elements based on user actions.
- **Use Case:** CGI scripts are employed to process form data, interact with
databases, or generate dynamic web content. For example, a form submission
could trigger a CGI script to process user input and generate a customized
response.
- **Use Case:** XSLT is utilized to convert XML data into various formats like
HTML, PDF, or another XML structure. For instance, transforming an XML file into
HTML for web display using XSLT templates.
- *Use Case:* Users subscribe to RSS feeds of news websites, blogs, or podcasts,
getting real-time updates without visiting individual sites.
**Assessment of Differences:**