In this post, we will understand the difference between server-side scripting and client-side scripting.Server-side ScriptingIt helps work with the back end.It doesn’t depend on the client.It runs on the web server.It helps provide a response to every request that comes in from the user/client.This is not visible to the client side of the application.It requires the interaction with the server for the data to be process.Server side scripting requires languages such as PHP, ASP.net, ColdFusion, Python, Ruby on Rails.It is considered to be a secure way of working with applications.It can be used to customize web pages.It can also be ... Read More
In this post, we will understand the difference between GET and POST methods in HTML.GET MethodThe parameters are placed inside the URL.Its main goal is to retrieve the data/documents present inside it.It has the ability to bookmark the results of the query.It is vulnerable, and not secure enough.This is because the data and credentials are present as plain text.It can be seen by anyone.The data constraint is that only ASCII characters are allowed.It can be up to 2000 characters only.It is also said to keep the length of the data to a minimum value.Data can be cached when GET method ... Read More
In this post, we will understand the difference between linear queue and circular queue −Linear QueueIt is a linear data structure, which data is arranged in a linear pattern.Operations such as insertion and deletion are done from rear and front respectively.It requires more memory, since data is stored in a linear fashion.The element that is added to a linear queue at first, is the element that gets deleted first.It follows FIFO, i.e first in first out.The element that is inserted first is the element that is deleted first as well.It is not as efficient as a circular queue structure.Circular QueueThe ... Read More
In this post, we will understand the difference between definition and declaration.DefinitionDefinition, with respect to a function indicates that the body of the function has been developed.With respect to variable, it means a value has been associated/defined with that variable.A function can be defined only once.Once a function or variable has been defined, it is ready to be used.A variable can be re-defined multiple times, as and when required. This depends on the language and the scopes.Memory is allocated when function or a variable is defined.Below is an example of variable definitionsum = 0A variable named ‘sum’ is assigned to ... Read More
In this post, we will understand the difference between linear data structure and non-linear data structure.Linear Data StructureThe elements of such a structure are arranged sequentially.Every element can be accessed by traversing through the linear structure.All the elements of a linear structure are at a single level, i.e there is no hierarchy.They are easy to implement and use.They utilize more memory, hence they are not very memory-friendly.The time complexity of linear data structure usually increases when the size of the structure increases.Examples include- list, array, stackThe below shows an example of a list in Python.my_list = [45, 42, 12, 34, ... Read More
Problem Statement − Use boto3 library in Python to retrieve the table definition of a database.Example − Retrieve the table definition of a database ‘QA-test’ and table as ‘security’ for version 2.Approach/Algorithm to solve this problemStep 1 − Import boto3 and botocore exceptions to handle exceptions.Step 2 − database_name, table_name and version_id is the mandatory parameter. It fetches definition of given table for a specified version.Step 3 − Create an AWS session using boto3 library. Make sure region_name is mentioned in default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4 − Create ... Read More
Problem Statement − Use boto3 library in Python to retrieve the table definition of a database.Example − Retrieve the table definition of a database ‘QA-test’ and table as ‘security’.Approach/Algorithm to solve this problemStep 1 − Import boto3 and botocore exceptions to handle exceptions.Step 2 − database_name and table_name is the mandatory parameter. It fetches the definition of given table.Step 3 − Create an AWS session using boto3 library. Make sure region_name is mentioned in default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4 − Create an AWS client for glue.Step 5 − ... Read More
Problem Statement − Use boto3 library in Python to get details of all security configuration present in AWS Glue Security.Example − Get the details of all security configuration present in AWS Glue Security.Approach/Algorithm to solve this problemStep 1 − Import boto3 and botocore exceptions to handle exceptions.Step 2 − There is no parameter. It fetches all security configuration present in user’s AWS Glue Security.Step 3 − Create an AWS session using boto3 library. Make sure region_name is mentioned in default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4 − Create an AWS ... Read More
Problem Statement − Use boto3 library in Python to get details of a specified security configuration present in AWS Glue Security.Example − Get details of a specified security configuration (‘job-security-settings’) present in AWS Glue Security.Approach/Algorithm to solve this problemStep 1 − Import boto3 and botocore exceptions to handle exceptions.Step 2 − security_name is the mandatory parameter whose configuration details needs to be fetched.Step 3 − Create an AWS session using boto3 library. Make sure region_name is mentioned in default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4 − Create an AWS client ... Read More
Problem Statement − Use boto3 library in Python to get definition of all glue jobs present in user’s AWS Glue Data catalog.Example − Get definition of all glue jobs present in AWS Glue Data catalog.Approach/Algorithm to solve this problemStep 1 − Import boto3 and botocore exceptions to handle exceptions.Step 2 − No parameter is required for this function. It will fetch definition of all listed jobs for user account.Step 3 − Create an AWS session using boto3 library. Make sure region_name is mentioned in default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step ... Read More