Test - 1 Flashcards
(396 cards)
Question 1
In AWS what is used for encrypting and decrypting login information to EC2 instances?
Templates
B. AMI’s
C. Key pairs
D. None of the above
Answer C.
Amazon EC2 uses public–key cryptography to encrypt and decrypt login information. Public–key cryptography uses a public key to encrypt a piece of data, such as a password, then the recipient uses the private key to decrypt the data. The public and private keys are known as a key pair. To log in to your instance, you must create a key pair, specify the name of the key pair when you launch the instance, and provide the private key when you connect to the instance. Linux instances have no password, and you use a key pair to log in using SSH. With Windows instances, you use a key pair to obtain the administrator password and then log in using RDP.
For more information on key pairs, please visit the below url
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
Question 2
For DynamoDB, what are the scenario’s in which you would want to enable Cross-region replication?
Live data migration
B. Easier Traffic management
C. Disaster Recovery
D. All of the above
Answer: D
From the AWS Documentation, it clearly states the reason for why you would want to enable Cross-Region Replication.
For more information on DynamoDB, please visit the url
https://aws.amazon.com/dynamodb/faqs/
Question 3
You have launched two web servers in private subnet and one ELB (internet facing) in public subnet in your VPC. Yet, you are still unable to access your web application through the internet, which of the following would likely the cause of this?
Choose two correct options
Web server must be launched inside public subnet and not private subnet.
B. Route table for public subnet is not configured to route to VPC internet gateway.
C. No elastic IP is assigned to web servers.
D. No internet gateway is attached to the VPC.
Answer: B, D
In order for the EC2 or ELBs to be accessible from internet, we would need to configure the route table for public subnet to route traffic to VPC internet gateway. For example:
For information on VPC Route Tables and VPC Internet Gateway, please visit the link:
https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Route_Tables.html
https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Internet_Gateway.html
Question 4
Which of the following is mandatory when defining a cloudformation template?
Resources
B. Parameters
C. Outputs
D. Mappings
Answer: A
This is clearly given in the aws documentation
For more information on Cloudformation templates, please visit the url
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html
Question 5
In IAM, what is the representation of a person or service ?
User
B. Group
C. Team
D. Role
Answer: A
An IAM user is an entity that you create in AWS. The IAM user represents the person or service who uses the IAM user to interact with AWS An IAM group is a collection of IAM users. You can use groups to specify permissions for a collection of users, which can make those permissions easier to manage for those users An IAM role is very similar to a user, in that it is an identity with permission policies that determine what the identity can and cannot do in AWS
For more information on IAM entities , please visit the url
http://docs.aws.amazon.com/IAM/latest/UserGuide/id.html
Question 6
Which of the below instances is used normally for massive parallel computations?
A. Spot Instances
B. On-Demand Instances
C. Dedicated Instances
D. This is not possible in AWS
Answer: A
This is clearly given in the aws documentation
For more information on Spot Instances, please visit the link–
https://aws.amazon.com/ec2/spot/
Question 7
Which of the below are incremental backups of your EBS volumes? Choose one answer from the options given below.
A. Volumes
B. State Manager
C. Placement Groups
D. Snapshots
Answer: D
You can easily create a snapshot from a volume while the instance is running and the volume is in use. You can do this from the EC2 dashboard.
For more information on EBS snapshots, please visit the link-
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EBSSnapshots.html
Question 8
There is a requirement to host a NoSQL database with a need for low latency. Which class of instances from the below list should they choose from ?
T2
B. I2
C. T1
D. G2
Answer: B
I2 instances are optimized to deliver tens of thousands of low-latency, random I/ O operations per second (IOPS) to applications. They are well suited for the following scenarios: NoSQL databases (for example, Cassandra and MongoDB) Clustered databases online transaction processing (OLTP) systems.
For more information on I2 instances, please visit the link:
https://aws.amazon.com/blogs/aws/amazon-ec2-new-i2-instance-type-available-now/
Question 9
You are designing a site for a new start up which generates cartoon images for people automatically. Customers will log on to the site, upload an image which is stored in S3. The application then passes a job to AWS SQS and a fleet of EC2 instances poll the queue to receive new processing jobs. These EC2 instances will then turn the picture in to a cartoon and will then need to store the processed job somewhere. Users will typically download the image once (immediately), and then never download the image again. What is the most commercially feasible method to store the processed images?
Rather than use S3, store the images inside a BLOB on RDS with Multi-AZ configured for redundancy.
B. Store the images on S3 RRS, and create a lifecycle policy to delete the image after 24 hours.
C. Store the images on glacier instead of S3.
D. Use elastic block storage volumes to store the images.
Answer: B
“Use the AWS Reduced Redundancy storage to save on costs. The use lifecycle policies to delete the data since it is not required.
For more information on AWS Reduced Redundancy storage , please refer to the below link
https://aws.amazon.com/s3/reduced-redundancy/
The AWS Documentation mentions the following on Lifecycle policies Lifecycle configuration enables you to specify the lifecycle management of objects in a bucket. The configuration is a set of one or more rules, where each rule defines an action for Amazon S3 to apply to a group of objects
For more information on S3 Lifecycle policies , please refer to the below link
http://docs.aws.amazon.com/AmazonS3/latest/dev/object-lifecycle-mgmt.html
Question 10
You have a high performance compute application and you need to minimize network latency between EC2 instances as much as possible. What can you do to achieve this?
A. Use Elastic Load Balancing to load balance traffic between availability zones
B. Create a CloudFront distribution and to cache objects from an S3 bucket at Edge Locations.
C. Create a placement group within an Availability Zone and place the EC2 instances within that placement group.
D. Deploy your EC2 instances within the same region, but in different subnets and different availability zones so as to maximize redundancy.
Answer: C
The AWS Documentation mentions the following on placement Groups A placement group is a logical grouping of instances within a single Availability Zone. Placement groups are recommended for applications that benefit from low network latency, high network throughput, or both. To provide the lowest latency, and the highest packet-per-second network performance for your placement group, choose an instance type that supports enhanced networking.
For more information on placement groups , please refer to the below link:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html
Question 11
Which of the below elements can you manage in the Billing dashboard ? Select 2 options.
A. Budgets
B. Policies
C. Credential Report
D. Cost Explorer
Answer: A, D
When you go to your Billing dashboard, below are the set of elements which can be configured.
For more information on AWS cloud billing and pricing, please visit the link http://docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/billing-getting-started.html
Question 12
What is the name of the VPC that is automatically created for your AWS account for the first time ?
A. Primary VPC
B. First VPC
C. Default VPC
D. Initial VPC
Answer: C
A default VPC is a logically isolated virtual network in the AWS cloud that is automatically created for your AWS account the first time you provision Amazon EC2 resources. When you launch an instance without specifying a subnet-ID, your instance will be launched in your default VPC.
For more information on VPC, please refer to the link
https://aws.amazon.com/vpc/faqs/
Question 13
Which of the following databases support the read replica feature? Select 3 options.
A. MySQL
B. MariaDB
C. PostgreSQL
D. Oracle
Answer: A, B, C
Read replicas are available in Amazon RDS for MySQL, MariaDB, and PostgreSQL. When you create a read replica, you specify an existing DB Instance as the source. Amazon RDS takes a snapshot of the source instance and creates a read-only instance from the snapshot. For MySQL, MariaDB and PostgreSQL, Amazon RDS uses those engines’ native asynchronous replication to update the read replica whenever there is a change to the source DB instance. The read replica operates as a DB instance that allows only read-only connections; applications can connect to a read replica just as they would to any DB instance. Amazon RDS replicates all databases in the source DB instance.
For more information on rds read replicas, please refer to the link https://aws.amazon.com/rds/details/read-replicas/
Question 14
What can be used from AWS to import existing Virtual Machines Images into AWS?
A. VM Import/ Export
B. AWS Import/ Export
C. AWS Storage Gateway
D. This is not possible in AWS
Answer: A
VM Import/ Export enables customers to import Virtual Machine (VM) images in order to create Amazon EC2 instances. Customers can also export previously imported EC2 instances to create VMs. Customers can use VM Import/ Export to leverage their previous investments in building VMs by migrating their VMs to Amazon EC2.
For more information on AWS EC2, please visit
https://aws.amazon.com/ec2/faqs/
Question 15
What is the service used by AWS to segregate control over the various AWS services ?
A. AWS RDS
B. AWS Integrity Management
C. AWS Identity and Access Management
D. Amazon EMR
Answer: C
AWS Identity and Access Management (IAM) is a web service that helps you securely control access to AWS resources for your users. You use IAM to control who can use your AWS resources (authentication) and what resources they can use and in what ways (authorization).
For more information on IAM, please visit:
http://docs.aws.amazon.com/IAM/latest/UserGuide/introduction.html
Question 16
How long can messages live in a SQS queue?
A. 12 hours
B. 10 days
C. 14 days
D. 1 year Answer: C
Answer: C
This is clearly given in the AWS documentation
For more information on SQS , please visit the following url
https://aws.amazon.com/sqs/faqs/
Question 17
You working in the media industry and you have created a web application where users will be able to upload photos they create to your website. This web application must be able to call the S3 API in order to be able to function. Where should you store your API credentials whilst maintaining the maximum level of security?
A. Save the API credentials to your php files.
B. Don’t save your API credentials. Instead create a role in IAM and
assign this role to an EC2 instance when you first create it.
C. Save your API credentials in a public Github repository.
D. Pass API credentials to the instance using instance userdata.
Answer: B
Always use IAM Roles for accessing AWS resources from EC2 Instances The AWS Documentation mentions the following IAM roles are designed so that your applications can securely make API requests from your instances, without requiring you to manage the security credentials that the applications use. Instead of creating and distributing your AWS credentials, you can delegate permission to make API requests using IAM roles
For more information on IAM Roles for EC2 Instances, please refer to the below link:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/iam-roles-for-amazon-ec2.html
Question 18
What are some of the common causes why you cannot connect to a DB instance on AWS ? Select 3 options.
A. There is a read replica being created, hence you cannot connect
B. The DB is still being created
C. The local firewall is stopping the communication traffic
D. The security groups for the DB are not properly configured.
Answer: B, C, D
There are some steps clearly given in the AWS documentation:
For more information on rds troubleshooting please visit the below link
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_Troubleshooting.html
Question 19
For which of the following databases does Amazon RDS provides high availability and failover support using Amazon’s failover technology for DB instances using Multi-AZ deployments. Select 3 options.
A. SQL Server
B. MySQL
C. Oracle
D. MariaDB
Answer: B, C, D
This is clearly provided in the aws documentation.
For more information on MultiAZ please visit the below link
http://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.MultiAZ.html
Question 20
Which is the service provided by AWS for providing a petabyte-scale data warehouse ?
A. Amazon DynamoDB
B. Amazon Redshift
C. Amazon Kinesis
D. Amazon Simple Queue Service
Answer: B Amazon Redshift is a fast, fully managed, petabyte-scale data warehouse that makes it simple and cost-effective to analyze all your data using your existing business intelligence tools. Start small for $ 0.25 per hour with no commitments and scale to petabytes for $ 1,000 per terabyte per year, less than a tenth the cost of traditional solutions. Option A is wrong because it is used as a NOSQL solution. Option C is wrong because it is used for processing streams and not for storage. Option D is wrong because it is a de-coupling solution.
For more information on Redshift, please visit the below url
https://aws.amazon.com/redshift/?nc2=h_m1
Question 21
An image named photo.jpg has been uploaded to a bucket named examplebucket in the us-east-1 region. Which of the below is the right URL to access the image, if it were made public ? Consider that S3 is used as a static website.
A. http://examplebucket.s3-website-us-east-1.amazonaws.com/photo.jpg
B. http://examplebucket.website-us-east-1.amazonaws.com/photo.jpg
C. http://examplebucket.s3-us-east-1.amazonaws.com/ photo.jpg
D. http://examplebucket.amazonaws.s3-website-us-east-1./photo.jpg
Answer: A
The URL for an S3 web site is shown in the KB article
[bucket-name].s3-website-[AWS-region].amazonaws.com.
hence the right option is option A. When you configure a bucket for website hosting, the website is available via the region-specific website endpoint. Website endpoints are different from the endpoints where you send REST API requests.
For more information about the differences between the endpoints, see Key Differences Between the Amazon Website and the REST API Endpoint. The two general forms of an Amazon S3 website endpoint are as follows:
—> bucket-name.s3-website-region.amazonaws.com
—> bucket-name.s3-website.region.amazonaws.com
Which form is used for the endpoint depends on what region the bucket is in.
For example, if your bucket is named example-bucket and it resides in US East (N. Virginia) region, the website is available at the following amazon S3 website endpoint:
For more information on the bucket and the URL format for S3 buckets, please visit:
http: //docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteEndpoints.html
http: //docs.aws.amazon.com/AmazonS3/latest/dev/HostingWebsiteOnS3Setup.html
Question 22
An image named photo.jpg has been uploaded to a bucket named examplebucket in the us-east-1 region. Which of the below is the right URL to access the image, if it were made public ? Consider that S3 is used as a static website.
http://examplebucket.s3-website-us-east-1.amazonaws.com/photo.jpg
B. http://examplebucket.website-us-east-1.amazonaws.com/photo.jpg
C.http://examplebucket.s3-us-east-1.amazonaws.com/photo.jpg
D. http://examplebucket.amazonaws.s3-website-us-east-1./photo.jpg
Answer: A
The URL for a S3 web site is as shown in the KB Article < bucket-name >. s3-website-< AWS-region >. amazonaws.com Hence the right option in option A
When you configure a bucket for website hosting, the website is available via the region-specific website endpoint. Website endpoints are different from the endpoints where you send REST API requests. For more information about the differences between the endpoints, see Key Differences Between the Amazon Website and the REST API Endpoint.
The two general forms of an Amazon S3 website endpoint are as follows:
- -> bucket-name.s3-website-region.amazonaws.com
- -> bucket-name.s3-website.region.amazonaws.com
Which form is used for the endpoint depends on what Region the bucket is in. For example, if your bucket is named example-bucket and it resides in the US East (N. Virginia) region, the website is available at the following Amazon S3 website endpoint:
For more information on the bucket and the URL format for S3 buckets , please visit the below urls:
http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteEndpoints.html
http://docs.aws.amazon.com/AmazonS3/latest/dev/HostingWebsiteOnS3Setup.html
Question 23
A company has an EC2 instance that is hosting a web solution which is mostly used for read-only purposes. The CPU utilization is constantly 100% on the EC2 instance. Which of the below solutions can help alleviate and provide a quick resolution to the problem.
Use Cloudfront and place the EC2 instance as the origin
B. Let the EC2 instance continue to run at 100%, since the AWS environment can handle the load.
C. Use SNS to notify the IT admin when it reaches 100% so that they can disconnect some sessions to help alleviate the load
D. Use SES to notify the IT admin when it reaches 100% so that they can disconnect some sessions to help alleviate the load
Answer: A
Cloudfront can be used alleviate the load on web based solutions by caching the recent reads in its edge locations and reduce the burden on the EC2 instance. Amazon CloudFront is a global content delivery network (CDN) service that accelerates delivery of your websites, APIs, video content or other web assets
For more information on AWS Cloudfront please visit the below url
https://aws.amazon.com/cloudfront/
Question 24
Which of the mentioned AWS services uses the concept of shards and is uniquely identified group of data records in a stream?
Cloudfront
B. SQS
C. Kinesis
D. SES
Answer: C
In Amazon Kinesis, a shards is a uniquely identified group of data records in a stream. A stream is composed of one or more shards, each of which provides a fixed unit of capacity. Each shard can support up to 5 transactions per second for reads, up to a maximum total data read rate of 2 MB per second and up to 1,000 records per second for writes, up to a maximum total data write rate of 1 MB per second (including partition keys).
For more information on AWS Kinesis please visit the below url
http://docs.aws.amazon.com/streams/latest/dev/key-concepts.html