Interview Questions and Answers - Order By Rating Q901. Can you explain the integration between API Gateway and Lambda if we wish to develop services using these tools. Amazon Web Services (AWS)
Ans. We can create API gateway and give the name of lambda function in order to be linked with lambda function, deploy the API and whenever request will be made from API it will directly be linked to lambda function to perform further process. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws api gateway  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda Q902. What are the problems one could face while working with serverless technologies like AWS Lambda ? Amazon Web Services (AWS)
Ans. Warm up time for certain technologies like Java ( JVM Warmup )
Performance
Size of Deployable ( Bigger size packaging should go in S3 ) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  serverless technologies  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda Asked in 1 Companies Ans. AWS API Gateway is the endpoint URI to get invoke. Whereas Lambda is the compute function being invoked from API Gateway or S3 or SNS Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  AWS Lambda  AWS Gateway APIAns. The process of hiding the implementation details from the user and providing only functionality. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies basic   frequent Ans. Overriding refers to the Methods with same name and parameters, such that the later over rides the former method. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  oops  oops concepts  overriding Asked in 1 Companies basic   frequent Q906. Difference between emulator and simulator. Testing
This question was recently asked at 'Hughes Systique'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies This question was recently asked at 'adobe'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  vector  collections  list Asked in 1 Companies Q908. How do you define a functional interface? Core Java
Ans. Create interface with the only one non-overriding abstract method and annotate it with @FunctionalInterface Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  functional interface  java 8 Asked in 1 Companies Q909. Can you give a real life example of synchronization Core Java
Ans. Intersection with traffic light Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  synchronization Q910. In the Following code which foo will get called.
foo(Integer i){
}
foo(String s){
}
public static void main(){
passing foo(null);
} Core Java
Ans. ambiguity error Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  code  method  function  data types Asked in 1 Companies Q911. Find different combination of given String and trace the output
Core Java
Ans. private void permutation(String prefix, String sufix)
{
int ln = sufix.length();
if(ln == 0) {
System.out.println(prefix);
} else {
IntStream.range(0, ln).forEach(i->permutation(prefix sufix.charAt(i), sufix.substring(0,i) sufix.substring(i 1, ln)));
}
}
call:permutation("", "abcdef"); Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  String  code  coding Asked in 1 Companies Q912. Find Max from Stack in O(1) complexity Algorithm
Ans. Create one extra field called MAX O(1)
when you an element to the stack check these two condition
1. Stack is empty, then MAX = element
2. Stack is not empty then check if the element is greater than MAX then MAX = element
when getMax fuction is called, then return MAX Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  complexity  stack  data structure Asked in 1 Companies This question was recently asked at 'MST Solutions'.This question is still unanswered. Can you please provide an answer. Sample Code for composition Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  composition  object oriented programming (oops)  oops concepts  oops concepts Asked in 1 Companies basic   frequent Ans. The interface is a mechanism to achieve abstraction. Interfaces can have abstract methods and variables. It cannot have a method body. Sample Code for interface Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  interface Asked in 1 Companies basic   frequent Q915. Explain Facade design pattern Design
Ans. Single gateway of the entire application is called Facade Design Pattern. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  design pattern  facade Asked in 1 Companies This question was recently asked at 'Adella software'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  debug Asked in 1 Companies basic Q917. What is the purpose of JDP and JDK ? Core Java
This question was recently asked at 'Dextrasys'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  jdp  jdk Asked in 1 Companies Ans. AWS Lambda is an event-driven, serverless computing platform provided by Amazon as a part of Amazon Web Services. It is a computing service that runs code in response to events and automatically manages the computing resources required by that code. It was introduced in November 2014. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  amazon lambda  aws  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda Asked in 1 Companies Ans. EC2, EKS, EKC , Lambda Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws ec2  aws computing  amazon cloud computing  amazon ec2 Q920. How cloud computing is different than virtualization ? Server
Ans. A Virtualization is software that virtualizes your hardware into multiple machines while Cloud computing is the combination of multiple hardware devices. In Virtualization, a user gets dedicated hardware while in Cloud computing multiple hardware devices provide one login environment for the user. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  cloud computing  virtualization  production support  Google Cloud Platform (GCP) Q921. What are some of the vendors providing cloud computing infrastructure ? Server
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  cloud computing Q922. What are the benefits of cloud computing ? Server
Ans. Primary benefits of cloud computing include –
Data backup and storage
Reduced costs of managing and maintaining IT systems
Powerful server capability and scalability
Better productivity and collaboration efficiency
Access to automatic updates Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  production supportAns. EC2 is elastics compute cloud is one of the amazon service and ec2 instance is one type of virtual server which you create from AMI. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  amazon ec2  aws ec2  aws computing  amazon cloud computing  amazon ec2 Q924. What are the reasons to choose between reserved and on demand instances ? Server
Ans. In terms of compute options and configurations, Reserved Instances and On Demand instances are the same. The only difference between the two is that a Reserved Instance is one you rent (reserved) for a fixed duration, and in return you receive a discount on the base price of an On Demand instance. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws  aws ec2  aws computing  amazon cloud computing  amazon ec2  production support  Google Cloud Platform (GCP) Ans. Cloud Computing is a way of using IT infrastructure with following traits -
1. On Demand Infrastructure
2. Broad Network Access
3. Resource Pooling
4. Rapid Elasticity
5. Measured Service Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  google cloud platform (GCP)  Amazon Web Services (AWS This question was recently asked at 'American International Group (AIG)'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  applet Asked in 1 Companies basic   rare Ans. It is a file format based on the popular ZIP file format and is used for aggregating many files into one. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  jar Asked in 1 Companies basic Q928. Which collection stores element in insertion order ? Core Java
Ans. LinkedList maintains the insertion order in collection. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  collections Asked in 1 Companies Q929. How one dao Implementation object (singleton) can handle multiple requests? Design Pattern
This question was recently asked at 'Capgemini'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  singleton Asked in 1 Companies Ans. It returns all the rows form the left table and matches the rows in both tables. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  database   database joins   left outer join  sql Asked in 2 Companies