nerdexam
Red_HatRed_Hat

EX294 · Question #16

EX294 Question #16: Real Exam Question with Answer & Explanation

Sign in or unlock EX294 to reveal the answer and full explanation for question #16. The question stem and answer options stay visible for context.

Submitted by ashley.k· Apr 18, 2026Deploy, Configure, and Manage Systems

Question

16. Update Ansible Vault Key Update the key for an existing Ansible Vault according to the following instructions: - The current vault password is insecure8sure - The new vault password is bbs2you9527 - Keep the vault encrypted with the new password Correct Answer: See the below explanation Explanation Explanation/Reference: Solution: [greg@control ansible]$ ansible-vault rekey --ask-vault-pass salaries.yml Vault password: `insecure8sure` New Vault password: `bbs2you9527` Confirm New Vault password: `bbs2you9527` Rekey successful [greg@control ansible]$ ansible-vault view salaries.yml Vault password: `bbs2you9527` haha # Verification: Decrypting and Viewing Content with the New Password (Required Step) [greg@control ansible]$ ansible-vault view --ask-vault-pass salaries.yml Vault password: `bbs2you9527` haha Create a playbook named /home/greg/ansible/cron.yml: - The playbook runs on managed nodes in the test host group - Configure a cron job that runs every 2 minutes and executes the following command: logger "EX200 in progress", running as user natasha Correct Answer: See the below explanation Explanation Explanation/Reference: Solution: [greg@control ansible]$ ansible-doc -l | grep cron [greg@control ansible]$ ansible-doc cron [greg@control ansible]$ vim /home/greg/ansible/cron.yml --- - name: cron hosts: test tasks: - name: cron job cron: name: "cron job1" minute: "*/2" job: 'logger "EX200 in progress"' user: natasha [greg@control ansible]$ ansible-navigator run cron.yml -m stdout # Validation: Verify if the task exists and is correct with the command crontab -l -u natasha. (mandatory operation) [greg@control ansible]$ ansible test -a 'crontab -l -u natasha' node2 | CHANGED | rc=0 >> #Ansible: check dirs */2 * * * * logger "EX200 in progress"

Unlock EX294 to see the answer

You've previewed enough free EX294 questions. Unlock EX294 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Ansible Vault#Playbook Creation#Cron Module#System Configuration
Full EX294 PracticeBrowse All EX294 Questions