Interview Questions and Answers - Order By Rating Ans. Keeping Low cost for processing , i would choose
Spot Price Plan
F1 or P3 Instance Type
Cold Hdd (SCI ) EBS Volume 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. On Demand
Reserved
Spot
Dedicated Host 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. 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. If the usage is non continuous and have flexible start and End Time. For ex - Analysis , Research , mining etc. 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 spotAns. 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 the computation required is Spiky and unpredictable.
If it's first time use.
If the lifespan of the application isn't known. 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. 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. 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 Q429. 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 Q430. 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 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 s3Ans. It's an on premise virtual appliance that can be used as cache to store s3 locally at customer site. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws storage gatewayAns. 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 select the appropriate Price Class if that suits us.
We can do Geo Targeting by black listing / white listing certain geographies. 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. 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. CDN is Content Delivery Network
AWS CloudFront provides CDN service Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  aws cloudfront  amazon cloudfrontAns. Yes 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 s3Ans. AWS CloudFront 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 cloudfront  amazon cloudfrontAns. In Transit ( SSL / TSL )
At Rest Server Encryption ( SSE-S3, SSE-KMS, SSE-C ) 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 s3Ans. Yes 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 s3Ans. Yes 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 s3Ans. We can use S3 lifecycle management to transition older objects into AWS Glacier. 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 s3Ans. No, its not allowed currently. 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 s3Ans. No. Replication is only allowed across regions. We can manually copy into other bucket though. 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 Q446. Does deletion of an object gets replicated too if we have cross region replication enabled on a bucket ? Amazon Web Services (AWS)
Ans. No, delete markers are not replicated. 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 s3Ans. No , Both the source and destination should have versioning enabled. 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 s3Ans. Versioning ( will create Delete marker )
MFA Delete ( authentication upon deletion )
Cross Region Replication ( Replicates aren't deleted ) 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 s3Ans. If the objects / bucket is versioned in S3, Any delete operation on S3 object doesn't physically deletes the object but rather creates a delete marker version. We need to delete the delete marker to physically delete it. 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 Q450. If we have enabled versioning for S3 bucket, Do we need to make all new versions public whenever new versions are uploaded ? Amazon Web Services (AWS)
Ans. Yes, all new versions are private by default even if the original file has been made public. 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