COA COA OpenStack CLI & Dashboard Operations 1 — Questions and Answers
Question 1: Which command displays all available OpenStack unified CLI commands and their descriptions?
- openstack help (Correct answer)
- openstack list
- openstack commands
- openstack --version
Correct answer: openstack help
`openstack help` lists all available commands and their descriptions in the unified OpenStack client.
Question 2: How do you authenticate the OpenStack CLI by loading environment variables from a credentials file?
- openstack auth load <file>
- source openrc.sh (Correct answer)
- openstack env import <file>
- export OS_CONFIG=<file>
Correct answer: source openrc.sh
Sourcing an OpenRC file exports the required OS_* environment variables such as OS_USERNAME and OS_AUTH_URL into the current shell session.
Question 3: Which Horizon dashboard panel provides administrators with visibility and control over all projects' resources?
- Project panel
- Admin panel (Correct answer)
- Identity panel
- Network panel
Correct answer: Admin panel
The Horizon Admin panel provides privileged management views for all projects, users, and infrastructure resources across the entire cloud.
Question 4: What does the `--format json` flag do when appended to an OpenStack CLI command?
- Sends output to a JSON REST API endpoint
- Returns command output in JSON format suitable for scripting (Correct answer)
- Validates JSON configuration input files
- Enables JSON-formatted log output
Correct answer: Returns command output in JSON format suitable for scripting
The `--format json` flag outputs results as JSON, enabling easy parsing and processing of OpenStack CLI output in automation scripts.
Question 5: Which CLI command creates a new OpenStack project in Keystone?
- openstack project add <name>
- openstack project create <name> (Correct answer)
- keystone project-create <name>
- openstack tenant create <name>
Correct answer: openstack project create <name>
`openstack project create` is the unified CLI command to create a new project (formerly called tenant) in Keystone identity service.
Question 6: In Horizon, where can a user download the OpenRC file for CLI authentication?
- Admin > System > Credentials
- Project > API Access > Download OpenStack RC File (Correct answer)
- Identity > Users > Download RC
- Settings > Security > API Keys
Correct answer: Project > API Access > Download OpenStack RC File
The OpenRC credentials file is downloaded from the Project > API Access page in the Horizon dashboard for use with the CLI.
Which command displays all available OpenStack unified CLI commands and their descriptions?