Leaving presentation mode.

CLD120 Module 7 Knowledge Check

Creating a Networking Environment

Keyboard Shortcuts

Question 1

Which definition describes a virtual private cloud (VPC)?

A VPC is a logically isolated section of the AWS Cloud where you can launch AWS resources in a virtual network that you define. You have complete control over your virtual networking environment.

Question 2

Which component does not have direct access to the internet?

A private subnet is not connected to the internet.

Question 3

A company's virtual private cloud (VPC) has the Classless Inter-Domain Routing (CIDR) block 172.16.0.0/21 (2048 addresses). It has two subnets (A and B). Each subnet must support 100 usable addresses now, but this number is expected to rise to at most 254 usable addresses soon. Which subnet addressing scheme meets the requirements and follows AWS best practices?

These CIDR blocks are the next larger size from /24. AWS reserves five addresses per subnet, so each CIDR block has 507 usable addresses. This scheme provides room for the growth requirement.

Question 4

Several EC2 instances launch in a virtual private cloud (VPC) that has internet access. These instances should not be accessible from the internet, but they must be able to download updates from the internet. How should the instances launch?

A NAT gateway provides the EC2 instances with internet-routable source addresses for sessions that EC2 instances initiate. However, it does not enable internet access to the instances.

Question 5

A group of consultants requires access to an EC2 instance from the internet for 3 consecutive days each week. The instance is shut down the rest of the week. The virtual private cloud (VPC) has internet access. How should you assign one IPv4 address to the instance to give the consultants access?

Using an Elastic IP address helps to ensure that the instance has the same internet address.

Question 6

An application uses a bastion host to allow access to EC2 instances in a private subnet within a virtual private cloud (VPC). What security group configurations would allow SSH access from the source IP to the EC2 instances? (Select TWO.)

You must modify the security group of each instance to allow traffic. Following the principle of least privilege, the security groups should limit traffic to only those systems that need access. You can allow traffic to IP addresses and other security groups.

Question 7

A solution deployed in a virtual private cloud (VPC) needs a subnet with limited access to specific internet addresses. How can an architect configure the network to limit traffic from and to the EC2 instances in the subnet using a network access control list (ACL)?

Add network traffic rules specific to an individual subnet in a custom network ACL for that subnet. A custom network ACL automatically includes a rule to deny all other traffic (this rule is called implicit deny).

Question 8

Which actions are best practices for designing a virtual private cloud (VPC)? (Select THREE.)

Running out of addresses might require complicated network re-addressing. Adding more CIDR blocks to a VPC is possible, but is not a solution for inadequate planning. Distributing subnets and hosts across Availability Zones reduces the chance of correlated failures.

Question 9

Where can you have VPC flow logs delivered? (Select THREE.)

VPC Flow Logs delivers network traffic to Amazon CloudWatch logs, Amazon S3 buckets, or Amazon Kinesis Data Firehose streams. To view logs, users can use the AWS Management Console for Amazon CloudWatch logs and Amazon Athena for Amazon S3. Amazon Kinesis Data Firehose streams can deliver flow logs to Amazon OpenSearch Service.

Question 10

An EC2 instance must connect to an Amazon S3 bucket. What component provides this connectivity with no additional charge and no throughput packet limits?

Use a gateway VPC endpoint to connect an EC2 instance to an Amazon S3 bucket. There is no additional charge for using gateway endpoints. There are no throughput packet limits.

Created 27 February 2025 by Dennis Kibbe. Last modified $Date: 2025/02/27 11:00:11 $ by $Author: dnk $.