Question 383 of 528
Transform data with filters and pluginseasyMultiple ChoiceObjective-mapped

Ansible Filter Plugin Deprecation: Migrate to Collections in 2.14

This EX294 practice question tests your understanding of transform data with filters and plugins. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. A key principle to apply: filter plugin naming. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A DevOps team uses Ansible to manage a large fleet of web servers. They have a custom filter plugin, `custom_encrypt`, stored in `/opt/ansible/filter_plugins/custom_encrypt.py`. This filter works correctly in Ansible 2.9. After upgrading the control node to Ansible 2.14 (ansible-core 2.14), the filter is no longer found. The `ansible.cfg` includes `filter_plugins = /opt/ansible/filter_plugins` and the file permissions are 644. The team verified the Python file is valid and contains the correct `FilterModule` class with a `filters()` method. Which of the following is the most likely cause of the issue?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "most likely"

    Why it matters: Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

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

The filter plugin name must match the module name exactly.

In ansible-core 2.14, the filter plugin module name (the filename without .py) must exactly match the filter name defined in the `filters()` method. The plugin is stored as `custom_encrypt.py`, so the filter should be registered as `custom_encrypt`. If the plugin defines a filter with a different name (e.g., `encrypt`), it will not be found. This is a stricter requirement introduced in newer versions. Option A is incorrect because `filter_plugins` can point to any directory. Option C is incorrect because the team confirmed the `filters()` method exists. Option D is incorrect because standalone filter plugins are deprecated but still functional in 2.14; deprecation alone does not cause the filter to be 'no longer found'.

Key principle: Filter plugin naming

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The `ansible.cfg` path must be under `~/.ansible/plugins/filter_plugins`.

    Why it's wrong here

    Incorrect. The `filter_plugins` path in `ansible.cfg` can be any valid directory, not necessarily under `~/.ansible/plugins/filter_plugins`.

  • The filter plugin name must match the module name exactly.

    Why this is correct

    Correct. In ansible-core 2.14, the filter plugin's filename must exactly match the filter name returned by the `filters()` method for proper discovery.

    Clue confirmation

    The clue word "most likely" in the question point toward this answer.

    Related concept

    Filter plugin naming

  • The filter plugin is missing a `filters()` method.

    Why it's wrong here

    Incorrect. The team verified that the `FilterModule` class with a `filters()` method is present.

  • The filter plugin must be part of an Ansible collection because standalone filter plugins are deprecated.

    Why it's wrong here

    Incorrect. Standalone filter plugins are deprecated but still work in ansible-core 2.14. The deprecation alone does not cause the filter to be 'no longer found'.

Common exam traps

Common exam trap: answer the scenario, not the keyword

Candidates often assume deprecation is the cause when a filter stops working, but the actual issue is often a naming mismatch or missing `__init__.py` in the plugin directory.

Detailed technical explanation

How to think about this question

Treat this as a scenario question. Identify the problem, the constraint, and the best action. Then compare each option against those facts.

KKey Concepts to Remember

  • Filter plugin naming

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Filter plugin naming

Real-world example

How this comes up in practice

A practitioner preparing for the EX294 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Filter plugin naming Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Review filter plugin naming, then practise related EX294 questions on the same topic to reinforce the concept.

Related practice questions

Related EX294 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free EX294 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this EX294 question test?

Transform data with filters and plugins — This question tests Transform data with filters and plugins — Filter plugin naming.

What is the correct answer to this question?

The correct answer is: The filter plugin name must match the module name exactly. — In ansible-core 2.14, the filter plugin module name (the filename without .py) must exactly match the filter name defined in the `filters()` method. The plugin is stored as `custom_encrypt.py`, so the filter should be registered as `custom_encrypt`. If the plugin defines a filter with a different name (e.g., `encrypt`), it will not be found. This is a stricter requirement introduced in newer versions. Option A is incorrect because `filter_plugins` can point to any directory. Option C is incorrect because the team confirmed the `filters()` method exists. Option D is incorrect because standalone filter plugins are deprecated but still functional in 2.14; deprecation alone does not cause the filter to be 'no longer found'.

What should I do if I get this EX294 question wrong?

Review filter plugin naming, then practise related EX294 questions on the same topic to reinforce the concept.

Are there clue words in this question I should notice?

Yes — watch for: "most likely". Probability qualifier — the question wants the most probable cause or outcome, not a guaranteed one. Eliminate low-probability options.

What is the key concept behind this question?

Filter plugin naming

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Keep practising

More EX294 practice questions

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.