the 65 Flashcards
What’s the maximum amount of data you can store in a Redshift cluster when using dense storage nodes?
- 236 TB
- 326 PB
- 2 TB
- 326 TB
- 2 PB
- 2 PB
Dense storage nodes can be used in a cluster to store up to 2 PB of data. Dense compute nodes can be used to store up to 326 TB of data.
Which of the following is a valid CIDR for a VPC or subnet?
- 10.0.0.0/8
- 10.0.0.0/15
- 10.0.0.0/28
- 10.0.0.0/29
A VPC or subnet CIDR can have a size between /16 and /28 inclusive, so 10.0.0.0/28 would be the only valid CIDR.
- 10.0.0.0/28
A VPC or subnet CIDR can have a size between /16 and /28 inclusive, so 10.0.0.0/28 would be the only valid CIDR.
Which of the following is true of a new security group?
- It contains an inbound rule denying access from any IP address.
- It contains an inbound rule allowing access from any IP address.
- It contains an inbound rule denying access from public IP addresses.
- It contains an outbound rule denying access to public IP addresses.
- It contains an outbound rule allowing access to any IP address.
- It contains an outbound rule allowing access to any IP address.
When you create a security group, it contains an outbound rule that allows access to any IP address. It doesn’t contain an inbound rule by default. Security group rules can only permit access, not deny it, so any traffic not explicitly allowed will be denied.
Which of the following is true of a VPC peering connection?
- It’s a private connection that connects more than three VPCs.
- It’s a public connection between two VPCs.
Correct Answer - It’s a private connection between two VPCs.
- It’s a virtual private network (VPN) connection between two VPCs.
A VPC peering connection is a private connection between only two VPCs. It uses the private AWS network, and not the public internet. A VPC peering connection is different than a VPN connection.
- It’s a private connection between two VPCs.
A VPC peering connection is a private connection between only two VPCs. It uses the private AWS network, and not the public internet. A VPC peering connection is different than a VPN connection.
Which of the following are true about registering a domain name with Route 53? (Select TWO.)
- The registrar you use to register a domain name determines who will host DNS for that domain.
- Route 53 creates a public hosted zone for the domain.
- Route 53 creates a private hosted zone for the domain.
- You can register a domain name for a term of up to 10 years.
Route 53 creates a public hosted zone for the domain.
- You can register a domain name for a term of up to 10 years.
When you register a domain name, you can choose a term between 1 year and 10 years. If you use Route 53, it will automatically create a public hosted zone for the domain. The registrar and DNS hosting provider don’t have to be the same entity, but often are.
Which of the following Route 53 routing policies doesn’t use health checks?
- Geolocation
- Simple
- Latency
- Multivalue Answer
- Simple
All Route 53 routing policies except for Simple can use health checks.
You have two EC2 instances hosting a web application. You want to distribute 20 percent of traffic to one instance and 80 percent to the other. Which of the following Route 53 routing policies should you use?
- Failover
- Multivalue Answer
- Simple
- Weighted
- Weighted
A Weighted routing policy lets you distribute traffic to endpoints according to a ratio that you define. None of the other routing policies allows this.
You want to provide private name resolution for two VPCs using the domain name company.pri. How many private hosted zones do you need to create?
- 4
- 2
- 3
- 1
Route 53 private hosted zones provide DNS resolution for a single domain name within multiple VPCs. Therefore, to support resolution of one domain names for two VPCs, you’d need one private hosted zone.
- 1
Route 53 private hosted zones provide DNS resolution for a single domain name within multiple VPCs. Therefore, to support resolution of one domain names for two VPCs, you’d need one private hosted zone.
From where does CloudFront retrieve content to store for caching?
- Origins
- Edge locations
- Regions
- Distributions
- Origins
A CloudFront origin is the location that a distribution sources content from. Content is stored in edge locations. A distribution defines the edge locations and origins to use.
You need to deliver content to users in the United States and Canada. Which of the following edge location options will be the most cost effective for your CloudFront distribution?
- All edge locations
- United States, Canada, and Europe
- United States, Canada, Europe, and Asia
- United States, Canada, Europe, Asia, and Africa
- United States, Canada, and Europe
The more edge locations you use for a distribution, the more you’ll pay. Selecting the minimum number of locations will be the most cost effective.
Which of the following are valid origins for a CloudFront distribution? (Select TWO.)
- A public S3 bucket
- A private S3 bucket that you don’t have access to
- EC2 instance
- A private S3 bucket that you own
An origin can be an EC2 instance or a public S3 bucket. You can’t use a private S3 bucket as an origin.
- A public S3 bucket
- EC2 instance
An origin can be an EC2 instance or a public S3 bucket. You can’t use a private S3 bucket as an origin.
What formats do CloudFormation templates support? (Select TWO.)
- XML
- HTML
- JSON
- YAML
CloudFormation templates are written in the YAML or JSON format.
- JSON
- YAML
CloudFormation templates are written in the YAML or JSON format.
Why would you use CloudFormation to automatically create resources for a development environment instead of creating them using AWS CLI commands? (Select TWO.)
- CloudFormation stack updates help ensure that changes to one resource won’t break another.
- Resources created by CloudFormation always work as expected.
Correct Answer
- Resources CloudFormation creates are organized into stacks and can be managed as a single unit.
- CloudFormation can provision resources faster than the AWS CLI.
- CloudFormation stack updates help ensure that changes to one resource won’t break another.
- Resources CloudFormation creates are organized into stacks and can be managed as a single unit.
Resources CloudFormation creates are organized into stacks. When you update a stack, CloudFormation analyzes the relationships among resources in the stack and updates dependent resources as necessary. This does not, however, mean that any resource you create using CloudFormation will work as you expect. Provisioning resources using CloudFormation is not necessarily faster than using the AWS CLI.
In the context of CodeCommit, what can differencing accomplish?
- Understanding what code change introduced a bug
- Seeing when an application was last deployed
- Deleting duplicate lines of code
- Allowing reverting to an older version of a file
- Differencing lets you see the differences between two versions of a file, which can be useful when figuring out what change introduced a bug.
- Understanding what code change introduced a bug
Versioning, not differencing, is what allows reverting to an older version of a file. Differencing doesn’t identify duplicate lines of code or tell you when an application was deployed.
Which CodeBuild build environment compute types support Windows operating systems? (Select TWO.)
Correct Answer
build.general1.medium
Correct Answer
build.general1.large
build.general2.large
build.windows1.small
build.general1.small
Build.general1.medium and build.general1.large support Windows and Linux operating systems. Build.general1.small supports Linux only. The other compute types don’t exist.
- build.general1.medium
- build.general1.large
Build.general1.medium and build.general1.large support Windows and Linux operating systems. Build.general1.small supports Linux only. The other compute types don’t exist.
Which of the following can CodeDeploy do? (Select THREE.)
- Deploy a website to an S3 bucket.
- Deploy a Docker container to the Elastic Container Service.
- Deploy an application to an Android smartphone.
Correct Answer - Upgrade an application on an EC2 instance running Red Hat Enterprise Linux
- Deploy an application to an on-premises Windows instance.
- Deploy a Docker container to the Elastic Container Service.
- Upgrade an application on an EC2 instance running Red Hat Enterprise Linux
- Deploy an application to an on-premises Windows instance.
CodeDeploy can deploy application files to Linux or Windows EC2 instances and Docker containers to ECS. It can’t deploy an application to smartphones, and it can’t deploy files to an S3 bucket.
You want to predefine the configuration of EC2 instances that you plan to launch manually and using Auto Scaling. What resource must you use?
- Launch template
- Launch configuration
- CloudFormation template
- Instance role
- Launch template
A launch template can be used to launch instances manually and with EC2 Auto Scaling. A launch configuration can’t be used to launch instances manually. An instance role is used to grant permissions to applications running on an instance. Auto Scaling can’t provision instances using a CloudFormation template.
An Auto Scaling group has a desired capacity of 7 and a maximum size of 7. What will Auto Scaling do if someone manually terminates one of these instances?
- It will change the desired capacity to 6.
- It will terminate one instance
Correct Answer - It will launch one new instance.
- It will not launch any new instances.
- It will launch one new instance.
Auto Scaling will use self-healing to replace the failed instance to maintain the desired capacity of 7. Terminating an instance or failing to replace the failed one will result in 6 instances. Auto Scaling won’t ever change the desired capacity in response to a failed instance.
What type of AWS Systems Manager document can run Bash or PowerShell scripts on an EC2 instance?
- Command document
- Script document
- Run document
- Automation document
- Command document
A Command document can execute commands on an EC2 instance. An Automation document can perform administrative tasks on AWS, such as starting or stopping an instance. There is no such thing as a Script document or a Run document.
Which of the following OpsWorks services uses Chef recipes?
- AWS OpsWorks Layers
- AWS OpsWorks for Puppet Enterprise
Correct Answer - AWS OpsWorks Stacks
- AWS OpsWorks for Automation
- AWS OpsWorks Stacks uses Chef recipes, while AWS OpsWorks for Puppet Enterprise uses Puppet modules.
- AWS OpsWorks Stacks
There is no service called AWS OpsWorks Layers or AWS OpsWorks for Automation.
Which of the following OpsWorks Stacks layers contains at least one EC2 instance?
- Relational Database Service (RDS) layer
- Elastic Container Service (ECS) cluster layer
- Elastic Load Balancing (ELB) layer
- OpsWorks layer
- EC2 Auto Scaling layer
- OpsWorks layer
Only an OpsWorks layer contains at least one EC2 instance. There’s no such thing as an EC2 Auto Scaling layer.
Which of the following are examples of applying the principles of the least privilege or maximum security?
- Granting each AWS user their own IAM username and password
- Creating a security group rule to deny access to unused ports
- Deleting an empty S3 bucket
- Enabling S3 versioning
- Granting each AWS user their own IAM username and password
- Enabling S3 versioning
Security is about protecting the confidentiality, integrity, and availability of data. Granting each AWS user their own IAM username and password makes it possible to ensure the confidentiality of data. Enabling S3 versioning protects the integrity of data by maintaining a backup of an object. Deleting an empty S3 bucket doesn’t help with any of these. It’s not possible to create a security group rule that denies access to unused ports since security groups deny any traffic that’s not explicitly allowed.
Which of the following can help achieve cost optimization? (Select TWO.)
- Deleting unused S3 objects
- Deleting unused VPCs
- Deleting empty S3 buckets
- Deleting unused application load balancers
- Deleting unused S3 objects
- Deleting unused application load balancers
Deleting unused S3 objects and unused application load balancers can reduce costs since you’re charged for both. Deleting unused VPCs and empty S3 buckets won’t reduce costs since they don’t cost anything.
Which of the following is a key component of operational excellence?
- Adding more security personnel
- Making people work longer hours
- Automating manual processes
- Making minor improvements to bad processes
- Automating manual processes
Operational excellence is concerned with strengthening the other four pillars of reliability, performance efficiency, security, and cost optimization; automation is the key to achieving each of these. Improving bad processes and making people work longer hours run counter to achieving operational excellence. Adding more security personnel may be a good idea, but it isn’t a key component of operational excellence.
Your default VPC in the us-west-1 Region has three default subnets. How many Availability Zones are in this Region?
- 3
- 5
- 4
- 2
- 3
In a default VPC, AWS creates a subnet for each Availability Zone in the Region. Hence, if there are three subnets in the default VPC, there must be three Availability Zones.