Where can you obtain the public IP address of a Linux EC2 instance?
From within an EC2 instance, sending an HTTP GET request to which of the following URLs will return an instance’s public IP address?
Which of the following two components are required for configuring a VPN connection between a VPC and an on-premises network? (Choose two.)
You’re running a web service on EC2 instances in an Auto Scaling group. These instances are members of an application load balancer target group. How can you ensure an instance is replaced when the web service fails on it? (Choose two.)
You’re running a database-backed web application on six EC2 instances behind an application load balancer. The instances are evenly distributed across private subnets in three availability zones. CloudWatch shows that some instances are incurring significantly higher CPU utilization than others. Which of the following could be the reason?
An EC2 instance in a private subnet needs to download security updates from the Internet. Which of the following resources can be used to achieve this? (Choose two.)
You have several EC2 instances in a public subnet. All instances were launched using the same AMI. When you’re trying to download operating system security updates for one of the instances, the download fails. Downloading the updates on the other instances works fine. Which of the following might resolve the issue?
Which of the following VPC resources allows outbound-only access to IPv6 resources on the Internet?
Which of the following Route 53 routing policies will ensure that all users near Ohio will always get routed to the us-east-2 (Ohio) AWS region?
You need to deploy a highly available web application across two AWS regions. Connections to the web application should be evenly distributed across all EC2 instances. Which of the following should you do to achieve this? (Choose two.)
Which of the following Route 53 features ensures users get routed to the region with the best network performance?
You’re running a web service on an EC2 instance. You want Route 53 to return the public IP address of the instance even if the web service on the instance is unhealthy. How can you achieve this? (Choose two.)
You’ve launched a NAT instance with a public IP address in a public subnet. In the same VPC, you created a private subnet and modified its default route table to include a default route that points to the NAT instance as a target. However, instances in the private subnet are unable to access the Internet. All security groups and NACLs are configured correctly. Which of the following should you try to fix the problem with the least effort?
Which of the following IPv4 prefix lengths is allowed for a VPC CIDR block??
Which of the following is a valid IPv6 CIDR block for a VPC?
You’re running a distributed application on EC2 instances in a VPC with a CIDR of 172.31.0.0/24. You’re running out of private IP addresses and need to allocate more for additional instances. The instances must be able to communicate with each other using their private addresses. How can you allocate more IP addresses with the least amount of effort?
What is the limiting factor in the number of subnets you can have in a VPC?
You plan to run a fleet of EC2 instances in a VPC. You need to achieve the highest level of availability and the most efficient use of IP address space. Which of the following should you do?
Your organization is running servers on-premises using the IP address range 192.168.10.0/24. The servers have Internet access. Your organization is merging with another company that runs EC2 instances in a public subnet that uses the same IP address range. Which of the following will, with the least effort, enable the on-premises servers to communicate with the EC2 instances using standard HTTPS communication? (Choose two.)
Which of the following is true of an elastic network interface (ENI)?
Which of the following prevents EC2 from automatically assigning a public IP address to an instance? (Choose two.)
You have some EC2 instances that access Internet resources over TCP port 443. The instances are able to access some of these resources but not others. You check the route table associated with the instances’ subnets and see only the local route and a route with a destination of 0.0.0.0/0. Which of the following may resolve the problem? (Choose two.)
In a VPC, which of the following is most analogous to connecting a router to a traditional network?
Your organization has proposed migrating an on-premises application to EC2. The application requires multicast and the servers it runs on must retain the same RFC 1918 IP addresses. Which of the following recommendations should you make regarding this proposed migration?
You have two instances in different VPCs, instance A and instance B. Both instances have a public IP address. Each VPC contains only one subnet. VPC peering is not configured and there’s no VPN. Instance A sends a packet to instance B. What does instance B see as the source IP address?
Which of the following are true of NACLs and security groups? (Choose two.)
Which of the following describes an elastic VPC resource that hides the public source IP address of an instance from hosts on the Internet?
Which of the following is true regarding peering VPCs in the same region?
Which of the following is a limitation of inter-region VPC peering?
You’ve created a peering connection between two VPCs in the same region. Which of the following do you need to do to enable bidirectional IP communication between the instances in these VPCs?
Which of the following can change the public IP address of an EC2 instance?
You’re running an EC2 instance in a private subnet. The instance needs to resolve a resource record for a public domain that you have registered with a third-party domain name registrar. Which of the following will achieve this?
Which of the following speeds up transfers between S3 buckets and hosts on the Internet?
Which of the following VPC resources will incur costs only if not associated with an instance?
You need to run a Lambda application that must communicate with EC2 instances in a private subnet. Which of the following features will enable this communication?
Which of the following is true of an interface VPC endpoint? (Choose two.)
You’ve configured a VPC gateway endpoint for S3. Which of the following will allow you to restrict which EC2 instances can access S3 via the endpoint?
Which of the following must you do to use IPv6 in a new VPC?
Which VPC component controls traffic direction within a VPC?
You need to create a subnet that will hold only 10 EC2 instances, each with a single elastic network interface. What’s the smallest prefix length you can use?
How many IP addresses does AWS reserve in each VPC subnet?
You’ve created the VPC subnet 10.0.0.0/24. Which of the following addresses is not available for assignment to an EC2 instance?
You’ve launched a Windows EC2 instance and configured its security group and the subnet’s NACL to permit access from all other hosts in the subnet to the Remote Desktop Protocol (RDP) on TCP port 3389. However, when you’re attempting to RDP to the server from a Linux host in the same subnet, the connection fails. You are able to RDP from the same host to other Windows servers. Which of the following could be the reason for the failure?
You need to connect two VPCs to resources in a remote office via a site-to-site VPN. You need to ensure that resources in the VPCs can’t communicate with each other. Which of the following can help you achieve this?
Which of the following is an advantage of using Direct Connect instead of a VPN connection?
Servers in your datacenter are using a 10 Gbps Internet connection to connect to S3 using a public endpoint. Which of the following can improve the security of this configuration?
Before you can use Direct Connect to connect a VPC to your datacenter, which of the following should you do to ensure proper connectivity? (Choose two.)
Which of the following are options for connecting a site to AWS using Direct Connect? (Choose two.)
Applications running in your datacenter currently connect to AWS services using their public endpoints. You plan to use Direct Connect to access these services but don’t want to reconfigure the applications to use private AWS service endpoints. Which of the following types of virtual interfaces should you configure?
Which of the following BGP configuration tasks is required to use a Direct Connect public virtual interface?
You need a Direct Connect connection that supports up to 75 Mbps. Which of the following options is the most cost-effective?
You’re using almost the full bandwidth of your 1 Gbps hosted Direct Connect connection. Which of the following can you do to approximately double your Direct Connect bandwidth to AWS? (Choose two.)
What’s the default maximum transmission unit (MTU) of a Direct Connect virtual interface?
How many VPN connections can you create to a single VPC?
Which of the following is true regarding an IPv6 BGP peering session over a Direct Connect virtual interface?
How can you decrease the network overhead of a Direct Connect connection?
How many routes are you allowed to advertise in a BGP session over a Direct Connect connection over a private virtual interface?
What happens if you advertise more than 100 routes over a BGP session over a Direct Connect private virtual interface?
You’re unable to create a BGP session over a Direct Connect connection. Which of the following could be the reason?
How many prefixes are you allowed to advertise over a BGP session over a Direct Connect public virtual interface?
Which of the following can cause a BGP session to fail over a Direct Connect link?
From your datacenter, you have a Direct Connect connection to a VPC with six subnets. There are running EC2 instances in each subnet. AWS is advertising prefixes for all six subnets via BGP. You want to prevent only one of these prefixes from being installed in your datacenter router and without impacting existing EC2 instances. How can you accomplish this with the least effort?
You have a branch office connected to a VPC via a VPN. You also have a datacenter connected to the same VPC via Direct Connect. You need to pass traffic between the branch office and the datacenter. How can you do this with the least effort?
You have a VPN connection and a Direct Connect connection between your datacenter and a VPC. BGP sessions on both connections have the exact same prefixes. Which connection will be preferred?
In your datacenter you have 200 prefixes that need to be reachable from a VPC via a Direct Connect virtual interface. How can you ensure all prefixes are reachable? (Choose two.)
Which of the following CIDR blocks can you use to establish a BGP session over a site-to-site VPN tunnel?
What are two differences between CloudHub and Direct Connect Gateway? (Choose two.)
Which of the following BGP communities propagates public prefixes to all AWS regions?
You’re advertising the same prefix over two separate Direct Connect links. One prefix is advertised from your datacenter, and the other is advertised from your headquarters office. How can you ensure the datacenter route will take precedence for return traffic?
You have two Direct Connect connections at your datacenter and want to load balance incoming traffic for all prefixes. Which of the following BGP attributes must be identical on all prefixes you advertise?
Which of the following is true regarding using a private AS number (ASN) on a Direct Connect public virtual interface?
What are valid values for a VLAN? (Choose two.)
You have an IPv4 BGP session established over a Direct Connect virtual interface. How can you advertise IPv6 prefixes over this connection with the least effort?
Which of the following is required to associate a transit gateway with a Direct Connect gateway?
Which of the following CloudWatch metrics indicates the status of the egress fiber from the AWS side of a 10 Gbps Direct Connect connection?
How many transit virtual interfaces can you create on a Direct Connect link aggregation group (LAG) composed of two 10 Gbps links?
What’s the maximum number of Direct Connect dedicated connections you can have per link aggregation group?
You launch an instance into a subnet that has an IPv6 CIDR assigned. The application running on the instance requires a routable IPv6 address. The instance has one elastic network interface and doesn’t have an IPv6 address assigned. What should you do to enable IPv6 connectivity for the application with the least effort?
You have an EC2 instance with a global unicast IPv6 address assigned. How can you ensure that hosts on the Internet are able to resolve the IPv6 address of the instance?
The address fe80:db8:1234:1a00::1/64 is an example of which of the following?
Which of the following addresses is released when an EC2 instance is stopped?
Your EC2 instance in the us-east-1 region is assigned the public IP address 203.0.113.25. Which of the following is its external DNS hostname?
You created a default VPC and made no other changes to it. Which of the following is true of an EC2 instance launched into this default VPC? (Choose two.)
Your EC2 instance in the us-east-1 region has a primary private IP address of 10.9.13.37/20 and a secondary private IP address of 10.8.13.37/20. Which of the following is the instance’s private hostname?
Which of the following VPC attributes determines whether an instance with a public IP address receives a public DNS hostname?
Which of the following VPC attributes determines whether an instance can resolve the Amazon-provided private hostname of another instance in the same VPC?
A subnet has the CIDR 2001:db8:1234:1a00::/64. Which of the following addresses can you not assign to an instance?
Using a virtual private gateway, you’ve created a site-to-site VPN connection between a VPC subnet and a datacenter. When creating routes to datacenter subnets, which of the following should you specify as the target?
When attempting to RDP into a Windows instance from the Internet, you get the error “Your credentials did not work.” Which of the following could be the reason?
You have a custom-built Windows instance that’s managed using Simple Systems Manager (SSM). You’ve attempted to connect to the instance via RDP from the Internet, but it doesn’t respond. You’ve verified that both your NACL and the instance’s security group allow RDP traffic. You can also use SSM to install official patches on the instance. Which of the following steps might resolve the issue with the least effort?
You’re unable to RDP to a Windows EC2 instance after a reboot. Prior to this you were able to RDP into it via the Internet. Which of the following actions can help you determine the cause?
Which of the following changes to a Windows Server 2019 instance can result in a loss of all network connectivity for several hours after rebooting it?
Which of the following IP addresses does AWS use for Windows activation?
An EC2 instance in your VPC is unable to connect to a Relational Database Service (RDS) instance hosting a database. Which of the following should you try to resolve the problem?
You’re connected to an EC2 instance via SSH when you’re abruptly disconnected. You attempt to reconnect to the instance’s elastic IP address but are unsuccessful. Which of the following could explain this?
When attempting to SSH to an EC2 instance, you get the error that the user key is not recognized. You try a different SSH client and get a “permission denied” error. Which of the following could be the reason?
When attempting to SSH to an EC2 instance from your workstation, you get the error “Permissions 0777 for ‘.ssh/private_key.pem’ are too open.” Which of the following actions can correct this error?
You intermittently get disconnected from an SSH session to an EC2 instance. You’re able to immediately reconnect. Which of the following may prevent the intermittent disconnection?
You need to be able to ping an EC2 instance’s elastic IP address. Which of the following should you add to the inbound security group rules?
You attempt to ping an EC2 instance’s public IPv4 address but get no response. Which of the following could be the reason?
Which of the following can help an instance automatically recover from a loss of network connectivity caused by a problem with the underlying host?
What’s the maximum number of instance recovery attempts allowed per day?
Which of the following can tell you whether a security group or NACL has blocked traffic from a particular IP address?
You can configure VPC flow logging to limit the logging of traffic flows to which of the following? (Choose two.)
Which of the following is not included in the 5-tuple of a VPC Flow Logs data?
You’ve configured VPC flow logging for a VPC that has intermittent bursts of heavy traffic. The logs are stored in an S3 bucket. An hour later, you view the logs and notice that although there are several flow records containing a 5-tuple, some records appear without the 5-tuple and have “NODATA” at the end. What can you conclude from this?
You want to use VPC flow logging to identify any traffic that’s blocked by a security group. How can you accomplish this in the most cost-effective way?
When trying to add an alternative domain name to a CloudFront distribution, you get an “InvalidViewerCertificateException” error. Which of the following could be the reason?
You have a CloudFront distribution for the alternate domain name www.example.com. You try to add another alternate domain name for www1.example.com and receive an “InvalidViewerCertificateException” error. How can you enable the CloudFront distribution for both domains?
You’re currently running a web application on a set of EC2 instances behind an elastic load balancer (ELB). You’re storing static web assets for the application in an S3 bucket. Which of the following is the most scalable approach for serving these web assets using a CloudFront distribution?
You’ve placed video and media player files in an S3 bucket and created a streaming RTMP CloudFront distribution using the bucket as the origin. Users are unable to play the videos. How can you resolve this?
You’ve created an RTMP distribution for streaming video. Most users are able to watch the videos, but users at one location aren’t. Which of the following could be the problem?
Some users are unable to access an RTMP streaming distribution due to TCP port 1935 being blocked. Only TCP ports 80 and 443 are allowed. Which of the following must occur in order for the users to access the distribution?
Which of the following is a valid URL for an RTMP distribution?
When does a CloudFront edge location first fetch a file from an origin?
You’ve created a CloudFront distribution using an alternate domain name example.com. In the Route 53 hosted zone for example.com, you’ve created a CNAME record for example.com that points to the distribution’s domain name as an alias. You discover that you’re being charged for queries of this record. How can you reduce your costs while continuing to use the example.com domain name for the distribution?
You’ve created a CloudFront distribution with the alternate domain name example.com You’ve created an A record pointing to the distribution as an alias target. IPv4 users are able to access the distribution using the alternate domain name, but IPv6 users aren’t. They can, however, access it using the distribution domain name. How can you resolve this?
Which of the following is not a valid alternate domain name for a CloudFront distribution?
You’re storing an object named production/index.html in a bucket named myawsbucket. You want to make this object accessible via a CloudFront distribution using just the alternate domain name example.com/index.html. Which of the following steps is required to accomplish this?
Which of the following is a network protocol that CloudFront supports?
How can you enable Internet users to access a CloudFront distribution without allowing public access to its origin S3 bucket?
You’re hosting audio files and a custom player on a set of EC2 instances behind an elastic load balancer (ELB) in a public subnet. You want to use a CloudFront distribution to host this content while preventing users from accessing the audio files or player from the EC2 instances directly. How can you accomplish this with the least effort? (Choose two.)
Which of the following can be a custom CloudFront origin??
You’ve created a target group that you plan to use with a network load balancer (NLB). The target group contains several EC2 instances, all in the same subnet, and all of the instances are configured to listen for HTTPS traffic on TCP port 443. One of the EC2 instance targets isn’t entering the InService state. You check and find that the instance is failing its health check. All targets are configured with the same health check settings. From other instances in the same subnet you’re able to access TCP port 443 on the problem instance. Which of the following could be the reason the instance is failing its health check?
You’ve created a network load balancer (NLB) and have added instances to a target group. Some of the instances are in the same VPC as the NLB, while others are in a peered VPC. Requests aren’t getting routed to instances in the peered VPC. Why?
Which of the following IP addresses can you not specify in a network load balancer target group?
Which of the following elastic load balancers supports the Lambda target type?
You are running a web application on a set of EC2 instances. The application requires that each incoming TCP connection has the source IP address of the client. Which type of load balancing should you use?
When browsing to the public URL of an application load balancer, users receive a “Bad Gateway” error. The target group contains only EC2 instances. What could this indicate?
When browsing to the public URL of an application load balancer, users receive a “Gateway Timeout” error. The target group contains only EC2 instances. What could this indicate?
Which of the following CloudFront metrics tracks the number of server errors generated by an application load balancer?
Where can an application load balancer store logs containing client IP address, latencies, and server responses?