DumpsFiles
 Request Exam  Contact
  • Home
  • PRACTICE EXAMS
    Oracle
    Fortinet
    Juniper
    Microsoft
    Cisco
    Citrix
    CompTIA
    VMware
    ISC
    SAP
    EMC
    PMI
    HP
    Salesforce
    Other
  • View All Exams
  • New Dumps Files
  • Upload
  • 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.dumpsfiles 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:Jul 15, 2026
Rating
100%
Page: 1 / 60
Total 300 questions
Captcha image

Question 1

Create an inventory file inventory.yml with a host web1 and a group web_servers. Assign the variable ansible_user as admin for web1.

Correct Answer:
# inventory.yml
all:
children:
web_servers:
hosts:
web1:
ansible_user: admin
Explanation:
The inventory file assigns variables like ansible_user for specific hosts or groups. This configuration defines web1 under the web_servers group with admin as the remote user.

Question 2

Convert a dictionary into a list of key-value tuples.

Correct Answer:
- name: Dictionary to list hosts: localhost
vars:
my_dict: key1: value1
key2: value2
tasks:
- name: Convert dictionary debug:
var: "{{ my_dict | dict2items }}"
Explanation:
The dict2items filter transforms dictionaries into a list of key-value pairs, facilitating iteration.

Question 3

Filter a list of dictionaries to include only those with a specific key-value pair.

Correct Answer:
- name: Filter dictionaries hosts: localhost
vars:
items:
- name: nginx
status: running
- name: mysql status: stopped
tasks:
- name: Get running services debug:
var: "{{ items | selectattr('status', 'equalto', 'running') | list }}"
Explanation:
The selectattr filter extracts dictionaries based on specific conditions, enabling precise data selection.

Question 4

Extract all unique keys from a dictionary using a filter.

Correct Answer:
- name: Extract dictionary keys hosts: localhost
vars:
my_dict: name: John age: 30 city: London
tasks:
- name: Get keys debug:
var: "{{ my_dict.keys() | list }}"
Explanation:
Extracting dictionary keys helps in scenarios requiring iteration or analysis of available attributes.

Question 5

Set up multiple files for web1 in host_vars, splitting variables into web1_network.yml and web1_access.yml.

Correct Answer:
echo "ansible_host: 192.168.1.10" > host_vars/web1_network.yml
echo "ansible_user: admin" > host_vars/web1_access.yml
Explanation:
Dividing host variables into multiple files improves modularity, making complex configurations easier to manage.

Add Comments

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

insert code
Type the characters from the picture.
Rating:

Latest Upload

HITRUST.CCSFP.v2026-05-01.q52
SAP.C_BCSBS_2502.v2026-05-01.q22
Fortinet.FCP_ZCS_AD-7.4.v2026-04-30.q31
Salesforce.Agentforce-Specialist.v2026-04-29.q163
Cisco.300-610.v2026-04-29.q123
CIPS.L5M15.v2026-04-29.q31
Lpi.101-500.v2026-04-29.q214
SAP.C_P2WFI_2023.v2026-04-28.q26
PaloAltoNetworks.NetSec-Pro.v2026-04-28.q21
Microsoft.AZ-400.v2026-04-28.q330
[×]

Download PDF File

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

Email:

DumpsFiles

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 DumpsFiles

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