EX294 Transform data with filters and plugins Practice Question
Which TWO filters are commonly used to manipulate JSON data in Ansible? (Select exactly two.)
⚠ Common exam trap
Many candidates confuse to_json and from_json, thinking both are used for manipulation, but to_json is for serialization (output) while from_json is for deserialization (input), and json_query is the actual manipulation filter for querying JSON data.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
from_json
(from_json) is correct because it converts a JSON string into an Ansible data structure (dict or list), enabling further manipulation with filters like json_query. This is essential when parsing API responses or configuration files that return JSON-formatted strings.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
flatten
Why it's wrong here
Flattens lists, not specific to JSON.
- ✓
from_json
Why this is correct
Parses a JSON string into a data structure.
- ✓
json_query
Why this is correct
Used to query JSON data with JMESPath.
- ✗
regex_replace
Why it's wrong here
Used for text substitution, not JSON.
- ✗
to_json
Why it's wrong here
Converts data to JSON string, not for manipulation.
Go deeper
Related to this question
About these practice questions
This EX294 question is part of Courseiva's 392-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This EX294 practice question is part of Courseiva's free Red Hat certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the EX294 exam.