Skip to content

Prepaway Exam Dumps

Best High Pass-Rate Exam Dumps

  • HOME
  • ALL EXAMS
  • Cisco
  • SAP
  • Huawei
  • Avaya
  • IBM
  • Amazon
  • Contact
  • HOME
  • ALL EXAMS
  • Cisco
  • SAP
  • Huawei
  • Avaya
  • IBM
  • Amazon
  • Contact

[Dec 25, 2022] EX407 Exam Dumps, EX407 Practice Test Questions [Q10-Q31]

  1.   »  
  2. [Dec 25, 2022] EX407 Exam Dumps, EX407 Practice Test Questions [Q10-Q31]

[Dec 25, 2022] EX407 Exam Dumps, EX407 Practice Test Questions [Q10-Q31]

December 25, 2022 adminEX407, RedHatEX407 latest learning materials, EX407 latest test format, EX407 latest test registration, EX407 new exam guide materials, EX407 reliable test camp free, EX407 valid exam sims
Rate this post

[Dec 25, 2022] EX407 Exam Dumps, EX407 Practice Test Questions

Free EX407 Study Guides Exam Questions and Answer

Q10. Create an empty encrypted file called myvault.yml in /home/sandy/ansible and set the password to notsafepw. Rekey the password to iwejfj2221.

ansible-vault create myvault.yml
Create new password: notsafepw Confirm password: notsafepw ansible-vault rekey myvault.yml
Current password: notsafepw New password: iwejfj2221 Confirm password: iwejfj2221

Q11. ===================================================================================
control.realmX.example.com _ workstation.lab.example.com
node1.realmX.example.com _ servera.lab.example.com
node2.realmX.example.com _ serverb.lab.example.com
node3.realmX.example.com _ serverc.lab.example.com
node4.realmX.example.com _ serverd.lab.example.com
node5.realmX.example.com
– username:root, password:redhat
– username:admin, password:redhat
note1. don’t change ‘root’ or ‘admin’ password.
note2. no need to create ssh-keygen for access, its pre-defined
note3. SELinux is in enforcing mode and firewalld is disabled/stop on whole managed hosts.
Create a playbook called balance.yml as follows:
* The playbook contains a play that runs on hosts in balancers host group and uses
the balancer role.
–> This role configures a service to loadbalance webserver requests between hosts
in the webservers host group.curl
–> When implemented, browsing to hosts in the balancers host group (for example
http://node5.example.com) should produce the following output:
Welcome to node3.example.com on 192.168.10.z
–> Reloading the browser should return output from the alternate web server:
Welcome to node4.example.com on 192.168.10.a
* The playbook contains a play that runs on hosts in webservers host group and uses
the phphello role.
–> When implemented, browsing to hosts in the webservers host group with the URL /
hello.php should produce the following output:
Hello PHP World from FQDN
–> where FQDN is the fully qualified domain name of the host. For example,
browsing to http://node3.example.com/hello.php, should produce the following output:
Hello PHP World from node3.example.com
* Similarly, browsing to http://node4.example.com/hello.php, should produce the
following output:
Hello PHP World from node4.example.com

Solution as:
# pwd
/home/admin/ansible/
# vim balancer.yml
—
– name: Including phphello role
hosts: webservers
roles:
– ./roles/phphello
– name: Including balancer role
hosts: balancer
roles:
– ./roles/balancer
:wq!
# ansible-playbook balancer.yml –syntax-check
# ansible-playbook balancer.yml

Q12. Examine the following inventory excerpt file named /home/user/ansible/inventory. [dbservers] db1.example.com Which of the following files does Ansible check for variables related to that inventory? (Choose all that apply.)

 
 
 
 
Ansible will check in /home/user/ansible/host_vars to find files named after hosts defined in the inventory. Ansible will check this file because there is a group defined in the inventory as dbservers.

Q13. You are taking over for someone while they are away on leave. You need to run a playbook against over
600 servers. When you run the playbook you notice that only 10 servers are worked on at any one time.
How would you fix this so that you can have 50 servers worked on at the same time?

 
 
 
 
The forks parameter adjust the parallelism of the ansible commands.

Q14. State whether the following statement is true or false.
There is a 10 user trial available.

 
 

Q15. Which of the following are valid flags for the ansible-playbook command? (Choose all that apply.)

 
 
 
 
The –skip-tags flag allows specification of tags to identify specific plays for Ansible to skip.

Q16. Which keywords will cause a role to be applied in a playbook? (Choose all that apply.)

 
 
 
 
The import_role keyword dynamically includes a role within a play. The role keyword statically includes a role within a play.

Q17. Which variable name is invalid?

 
 
 
 

Q18. Using the Simulation Program, perform the following tasks:
Ad-Hoc Ansible Commands (Number Two) Task:
1. Use the ad-hoc command to make sure php is installed.
2. Use the ad-hoc command to make sure that php is installed and is the latest version.
3. Use the ad-hoc command to make sure that httpd is installed.
4. Use the ad-hoc command to remove httpd from the servers.

See the Explanation for complete Solution below.
Explanation
1. ansible all -b -m yum -a ‘name=php state=present’
2. ansible all -b -m yum -a ‘name=php state=latest’
3. ansible all -b -m yum -a ‘name=httpd state=latest’
4. ansible all -b -m yum -a ‘name=httpd state=absent’

Q19. Besides galaxy.ansible.com, where else can ansible-galaxy pull roles from?

 
 
 
 
ansible-galaxy may be used to pull roles from a github repo.

Q20. ===================================================================================
control.realmX.example.com _ workstation.lab.example.com
node1.realmX.example.com _ servera.lab.example.com
node2.realmX.example.com _ serverb.lab.example.com
node3.realmX.example.com _ serverc.lab.example.com
node4.realmX.example.com _ serverd.lab.example.com
node5.realmX.example.com
– username:root, password:redhat
– username:admin, password:redhat
note1. don’t change ‘root’ or ‘admin’ password.
note2. no need to create ssh-keygen for access, its pre-defined
note3. SELinux is in enforcing mode and firewalld is disabled/stop on whole managed hosts.
Rekey an existing Ansible vault as follows:
———————————————–
* Download Ansible vault from http:// classroom.example.com /secret.yml to /home/
admin/ansible/
* The current vault password is curabete
* The new vault password is newvare
* The vault remains in an encrypted state with the new password

Solution as:
# pwd
/home/admin/ansible/
# wget http://classroom.example.com/secret.yml
# chmod 0600 newpassword.txt
# ansible-vault rekey vault.yml –new-vault-password-file=newpassword.txt

Q21. Create a file called requirements.yml in /home/sandy/ansible/roles a file called role.yml in
/home/sandy/ansible/. The haproxy-role should be used on the proxy host. And when you curl
http://node3.example.com it should display “Welcome to node4.example.com” and when you curl again
“Welcome to node5.example.com” The php-role should be used on the prod host.

See the Explanation for complete Solution below.
Explanation
Solution as:

Check the proxy host by curl http://node3.example.com

Q22. Create a playbook /home/bob/ansible/timesync.yml that runs on hosts in the webservers host group and does the following:
* Uses the timesync RHEL system role.
* Sets the ntp server to 0.uk.pool.ntp.org
* Sets the timezone to UTC

Solution as:

Q23. Which command will use servers in a local inventory called invent.local?

 
 
 
 

Q24. ===================================================================================
control.realmX.example.com _ workstation.lab.example.com
node1.realmX.example.com _ servera.lab.example.com
node2.realmX.example.com _ serverb.lab.example.com
node3.realmX.example.com _ serverc.lab.example.com
node4.realmX.example.com _ serverd.lab.example.com
node5.realmX.example.com
– username:root, password:redhat
– username:admin, password:redhat
note1. don’t change ‘root’ or ‘admin’ password.
note2. no need to create ssh-keygen for access, its pre-defined
note3. SELinux is in enforcing mode and firewalld is disabled/stop on whole managed hosts.
Create a playbook called web.yml as follows:
* The playbook runs on managed nodes in the “dev” host group
* Create the directory /webdev with the following requirements:
–> membership in the apache group
–> regular permissions: owner=r+w+execute, group=r+w+execute, other=r+execute
s.p=set group-id
* Symbolically link /var/www/html/webdev to /webdev
* Create the file /webdev/index.html with a single line of text that reads:
“Development”
–> it should be available on http://servera.lab.example.com/webdev/index.html

Solution as:
# pwd
/home/admin/ansible/
# vim web.yml
—
– name:
hosts: dev
tasks:
– name: create group
yum:
name: httpd
state: latest
– name: create group
group:
name: apache
state: present
– name: creating directiory
file:
path: /webdev
state: directory
mode: ‘2775’
group: apache
– sefcontext:
target: ‘/webdev/index.html’
setype: httpd_sys_content_t
state: present
– name: Apply new SELinux file context to filesystem
command: restorecon -irv
– name: creating symbolic link
file:
src: /webdev
dest: /var/www/html/webdev
state: link
force: yes
– name: creating file
file:
path: /webdev/index.html
sate: touch
– name: Adding content to index.html file
copy:
dest: /webdev/index.html
content: “Development”
– name: add service to the firewall
firewalld:
service: http
permanent: yes
state: enabled
immediate: yes
– name: active http service
service:
name: httpd
state: restarted
enabled: yes
:wq
# ansible-playbook web.yml –syntax-check
# ansible-playbook web.yml

Q25. Create a playbook /home/bob/ansible/timesync.yml that runs on hosts in the webservers host group and does the following:
* Uses the timesync RHEL system role.
* Sets the ntp server to 0.uk.pool.ntp.org
* Sets the timezone to UTC

See the Explanation for complete Solution below.
Explanation
Solution as:

Q26. Create a playbook /home/bob/ansible/timesync.yml that runs on hosts in the webservers host group and does the following:
* Uses the timesync RHEL system role.
* Sets the ntp server to 0.uk.pool.ntp.org
* Sets the timezone to UTC

See the Explanation for complete Solution below.
Explanation
Solution as:

Q27. Which of these are valid as the first thing in a playbook? (Choose all that apply.)

 
 
 
 

Q28. Which keywords are valid? (Choose all that apply.)

 
 
 
 
Always is a valid keyword that is part of the block group error handling set of keywords.
Block is a valid keyword that is part of the block group error handling set of keywords.

Q29. CORRECT TEXT
Using the Simulation Program, perform the following tasks:
Ad-Hoc Ansible Commands (Number Two) Task:
1. Use the ad-hoc command to make sure php is installed.
2. Use the ad-hoc command to make sure that php is installed and is the latest version.
3. Use the ad-hoc command to make sure that httpd is installed.
4. Use the ad-hoc command to remove httpd from the servers.

See explanation below.
Explanation:
1. ansible all -b -m yum -a ‘name=php state=present’
2. ansible all -b -m yum -a ‘name=php state=latest’
3. ansible all -b -m yum -a ‘name=httpd state=latest’
4. ansible all -b -m yum -a ‘name=httpd state=absent’

Q30. Why is it important to create a namespace for role variables?

 
 
 
 
Because roles share variables and because plays can have variables defined outside of the role, namespacing role variables ensures that you are getting the variable you expect to get.

Q31. Create the users in the file usersjist.yml file provided. Do this in a playbook called users.yml located at
/home/sandy/ansible. The passwords for these users should be set using the lock.yml file from TASK7. When running the playbook, the lock.yml file should be unlocked with secret.txt file from TASK 7.
All users with the job of ‘developer’ should be created on the dev hosts, add them to the group devops, their password should be set using the pw_dev variable. Likewise create users with the job of ‘manager’ on the proxy host and add the users to the group ‘managers’, their password should be set using the pw_mgr variable.

See the Explanation for complete Solution below.
Explanation
ansible-playbook users.yml -vault-password-file=secret.txt

Loading ... Loading …

Loading

EX407 Exam Dumps, EX407 Practice Test Questions: https://www.prepawayexam.com/RedHat/braindumps.EX407.ete.file.html

         

Related Links: www.stes.tyc.edu.tw www.stes.tyc.edu.tw www.stes.tyc.edu.tw www.stes.tyc.edu.tw www.stes.tyc.edu.tw www.stes.tyc.edu.tw

Read More

Post navigation

Previous: Get CMA-Financial-Planning-Performance-and-Analytics Actual Free Exam Q&As to Prepare for Your IMA Certification [Q17-Q36]
Next: Latest FSL-201 Pass Guaranteed Exam Dumps with Accurate & Updated Questions [Q23-Q47]

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Enter the text from the image below
 

EX407 Practice Tests

  • [Dec 25, 2022] EX407 Exam Dumps, EX407 Practice Test Questions [Q10-Q31]

Related Certifications

  • EX407 (1)
  • EX294 (2)
  • EX200 (1)

Recent Posts

  • UPDATED [Oct 01, 2026] Pass Splunk Certified Cybersecurity Defense Analyst Exam with Latest Questions [Q46-Q60]
  • Pass Palo Alto Networks SecOps-Generalist Actual Free Exam Q&As Updated Dump Oct 01, 2026 [Q87-Q104]
  • [2026] Earn Quick And Easy Success With ESDP_2025 Dumps [Q55-Q76]
  • The Best AB-730 Exam Study Material and Preparation Test Question Dumps [Q29-Q49]
  • [Sep-2026] Latest Fitness NCSF-CPT Certification Practice Test Questions [Q14-Q34]

Archives

  • October 2026
  • September 2026
  • August 2026
  • July 2026
  • May 2026
  • April 2026
  • March 2026
  • February 2026
  • January 2026
  • December 2025
  • November 2025
  • October 2025
  • September 2025
  • August 2025
  • July 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022

Categories

  • A10 Networks
  • AACE International
  • AAPC
  • ACAMS
  • Adobe
  • AHIMA
  • AICPA
  • Alibaba Cloud
  • Amazon
  • AMP
  • API
  • APICS
  • APM
  • APMG-International
  • Appian
  • Apple
  • ASIS
  • ASQ
  • ATLASSIAN
  • Automation Anywhere
  • Avaya
  • AVIXA
  • Axis
  • BCS
  • BICSI
  • Blue Prism
  • Broadcom
  • CAA Global
  • CFA
  • CheckPoint
  • CII
  • CIMA
  • CIPS
  • Cisco
  • Citrix
  • CIW
  • Cloud Security Alliance
  • Cloudera
  • CompTIA
  • Construction Specifications Institute
  • Copado
  • CrowdStrike
  • CSI
  • CWNP
  • CyberArk
  • DAMA
  • Databricks
  • EC-COUNCIL
  • ECCouncil
  • EMC
  • EPIC
  • Esri
  • EXIN
  • F5
  • Facebook
  • Fitness
  • Fortinet
  • GAQM
  • GARP
  • Genesys
  • GIAC
  • Google
  • Guidewire
  • H3C
  • Hitachi
  • HP
  • HRCI
  • Huawei
  • IAPP
  • IBM
  • IFSE Institute
  • IIA
  • IMA
  • Infor
  • IOFM
  • ISACA
  • ISC
  • ISQI
  • ISTQB
  • ITIL
  • Juniper
  • Linux Foundation
  • Lpi
  • Medical Tests
  • Microsoft
  • MongoDB
  • MSP-Foundation
  • NACE
  • NASM
  • National Payroll Institute
  • NCLEX
  • Network Appliance
  • Nokia
  • Nursing
  • Nutanix
  • NVIDIA
  • Okta
  • OMSB
  • Oracle
  • Palo Alto Networks
  • PCI
  • PECB
  • Pegasystems
  • PMI
  • PRINCE2
  • Proofpoint
  • Psychiatric Rehabilitation Association
  • Python Institute
  • Qlik
  • RCEM
  • RedHat
  • RUCKUS
  • Salesforce
  • SAP
  • SASInstitute
  • Scrum
  • ServiceNow
  • SHRM
  • Sitecore
  • Slack
  • Snowflake
  • SolarWinds
  • Splunk
  • Supermicro
  • Symantec
  • Tableau
  • The Institutes
  • The Open Group
  • UiPath
  • Uncategorized
  • USGBC
  • Veeam
  • VMware
  • WGU

Recent Comments

    Copyright © 2022 Prepaway Exam Dumps. DMCA Privacy Policy Contact US