Does S3 provide read-after-write consistency?
- No, not for any region
- Yes, but only for certain regions
- Yes, but only for certain regions and for new objects
- Yes, for all regions
What is the maximum size of a single S3 object?
- There is no such limit
- 5 TB
- 5 GB
- 100 GB
Is data stored in S3 is always encrypted?
- Yes, S3 always encrypts data for security
- No, there is no such feature
- Yes, but only when right APIs are called
- Yes, but only in Gov Cloud datacenters
- What is true for S3 buckets (select multiple if more than one is true)?
- Bucket namespace is shared and is global among all AWS users.
- Bucket names can contain alpha numeric characters
- Bucket are associated with a region, and all data in a bucket resides in that region
- Buckets can be transferred from one account to another through API
- EBS can always tolerate an Availability Zone failure?
- No, all EBS volume is stored in a single Availability Zone
- Yes, EBS volume has multiple copies so it should be fine
- Depends on how it is setup
- Depends on the Region where EBS volume is initiated
- Which of the following Auto scaling CANNOT do (select multiple if more than one is true)?
- Start up EC2 instances when CPU utilization is above threshold
- Release EC2 instances when CPU utilization is below threshold
- Increase the instance size when utilization is above threshold
- Add more Relational Database Service (RDS) read replicas when utilization is above threshold
- Which of the following benefits does adding Multi-AZ deployment in RDS provide (choose multiple if more than one is true)?
- MultiAZ deployed database can tolerate an Availability Zone failure
- Decrease latencies if app servers accessing database are in multiple Availability zones
- Make database access times faster for all app servers
- Make database more available during maintenance tasks
- What happens to data when an EC2 instance terminates (select multiple if more than one is true)?
- For EBS backed AMI, the EBS volume with operation system on it is preserved
- For EBS backed AMI, any volume attached other than the OS volume is preserved
- All the snapshots of the EBS volume with operating system is preserved
- For S3 backed AMI, all the data in the local (ephemeral) hard drive is deleted
- For an EC2 instance launched in a private subnet in VPC, which of the following are the options for it to be able to connect to the internet (assume security groups have proper ports open).
- Simply attach an elastic IP
- If there is also a public subnet in the same VPC, an ENI can be attached to the instance with the ip address range of the public subnet
- If there is a public subnet in the same VPC with a NAT instance attached to internet gateway, then a route can be configured from the instance to the NAT
- There is no way for an instance in private subnet to talk to the internet
- When an ELB is setup, what is the best way to route a website’s traffic to it?
- Resolve the ELB name to an ip address and point the website to that ip address
- There is no direct way to do so, Route53 has to be used
- Generate a CNAME record for the website pointing to the DNS name of the ELB
Answers:
1) Answer: C.
S3’s consistency model is that of eventual consistency. This means that when an object is stored in S3, it is replicated in different datacenters (availability zones) in the same region. And it can take a short amount of time before all the data centers have a uniform view of the object (This time is usually less than a second, but if system is in distress it could take much longer). Thus in essence, S3 does not provide read-after-write consistency.
But the S3 team has modified the algorithm so as to provide read-after-write consistency for new objects. Which means that if I upload “object-n” for the first time (lets call it version-1), I get the opportunity to immediately read it without any consistency issues. This is though not supported for US-East region. Thus S3 support read-after-write consistency for new objects but for all regions except US-East.
2) Answer: B.
Using multipart upload, a single object in S3 can be upto 5TB in size.
3) Answer: C.
S3 by default do not encrypt the data stored into its service. But using Server Side Encryption feature, if proper headers are passes (in REST), S3 will first encrypt the data and then store that encrypted data.
4) Answers: A, B, C
Bucket namespace is global, which means that if someone creates a bucket called “pics” nobody else can create a bucket of the same name. Bucket names can contain alphanumeric characters which means we can have a bucket named “cloudthat1234”. And when we create a bucket, we have to select a region for the bucket, and all data stored in that bucket is physically stored in that region only (although the data can be accessed from anywhere in the world with proper credentials).
5) Answer: A
One of the known fallacies of EBS is that all the data of a single volume lives in a single Availability Zone. Thus it cannot withstand Availability zone failures.
6) Answer: C, D
Auto scaling cannot increase instance size of an EC2 instance. The idea is to be able to scale horizontally, and not vertically. Also D is correct as Auto scaling currently cannot automate RDS instance to do anything.
7) Answers: A, D
RDS MultiAZ does make database a single AZ failure tolerant, as it has automatic failover feature, where the secondly will become primary and application can keep accessing the database. It also increases availability during maintenance, as maintenance is performed first on secondary, then its made primary and then old-primary is updated.
8) Answers: B, C, D
9) Answer: C
10) Answer: C
The ip address of an ELB can change, so it’s not advisable to point domain directly at that ip address. Instead use CNAME to map to the ELB DNS name
—–
I will also be conducting a bootcamp for this certification in Bangalore and online. If you are interested to join, please click here and fill out the form.
Also more sample questions are coming, so keep checking.. Please share if you liked the post by using the social buttons below.