exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 46 discussion

Actual exam question from CompTIA's XK0-005
Question #: 46
Topic #: 1
[All XK0-005 Questions]

A systems administrator is tasked with creating a cloud-based server with a public IP address.
The code is as follows:

Which of the following technologies did the systems administrator use to complete this task?

  • A. Puppet
  • B. Git
  • C. Ansible
  • D. Terraform
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
Highly Voted 2 years, 6 months ago
Selected Answer: C
The technology used by the systems administrator in this task is Ansible. The code is written in YAML and is using an Ansible module, specifically the "community.abc.ec2_instance" module, to create a cloud-based server with a public IP address. The "community.abc.ec2_instance" module is part of the Ansible community collection and provides the ability to manage Amazon Web Services (AWS) Elastic Compute Cloud (EC2) instances. The code sets various parameters, such as the instance name, the SSH key, the subnet ID, the instance type, the security group, and the image ID. The "assign_public_ip" option is set to "true", which specifies that the created instance should have a public IP address. So, in this scenario, the systems administrator used Ansible to automate the creation of a cloud-based server with a public IP address.
upvoted 7 times
...
Aj26a
Most Recent 1 year, 2 months ago
Selected Answer: C
The code snippet provided is written in YAML and is used to define the creation of a cloud-based server instance. The syntax and structure are indicative of a playbook used by a configuration management and automation tool. The correct technology that the systems administrator used to complete this task is: C. Ansible This can be determined by the format of the playbook and the use of modules such as community.aws.ec2_instance which are commonly used in Ansible for managing AWS resources. So, the correct answer is C. Ansible.
upvoted 4 times
...
Alizadeh
2 years ago
The correct answer is C. Ansible
upvoted 2 times
...
Nvoid
2 years, 8 months ago
Selected Answer: C
why can't the files just start with #!/dev/ansible ?!?!
upvoted 2 times
Nvoid
2 years, 8 months ago
or "#!/bin/ansible" ??
upvoted 1 times
...
...
MrGykz
2 years, 9 months ago
Selected Answer: C
as i use ansible , it looks like an ansible playbook
upvoted 2 times
...
bjornborg
2 years, 9 months ago
Selected Answer: C
Terraform works with JSON, not YAML ... Ansible is YAML. JSON uses { } .... YAML uses - and :
upvoted 2 times
drewbaby
1 year, 9 months ago
While Ansible uses YAML, Terraform uses HCL (Hashicorp Configuration Language), not JSON.
upvoted 1 times
...
...
TheRealManish
2 years, 9 months ago
Selected Answer: C
This looks more like ansible than terraform? I was googling ansible and the syntax looks like an ansible playbook and not a terraform config file.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...