Final 2 Flashcards
(24 cards)
True or False: The private IP address of an EC2 instance can change over instance restarts.
False
You are currently running a VPC with CIDR 10.0.0.0/16. How many /24 subnets can be created from this VPC CIDR range?
a. 386
b. 256
c. 24
d. 251
b. 256
Elastic IP addresses are free with a condition. Which one of the following is not true?
a. When you create an elastic IP address and attach it to a server which is in the running state, no charges will apply
b. When you create an elastic IP address and do not attach it to any server, then it will be charged on an hourly basis
c. When you create an elastic IP address and attach it to a stopped instance, you will still be charged on an hourly basis
d. None of the above
d. None of the above
When you create a new security group in a VPC, what inbound rule is allowed by default?
a. No inbound rule is enabled by default
b. SSH traffic at port 22
c. Traffic at port 22, 80, 443
d. HTTP traffic at post 8080
a. No inbound rule is enabled by default
What is the command to destroy an existing infrastructure that was previously created by Terraform?
a. terraform destroy
b. terraform delete
c. terraform remove
d. terraform delete -R
a. terraform destroy
What is the use of @AutoWired in Spring Boot?
a. Used for creating RESTful web services
b. Used for dependency injection in Spring Boot
c. Used for specifying the primary key for an entity class
d. Used for declaring a class with business logic
b. Used for dependency injection in Spring Boot
What is the difference between EBS volumes and Instance Store volumes in AWS?
a. EBS volumes are billed based on the amount of data transferred, while Instance Store volumes are billed based on their size
b. EBS volumes can only be attached to a single instance, while Instance Store volumes can be attached to multiple instances simultaneously
c. EBS volumes have higher throughput than Instance Store volumes
d. EBS volumes are persistent, while Instance Store volumes are temporary
d. EBS volumes are persistent, while Instance Store volumes are temporary
What protocols are not supported by Amazon Application Load Balancers to serve traffic to you Kubernetes cluster?
a. HTTP
b. HTTPS
c. TCP
d. None of the above
c. TCP
What is the command to create infrastructure in AWS Cloud using terraform?
a. terraform start
b. terraform create
c. terraform apply
d. terraform init
c. terraform apply
You are building a web application where performance matters and you want to be able to handle millions of requests with very low latency. What kind of load balancer will you use?
a. Application Load Balancer
b. Network Load Balancer
c. Gateway Load Balancer
d. Performance Load Balancer
b. Network Load Balancer
What is the minimum size of bootable volume for a Windows-based EC2 instance?
a. 8 GB
b. 16 GB
c. 30 GB
d. 60 GB
c. 30 GB
A tech company is currently using Auto Scaling for their web application. A new AMI now needs to be used for launching more EC2 instances. What should you do to ensure that the Auto Scaling group launches new instances with the new AMI?
a. Updated auto scaling group to use new AMI
b. Create a new target group that uses new AMI
c. Create a new launch configuration that uses new AMI
d. None of the above
c. Create a new launch configuration that uses new AMI
What happens to an EBS volume when an EC2 instance is terminated?
a. The EBS volume is deleted automatically
b. The EBS volume is detached from the instance but remains available for future use
c. The EBS volume is attached to a different instance automatically
d. The EBS volume becomes inaccessible and cannot be used again
b. The EBS volume is detached from the instance but remains available for future use
Which option will you use to connect to a Windows-based EC2 instance?
a. SSH at port 22 using .pem file
b. SSH at port 22 using .ppk file
c. RDP with .ppk file
d. RDP with username and password
d. RDP with username and password
What protocol(s) are supported by Network Load Balancers to server traffic to your Kubernetes cluster?
a. HTTP
b. HTTPS
c. TCP
d. All of the above
c. TCP
What are the 2 prerequisites that must be installed/configured on your system first to be able to use the Terraform command-line interface in AWS?
- Terraform CLI 1.2.1+ needs to be installed
- AWS CLI needs to be installed
When using a security group, what is true about configuring the inbound/outbound rule?
a. You can add both Allow and Deny rules
b. You can add only Allow rules
c. You can add only Deny rules
d. All of the above
b. You can add only Allow rules
True or False: You can attach more than one route table to a subnet.
False
Which of the following is true about EBS volumes in AWS?
a. EBS volumes can be attached to multiple instances simultaneously for data sharing
b. EBS volumes can only be attached to one instance at a time
c. EBS volumes cannot be attached to an instance
d. EBS volumes are not available in AWS
b. EBS volumes can only be attached to one instance at a time
True or False: You can attach multiple elastic network interfaces to the same EC2 instance.
True
What is the minimum size of bootable volume of a Linux-based EC2 instance?
a. 8 GB
b. 16 GB
c. 30 GB
d. 60 GB
a. 8 GB
Which one is NOT correct regarding configuring a route table?
a. You can attach multiple route tables to a subnet
b. A route table can be associated with multiple subnets
c. A subnet can only be associated with one route table at a time
d. None of the above
a. You can attach multiple route tables to a subnet
What is the command to initialize a new Terraform project?
a. terraform start
b. terraform create
c. terraform setup
d. terraform init
d. terraform init
You are currently running a VPC with CIDR 10.0.1.0/24. You are almost running out of the IPs from this CIDR range. You are looking to add a new subnet with a non-overlapping CIDR block to expand your IP space. Which of the following CIDR blocks should you select?
a. 10.0.2.0/20
b. 10.0.2.0/24
c. 10.0.2.0/30
d. 10.0.2.0/32
a. 10.0.2.0/20