You are planning to set up a VPC with Subnets.
The EC2 Instances hosted in the VPC need to get the time from a custom NTP server.
How can you accomplish this?
Click on the arrows to vote for the correct answer
A. B. C. D.Answer - A.
You can create new DHCP options set and then provide the NTP server name as part of the options set.
Below is from the AWS Documentation which shows the configuration possible in the DHCP options set.
All other options are invalid as the configurations mentioned are invalid.
For more information on the DHCP Options Set, please refer to the below URL.
https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_DHCP_Options.htmlTo set up a VPC with subnets and enable EC2 instances to get the time from a custom NTP server, the best approach is to create a DHCP Options set and provide the NTP server name. This option is available in answer choice A.
Here's why:
DHCP (Dynamic Host Configuration Protocol) is a network protocol used to dynamically assign IP addresses and other network configuration parameters to devices connected to a network. When an EC2 instance boots up, it sends a DHCP request to obtain an IP address and other network configuration parameters, such as the DNS server and the NTP server.
By creating a DHCP Options set, you can specify custom DHCP options that are not available by default. One of these options is the NTP server. When an EC2 instance obtains its network configuration from the DHCP server, it will also receive the NTP server information, which it can then use to synchronize its clock.
To create a DHCP Options set with the NTP server information, follow these steps:
Once you have created the DHCP Options set, you need to associate it with your VPC. To do this, follow these steps:
With the DHCP options set in place, any new EC2 instance that is launched in the VPC will automatically receive the NTP server information as part of its network configuration.
Answer choice B, defining a resource record in Route 53 and providing the NTP server name, is not the best option for this scenario because Route 53 is a DNS service, not a DHCP service. While you can use Route 53 to define a DNS record for the custom NTP server, this will not provide the necessary information to the EC2 instances to synchronize their clocks.
Answer choice C, assigning the NTP server in the subnet configuration, is not a valid option. While you can configure the subnet to use a specific NTP server, this will not automatically provide the necessary information to the EC2 instances.
Answer choice D, using an Application Load Balancer and then providing the NTP server as part of the ALB configuration, is also not a valid option for this scenario. An Application Load Balancer is used for distributing traffic across multiple targets, and it does not provide DHCP or NTP services.