Amazon Web Services (AWS) is a subsidiary of amazon.com. AWS currently provides more than 100 services and helps to setup high computing power, data storage, queuing, notification, machine learning, security, monitoring services available under AWS management console.
AWS Free Tier includes 750 hours of Linux and Windows t2.micro instances each month for one year as per Amazon website. Please check //aws.amazon.com or //aws.amazon.com/ec2/ website for more accurate details and to confirm this.
The quickest way to learn AWS is by creating free tier aws account by clicking below link.
VPC, EC2, S3, SNS, SQS, ML, Developer tools, Analytics, IAM, Media services etc.
VPC
What is VPC?
VPC lets us to place our AWS resources in a virtual network the way we wanted. As you can see below VPC 3 tier architecture holds the resources and makes a secure communication between the internet and your VPC.
VPC 3 tier architecture using AWS cloud services as below:
here in the above diagram, Availability zone 1 has Web server 1, App server 1 and DB server 1 orchestrated
Similarly, Availability zone 1 has Web server 2, App server 2 and DB server 2 orchestrated.
The load balancer is placed to handle the load between the servers
EC2
What is EC2?
EC2 stands for Amazon Elastic Compute Cloud is a cloud service provides secure, resizable compute capacity. In simple terms it allows us to setup a windows, Linux servers in 2-3 minutes.
How to setup a Windows server and Linux server?
Steps:
AWS Free account gives access to AWS console.
Create a free account and select Linux and Windows t2.micro instances under EC2 option under AWS Dashboard.
Follow the instructions and make sure select “Free Tier Eligible servers” and after learning the process, terminate servers as to avoid the usage of computing services and storage.
Benefits?
Quick – easy to create/terminate servers.
Inexpensive – Gives an option to select the matching server configurations to reduce cost.
Secure – EC2 works along with VPC to provide high security with robust networking features.
Elastic Web scale computing – enable to increase/decrease server capacity in minutes by adding/removing 100 of servers simultaneously.
Integration – easy integration to VPC, S3, RDS etc.
Please click on S3Amazon Simple Storage Service (Amazon S3)
Please click on RDSAmazon Relational Database Service (Amazon RDS)
Please click on VPC– Amazon Virtual Private Cloud (Amazon VPC)
Please click on RPA Amazon Relational Database Service (Amazon RDS)
How to handle the error popup on site security certificate is not trusted with chrome selenium python automation
For Chrome, add –ignore-certificate-errors in following code
options = webdriver.ChromeOptions()
options.add_argument(‘–ignore-certificate-errors’)
driver = webdriver.Chrome(chrome_options=options)
driver.get(‘URL’)
For the Internet Explorer, set acceptSslCerts desired capability as true:
capabilities = webdriver.DesiredCapabilities().INTERNETEXPLORER
capabilities[‘acceptSslCerts’] = True
driver = webdriver.Ie(capabilities=capabilities)
driver.get(‘URL’)
Differentiate final , finally, finalize (Short Ans: final method can’t be overridden, final variable can’t be changed, finally goes with try/catch, finalize is garbage collector)
how to handle exceptions in java (Ans: try catch, throws, etc)
how to use parameters in cucumber/testNG (Ans: scenario outline,tidy gherkin plugin, vs testng.xml-suite,test,class,method;)
how to validate flatfiles , db using Java (Ans: input filestream, driver class connection, server name, instance , authentication, sql statement)
how to skip method/test in TestNG, Cucumber BDD (Ans: testng.xml, annotation, cucumber tags on testrunner)
differentiate encapsulation , abstraction
what are interface and explain the methods – webdriver interface, driver object reference, FF/IEdriver class (Since interface can not be instantiated)
write programs – sort array, print number in reverse, print string reverse, etc
how does SSL works , public key-private key, session encryption etc
method overridden vs method overloading (super class methods are overridden by child class when both has same methods, overload – one class has multiple methods with same method name but different parameters)
Selenium automation challenges (ajax – webdriver wait methods, frames switch, alert.accept, multiple windows handlers, pdf in webpage, alert vs modal confuse, dynamic id,name-use xpath contains, etc)
handle dropdown – select class
feature file extension
bufferbuilder usage
what is background, scenarios outline, before/afterhooks vs tags,
usage of autoit, robotclass, javascript executor,
Jenkins schedule batch, report generation,
grid setup, hub and node, run on dos prompt, or use JSON file to configure nodes and run JSON on commandline..then connect in Jenkins
how to manage Git versions between two teams
What is data structure and use of it test automation
class IfElse {
public static void main(String[] args) {
int marksObtained, passingMarks;
passingMarks = 40;
Scanner input = new Scanner(System.in);
System.out.println(“Input marks scored by you”);
marksObtained = input.nextInt();
if (marksObtained >= passingMarks) {
System.out.println(“You passed the exam.”);
}
else {
System.out.println(“Unfortunately you failed to pass the exam.”);
}
}
}