Question 162 of 512
Software Development ConceptseasyMultiple ChoiceObjective-mapped

Quick Answer

The correct action is to change the group ownership to a group that includes 'app_user' and ensure the file has group write permission. This resolves the issue because Linux file permissions control access at three levels: user, group, and others. Here, the inventory.csv file is owned by root:root with permissions -rw-rw----, meaning only root and the root group can write, while the application runs as 'app_user'—a standard user not in the root group. By changing the group to one containing 'app_user' and setting group write permission (e.g., chmod 664), you grant the application the necessary write access without giving sudo privileges or opening the file to all users. On the CompTIA ITF+ FC0-U61 exam, this scenario tests your understanding of the principle of least privilege and how to apply chown and chmod commands to solve real-world permission errors. A common trap is assuming sudo is the only fix, but the exam emphasizes group-based solutions for multi-user applications. Memory tip: "Group the user, then grant the group write"—think of it as adding the user to the right team before giving that team the pen.

FC0-U61 Software Development Concepts Practice Question

This FC0-U61 practice question tests your understanding of software development concepts. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. 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 small business uses a single Linux server to host a custom inventory management application written in Python. The application reads from a CSV file on the server to display current stock levels. Recently, users have reported that the inventory numbers are incorrect and sometimes the application crashes with a 'Permission denied' error when trying to save updates. The server has two user accounts: 'admin' (with sudo privileges) and 'app_user' (a standard user under which the application runs). The CSV file is located at /var/data/inventory.csv and currently has permissions -rw-rw---- and owner root:root. The application code uses the open() function to read and write the file. Which of the following actions should be taken to resolve the issue?

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

Change the group ownership to a group that includes 'app_user' and ensure the file has group write permission.

The application runs as 'app_user', which needs to write to /var/data/inventory.csv. The file is owned by root:root with permissions -rw-rw----, meaning only root and the root group can write. Changing the group ownership to a group that includes 'app_user' and granting group write permission (e.g., chown root:app_group /var/data/inventory.csv; chmod 664 /var/data/inventory.csv) allows the application to write without elevating privileges or exposing the file to all users.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Modify the application to run as 'admin' using sudo.

    Why it's wrong here

    Running as admin is a security risk and not necessary.

  • Set the file permissions to 644 so all users can read the file.

    Why it's wrong here

    This only adds read access; the application needs write access.

  • Change the file owner to 'app_user' and set permissions to 755.

    Why it's wrong here

    This would work but is less secure and prevents admin from managing the file easily.

  • Change the group ownership to a group that includes 'app_user' and ensure the file has group write permission.

    Why this is correct

    This grants the application write access while maintaining security.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often assume changing file permissions to 644 (read for all) or changing the owner to the application user is sufficient, overlooking that the application needs write access and that group-based permissions provide a secure, least-privilege solution.

Detailed technical explanation

How to think about this question

The open() function in Python uses the effective user ID of the process to check file permissions via the kernel's access control mechanism. On Linux, group ownership is a common method to share file access among specific users without using ACLs. The chown command changes file group, and chmod g+w adds group write permission, which is the standard approach for multi-user server applications.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

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

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A junior network technician can log in to a core router but cannot reach the enable prompt or configuration mode. The AAA server is authenticating the login — but the authorisation policy only grants privilege level 1, not 15. Authentication (who you are) is working; authorisation (what you can do) is not.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related FC0-U61 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 FC0-U61 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 FC0-U61 question test?

Software Development Concepts — This question tests Software Development Concepts — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Change the group ownership to a group that includes 'app_user' and ensure the file has group write permission. — The application runs as 'app_user', which needs to write to /var/data/inventory.csv. The file is owned by root:root with permissions -rw-rw----, meaning only root and the root group can write. Changing the group ownership to a group that includes 'app_user' and granting group write permission (e.g., chown root:app_group /var/data/inventory.csv; chmod 664 /var/data/inventory.csv) allows the application to write without elevating privileges or exposing the file to all users.

What should I do if I get this FC0-U61 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

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

Last reviewed: Jun 11, 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 FC0-U61 practice question is part of Courseiva's free CompTIA 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 FC0-U61 exam.