FreeQAs
 Request Exam  Contact
  • Home
  • View All Exams
  • New QA's
  • Upload
PRACTICE EXAMS:
  • Oracle
  • Fortinet
  • Juniper
  • Microsoft
  • Cisco
  • Citrix
  • CompTIA
  • VMware
  • ISC
  • SAP
  • EMC
  • PMI
  • HP
  • Salesforce
  • Other
  • Oracle
    Oracle
  • Fortinet
    Fortinet
  • Juniper
    Juniper
  • Microsoft
    Microsoft
  • Cisco
    Cisco
  • Citrix
    Citrix
  • CompTIA
    CompTIA
  • VMware
    VMware
  • ISC
    ISC
  • SAP
    SAP
  • EMC
    EMC
  • PMI
    PMI
  • HP
    HP
  • Salesforce
    Salesforce
  1. Home
  2. RedHat Certification
  3. EX374 Exam
  4. RedHat.EX374.premium Dumps

Free RedHat EX374 Exam Dumps Questions & Answers

Exam Code/Number:EX374Join the discussion
Exam Name:Red Hat Certified Specialist in Developing Automation with Ansible Automation Platform
Certification:RedHat
Question Number:300
Publish Date:Jun 15, 2026
Rating
100%
Page: 1 / 60
Total 300 questions
Captcha image

Question 1

Validate if a string matches a specific regular expression.

Correct Answer:
- name: Validate string hosts: localhost vars:
text: "ansible_123" tasks:
- name: Check format fail:
msg: "String format invalid"
when: not text is match('^ansible_[0-9]+$')
Explanation:
The match filter evaluates whether a string adheres to a regex pattern, enforcing data consistency.

Question 2

Verify that an EE is compatible with a specific playbook.

Correct Answer:
podman run --rm -v $(pwd):/workspace -w /workspace my_execution_env:1.0 ansible-lint site.yml
Explanation:
Using ansible-lint inside the EE checks for compatibility and best practices in the playbook, ensuring reliability during execution.

Question 3

Execute a task on the control node only if a condition on web1 is met.

Correct Answer:
- name: Conditional delegation hosts: web1
tasks:
- name: Check file existence stat:
path: /tmp/flag.txt register: flag_check
- name: Notify control node
command: echo "Flag exists"
delegate_to: localhost
when: flag_check.stat.exists
Explanation:
Delegation combined with conditional logic ensures tasks are executed only under specific circumstances.

Question 4

Create a playbook to conditionally execute a task based on the presence of a file /tmp/example.

Correct Answer:
- name: Conditional execution
hosts: all
tasks:
- name: Create file if it exists
command: touch /tmp/created
when: ansible_facts['distribution'] == "Ubuntu"
Explanation:
Conditional execution using when ensures tasks run only under specific conditions, preventing unnecessary or incorrect operations.

Question 5

Use a dynamic inventory to filter hosts by a specific tag.

Correct Answer:
ansible-inventory -i aws_ec2.yml --host tag_web
Explanation:
Filtering hosts by tag ensures that only the relevant resources are targeted for playbook execution.

Add Comments

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

insert code
Type the characters from the picture.
Rating:
[×]

Download PDF File

Enter your email address to download RedHat.EX374.premium Dumps

Email:

FreeQAs

Our website provides the Largest and the most Latest vendors Certification Exam materials around the world.

Using dumps we provide to Pass the Exam, we has the Valid Dumps with passing guranteed just which you need.

  • DMCA
  • About
  • Contact Us
  • Privacy Policy
  • Terms & Conditions
©2026 FreeQAs

www.freeqas.com materials do not contain actual questions and answers from Cisco's certification exams.