Amazon Web Services (AWS) - Interview Questions and Answers for 'Lambda' - 38 question(s) found - Order By Rating Ans. AWS Lambda Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws lambda basic Q2. What is arrow function in Typescript ? TypeScript
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  arraow functions in typescript   lambda expression vs arrow function Q3. What are the advantages and disadvantages of Lambda Expression ? Core Java
This question was recently asked at 'Number 8'.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  java8  java 8  java lambda expressions Asked in 1 Companies Ans. Yes Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws param store  amazon param store  aws lambda  amazon lambda Q5. How can we take snapshots and track changes to environment variables in Elastic Beanstalk or Lambda ? Amazon Web Services (AWS)
Ans. We can use AWS Config Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws elastic beanstalk  amazon elastic beanstalk  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda Q6. Which is a better way to keep environment specific configuration in AWS Lambda - Environment Variables or external service like S3 or RDS ? Amazon Web Services (AWS)
Ans. Possible Answer - Env variable or use parameter store Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambdaAns. We are using Yaml for initializing configuration and Environment Variables for overriding them. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda Q8. Why serverless is called serverless if there are actually servers serving the requests ? Infrastructure
Ans. Because Vendors need not worry about provisioning , managing and maintaining the servers and it's intrinsically taken care of by AWS. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Amazon Web Services (AWS)  aws serverless  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambdaAns. If we would like a program to be executed if someone commits code to the repository. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda triggerAns. Api Gateway
Alexa
CloudFront
CloudWatch
Code Commit
Kinesis
S3
SNS Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda triggerAns. No of requests, computation duration, assigned RAM Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambdaAns. Advantages -
Much Cheaper
Continuous scaling
Higher level and Serverless
Disadvantages -
Warm up time
Limited flexibility in terms of technologies
Limited control Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda  aws ec2  aws computing  amazon cloud computing  amazon ec2Ans. In AWS Lambda we can run a function in synchronous or asynchronous mode. In synchronous mode, if AWS Lambda function fails, then it will just give an exception to the calling application. In asynchronous mode, if AWS Lambda function fails then it will retry the same function at least 3 times.If AWS Lambda is running in response to an event in Amazon DynamoDB or Amazon Kinesis, then the event will be retried till the Lambda function succeeds or the data expires. In DynamoDB or Kinesis, AWS maintains data for at least 24 hours. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambdaAns. We can schedule that through CloudWatch. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  lambda function  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda function  aws cloudwatch  amazon cloudwatch Q15. What would you do if you see an error thrown by a lambda function as "Access Denied" while doing something with S3 ? Amazon Web Services (AWS)
Ans. Just like people , AWS resources too have execution roles or permissions. Seems like in such a situation Lambda function may not have sufficient privileges to perform operations on S3. For example - The execution role of Lambda may just have read permissions on S3 and we may be trying to perform PutObject operation. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws s3  aws storage  amazon cloud storage  amazon s3  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda Q16. Have you used Java 8 Lambda expressions ? Core Java
This question was recently asked at 'One Click Retail'.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  java 8  lambda expressions Asked in 1 Companies   frequent Ans. We are using it for computation (EC2) , Storage (S3) and Database (RDS) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  AWS Lambda Asked in 1 Companies Q18. Write code to get count of every 5 letter word in a string using lambda expression
Core Java
Ans. String str = "I had been saying that he had been there";
Map<String,Long> countWords = Arrays.asList(str.split(" ")).stream().filter(p->p.length() = 5).collect(Collectors.groupingBy(p->p,Collectors.counting()));
System.out.println(countWords); Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Collectors  lambda  filter  coding  java 8 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  AWS  AWS Lambda 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  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda 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  AWS LambdaAns. You can have reserved capacity with AWS Lambda. This guarantees that this number of concurrent Lambdas are always available for that function. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws  aws lambda  aws serverless computing  amazon cloud serverless computing  amazon lambda  aws ec2  aws computing  amazon cloud computing  amazon ec2 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  AWS  AWS Lambda  AWS EC2Ans. We have to complement it to AWS Gateway API. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  AWS Lambda  AWS Serverless  AWS Gateway Q25. 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 Q26. 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. 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 Q29. Given a collection of Employee objects, how can we get the customers with name starting with 'A' using lambda expression. Core Java
Ans. List emp = Arrays.asList("American", "Indian", "Finn");
emp.stream().filter(em -> em.startsWith("A")).forEach(System.out.println); Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  java8  java 8  lambda Asked in 1 Companies Q30. Lets say we have a set "set1" with objects of Class A, Class has a non static string called element1, Write a code ( using lambda expression ) to see if there is any object in the set with element1 = "Hello". Core Java
Ans. set1.stream().filter(p->p.element1.equals("Hello")).findAny().isPreent();
or
set1.stream().map(A::getElement1).anyMatch("Hello"::equals) Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  lambda expressions  java 8  java8  java 8 filter  findAny()