Which of the following technologies is the administrator using?

A systems administrator is deploying three identical, cloud-based servers.

The administrator is using the following code to complete the task:

Which of the following technologies is the administrator using?
A . Ansible
B . Puppet
C . Chef
D . Terraform

Answer: D

Explanation:

The code snippet is written in Terraform language, which is a tool for building, changing, and versioning infrastructure as code. Terraform uses a declarative syntax to describe the desired state of the infrastructure and applies the changes accordingly. The code defines a resource of type aws_instance, which creates an AWS EC2 instance, and sets the attributes such as the AMI ID, instance type, security group IDs, and key name. The code also uses a count parameter to create three identical instances and assigns them different names using the count.index variable. This is the correct technology that the administrator is using. The other options are incorrect because they use different languages and syntaxes for infrastructure as code.

Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 19: Managing Cloud and Virtualization Technologies, page 559.

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments