Problem Statement: Use boto3 library in Python to restore all secret keys from specific location in AWS Secret Manager.Approach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_stored_location is the required parameter.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Call restore_secret and pass the secret_stored_location as SecretId.Step 6: It returns the metadata of restored secret.Step 7: Handle the generic exception if something ... Read More
Problem Statement: Use boto3 library in Python to delete all secret keys from a specific location in AWS Secret ManagerApproach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_stored_location is the required parameter.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Call delete_secret and pass the secret_stored_location as SecretId.Step 6: It returns the metadata of deleted secret.Step 7: Handle the generic exception if ... Read More
In this post, we will understand the difference between RPC and RMI −RPC (Remote Procedure Call)It is a library.It is an OS dependent platform.It supports procedural programming.It is less efficient in comparison to RMI.It creates more overhead.The parameters passed to RPC is normal data.It is the older version of RMI.It is easy to program in RPC.It doesn’t provide any security.The cost of development is high.Versioning is a complicated process in RPC.Multiple codes will be needed to build a simple application in RPC.RMI (Remote Method Invocation)It is a platform based on Java.It supports object-oriented programming.It is more efficient in comparison to ... Read More
Problem Statement: Use boto3 library in Python to create a secret key as plain text in AWS Secret ManagerApproach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_stored_location and secret_key_pair is the required parameter. It is a place where secrets are saved with given key-pair value. Make sure secret_key_pair is written as string, not as dict. For example: '{key:pair}'Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the 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 the secret keys as plain text from binary/encrypted format present in AWS Secret ManagerApproach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_stored_location is the required parameter. It is a place where secrets are saved.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Call get_secret_value and pass the secret_stored_location as SecretId.Step 6: Check whether ... Read More
Problem Statement: Use boto3 library in Python to get secret keys from AWS Secret ManagerApproach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_stored_location is the required parameter. It is a place where secrets are saved.Step 3: Create an AWS session using boto3 lib. Make sure region_name is mentioned in the default profile. If it is not mentioned, then explicitly pass the region_name while creating the session.Step 4: Create an AWS client for secretmanager.Step 5: Call get_secret_value and pass the secret_stored_location as SecretId.Step 6: It returns all the secrets that are present without encryption ... Read More
Problem Statement: Use boto3 library in Python to paginate through multi-part upload objects of a S3 bucket from AWS Glue Data Catalog that is created in your accountApproach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: prefix_name, max_items, page_size and starting_token is optional parameter for this function while bucket_name is required parameters.Prefix_name is the specific sub folders where user wants to paginate throughmax_items denote the total number of records to return. If the number of available records > max_items, then a NextToken will be provided in the response to resume pagination.page_size denotes the size ... Read More
Problem Statement: Use boto3 library in Python to paginate through all objects of a S3 bucket from AWS Glue Data Catalog that is created in your accountApproach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: max_items, page_size and starting_token are the optional parameters for this function, while bucket_name is the required parameter.max_items denote the total number of records to return. If the number of available records > max_items, then a NextToken will be provided in the response to resume pagination.page_size denotes the size of each page.starting_token helps to paginate, and it uses last key ... Read More
In this post, we will understand the difference between Time Sharing and Real-Time Operating System −Time Sharing Operating SystemIn this type of operating system, a quick response is required to be given when a request comes in.It has a switching method.Any kind of modifications can be done to the program.The resources of the computer are shared externally.It deals with multiple processes and applications simultaneously.The response to a user request is given within seconds of time.Real-Time Operating SystemIn this operating system, the computation tasks are required to be given more importance before its nominative point.It doesn’t have a switching method.No modification ... Read More
In this post, we will understand the difference between network operating system and a distributed operating system.Network Operating SystemThe main object of this system is to provide local services to remote clients.The communication takes place depending on the files.It is more scalable in comparison to Distributed Operating System.It has less fault tolerance.The rate of autonomy in a network operating system is high.It is easy to implement.The nodes of a network operating system can have different operating system.Distributed Operating SystemThe main objective of this system is to manage the resources of the hardware.The communication takes place depending on messages and shared ... Read More
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP