βοΈ Summative Problem Set 01 | W04-W05
DS105 - Data for Data Science
Welcome to your first summative assessment for this course!
We hope you have enjoyed interacting with the cloud and are ready to put your skills to use. This summative will consist of 4 parts and will cover several areas of your cloud-related skills.
Things to know before you start:
- You will need to upload some parts of this assignment on Moodle (link).
- The deadline for this assignment is set to 24 October 2022
- You will be granted a maximum of 100 points for the whole assignment. You will see how much each task is right next to the tasksβ names.
- This assessment is worth 10% of your final grade.
- You will need to take screenshots, here is how you can do that.
- Read the instructions carefully and make sure you follow them.
P1: Book worms (20 points)
π― ACTION POINTS
Open the bash shell on your local machine.
Create a .txt file called
my_fav_book.txt
.Add the title and the author of your favourite book to the file in the following way:
Title: Aristotle Author: Politics
Create a folder on your cloud machine called
summative_03
and copy that .txt file to that folder. The folder should be located in your home folder, that is:/home/<username>/summative_03
.
Using the cloud bash shell, print the content and the metadata of this file (refer to W02 lab and W03 lab for help).
Finally, take a screenshot of the result of those commands running.
Save it as
DS105M_2022_<replace_by_your_candidate_number>_S1_P1.png
Please, make sure that your username is visible in the screenshot.
P2: Run the code in the cloud (30 points)
π― ACTION POINTS
Go to your cloud machine.
Create a Python or an R script called
script.py
orscript.R
, respectively, in the folder you created earlier, calledsummative_03
.The script must do the following:
- Print your AWS username (the one you were provided at the beginning of the course)
- Print the current time (it is easy to search the web for ways to do that using R or Python)
- Wait for 10 seconds (it is easy to search the web for ways to do that using R or Python)
- Print the current time again
Run the script and take a screenshot of the results of running it.
Run the script again but this time make a tweak to your bash command that we discussed last week. The tweak should allow you to interact with your bash shell even while Python is running. To prove that it has worked, call an
ls
command while Python is waiting for 10 seconds in-between printing commands. Take a screenshot of the result of this code running.Print the metadata of your file and take a screenshot of it.
Save it as
DS105M_2022_<replace_by_your_candidate_number>_S1_P2.png
P3: Itβs time to search (50 points)
π― ACTION POINTS
Go to your cloud machine.
Navigate to the
/home/admin/week_03
directory. You will see a lot of.md
files there. One of them is yours.Find the file that was created for you.
Copy this file to the
summative_03
folder on your user within the cloud machine.Change the permissions on this file for you to be able to edit it.
Edit the file and answer the questions in it.
Print the content of the file and the fileβs metadata. Take a screenshot of both.
Save it as
DS105M_2022_<replace_by_your_candidate_number>_S1_P3.png
We will also inspect the files in the cloud to ensure you actually saved the files and if it was done by yourself.
P4: Submit (no points)
Upload your screenshots to Moodle togther with the infromation required.