Interview Questions and Answers - Order By Newest Ans. Origin is the origin of File or services which CloudFront distributes like S3 in US East-1
Distribution is the combination of Edge locations that helps in the distribution of content / service. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws cloudfront  amazon cloudfrontAns. 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 cloudfrontAns. 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 cloudfrontAns. 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 Q2235. 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 Q2236. 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 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-iaAns. 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 glacierAns. 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 reservedAns. 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 hostAns. 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 ec2Ans. 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 Q2243. 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 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 ebsAns. 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 typeAns. 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 volumeAns. 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 cloudfrontAns. 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 replicationAns. 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 transitioningAns. 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 targetingAns. 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 typeAns. 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 ec2Ans. 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 glacierAns. RDS, RedShift and Elastic Cache Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws automated backups  aws RDS  aws Redshift  aws backupAns. 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 computationAns. 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 rrsAns. 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 Q2258. 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 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 ec2Ans. 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