# FCS 03 Oct

- **Course:** 5102 - Foundations of Comp Sys
- **Recorded:** 2026-10-03 00:00
- **Transcript:** 1512 segments, 17261 words
- **Made by:** deepdml/faster-whisper-large-v3-turbo-ct2

---
Okay, the recording has been started. Okay, cool. So, every week what we are trying to do is we are trying to understand a specific process and how it is related to our hardware. That is what we were understanding until today. Be it like a resource coming in the local machine or a resource We are getting it in the cloud. Either way, we were trying to understand how that is related to. Now, today we are just going to extend it a little bit so that going ahead, we will be able to understand very clearly how the operating system also functions. And before we start our session. I do see in the chat messages there was an issue in one question in assignment one is that has been taken care of during the grading and no not yet. It will come to me for the grading. When it comes I will be taking care of it and in the meantime let me also have a word about that. The syllabus for the assignment two, whatever we are covering

until tomorrow, that would be the syllabus for assignment two. And assignment two also is going to be sort of MCQs very similar to the assignment one. That is what I was given to be understood. For the assignment two, it will be available by Tuesday. One mark was detected as one question. I understand that. Yeah, I will, when I'm going to give, finally, I will ensure that you will get it. yeah that is something automation of the deployment which i couldn't share i will share it as soon as possible but not before wednesday because my focus would be on the assignment second assignment so once i'm completing that i will also upload all the materials to the model. And Ravi, if you have missed an assignment, I will not be able to enable. Sorry, I do not have that control. You should connect with your coordinator. You are perfectly fine now. Thank you very much, Prakash. I am really not sure those operational things only your coordinator will be able to give you

I am not sure who is your coordinator you should definitely be knowing who is your coordinator please check with them until portion covered until tomorrow that is available from for a week um okay i'm not sure about how long it will be as i said before i'm not managing the operations of the assignment delivery only the assignment questions are being set by me will we have lab exam for this course and if yes we make know what kind of questions we would be getting okay you are asking about the exam exam yes the format would be different than assignments exams will have both mcq and as well as detail oriented questions any quizzes there if as for quizzes that would be the syllabus or is it going to change I am not getting a question, Anuja. Sir, any question? I am not sure. Someone is asking is this wrong link or cancelled? Someone is waiting. I am not sure. Let me just check. I do not know. Someone has a message overall. I am really not sure of which link he is using.

And Anuja, sir, any questions, any quizzes there? Guys, a couple of you have confirmed that I am audible, just to reconfirm I am audible, because Anuja says no audio. Okay, great. Fine, great. So now let us get into the session today. I see that recording is on for, no, one hour 34 minutes is the elapsed time, it says. I'm not sure what is that, but I started recording only a couple of minutes back. Hopefully, that's going to be effective. Okay, cool. Let me now share my screen. It's a meeting start time, one and a half hours before someone has joined. Okay. Great. So I just shared a blank Word document. Hope you are able to see the screen. Okay. Great. Fine. So now what are we going to do now today? We are going to choose a resource which is a NoSQL database. Until now we have seen a virtual machine, we have seen a database, we have seen a storage. We have also seen an application. Today what we are going to do is

we are going to choose a NoSQL database. So which one are we going to choose? We are going to choose AWS DynamoDB. So what are we going to do in this DynamoDB? We are going to basically create a table. We are going to insert a couple of records. We are going to retrieve them and then we are going to understand the map, understand the mapping to resources. That is our objective today. So the first and foremost thing we need to understand the DynamoDB. So DynamoDB is basically a table. It's not a SQL database, though it is a database, it is a table database, which is going to store records in the form of rows. But again, not very similar to the rows that we consider in a SQL database. So, in this DynamoDB table, how the records are identified? The records are identified by partition keys and sort keys. Now, what is the data that we are going to enter? We are, the record, whatever we are referring, which is very familiar to us, whoever is familiar

with the SQL database, always we say record, record, but here it is called as item. So what is an item? Item is nothing but value. Value of what? Value of the column. So do we have column here also? Yes, we do have. Suppose if you want to store a customer name, let us understand that we have a customer name. And we are also having product is one of the columns and amount. So suppose if you want to create a value for customer name, Let us say Rajkumar Sandeshi. So now this Rajkumar has requested for a training. What will be AWS training? Okay. And what is the amount to be paid by Rajkumar for this AWS training? Let us assume 25,000. So 25,000 rupees. Now, like this, there are so many participants who will be enrolling for the training, and they also would be paying the amount. So, when we are going to enter this information, what we are going to do is we are going to use the AWS console. So, we are going to understand the flow, and then we are going to follow the flow.

So, now we have a table here. The first thing what we are going to create is a table. So table comes before the item. So now what is a table? Table is nothing but collection of items. And what is an item? Item is going to hold the value. no difference, but it is analogous to the row in a SQL database. It is not exactly a row, but we can understand until we get clarity. You can understand that it is sort of a row in a SQL database, but not identical to the relational row. That means, there will not be any relationship between the values or between the items or between the columns. Now, each and every item is going to have an attribute. Now, what is an attribute? Attribute actually identifies the partitioning or access button. Sorry, Attribute actually analogs to the, or I can say sort of column in SQL Database. So now having this idea, how is our example looks like? We are going to store value in it. So now this Rajkumar Sandeshi, this is actually an attribute.

attribute. Now AWS training is an attribute. Now 25,000 is also an attribute. So we can understand attribute to be sort of a column in a SQL database. Okay, fair enough. So these are all values. Values are nothing but attributes here. Now Sundar, you did mention about partition keys sort keys. So what does it mean? The partition key is going to help us to identify the access pattern. When this is while storing, we are putting the values for the item and we click save in the console. This is going to save it. But while retrieving, how are we going to identify the pattern? That partition key is going to help us. And sort keys, or you can understand it to be are Distinguisher. Okay, I have values, Rajkumar Sandeshi and AWS Training. How is it going to distinguish customer name and AWS Training? That SatKey is going to help us. Basically, either it will order or it will distinguish. It does both the job on items.

So that is where the sort key is going to help us. Now I said DynamoDB is a NoSQL database. That means there is no relationship built. And the DynamoDB actually starts with access patterns, not tables. In case of SQL database, first what we define is the structure of the database. While we are defining the structure of the database, we are going to define the structure of the table. and in the table we are going to provide what columns are going to happen and what are the type of data that will be stored in each column. All those things is not necessary. So now, what is the advantage of using a NoSQL? The advantage of using a NoSQL database is basically it is faster. So then how can it become faster? there are no indexes, there are no sorting. Sorting is available. The sort key is going to help us to sort. But let us understand how it is going to help and how fast it is by looking at the console itself now let me stop sharing this and let me go ahead and share my console

so now I'm just going to share my console yes Iqbal I do see you have raised your hand I am allowing your mic yes Iqbal can you please share the are you able to hear me yeah can you hear me sir Iqbal if you are talking then I am not able to hear you can you hear me sir hi sir can you hear me you are able to hear him yeah I can hear just one second just one second let me just check okay well can you just try to talk now or can you hear me now yeah better iqbal thank you so much i wanted to know the end semester question paper what type of question being asked so that i can idea about it so we are like a heading for semester exam which you going to happen. Now, which exam are you referring to, Iqbal? End semester. Okay, we will discuss that. See, the end semester exam would be of, you know, a single question paper. And it will have three types of questions. It will have MCQs. It will have MCQs. And it will also have detailed

oriented questions. wherein you are expected to type the answer within the given text pad itself, within the test interface. So, there will be two types, but there will be three types of questions. One is MCQs. The second will be broken down into short answers and long answers. MCQs, you would have already got a hands on it by attempting the assignment one. But for the detailed answers, again, it would be based on what we discussed in our classes and aligning to the course syllabus what has been set. But that would be something like testing your understanding in terms of concept and implementation, both. so in mcqs you are given a scenario and answers are also given as an option for you to choose but in case of detailed answers only the scenario will be there and we'll be expecting you to express how you will handle it by giving appropriate textual answer that would be the results can i have all those previous exam papers so that i can have idea about that

that is something that you need to check with your i don't have access to the previous questions and other stuff yeah all the moodle support and frame sir and everyone i have asked they said to talk to the professor that who teaches the subject so i'm going to individually in each classes i'm going to ask each of the third that please provide that because i have tried a lot to get that and like uh from all the members from eitpatna moodle and everyone but they said like they don't have they need to talk to you on that so i think you can please provide that for that i've been trying for this like like a month now and nobody has actually given me this answer okay sure iqbal i will talk to the coordinator uh let me just speak to him and then i will come back to you on this give me a week's time sure thank you so much sir sure i think that has been the ask from a couple of you okay yeah i have tried many times that's why i reach out to you

because i have sent multiple emails multiple phone calls and like uh text messages but nobody responded nobody like given the answer all this here is to talk to the corresponding teacher who teaches the corresponding subjects sure no problem let me take that initiative and talk to them and i'll come back to you by the next week thank you so much sir you're awesome yeah thank you okay fine so now where will we be where i was supposed to share my what am i trying to do here wrong clicks. The phone clicks are not going to help us. So, first let me log in. Okay, cool. So, let me go ahead and show my screen now. Once you are able to see the screen, please let me know. Let me take like another 10, 12 seconds for you to see. Well, if your query is answered, can you please um lower your hand okay hope my screen is visible so we were talking about dynamo db so i'm just going to the dynamo db and now if you look here

where is there anything that is available in my instances there is the one which we used last time so now probably let me go ahead and let me go ahead and delete this let it be i'll do that later now actually in our application we created a dynamo db database in the DynamoDB itself. So now let me go ahead and create a table for this. Now here, it is asking what should be the name of the table. I'm just going to say IT partner demo DB. What is the, enter the partition by the name. So now I will just say customer ID and let it be string. Sort key. Sort key is actually optional, but I can, though it is optional, I can say order ID, and then I can say order ID also. Let it be string. now table settings see that it can be up to 255 characters and case sensitive so this is actually referred with an upper c now define the table settings so i'm just going to these are all the default settings i'm not going to add anything at this point of time and then i'm asking it to

create a table. I have not changed anything apart from providing what should be the name of the table, what is the partition key and what is the, so create a table. Now it is creating IT partner demo DB. Let us give it a minute and then we will get into the DynamoDB and then we will see what are there. But in the meantime, if I click this table, this is also a DynamoDB table only. Now exploring the table items, this option and this option is one and the same. I can go ahead and explore the items of this particular table. Here we don't say it is a database it is just a table now let us go back to the table our table is actually ready with customer id and order id as the sort key both of them are strings now i can insert i can insert the data like how can it do that i'm just going here and then I can also get the live item count. As of now, there are no, item count is zero. Read write capacity. This is where exactly we are going to understand.

What is this read write capacity? This actually controls how you are charged for the read and write throughput. Read and write throughput of what? the items. But what is that we are getting charged for? We are getting charged for the resources that we are going to consume for our either read or write. Whenever I am clicking on explore items and I am choosing the table, actually my request is basically a click in the console. But how is it getting transformed? How is it getting actually executed? If I'm going to say the actions, create an item. The moment I say actions, it is showing me the menu. How the menu is coming? One is that the software component. The software component knows what are all the options that it has to display. And it also has a highlight. wherever I am moving. It is highlighting that particular option. And if I click on this create item then it is actually bringing me actually it is bringing me the UI.

So where is this coming from? The software perspective we know that there is a code which has been written. Upon clicking on the create item please show all these things. Okay. Perfectly fine. now here we understood what is attribute here customer id is an attribute and as of now there is no value for it order id is the sort key and there is no value as of now now I can put the values for this I can say customer 001 and order 1 0 0 1. Now if I want to add more attributes, you can add, remove or edit the attributes of an item. So this interface is allowing me to do three actions. One is adding, one is removing and another one is editing. But as of now, there are no items in my database. If I want to add more attribute is I do have an option. So whatever attribute you wanted to add, I want to add an attribute of string. Now you can see apart from customer ID and order ID, the new attribute has come. I can say customer name. In a SQL database, we can also create a different tables and we can

connect using the table. For customers, we might create a master table and we will say customer id, customer name, customer address, customer contact name, customer contact email address, and customer contact address. Everything will be available in that master table and we will be able to map it. But we don't have those options here. These are all just an items. It is just like in a notepad you are writing line by line. So every item here is a line and suppose if you are trying to save values for more attributes, attributes are nothing but you can understand it to be a column name but it is not actually a color. Customer name as of now it says that it is right so let me go ahead and put it here now i can add more attributes so now i can say product what is the product let me put it as aws training oops what am i trying to do okay training and again add as many attributes as i want now i can say amount

i can enter 25 000 that is the amount for this and i can also say add one more attribute i can create it as a string i can have status so now how this will be constructed inside the hard disk how this will be processed to be constructed inside the hard disk and what resources will be used the moment i say create item let me say that this is confirmed status is the training is confirmed the moment i say click on this create item as an end user i am using a browser and this browser has helped me to give me an option to create an item so i'm just going here and clicking. As a user, I am only clicking. Believing that the code under this customer item, sorry, create item is going to be appropriate and valid. Now, yes, it says that the item has been saved successfully. Now, earlier this view table details was not there with us. Now the moment the item is written, it is showing like these are all the table details. Again, if you look

at it, it is showing read write capacity, additional information about the DynamoDB table. Everything is available. But now let me click on the explore. Again, I am using the interface. The moment I click here I see that oh great now I can scan or I can query or I can search items I have three options again here so I can just run it it shows only one line and this is the item so the customer ID, order ID, amount, customer name, product, and the status. I can go ahead and I can also add one more item. Now, in this, if you look at this, it is not loading all the attributes of what I have added in the previous item. So, now we are trying to understand how the DynamoDB is storing the data. So just to be sure that we have enough, so I'm just going to say just same customer, 001. Now, the same customer has given an order ID, another order. But now, can I create this item with this? Yes, I can create. But I will not have full information.

further than just adding more attributes, so that means each and every item that you are adding can have different attributes. What I am trying to make you understand is, it is not that, okay, the first item has five attributes, the second item also is supposed to have five attributes, not necessarily. I can just create an item now and it will save the item, but when you are going to explore it it will have only these two values in that particular item so just to be consistent I am just going to add customer name hopefully I am not making any spelling mistakes if I make them that is going to hit us very badly so I am just going to add another basically what product training that this particular customer has asked for, let me say, CloudLabs. And have you made any payment? So basically amount, I'll say 5000. And then I'm going to add another attribute with a string. What is the status? The status, let me say pending. So now if I go ahead and create this

item, it is successfully created. Now, if I run the scan, it is returning to same customer, ordered for AWS training in Cloud Labs. AWS training is confirmed, but Cloud Labs are still pending. So, what did we do? We created a table, then we added an item, and we explored the items as well. Now, where I'm going to explore, I am seeing that there are actions available to download results to the CSV. I can take this to the CSV. And if I want to create more items, I can go ahead and create this item. So what we have done? We have created a table. We have added two items. And we have explored the items. And we ran a scan. It has displayed the total. I can also run a query. Select a table or index. So, I am just selecting this table. All attributes are specific attributes. Let me check only the specific attribute. Here, if you look at it, it is showing me only customer ID and order ID. Let me choose customer ID. Partition key,

attribute is customer ID. What is the value you want to search for? I can say attribute is customer 001 and then run. It has returned to 2. But it has returned only the customer ID because we have asked only for that particular attribute. If I want to add attribute, I can go ahead and add the attribute, but here it gives only order ID, add the attribute, and then if I go ahead and run, it is giving the order ID and the customer ID. So one thing we need to understand, whatever operations I'm doing using the console on DynamoDB here, somewhere it has been accepted and it is getting processed. Now the question comes here is, how all these processings are happening. So, what we have done? We have built a simple order management table. Every customer can place multiple orders and we want AWS to store those orders and allow, assume that we have an application which is accessing this Dynamo DD. So, what information we have entered?

We have entered the customer ID, order ID, name of the customer, product, amount, and status. I can scan the whole. I can just remove this attributes to project. Specific attributes must not be empty. So I'm just going to run this, run on the attribute customer ID. It is showing only one attribute. So when I'm scanning, I used to get full outcome. but once I went to query and I came back to the scanning, then if I give all attributes here and run it, I'm getting all the attributes. But for selection, only the attributes that we have entered, the partition key and the start key is available for our query. Even in the same query, if I choose all attributes, then it will show order id equivalent to I can also get a value here I can say order 101 then run the query so it is showing only one so that means in this process what it has done is it has read all the items it has read all the items and matched the items with the partition key customer id

and the sort key with 1001 and it shows only one result. This is the only result which is available. Now can I do without partition key? Yes, we can. We can only search at the thing. So now we need to decide which attributes will identify the item. This is where DynamoDB differs from simply creating an SQL table. Now, customer ID is our partition key and order ID is our sort key. So, the overall identification becomes the combination of the both in this case. And then it is displayed only one. Now, before doing anything, let us look at the region. So, now the region it shows is Asia Pacific, Mumbai. So that means Asia-Pacific Mumbai region within AWS, it has created this table, and within the table we have added the items, which is getting stored. So DynamoDB tables are regional resources within the cloud. It is something like you decide to run your database in India. if it is a normal data center hosted solution

if you decide to host within India then it will go to the data center of the ISP within India and you will create a compute you will create an application to run in that similarly here we are choosing to be in the Asia Pacific region and it has to create a table within this region and add those items So now let me just not give this and let me scan it again, all the data has come. So Dianic DB are regional resources and the table exists in that region in which we created. So now, so if I change the region, what will happen someday? Let me go to the Northern Virginian. Now you need to understand, when I asked for the Mumbai region, it has stored physically within the Mumbai region. Now if I go to the Northern Virginia, US East one, and I look for the tables, it says there are no tables available. Requested resource not found. Because we have chosen the region, Northern Virginia, if I go back to Mumbai, it is available.

So what does it communicate to us? You have requested me. Here the me is AWS. You have requested me to create a table store items in DynamoDB that is running in Asia Pacific. So, while we are connecting our application to the database, we need to be sure that we are giving the right region and the right table name and the resources that it is using. Now, how does it decide? It doesn't decide on its own. We have given the region. So, it has taken the DynamoDB from mobile region and created the table and stored the item. Okay, cool. Now, we have created the table. We have explored that table also. Now, we can go ahead and create as many as we want. We have created two. But to have a different customer, let me just go ahead and create one more. Instead of, I will select IIT and then I am going to say, okay, I will go here. And then the actions are going to say create an item. Let me just create one more item which is going to differentiate our customer.

Now, let us see the order has come. And the order is, let us give 1003. Add attribute. We can add. We can add more attributes. We can remove the attributes. But still, it will get saved. So, I'm just going to give this as, let us say, attribute name is customer name. See, this is case sensitive, so you need to be very, very careful. Let me say Pratik Sharma. And this Pratik Sharma has requested for DevOps training. The product is basically DevOps training. And the attribute name is product. and I need to be very, very careful. Otherwise, this will change while saving it. Let me add one more. Let me say amount. Let me give it as 30,000. I'm just going to say the status. add number status let me say it is conform to training I am going to add one more I am just going to say it is city I am going to give the value as gurugram now I am going to create an item so look one thing to keep in mind I am using IIT demo DB so let me create a thing

it still says item has been successfully saved. In the previous items I did not enter the city. I say all attributes but if you look at here it is city and there is no city for the previous two words and this is from a different customer. So that means I did not insert the values for the city in the previous ad, but still it was able to add the city name in the third item. Can this happen in SQL database? No, it doesn't happen. Okay, cool. Now, if I'm going to scan, I say all attributes. Filters are optional. I will say here city. City equal to string. I'm just going to say guru gram and then run it. Now you see I'm able to even retrieve with other columns. I'm just telling columns for your better understanding, but it is not column. It is our attribute. Slowly, you should get accustomed to that terminology. Whether it is scanning, whether it is querying, whether we give condition, whether we don't give condition,

it is able to execute and bring the results on our screen. Now, I can also go ahead and delete. Delete options also is available. DynamoDB allows you to add, update, delete, all the three suppose if i want to update the first two here i'm just going to remove this i'm just going to run it again now i'm getting all the three if i want to update the city will i will be able to do it yes we can we can modify this and we can add it now this aws dynamo db supports particular particular means it's basically the query language very similar to SQL compatible language, through the DynamoDB console itself, and even with other interfaces. So, how can we do that? We can insert, we can retrieve, we can delete, everything, all can be performed with this particular. That means we will be able to, this partially query language, so I can assume it to be partial SQL, which is called as particular and I can run queries and extract it.

So now whether it is adding, whether it is removing, whether it is updating, it is available using the console, it is also available using the particle. Now, what we just did manually in the console is what an application normally does through the DynamoDB API. I used the console, I added data, but this is how an application also is going to add data, but it will use the DynamoDB API. The DynamoDB API has to be started and it should be available so that the application can reach out to the table and ask the table to write the items from its transactions. But it will happen through AWS SDK, that is software development kit. Now, as a user, I was able to create an item because I do have the permission to create the item. The reason behind that is I am the root user of this account, so root user will have all the access. but a normal user when you are going to restrict the usage of this table then will provide appropriate restrictions maybe read only or even not visible all those can be

added as part of the attributes itself okay i'm just not going to dwell too much about the security but i just wanted to touch upon it i also wanted to touch upon the particle So I am just going to leave it to you to explore more and if you are able to explore more well and good. Otherwise we will initially talk about that in the next lab session. Now creating resources for training is not the same thing as creating resources in a production architecture. So how are we going to create resources? So, we are going to actually look at the billing mode in which we are getting billed for this account, for the activities that we are performing, both read as well as write actions. But when you are going to give confirmation about creating the items, then what does it exactly happen? So is it only that we have enough space as part of the DynamoDB? How do we know? We have not set any limitation, how much data we can store,

but it will be decided by and done. So it will not be decided prior, and that actually shows us that DynamoDB is flexible. The first time when we realized what is flexible, in spite of not having the values for a particular column, still the additions are still available. Additions means what I meant is adding up the records. So now first thing you need to understand what should be the table capacity because it is pay as you go and we are discussing about the cost. If you are going to run more with what less you have then the chances are going to be more. As simple as that. So, now, table capacity, billing mode. Read-write activity. Suppose, if I'm just going to click on this, I'm going for customer 01. This is the record. I can cancel this. Now, I can see how much it has utilized the resource. That means when I clicked on apply, when I clicked on create, when I clicked on add, the instruction has gone. From where it has gone? It has gone from this

application based on my mouse click. So that means this mouse click at this point of time is being identified. And then provide this into the RAM before even writing it into the disk. We will write it and then we will let others also to come and create or modify their own so-called weapons. That is also possible. So we can also delete. Now I've just chosen this. I can go to the table itself. You can go to the tables and the actions, sorry, next to the actions we have delete. The moment I say delete, we are expecting that this database will be removed. But that's not our objective. Our objective is basically to understand when data is being operated in this database. That is our understanding. So, we chose DynamoDB. Why? Because it is highly scalable. How is it scalable? It is auto scalable. Today if you have 100k records and tomorrow suddenly 50k records are getting inserted into the table within a day, then definitely we need to have

some process to get it done. So why we have chosen? It's basically high scale and low latency. Why it is low latency? Because it is available within the AWS environment itself. So low latency. We have a stubborn networking wherein we can make sure. Now what is an item? We saw an item. Three items we have inserted. All the three are unique because there was no clash. Now why did we choose customer rate? Because give me all orders for this customer if I am going to write a query and give it to then definitely I would get an answer. So anything else at this point of time I would like to just pause here and check if there are any queries questions on what we have done until now. Yes? No? Maybe? Let me stop sharing. Let me see if there are any queries in the chat. Where is the API to access the table in application? So basically, if I go and look at the list of APIs that is available within the AWS environment, one of the APIs that it will display is for this DynamoDB.

So, that will be waiting for a connection from an external application. Let us assume that you have developed the application, you have deployed it in Azure, but your tables are present in AWS. Will we be able to access, can I have the application in another ISP, a rather cloud service provider, to access my data or the table that is available in the AWS? Yes, it is possible. It is very much possible, we can do that, and we can get it done, that's not an issue at all, but the question here is, Sundar you entered two data without city name and the third one with the city name, we also went through that stuff to understand, yes, inside it is the current name, there is no other name there to that. So in that case, definitely it will have all the information in the document itself. So the question is, okay, is my network lagging? That is the message I am seeing in the chat. So just wanted to check, okay, let me see if my network is, is it low?

Now also, I will just increase my tone. I will still say it is very low. Okay. Let me just check this as it is connected. I am not sure. Okay. I just changed. So Revi says still low. Hope it is not. There are so many people. Please increase more. Okay. I will try to increase more so that you can listen better. Okay, cool. When you are presenting, voice is good, but when you are not presenting, voice is low. Okay, I can understand. Okay, cool. So let me see, is there any other queries from anyone? Let me just see. Is there any hand rise? now i don't see any hand rise and there are two people who are still waiting okay so now yes anup go ahead i am allowing your mic anupam anupam i had given you are you able to can you hear me now talking yeah i can hear you now but my question is that how will you perform joins like if we need to join different tables the way we perform in the sql okay that is something

that you need to come out of it here there are no relationship defined unless you have the relationship you cannot have the concept of joins and other stuff so here there is no question of joins it is only parsing here we will be parsing the data and we will choose the data it's only the conditionals you can do but i'm not going to go in detail about it but unlike but unlike rdms rdbms here we don't have so you need to come out of that frame of mind and that's the reason i spent almost like five minutes initially to tell how it is getting stored it will store it will store it as an item it's not the data in a format formatted table or something like that okay cool would i am allowing your mic you can go ahead and that uh thanks sir so my question is still key how we can and access the uh i mean table through api so where it is available right api in aws see every service in the api let me just share the screen first

let me just share it now so okay so now if you look at it i'll go to the home page in this screen is not visible sir screen is not visible yes why is it so so now not visible maybe in the team's screen because I do see a source telling that someone is let me rejoin maybe might be okay no problem you can so in the meantime let me just allow Anuja I'm allowing your mic Anuja yeah go ahead Anuja what do you mean sir Yeah, so my queries with respect to like two things. One is basically the users of partition key, as in very basic thing, trying to get some help on it, that why we use and why we don't have it in no SQL, like other no SQLs, just to kind of getting a comparison. so I can query, I can post once you just give me this answer so I can just take it Okay, come back again Anuji, still a little confusing Unlike other Yeah, let me repeat, so with respect to other NoSQL DBs does it, the partition key only lies with DynamoDB and FES what is the helpful

nature of partition key like what gives it more flexibility in terms of the actual architecture and does it seem as a primary key so just taking some understanding on that two levels okay so the primary key that means you are referring the primary key of the rdbms and trying to compare here am i right yes i'm trying to relate it and the second i already talked about There, the functionality of the keys are basically different. There you have a structure. In that structure, you give primary key, secondary key, and you also have a foreign key. And you are trying to establish the relationship between them. There you have multiple tables, and you create the structure of each table predefined, and you put the values there. For example, if you are going to create a master table, then there the customer ID is your primary key. And if you are going to the transaction table, you will have the same customer ID as a foreign key.

That means this particular foreign key is a primary key in some other table that you are going to. That's where you use the join and bring the entire relationship using the SQL. That concept, I believe you are clear, but your question here is, is it the same role that this primary key or the sort key is performing? The answer is no. It's not the same thing that it performs. Because there is no relationship, so it need not have to map. Here we are not mapping. Here we are only for the query. For the conditions we are using this primary key and the sort key, we can use either only the primary key or we can use the combination of primary key and the sort key to query and get the results. While getting the results, there in the select statement in an SQL, you actually select the columns that you want to be the output after the successful query execution. In this case, we are trying to map the attribute that we wanted to.

Need not that we have to select all the attributes for the outcome. We can select specific attributes and we can get it done. That way this works. So these two are totally different. So I think all of you, if you really want to understand, then try to understand the concept between RDBMS versus NoSQL databases. Within NoSQL databases, there are different subtypes. you have document databases, you have memory databases, you have different types of databases also available within the NoSQL. For example, Redis. Redis is a memory database. It stores the data only in the memory as long as it is available in the memory that database is available to you. DocumentDB, you store everything as a document. ImageDB, you store as an image. Again, it is attribute only. The foundational concept is same for all these different types of databases within the NoSQL database. It all stores as an item, and each item will have its own attribute, and each attribute will have its own values.

The values can be text, it can be image, it can be video, it can be just an audio. It can still store it within the DynamoDB itself. Or anything similar to DynamoDB also handles the data in a very similar fashion. And I hope I answered your query. Did I? Sure. Just to like came up with another question with the same answer you're given. So is it possible to say this, that this partition key is basically the indexed item, which is where we are actually routing to pinpoint? Is my screen still visible? I just wanted to reconfirm. Yeah, it is visible. Okay, I'm into the tables. I'm into the tables. I'm getting into IIT partner demo DB. Now, when I get inside this, I also have indexes. Apart from the item, item is nothing but the values, every row in your SQL, similar to, not the same. I can explore table items using the query or the scan or I can do an individual. And if I come back here, I do have indexes. I can also create indexes.

When I say currently, there are no indexes available. But I can create either a primary index or a secondary index. Primary is basically the vector indexes. If I say find indexes, there is nothing actually. But if I create an index, vector index, this is primary index. I can go ahead which attribute. type of the index. So then the indexing is going to happen based on that index. Index concept is also available in NoSQL database, which is different from your primary key role or the sort key role. Okay, so here does the role of index is basically similar to the files DB if you have, like we used to take the vectors within the index itself. So the same thing here, it is a system similar property that we are following with index as a vector attribute. That's right. Okay. And my second question, yeah, my second question was with respect to the item that if I have my customer 001, which is you added as in two items, right, where the appended part is the

city has been added. Now, if in case in kind of random business scenarios happens that the record can be duplicated or it can be like the transaction has came up twice so does this dynamo db overrides the record or is it like you can say appends a new record itself as a new row itself okay see here for that check what i have defined is is the combination of primary and sort key So basically, if any record that is coming in with Cust001 plus ORD1002, then the situation what you are telling arises. In that case, it will not get appended. It will not get actioned upon because it is already existing. So in our code, we should ensure that if it is existing, then we need to give an update command. That's where exactly the part, particle is coming up. Party QL is coming up into the place. We can use an insert. We can use an update. We can also delete. So if these two are coming up again, the same customer cannot order the same training again

unless you have another thought key. So you can say, okay, within the AWS training, one can ask for DevOps, one can ask for network, one can ask for security. Where is it defined? Another key will come into the picture. Then it is a combination of three keys which will determine whether it is a duplicate or a new. And if it is a new, automatically it will go for adding. It's basically adding an item. If not, we need to update the item. And if the request is, okay, I don't want to, I want to unroll or de-roll from this training, then that record needs to be deleted. So that's a different flow. Like in your application, if you will identify, if it is an action for addition or action for modification or deletion, same way here, the flow remains the same. Your code will decide what action has to take based on the conditions that have been meant in the programming. So I think, yeah, If I take the summary of the answer, we have to handle it programmatically rather than depending on the architecture from the DV itself, right?

That is, the data is present or not. Okay. So it's not similar to S3 where the versioning is happening. If you have a similar meta information, it gives a version of the same data type. But here, it has to be handled by the programmatically process. That is part QL. Thank you very much for asking this question. let's see there are two types of changes okay that comes as the concept of sed slowly changing dimensions there are two types one is type one another one is type two it is called as a cd type one cd type two what is that slowly changing dimension that means the values are changing when the value is changing what do you want to do do you want to have the history that means last five changes i want to hold and that's what exactly versioning gives you versioning has no role play here on what we have seen unless we enabled so that's what versioning gives us. Do we have versioning here? No, we don't have a versioning here. We have indexes.

Within the indexes, you can have, you know, basically the search facility. And you can also have two types of indexes. One is vector index and another one is global secondary index. And you can also combine these two and search for it. But the versioning what you are talking about is whenever there is a change in the system, change in the data, I want to retain the previous value of that particular item. No, that's not available here. So in S3, how they are doing that is, they are using an SED type 2, wherein if you say I want to retain five previous versions of the record, then it is going to add the version number against each record and it will actually consume you equivalent space. If you say like five versions I want to manage five previous instances values then it will actually create five different records within that within the S3 table itself. So that is how you are able to maintain the versioning there. Here, no.

Okay. Okay. Understood. And one last thing, I mean, sorry I upending the question so you mentioned around the charges right so doesn't any kind of storage charge is being applicable with respect to the dino dv come back again please any kind of storage charges where it has backups where it has the storage like when the records are increasing it could be millions billions of record too so doesn't the charges also occur for the same storage type that is how much have you stored yeah that is right so here there don't be any separate charges for the storage storage is part of this offer so overall dynamo db includes the storage charges also here and suppose in between you also use the word called backup so you also have an option to backup this so i can create backups of this particular table and maintain it and it will create a backup. Okay. Still not. Am I audible or not audible? Yeah, you are back. Okay, okay.

So now, if I am taking the backups, then I need to define what sequence I need to backup, how frequently I need to backup, in what mechanism it has to backup. I have to define it while creating. creating on-demand backup or do you want to schedule the backups it will happen in that case for backup also you will be charged but as of now my table data is not currently protected by point in time recovery backup if it is deleted accidentally or overwritten accidentally it can't be recovered because there is no versioning we strongly recommend activating PITR what is this bitr point in time recovery if i enable that then i don't even have to defend anything it is going to backup and just keep it store it and if i want to recover i can go ahead and recover so for recovery i'll be charged that case for the backups and other stuff okay so is it similar to the snapshots if i just say if i'm not wrong Now, snapshots also is a backup only, right, for the databases.

See how, snapshot is nothing but how it is getting stored. Snapshots are always stored as a single file. And you can take that file and restore the entire database based on that snapshot. It is nothing but a photo at that point of time, in a very, very layman's time. It just takes a photo at that point of time and keep it as a single file so that when you are trying to restore, you will be able to restore the entire database using that file. That is point in time. And after that, you may have, you know, incremental. Those incremental will be available as logs. If you just look into the database backup, how it happens a little carefully, this is how. or you can schedule it every midnight. At the midnight, it will take a snapshot. That means whatever is the current database, it will just take a photograph of it and keep it. And after that, every transaction that is happening, it will create logs for those transactions

and those logs will become your incremental backup. So first, you will restore the snapshot and then you will apply the incremental backup so that your database is at that point of time, Whatever log is available, it will be available. So here also it is the same thing, backup. If you're scheduling, it will happen every scheduled time and you can use that to recover. Only thing here is, will you have access to the file in which it has stored? Will we know the format in which it has taken the backup? That we don't have any visibility because it is the responsibility of the AWS to take the backup and restore whenever you want. So we don't have visibility in which format it is taking at that point of time, but it will get restored. Did I answer your query? Yeah. And with the interest of this course, what we are expecting to be ahead. So does this DynamoDB like gives good architecture in terms of usability for the ML layer in any of the use cases?

or it would be better that is that is basically you know out of context but still i will answer you see now you are asking about can i use dynamo db for my ml case that is your question in short yeah that depends on what is the model you are using and where you are implemented, what would be the volume of it, will the behind infrastructure will support, all these questions you need to answer before saying whether DynamoDB is suitable or not, it's an architecture question, so we need to understand all these things, if DynamoDB can handle so much of IO as per your requirement and if it can store that much of volume still it will be able to manage all your backup restore and availability questions. All these things together only will answer that question. There is no straightforward answer. Okay DynamoDB I can use it for ML. Yes we can. There is no straightforward but technically if you ask me sorry functionally if you

ask me, will DynamoDB support your ML cases? It will support. But architect is not just going to look at only this aspect. He will look at the other aspects that I told you just a minute back. All these things we'll put together and will help us to decide what is what. Understood. Thank you. Okay, cool. Okay, so let me see any more. Okay, cool. Let me disable the mic and let me take a question from Vikas. Then we will go and see the process. Other questions I will take after the demonstration. Yes, Vikas, I loved you. Because if you are talking, then you are talking on mute. Okay, what basis we should choose the partition key among so many attributes? It's very similar to the concept of choosing the primary key. It's the same thing. So basically, suppose if you want to store all the items of a particular customer based on the customer ID, then I will choose customer ID as my partition key. No, no, Sundar, my objective is totally different. I want to store the data.

based on the program or the product. Then the product ID will become my partition key. So basically it is putting all the data together and storing it together based on the partition ID. That's why we need to look at the actual utilization of that and then choose the partition key and the sort key. Now I do see Gyan requested and I believe wow someone has responded as well which for which okay Sakshan has responded so and I believe okay Neeraj Kumar has given a thumbs up so okay perfect I think we are good Gyan can you tell me if that has been answered by giving a thumbs up okay cool so before heading back let me stop sharing and share again so that You will be able to see my whole, so that when I am swapping, you are able to see the entire screen. Okay. Sharing. So is my screen visible? You say we lost your voice again. It is very low now. So, okay, let me just check my internet connection. I'm connected to the perfect and it is giving me good. My audio also is connected. It is good.

It's very low. How is it now? Is it better? Okay, just give me a minute. Okay, let me raise my volume so that you are able to hear me. Okay, cool. So now, what we have done is, we assumed that a business application is creating and retrieving the customer orders in a Dynamo TV table. And we know that how it is accessed using a query. We also have indexes, we also can have backups for the databases. Now what actually has to happen inside a computer for this simple operation to occur? That is what we are going to understand. The business application, assume that myClick is the business application which is asking you to create an item. Then the communication is going to come via the DynamoDB API or it could be an HTTP request. Now, once I click here, I just said, okay, I want to add an item. The moment I click here, it is happening in my laptop. It is happening over the browser because I am using the console.

Then that process will be tracked. The process will be created for every request, be it a click or be it a submission from the API, a request will be created and that request will be in the RAM, that is in the memory. And then it will get into the process, it will start using the CPU. And once the CPU is allotted, it will process whether it is addition, whether it is updation, whether it is modification or whether it is the removal of the item. Now, once the processor is assigned, it will process the request and it is going to go through the same thing. But only thing is, since it is DynamoDB, the cloud virtualization also comes into the picture. Now, let us go ahead and understand that. So again, store my order, that is basically create an item. And even if I click here, insert an item, actually this request is going to the DynamoDB API. Every application, every service that AWS provides or any cloud service provider

provides here as an API. Even if you are going to create a simple virtual machine, That create virtual machine request is a request that will be captured by the compute API and that API is going to take it further. Where will it submit? It is going to submit into the RAM of the system where the virtual machine is supposed to be created. It is in the cloud. nothing is happening in my laptop when I am actually creating a virtual machine or creating an item. Both ways, nothing is going to get processed. But what is my operating system is going to process, my operating system is going to process only my request. Now let me go back to the task manager. And in this task manager, I hope you are able to see, this task manager, we have so many processes. And one of them is the Google Chrome. And this Google Chrome process has subprocess. If I click here, there are 29, 30 processes as of now. And each of this process, while we have subprocesses, I am using Google Chrome,

I'm using the console. Why there are so many? I can definitely look at that details with this. Now, each and every process, if I click, I can see the efficiency mode, I can see the resource values. As of now, if you look at the Google Chrome, it's taking almost like 2.2 GB of memory. accumulated with all the 29 processes. Now you see it has become 29. Now I can go ahead and say I don't want memory in values. I'll just give it to the percentage. You can see 20% of my memory is used by Google Chrome. 2.3%. It is very. So basically this Chrome is sending the request via the network over the internet to AWS. That's all it does. Now, if you want to see the utilization at the cloud end, I need to have administrative access to that. Otherwise, I will not be able to see that. Similarly, there also, the virtualization software will use because this request is sent to the API and first thing is the API will ask the virtualization application to create a new

virtual machine with the parameters what we have chosen. So, instead of Google Chrome in my laptop, in Cloud as a service provider, you will be able to see the virtualization software which is equivalent to my VMware workstation or something like that. Now, I can close this. Now, let me in the, me in the browser and let me click here. Now, this is also a task manager, but only of the tabs and extensions of my current application. Because I enabled this, let me close this. All I did is I made my browser active and I used a shift and escape key in Windows. And it is giving me. Now, if you look at it, for each tab, it is giving me details. So, now, I also have tab, which I was showing you the timer initially. That is also consuming how much memory. It's almost like 96 MB it is consuming. So, now, if I close this, I'm just going to close this timer. and then I'll keep this as an active come back again. Now do you see that

timer time? No. And the 96 MB is free now for me. The memory of my laptop. Now for each and every now you will be able to understand that my one browser application there are multiple requests. I have used the same browser to connect to your browser. Microsoft Teams. I have used the same browser to login into the AWS. I have also used the same to be in the portal. So now if I go back to the process manager, everything is broken. So you can see chat foundations of computer systems external Microsoft Teams. So this is basically this one. This, if I keep it here, you can see high memory usage 1.4 GB it is showing. Now if I go back to here, I will make this active and then bring it. Oops, what is happening? It is not coming. Ah, here it is. So now if you look at it, this is also 1 GB. It says like this is 8 MB and this is 1 GB. It is the same information that I am getting here when I am browsing to this tab. Same each tab.

This is only 77.3 KB, which I have logged into the portal of the ITPAC now. This is, I am in AWS. And if I move my cursor, it is 383 MB is consumed. And now if I see here, Amazon DynamoDB, 351 MB now, so it is fluctuating, but one thing is clear, each and every request that is going to go from your system or application to the AWS, everything is going to be scheduled, processed, communicated, receive a response. So once it is scheduled, that means it is identifying the resources. Resources like what? Memory, CPU, and disk. Now there is only tabs and extensions of the browser. I can see it here overall, for the overall browser. So if you look at it, it is telling about the render, spare render, utility storage service, GPU process, network service and audio service. Why audio service is coming here? Because I am also talking to you guys using the same browser. Today purposefully I joined using the browser and I did not use Microsoft Teams application

to join this call, only to show you how this is broken. So now if I see here, I can click here, sorry guys, what am I trying to do here? We maximize and let me bring it back. So this is for the whole browser. Like this browser, I'm also having other tasks that is happening in my laptop. This is tabs and extension. What is an extension? You might have a small application that is supported under the browser, Chrome, which you have added as an extension to a certain application. Maybe it's an extension to the PDF reader. Suppose if you are going to open a pdf document in your browser that will support you to function better those are all tabs and extensions this is the overall browser that is my chrome so memory footprint is the only thing that is coming here so if i want cpu cpu time everything i have selected all i have to do is either i have to maximize this okay now i have the cpu cpu which is 22.1 same thing if i want profile or

user handles are the caches that it is i can get all those data but i've just restricted only to footprint cpu cpu time so basically this browser is using the CPU time for the last 17 minutes. So, what does it indicate, Sundar? Sundar is joined at least one and a half hours to two hours before. But why the CPU time, now it has come to nine minutes, now it has come to 17 minutes. It's not showing in hours. The reason is once the task is completed, the processor also is released. Same way, there is no network communication that is happening through the browser. Now if I change this to the start time also, now you can see for the last two hours 14 minutes and this is basically you know start time is 8 55 pm. You can see the date also is changing. So video capture, renderer. Video capture, renderer, I'll keep it here. It will not change. It will be the same. But the moment this utilization is in, the processor is going up and down.

So you are absorbing. But otherwise, renderer, if you see, the time is not changing. It is 30th September to 14 PM. From that time, my renderer is in use. Now I can see all tasks. So we were seeing only browser earlier. Now, all tasks, the browser, it has so many. Now, I can go down. But since this is a view that is coming from the task manager of a specific browser, I can also enable the normal task manager. Now, let me maximize this. Here, if you look at it, the Chrome. Chrome I have selected, 23 it is showing. Let me minimize this. you will have 23 here, all processors. So, let me bring it back, the task manager of the overall windows. This task manager has captured only related to the active application that is the browser. And this has captured all the application that is running in my laptop. So, I am also running Edge. So now Edge is using almost 12.9 percent of my memory. I have Outlook running.

Outlook is capturing only 1.7 percent of the memory, but I want to know how much. Okay, that is fine. Let me change this memory to values. It will give you how much it is. So basically, this is broken into processes, Google Chrome. And for each process, there is a utilization. That means each process will have its own ID. That process ID is managed by the operating system, which is managing the process operating system. Now, what is the role of operating system here? Operating system is the one which is providing all the resources to the application. So, now the application giving the request, operating system allocating the resources. Based on the allocation of the resources, action is taken. Once the action is completed, that resource is totally freed. Now what I can do is, there are Microsoft Edge also. Yes, I do have. Since I have shared my whole screen, I can try to show you where is my Edge. Let me check this mail.

So in the processor, I have Outlook, but there are eight sub-processes, out of which one of the processes is my client, this is mail, Outlook client, currently it is using those 6.8 MV of the memory, all other resources are not being used. Why memory is being used? Because my application is active. Now if I go back to my application, and if I click on the new mail, new mail is coming. Now you can see that the utilization has increased. A can be known. Now if I close this, so that means each and every click, that means each and every request use of process, that process occupies, so now you can see that it was using the CPU because I did act on it, closing the draft. It has used some disk, but still the application is in the memory. Now, if I close this, for example, you can see there is no process available. That means no resources is consumed by, sorry, Outlook. No resources is consumed by Outlook because it is not running.

I will just leave it like this and let me go ahead and let me click on the Outlook. The moment you see the Outlook is coming up, you can see nine processes. Now there is a crash pad also which has come up, runtime broker. But actual application that what I am using is only this. Then why there are multiple entries within this and why it is showing in bracket 9? Because there is a GPU process. There is a web view to mail. This is another process. And you will also have network service, storage service. Because once the outlook comes up, It needs to connect to whatever, wherever my email ID is configured. So it will use the network service and it will use the storage service also. But currently, if you look at it, none of them are using any of the processor, but none of them are not using any disk except for this, it's doing some operations. So there is something. Now you see that this also has taken. Now the moment you see some operation is happening, probably it is just going and

checking the server, is there any new mails? At that point of time, some resources, CPU is getting allocated for that check. And if you dive deep into the Outlook application and if you see the modules, then you will be able to understand. Similarly, we can use ps-ef command in Linux and look at grep for only the process that you are looking for. you will see multiple entries. Because the request is broken into multiple requests, sorry, multiple processes and each process will get its own resources including the CPU, memory and disk. And if it has to communicate over, then you will see the action about the network. Network here in my case is nothing but the Wi-Fi. Suppose if I disconnect now, then this network utilization would have come down. To understand that, let me remove this outlook from the search bar. Now all, everything has come. Now here also, for GPU process, application is loaded, 40.5 MB is the utilization for Microsoft Edge. Suppose if I say I don't

want to run Microsoft end task. So now 1.5 GB of resources will be freed up. So that means my utilization has to come down because it is not occupying anymore. So I will go ahead and end task. So the moment I end task, you can see that from 49 it has come down 44% of the memory utilization. And even if I just antitask my another application which is WhatsApp, you can see 43%, but WhatsApp was not using much memory. And I also have a search process. Will I be able to stop any process that has been created by the system? No, we can't. For example, the task manager. Now it is running. If I just end task this, I have end task the task manager and it's been shut down. Do I have task manager enabled in this? No, I don't have the task manager. So now I can go here. This is nothing but which I have activated within the browser. Apart from that, I don't have anything. Now, if I say no problem, you give me the task manager interface, because task manager

itself is an application which require resources, something like CPU, memory and disk. And I can just say task, sorry, task, you can see the task manager. So, the utilization is varying. Now 5% of my CPU is being utilized by the task manager. The moment I close, I will not be able to see, but I'm pretty much sure that this 67 MB or like 75 MB will get released in terms of the memory, and the percentage will come down in terms of the utilization. Like that, when I go back to DynamoDB, All these processes locally in my laptop is related to the browser what I am using. Sooner I am not using browser. I am using an AWS client. Fair enough. Now, let me go to command prompt. Now do we have command prompt here as a process? Windows command processor is there. Let me go to the command prompt. The moment I activated this, you can see another command processor has come up. The moment I add one more, add one more, add one more,

you'll be able to see that the CPU is going immediately and coming back. Because I'm not processing anything here. Suppose if I say that, so more windows you create within the PowerShell, that is going to utilize more. It's going up and then coming down where I'm closing everything. Now let me open command prompt, the command prompt of the system. And I can add, the moment I add, it becomes a Windows PowerShell. You can see it is being utilized. Now, if I say ping yahoo.com, now you can see that TCP IP ping command, there was a process, which has come. I will see hyphen C, 25, okay, ping, hyphen, help. So basically hyphen N. So in Unix it is C. So ping hyphen N. Let me say 200 yahoo.com. So now it is coming. So now this TCP ping command process has come. Though it has originated from my command prompt, PowerShell, which is part of this Windows command processor. My request, it has allocated a different process as a TCP IP. And if you

look at it, that has a different utilization in terms of the resources. CPU memory, there is no need of any disk. So it is zero. And this is zero Mbps. No problem. Resource values, network percentage. So, it is 0 percent. It is very, very small. So, it has completed, it will complete 200. So, let me press control C. You will be able to see that this TCP IP ping command. Currently, you can see that it is loaded that process into the memory. Now, press press C here. I am stopping that ping command. You will see the ping command has gone out of the processes. Similarly, any server, what we have seen is in my laptop, any server or any virtualization, I can start a virtualization. You can get the feel of a cloud. I am going to start the virtualization software which is VMware Workstation Pro. Hope you are able to see my screen. I believe I have shared my whole screen. Now I have enabled this. Now I am removing this from the search. I am putting VMware. Now we can see.

Now how many processes? There are 13 processes. What are all these 13 processes each and every? Let me go back here. For each and every virtual machine configuration, whether it is running, whether it is not running, it has opened up a process within. Under VMware, you do have learned the EOC Note 2, EOC controller, home and my computer. CentOS template, IIT Patna Autumn 2026. Now let me go back, IIT Patna Autumn 2026. Now you look at it, there are nothing which has been utilized. All these are other processes related to VMware workstation. One is authorization service. Another is USB arbitration service. All these services are also enabled along with my VMware workstation. So, for all these services, the operating system has allocated different processes. So, it is running independent. It includes even DHCP service of the VMware. but none of my virtual machines are active. Now, assume that this is the same software,

which has been used in AWS environment. Instead of VMware workstation, whatever is the application they are using for the virtualization, that will be available in that processor information. And the moment I go ahead and start this, resume this virtual machine. Now, Now, IIT Patna is it, you can see that VMware is increased its utilization. Even the disk at mine, the processor is remaining the same number of processes, IIT Patna atom, but it is not using any of my resources yet, because it is still bringing up. The moment it comes up and running, you should be able to see what is it related to. Now you can see it is increasing. So sandbox it has created. In the sandbox only it will run this instance and that sandbox has started using 79 MB of memory. I am not doing anything here. So now if I say enter, I will just say ping yahoo.com. It is going to ping. But now I am going to minimize this. Now you can see that it is increasing. The CPU has increased

some utilization, some utilization of the network, but it is very negligible. So we are not able to observe. Obviously, there is no activity on the disk, so disk is not being utilized by that process. So when I enabled this IIT Patna, autumn 2026, we can see a VMware sandbox. Now, similarly, what I'm going to do is I'm just going to start one of this. So let me enable this, resume this virtual machine. Now, if I go back, you should be able to see the utilization has gone up. Now, it is using the same sandbox you have VMware. Let me just put sand. Now, you see two sandboxes coming out. I have enabled two virtual missions. Like this, you will be able to see it in the AWS. How much is the utilization in terms of the resource? So now, I believe that we are able to map every software request when it is getting executed is allocated resources by the operating system and that is being tracked. So without having the three major things, that is CPU, memory and disk, we will not be able to run our application.

And if we are running more than one application, at least now we should be in a position to understand that it is going to consume more processors, more RAM and more disk in short, more resources. And that's one of the reasons, not the only reason. That is one of the reasons that in production we don't run more than one application in a virtual machine. because then you will have so many sandboxes created and that is going to consume more than other resources. It consumes your memory. So now if you are using, instead of using virtualization, if you are using containerization, then you will see all the containers processes here. Containers, you will be able to limit. Virtual machine also has limited 4 GB RAM. So maximum, it can go up to 4 GB. this particular sandbox. If the application is running in this, then it can go up to like 4 GB max from the memory perspective because that is what I have configured for it.

So every process that is going to run in your virtual machine or in your laptop or in your terminal, everything will get resources allocated by the operating system. The most important connect which we have done today is, all these days we were looking only from the application to the resource perspective, but now at least we are clear that it is not getting allocated to the resource directly. The resources are getting allocated by operating system. Suppose if I don't have the Windows operating system in my laptop, will I be able to run my application? No. So the communication between the hardware and the software is maintained by the operating system. It understands both the instruction that is coming from the application and the resources that the instruction requires. Both it understands and it allocates. So, let me stop sharing. Now that we have brought in the view of the operating system, we will be diving deep in all the three aspects.

Resources to operating system, from operating system to the application. In our labs, we will see that. In our theory, we will start understanding these concepts from the tomorrow's session i'd like to pass here and check if there are any queries questions from anyone before we conclude as i do see a couple of you have raised your hands let me take a couple of questions in the order that you have raised so would i give you a chance before so let me give allow the mic of parambir yes parambir i have allowed your mic uh sir good evening am i audible you are pretty much sir i have three questions uh all connected with each other and this is regarding the dynamo db sir why will a developer select dynamo db over sql because isn't it a more rigid compared to sql while we're running queries on its database and then is it possible to migrate from DynamoDB to SQL at a later point in time if we plan to move a deployment somewhere else or

the customer wants to move to a database? This is the basic question that I have regarding DynamoDB and the SQL. Okay. See, the DynamoDB, the NoSQL, I'm not going to stick only to DynamoDB, any Many NoSQL databases are flexible and we can save disk space, queries are faster because parsing is easier. So if you're going to have millions and millions of records, then NoSQL databases will support you better than your SQL databases. So you can think something like this. if you are going to save some 30 lakh rows, will Excel support you? Excel is also one of the databases and it is also structured. It also has rows and columns and you can also store data, analyze the data. There are features available. So your Excel is the basic database. It can go up to like 3 lakh, 5 lakh records and after that it will die in terms of processing Because the application is subjected to the ability and capability. Suppose if you want to increase the capacity of the storage,

at that point of time, you will look for the database from an Excel sheet. Now, how much database can support? Whether it is MS SQL Server or whether it is Oracle or MySQL, Postgre, anything. All these are structured databases. basically RDBMS. You may store up to like 30 lakh. Can you store 300 lakh? Can you store 3 million? No. Then you will look at different types of databases based on the purpose. Okay, you are going to store only documents, then document database you will use. Access is Operating system allocation of resources is also limited, only whatever is required. But what you don't get in NoSQL compared to SQL is the structured pattern. You can't use a select command. But if you are using a particle, then particle, whatever command you give, interprets it and gives the command to the NoSQL database the way it understands. can't directly run a select command or an update command into the NoSQL database. Now

I am using SQL database, MySQL for example. Now will I be able to migrate from MySQL to NoSQL databases? Yes. No, currently we are using DynamoDB or any other NoSQL databases. We want to migrate it to back to relational database because of some functionality issue of the application, we don't want to continue with NoSQL to restore the service, we want to go back to RDBMS. Yes, you can definitely migrate the data from NoSQL to RDBMS also and all these migration services if you are using cloud, cloud service provider provides it and that is nothing but the data migration services. No Sundar, what will happen in case if I have it in my data center itself, then you will have to write the logic to migrate from one format to another. Yes, technically it is pretty much feasible. And there are tools available for offline instances also. And tools for the cloud instances are provided by the cloud service provider themselves.

yes sir so what you basically imply is that when it comes to very very large databases like if you are related in the real world your adhaar database or electoral records they would be stored in the this kind of a dynamo dp kind of a database no it's kind of thing okay not only for you it is for everyone to understand, when an architect look at what database I want to use, basically they won't look at the content. It is not, the content will be looked only when they have to decide the security for the content or the type I have to define. That time content will be looked at. But deciding what database I have to look at is not about the content what you are storing. You can store other number in NoSQL also. But when you are deciding NoSQL or RDS, the consideration is going to be the volume retrieval time. Suppose how soon i want to retrieve from the database the response should be in milliseconds for example

you are doing a upi payment you are sending money to my mobile number the moment the transaction happens within a millisecond you get a confirmation that amount is credited into my account but if you look at the structure from your application it is going to your bank and your bank will check whether you have the balance. If the balance is there, then only it will allow you to transfer. It will check whether my account is active and then only it will credit to my account. And once it is credited to my account, my bank is going to confirm your bank and your bank is going to confirm to your mobile device. At a very high level, I am describing the transaction. In between there are so many that happens. So as the end user, if you are expecting the confirmation within a second, I can't wait more than that because my heartbeat, that's a type of transaction. And these type of transactions are happening every millisecond. Every millisecond at least there are 100 transactions like you,

there are 100 people who are transacting at that point of time. So now sequential are parallel. Second is volume. Will my RDS support this? If it doesn't, will my NoSQL support this? That is how the architect is going to choose. Once the database is chosen, then only the content will be looked at. For example, other can be stored in both, need not be only SQL or NoSQL. It can be stored in both databases. But suppose if you want to also implement the feature of PII, Personally Identifiable Information, does my database architecture supports it? Then that becomes a very critical question because I am not supposed to store other card number. But if I am storing, I need to ensure the security. So if I am storing, will I be able to mask it? Will my application supports it? my database supports it. What if the application supports but not the NoSQL? Then obviously, architect needs to look for an alternate. So architect, when he's thinking,

he will look at two parameters. One is the functional parameter of the business operations, whichever it is. In our case, the example given is money transaction. The second is whether the tool is going to support or not. If these two, he gets an answer for yes, then only he'll make a decision. And after that, only content will be thought through. And then only other things will be made up. This is how it works. Make sense? Thank you very much. Okay. So, I'll take this as the last question because it's already 9.47. I don't mind another five minutes. So, yes, you can, Vidi. Nobody has, if somebody has no doubts, yes, you can log off. And if you're interested to see what is being discussed, you can stay back. Option is yours. Satendra Kumar, I have enabled your mic. Please go ahead. Hello, sir. Yeah. Thanks for the night session, sir. Sir, as we are working professional and the concept that you are showing us via AWS console, like EPC creation, database creation,

those have been like part of the books and people here may be hands-on also. How that is going to be reflected into this subject, Computer Foundations, and we'll come into exams, sir. Okay, your focus is basically how is it going to be in the exam? Exam also and like these are hands-on concepts. So like DevOps people probably knows how to create VPC, MySQL DB and this MySQL DB. So if the subject is like foundation of computer system, so how that's going to reflect in the examination? Will those questions will come in the form of labs or in theory? theory it is exam is going to be there won't be any uh you know cloud resources you will be expected to use assuming that you are using a cloud resource you will be expected to respond to the question mcqs you might have already seen what are the questions in the assignment one you will get to know about the theory questions also which is basically a response to the

question in text. Basically, the scenario will be given and you will be asked to explain how will you handle that. For example, one of the scenario question could be something like this. There are three applications running in a virtual machine and the bare metal has 12 virtual machines running in it. So how is the resource is going to be provided and who will be providing that resources to these three applications that is running in this virtual machine. So now you need to keep in mind a bare metal having like 64 GB of RAM running 12 virtual machines. So basically each virtual machine needs some memory to run. So now 12 virtual machines, if it is running, assuming that it requires some 512 MB. So 12 into 512 MB. And then three applications are running on that particular virtual machine. So will bare metal be able to accommodate? So now we will be calculating this. All this basic information will be part of the questions. Now, we need to calculate and say,

okay, will you be able to run an additional application in this bare metal or will you be able to run an additional application in that virtual machine? So, now you will be expected to understand the resource availability. You will be expected to calculate the current utilization and then finally answer whether it is possible to run an additional application or not. Or it could be otherwise. Somebody is trying to run an additional application and the virtual machine hangs. And these are all the information that is available as part of the initial diagnosis. What would be the root cause for that particular virtual machine being hung? So you might have to look at the utilization of the resources and see what might have created that bottleneck for that virtual machine to hang. Those type of questions would be in your theory. Did I answer your query? Yes, I got it, sir. Sir, I have two more quick questions.

One is I was looking at the assignments. There is a file assignment, one FCS theory lab wrote Excel. so um yeah uh when i download it asks me for the password no ignore that i'll be removing that file that is not part of your download i think i removed if not i will remove that assignment one has already come out and you might have appeared for the assignment one yes yes sir i i have already yeah that's it and the third question is sir uh in the other subjects like in the algorithm one and other subjects we have a blueprint of the syllabus what what is the complete syllabus look like what how the chapters will look like so so we have a mind set up for that so for this foundation of computer can we get some pdf that covers the overall blueprint of the syllabus for this semester sir okay great let me share my screen i hope you should be having this uh this is the share this is the syllabus that has been

one second you're going to see my screen it's loading yeah i can see yeah this one i couldn't This is part of the course of syllabus table of contents. If not, I can just share. Let me see if I'm able to share this. Or you can just take a screenshot. Yeah. Or if someone else knows where to access this in model, you should be able to. Can get it from you. I can find that. I'll take this. Can someone help Satinder to get this? or you can just take a screenshot yeah I took this screenshot thanks great thank you sir okay Uday I enabled your mic and this is the last question I would take yeah Ashish has given the PDF file as well Chandan has shared yes Uday any questions no no sir already covered sir okay great thank you so much I will take the question from Bikesh. Bikesh, I allowed your mic. Hello, sir. Sir, I have a question around the API call that we make on the DynamoDB. So I have a huge case where we have installed or deployed our application into one of the regions in AWS.

And then the DynamoDB is deployed into another region. so when when we make the call from the app to dynamo dv uh there are basically two components that's uh getting utilized one is the egress the network component and the other is since we are making a call to get the uh get the data from the dynamo dv so we we have the data transfer uh that's that's getting uh charged so basically there are two sort of charges that that's been used here so data transfer charges as well as the egress charges so is there any uh is there any uh way where we can uh sort of deploy our application to to the region so that we can mitigate these charges or reduce the charges that we incur yeah we can you can host all both application and database in the same region your egress call charges will go but still you know data transfer charges will be there within the region that will also reduce but still it will exist you can do that but you also need to look at the requirement right

So suppose if you are having the database in UK, for example, and your application is running in India, Hong Kong and US, and you also have databases in US, you also have the databases in Hong Kong and India running. But since I'm running four different databases in four different regions, the fourth region, which is basically London has come up only because of the GDPR requirement. You cannot avoid that. You are not supposed to save the PII data outside of the European region if you want to comply with the GDPR. If you don't comply with GDPR, you will lose the customer. So in that case, you need to have the database running there. And if you don't have any PII, then you can merge. You can bring down that UK and you can probably merge it with either Hong Kong, India or US. you need to look at the requirements regulatory requirements security requirements user requirement and you need to look at the severity of response everything you need to keep in mind

yeah and sir one one more thing so many times we get the rate limit issue when we make an api call so we we have this park application that reads the data from dynamo db and we have written some aws glue jobs basically which help us to read the data from dynamo db so we have observed in the production like yeah i understand i understand basically this would be related to is it like healthcare application or something like that uh yeah i mean consumer application some some e-commerce application that runs obviously you need to look at the architecture if i understand the architecture i will be able to respond because there are more components involved it's not as easy as our class where we are using only two or three components at a given point of time so because i have observed in the production many times it happens that we get the api rate limit error and sometimes we have even observed that we get the throttling errors

in the production so i'm not sure whether dynamo dv supports so certain see you need to look at the source of the problem right is it your application creating the problem or is it your architecture creating the problem is it the number of transactions number of transactions per second uh have you accommodated you might have upgraded your application to handle the traffic but have you changed the configuration of the dynamo db because dynamo db allocates resources on the go yeah so have you considered because if it is going to allocate for example if it requires more resources. When it requires that couple of seconds to provide that resource, is your transaction is exceeding the capability of DynamoDB to provide dynamic resources that also need to be analyzed. Based on the source problem, then we will take a call. But in principle if you ask me does dynamo db provides a support to these type of applications the answer

is yes yeah okay yeah thank you okay great thank you so much guys uh have a great evening we will catch up tomorrow at 2 o'clock. Take care. Bye-bye.

