Which Ansible modules can be used to change the contents of a file? (Choose three correct answers.)
Suggested Answer: A, B, C
Get Premium 701-100 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
11 comments · newest first
AL
Alline
11 months ago
"modify" isn't a module, right? Just checking!
HE
Herminia
12 months ago
I've only used lineinfile and replace, patch seems new to me.
MA
Mari
12 months ago
Wait, is "insert" even a real module?
RO
Royal
12 months ago
Totally agree with that!
FL
Fletcher
1 year ago
lineinfile, replace, and patch are the ones!
RH
Rhea
1 year ago
I don't think `insert` or `modify` are actual Ansible modules. I might be mixing them up with something else!
JE
Jeannine
1 year ago
I feel like `patch` could be a valid choice, but I can't recall if it specifically changes file contents.
HA
Haydee
1 year ago
I remember practicing with the `replace` module, so that might be one of the correct options too.
LE
Leonie
1 year ago
I think the `lineinfile` module is definitely one of the answers, but I'm not sure about the others.
WE
Wei
1 year ago
I've worked with gMSAs before, so I feel pretty confident about this. I think the correct actions are to create the gMSA on the domain controller using the New-ADServiceAccount cmdlet, and then install it on the application server using the Install-ADServiceAccount cmdlet.
AL
Alishia
1 year ago
This question seems straightforward, I think the answer is C - the programme is no longer aligned with corporate strategy.