Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Cisco logo

CiscoCertified Network Associate Automation (CCNA Automation)

Domain 4Objective 11

11. Utilize Bash Commands (file Management, Directory Navigation, and Environmental Variables) 200-901 Practice Questions (Page 1)

Part of the 4.0 Application Deployment and Security domain, which accounts for 15% of the 200-901 exam. Cisco does not publish an official question count, but from its 120-minute exam (~50–80 total, ~8–12 in this domain), expect 1–1 from this objective — we provide 29 practice questions to prepare you well beyond it. (estimate)

29questions here
6free pages
3concepts
15%of the exam

Questions 1–5

  1. 1application · medium

    A developer wants to make an API key available to all scripts run by a specific user without having to export it in every terminal session. The developer adds the line 'export API_KEY=abc123' to the user's ~/.bashrc file. What must happen for the variable to be available in a new terminal session?

    Select an answer first
  2. 2application · medium

    A script needs to read a configuration file whose path is stored in an environment variable CONFIG_PATH. The script must print an error and exit if the variable is not set. Which Bash snippet accomplishes this?

    Select an answer first
  3. 3expert · hard

    A script is designed to be run from any directory. It needs to locate a data file that is stored in a subdirectory relative to the script's own location. The script currently uses `./data/file.csv`, which fails when the script is invoked from a different directory. Which modification makes the script robust?

    Select an answer first
  4. 4expert · hard

    A script is designed to be run from any directory. It needs to locate a configuration file that is stored in a subdirectory relative to the script's own location. The script is located at /opt/scripts/deploy.sh, and the config is at /opt/scripts/config/app.conf. Which command inside the script correctly references the config file regardless of the current working directory?

    Select an answer first
  5. 5application · medium

    A script must create a directory named 'logs' inside the current directory only if it does not already exist, and then change into it. Which command sequence achieves this?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Cisco. “200-901” is a trademark of its owner, used for identification only.