Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

general/drills: Add "Database Application" written task as exam #62

Merged
merged 1 commit into from
Mar 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions chapters/general/drills/tasks/database-application.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Database Application

## Scenario

We aim to run a database application in a containerized solution (Docker, Podman) for ease of deployment and isolation.
Running in a container involves isolating the filesystem (and necessary files), necessary processes, computing resources (CPU, memory, disk), and the network portion.
The database application will be accessible from outside the container through a virtual network.

Answer the following questions with "True" or "False" and justify the answer.
Justification should be simple, 2-3 sentences for each answer.

## Questions

1. The database application can only be implemented as a static executable, not a dynamic one.
Answer: False

1. Within the container, the application will use virtual memory mechanisms.
Answer: True

1. Within the container, the application can use the `fork()` system call.
Answer: True

1. The database application can use pipes to communicate outside the container.
Answer: False

1. Information from the application's filesystem is lost when the container terminates.
Answer: False

1. The application can be multi-threaded.
Answer: True

1. For synchronization, the application can only use mutexes, not spinlocks.
Answer: False

1. Processes within the container do have PIDs.
Answer: False

1. The application in the container can have buffer overflow vulnerabilities.
Answer: True

1. Memory within the container cannot be visible from outside the container, even by a privileged account.
Answer: False

1. The application exclusively spends time in user mode, not in kernel mode.
Answer: False
1 change: 1 addition & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ docusaurus:
- Distributed System/: distributed-system.md
- Aggregator Application/: aggregator-application.md
- Benchmarking Application/: benchmarking-application.md
- Database Application/: database-application.md
- Hackathons:
path: content/assignments
subsections:
Expand Down
Loading