Saturday, January 19, 2019

Sample Questions for AWS Certified Solution Architect

This blog post is about some Sample Questions for AWS Certified Solution Architect. Answers with explanations are at the bottom.

Quiz 1

  1. Does S3 provide read-after-write consistency?
    1. No, not for any region
    2. Yes, but only for certain regions
    3. Yes, but only for certain regions and for new objects
    4. Yes, for all regions
  2. What is the maximum size of a single S3 object?
    1. There is no such limit
    2. 5 TB
    3. 5 GB
    4. 100 GB
  3. Is data stored in S3 is always encrypted?
    1. Yes, S3 always encrypts data for security
    2. No, there is no such feature
    3. Yes, but only when right APIs are called
    4. Yes, but only in Gov Cloud datacenters
  4. What is true for S3 buckets (select multiple if more than one is true)?
    1. Bucket namespace is shared and is global among all AWS users.
    2. Bucket names can contain alpha numeric characters
    3. Bucket are associated with a region, and all data in a bucket resides in that region
    4. Buckets can be transferred from one account to another through API
  5. EBS can always tolerate an Availability Zone failure?
    1. No, all EBS volume is stored in a single Availability Zone
    2. Yes, EBS volume has multiple copies so it should be fine
    3. Depends on how it is setup
    4. Depends on the Region where EBS volume is initiated
  6. Which of the following Auto scaling CANNOT do (select multiple if more than one is true)?
    1. Start up EC2 instances when CPU utilization is above threshold
    2. Release EC2 instances when CPU utilization is below threshold
    3. Increase the instance size when utilization is above threshold
    4. Add more Relational Database Service (RDS) read replicas when utilization is above threshold
  7. Which of the following benefits does adding Multi-AZ deployment in RDS provide (choose multiple if more than one is true)?
    1. MultiAZ deployed database can tolerate an Availability Zone failure
    2. Decrease latencies if app servers accessing database are in multiple Availability zones
    3. Make database access times faster for all app servers
    4. Make database more available during maintenance tasks
  8. What happens to data when an EC2 instance terminates (select multiple if more than one is true)?
    1. For EBS backed AMI, the EBS volume with operation system on it is preserved
    2. For EBS backed AMI, any volume attached other than the OS volume is preserved
    3. All the snapshots of the EBS volume with operating system is preserved
    4. For S3 backed AMI, all the data in the local (ephemeral) hard drive is deleted
  9. 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).
    1. Simply attach an elastic IP
    2. 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
    3. 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
    4. There is no way for an instance in private subnet to talk to the internet
  10. When an ELB is setup, what is the best way to route a website’s traffic to it?
    1. Resolve the ELB name to an ip address  and point the website to that ip address
    2. There is no direct way to do so, Route53 has to be used
    3. 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

Quiz 2


  1. An instance is launched into the public subnet of a VPC. Which of the following must be done in order for it to be accessible FROM the Internet?
    1. Attach an Elastic IP to the instance
    2. Nothing. The instance is accessible from the Internet
    3. Launch a NAT instance and route all traffic to it
    4. Make an entry in the route table passing all traffic going outside the VPC to the NAT instance
  2. In VPCs with private and public subnets, database servers should ideally be launched into:
    1. The public subnet
    2. The private subnet
    3. Either of them
    4. Not recommended, they should ideally be launched outside VPC
  3. An instance is connected to an ENI (Elastic Network Interface) in one subnet. What happens when you attach an ENI of a different subnet to this instance?
    1. The instance follows the rules of the older subnet
    2. The instance follows the rules of both the subnets
    3. The instance follows the rules of the newer subnet
    4. Not possible cannot be connected to 2 ENIs
  4. You want to use Route53 to direct your www sub-domain to an elastic load balancer fronting your web servers. What kind of record set should you create?
    1. A.
    2. AAAA
    3. NS
    4. CNAME
  5. You have created 4 weighted resource record sets with weights 1, 2, 3 and 4. the 3rd record set is selected by Route53:
    1. 1/7th of the  time
    2. 3/10th of the time
    3. 3/7th of the time
    4. 1/4th of the time
  6. You have created a Route 53 latency record set from your domain to a machine in Singapore and a similar record to a machine in Oregon. When a user located in India visits your domain he will be routed to:
    1. Singapore
    2. Oregon
    3. Depends on the load on each machine
    4. Both, because 2 requests are made, 1 to each machine
  7. Which of the following can be used as an origin server in CloudFront?(Choose 3)
    1. A webserver running on EC2
    2. A webserver running in your own datacenter
    3. A RDS instance
    4. An Amazon S3 bucket
  8. In CloudFront what happens when content is NOT present at an Edge location and a request is made to it?
    1. An Error 404 not found is returned
    2. CloudFront delivers the content directly from the origin server and stores it in the cache of the edge location
    3. The request is kept on hold till content is delivered to the edge location
    4. The request is routed to the next closest edge location
  9. Which of the following is true with respect to serving private content through CloudFront?
    1. Signed URLs can be created to access objects from CloudFront edge locations
    2. Direct access to S3 URLs can be removed therefore allowing access only through CloudFront URLs
    3. Mark the S3 bucket private and allow access to CloudFront by means of Roles
    4. Mark the S3 bucket private and and create an Origin Access Identity to access the objects
  10. You have written a CloudFormation template that creates 1 elastic load balancer fronting 2 EC2 instances. Which section of the template should you edit so that the DNS of the load balancer is returned upon creation of the stack.
    1. Resources
    2. Parameters
    3. Outputs
    4. Mappings
Answers:
1) a
2) b
3) b
4) d
5) b
6) a
7) a, b, d
8) b
9) a, b, d
10) c

No comments:

Post a Comment

Which Python course is best for beginners?

Level Up Your Python Prowess: Newbie Ninjas: Don't fret, little grasshoppers! Courses like "Learn Python 3" on Codecade...