Posts

Showing posts from March, 2018

AWS Interview Questions

1) Explain what is AWS? AWS stands for Amazon Web Service; it is a collection of remote computing services also known as cloud computing platform.  This new realm of cloud computing is also known as IaaS or Infrastructure as a Service. 2) Mention what are the key components of AWS? The key components of AWS are Route 53: A DNS web service Simple E-mail Service: It allows sending e-mail using RESTFUL API call or via regular SMTP Identity and Access Management: It provides enhanced security and identity management for your AWS account Simple Storage Device or (S3): It is a storage device and the most widely used AWS service Elastic Compute Cloud (EC2): It provides on-demand computing resources for hosting applications. It is very useful in case of unpredictable workloads Elastic Block Store (EBS): It provides persistent storage volumes that attach to EC2 to allow you to persist data past the lifespan of a single EC2 CloudWatch: To monitor AWS resources, It allows adm

Shell Scripting (bash)

Shell Scripting : Logical And operator : echo -e "enter your age /c" read age if [ "$age" -gt 18 ] && [ "$age" -lt 60 ] then echo "eligible for driving license" else echo " not eligible for driving license" fi Logical OR operator : echo -e "enter your age /c" read age if [ "&age" -eq 18 ] || [ "$age" -eq 25 ] then echo "valid age" else echo "not the valid age" fi Performing arithmetic operations : #!/bin/bash # we should not use echo 1+1 .. it will take it as a string. num1=20 num2=40 echo $(( num1 + num2 )) echo $(( num1 - num2 )) echo $(( num1 * num2 )) echo $(( num1 / num2 )) echo $(( num1 % num2 )) The case statement : case expression in     pattern1 )         statements ;;     pattern2 )         statements ;;     ... esac #!/bin/bash vehicle=$1 case $vehicle in     "car" )         echo "Rent of car is 100 dolloars" ;;     "van" )         e