COA COA OpenStack CLI & Dashboard Operations 2 — Questions and Answers
Question 1: Which CLI command displays the current resource quota limits for a specific OpenStack project?
- openstack project quota show <project>
- openstack quota show <project> (Correct answer)
- openstack usage show <project>
- openstack limits show
Correct answer: openstack quota show <project>
`openstack quota show` displays configured resource quotas for a project, including instance count, vCPUs, RAM, and volumes.
Question 2: How does an admin list running instances across ALL projects using the OpenStack CLI?
- openstack server list
- openstack server list --all-projects (Correct answer)
- openstack server list --admin
- openstack server list --global
Correct answer: openstack server list --all-projects
The `--all-projects` flag allows admin users to list instances from all projects rather than only the currently scoped project.
Question 3: Which CLI command attaches an existing security group to a running OpenStack instance?
- openstack server add security group <server> <group> (Correct answer)
- openstack security group attach <server> <group>
- openstack server security-group-add <server> <group>
- openstack port add security group <server> <group>
Correct answer: openstack server add security group <server> <group>
`openstack server add security group` attaches a security group to an instance, immediately applying its rules to the instance's ports.
Question 4: What does the `openstack token issue` command generate?
- A permanent API service token
- A temporary Keystone authentication token for the current session (Correct answer)
- An SSL certificate for API endpoints
- An OAuth token for third-party application access
Correct answer: A temporary Keystone authentication token for the current session
`openstack token issue` generates a time-limited Keystone token that authenticates API requests without repeatedly submitting user credentials.
Question 5: What is the correct CLI command to resize an OpenStack instance to a different flavor?
- openstack server migrate <server> --flavor <new-flavor>
- openstack server resize <server> --flavor <new-flavor> (Correct answer)
- openstack server scale <server> --flavor <new-flavor>
- openstack server modify <server> --flavor <new-flavor>
Correct answer: openstack server resize <server> --flavor <new-flavor>
`openstack server resize` initiates a flavor change and places the instance into VERIFY_RESIZE state, requiring a confirm or revert to complete.
Question 6: Where in Horizon can you access both the console log output and the interactive VNC console for an instance?
- Instance > Monitor tab
- Instance > Actions menu
- Instance > Console tab only
- Both the Actions menu and a dedicated Console tab (Correct answer)
Correct answer: Both the Actions menu and a dedicated Console tab
Horizon provides 'View Log' in the Actions menu for text console output and a 'Console' tab for the interactive VNC/SPICE terminal.
Which CLI command displays the current resource quota limits for a specific OpenStack project?