Interview Questions and Answers for 'L' | Search Interview Question - javasearch.buggybread.com
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers - Order By Newest

   next 30
 Q1771. What are the different things we can restrict CloudFront access on ?

Amazon Web Services (AWS)
Ans. 1. Protocol ( http, https )
2. Url Pattern ( *, /abc* )
3. Operation ( Put , Post , Delete etc )
4. Geo

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws cloudfront  amazon cloudfront


 Q1772. How can we restrict CloudFront Access ?Amazon Web Services (AWS)
Ans. Price Class
Geo Targeting
Signed Urls , Signed Cookies

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws cloudfront  amazon cloudfront


 Q1773. What could be done if we try to upload a file larger than the allowed size in S3 ?Amazon Web Services (AWS)
Ans. We can use multi part upload API

 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


 Q1774. write a program for 4 digit otp generation?Design
Ans. import java.util.Random;

public class OTPGenerator {
public static void main(String[] args) {
int otpLength = 4;
String otp = generateOTP(otpLength);
System.out.println("Generated OTP: " otp);
}

private static String generateOTP(int length) {
StringBuilder otp = new StringBuilder();
Random random = new Random();

for (int i = 0; i < length; i ) {
int digit = random.nextInt(10);
otp.append(digit);
}

return otp.toString();
}
}

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q1775. Write a Program to find depth of node binary tree ? Algorithm
Ans. public static int getLevel(Node root, int key) {
int levelOfNode = getLevelUtil(root, key, 1);
return levelOfNode;
}

public static int getLevelUtil(Node root, int key, int level) {
if (root == null) return 0;
if (root.data == key) return level;
int left = getLevelUtil(root.left, key, level 1);
int right = getLevelUtil(root.right, key, level 1);
if (left != 0) return left;
else return right;
}

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve          Asked in 1 Companies


 Q1776. What is the use case of aws S3-IA ?Amazon Web Services (AWS)
Ans. IA stands for infrequently accessed and hence it's suited for files / objects are expected to be accessed infrequently.

 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 s3  aws storage  amazon cloud storage  amazon s3-ia


 Q1777. What is the use case for Amazon Glacier ?Amazon Web Services (AWS)
Ans. Amazon Glacier is used for storing archieved files / objects and hence well suited for files where retrieval time isn't that important.

 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 s3  aws storage  amazon cloud storage  amazon s3 glacier  aws glacier


 Q1778. What is the use case for "Reserved" EC2 plan ?Amazon Web Services (AWS)
Ans. If the usage is continuous , stable and predictable.

 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 reserved


 Q1779. What is the use case for "Dedicated Host" EC2 plan ?Amazon Web Services (AWS)
Ans. If there are regulatory requirements, or proprietary license to be used.

 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 dedicated host


 Q1780. Which EC2 instance type should be used if the application is memory intensive ?Amazon Web Services (AWS)
Ans. R4

 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


 Q1781. Which is the cheapest EC2 instance type ?Amazon Web Services (AWS)
Ans. T

 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 instance type


 Q1782. If you override hashcode to always return true, how a hash based collection will behave?Core Java
Ans. At that bucket, it will form a linked list depending on what equals method evaluates for that object.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     hashcode  collections     Asked in 2 Companies


 Q1783. Can we have EBS Volumes in S3 ?Amazon Web Services (AWS)
Ans. No , S3 is an object storage and not a Block Storage. But EBS Volume snapshots are internally stored in S3.

 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 ebs


 Q1784. What are the different EC2 instance types ?Amazon Web Services (AWS)
Ans. F,I,G,H,T,D,R,M,C,P,X

 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  aws ec2  aws computing  amazon cloud computing  amazon ec2 instance type


 Q1785. Which EBS Volume type cannot be used as a root volume ?
Amazon Web Services (AWS)
Ans. Throughput Optimal HDD and Cold HDD

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws ebs  aws root volume


 Q1786. What is the use case of AWS CloudFront ?Amazon Web Services (AWS)
Ans. Faster availability and uploading of files and content.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws cloudfront  amazon cloudfront


 Q1787. What is the use case of S3 Cross Region replication ?Amazon Web Services (AWS)
Ans. Disaster Recovery and availability

 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 s3  aws storage  amazon cloud storage  amazon s3 cross region replication


 Q1788. What is the need of S3 Transitioning ?Amazon Web Services (AWS)
Ans. Saving Cost by either expiring objects or moving to low cost storage.

 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 transitioning


 Q1789. What is the use case for AWS Snowball ?Amazon Web Services (AWS)
Ans. Faster upload of Content through Physical device instead of low speed internet connection.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws snowball


 Q1790. What is the use case for Geo Targeting / Price Class within AWS CloudFront ?Amazon Web Services (AWS)
Ans. Saving cost by optimizing content retrieval or upload in certain Geographies.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws cloudfront  amazon cloudfront  aws cloudfront  amazon cloudfront geo targeting


 Q1791. Which is the most common EC2 instance Type ? Amazon Web Services (AWS)
Ans. T and M

 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  aws ec2  aws computing  amazon cloud computing  amazon ec2 instance type


 Q1792. Can we change the instance Type while it's running ?Amazon Web Services (AWS)
Ans. No

 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


 Q1793. Import / Export can import data set from ..Amazon Web Services (AWS)
Ans. S3, EBS and Glacier

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws import / export  aws s3  aws storage  amazon cloud storage  amazon s3  aws ebs  aws glacier


 Q1794. How can EBS Volumes be backed up ?Amazon Web Services (AWS)
Ans. Through Snapshots

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws ebs  aws volumes  aws computation


 Q1795. Use Case for S3 RRS ?Amazon Web Services (AWS)
Ans. If Back up is not needed and can be restored from another storage.

 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 s3  aws storage  amazon cloud storage  amazon s3 rrs


 Q1796. What is the name of DNS service provided by AWS ?Amazon Web Services (AWS)
Ans. Route 53

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     AWS DNS  aws Route 53     Asked in 4 Companies


 Q1797. Difference between List and ArrayList ?Core Java
Ans. List is an interface whereas ArrayList is an implementation of List.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     list  arraylist  list vs arraylist  difference between  collections     Asked in 2 Companies      basic


 Q1798. Does attached EBS volume get deleted if we terminate EC2 instance ?Amazon Web Services (AWS)
Ans. By default, Root volume gets terminated whereas additional volume doesn't.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws ebs  aws ebs volume  aws ec2  aws computing  amazon cloud computing  amazon ec2


 Q1799. What is a volume in AWS ?Amazon Web Services (AWS)
Ans. It's a virtual hard disk that is attached to computing.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     aws volume


 Q1800. Difference between EC2 instance public and private key ?Amazon Web Services (AWS)
Ans. public key is used for locking whereas private key is used for unlocking. public key can be used for locking multiple instances and hence can be shared.

 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


previous 30   next 30

Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: