PORTWORX-ENTERPRISE-PROFESSIONAL practice question 13 of 15
After enabling security in Portworx, the pxctl command returns an “access denied” error. What action must be taken to allow pxctl to gain access again?
Full set: 75 questionsWhen Portworx security is enabled, all pxctl commands require an authentication token. Portworx automatically generates a default administrator token and stores it in a Kubernetes secret named px-admin-token. To regain access, the administrator must retrieve this token from the secret and use it to create a new authenticated pxctl context. This context will then be used for all subsequent pxctl commands, providing the necessary authentication to interact with the secured cluster.
A. pxctl does not use --user and --password flags for authentication. It uses a JWT token, which is found in the px-admin-token secret, not a username/password combination.
C. This is incorrect. When security is enabled, Portworx automatically generates a default system administrator token, ensuring that an administrator can always access the cluster.
1. Portworx Enterprise Documentation, "Authenticate with Portworx": This official guide details the process after enabling security. It states, "When you enable security, Portworx generates a default system.admin token and stores it as a Kubernetes secret called px-admin-token... Use this token to create a context for pxctl". It then provides the exact pxctl context create admin --token=$TOKEN command. (Reference: Portworx Enterprise Documentation -> Secure -> Security with Kubernetes -> Authenticate with Portworx).
2. Portworx Enterprise Documentation, "pxctl reference": The command reference for pxctl context create shows the --token flag as the method for providing the authentication token when creating a new context for a secured cluster. There are no --user or --password flags listed for this purpose. (Reference: Portworx Enterprise Documentation -> Reference -> CLI Reference -> pxctl -> pxctl context create).
Keep practicing
Take the free PORTWORX-ENTERPRISE-PROFESSIONAL practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PORTWORX-ENTERPRISE-PROFESSIONAL practice questions
- Question 1What is the primary function of the Portworx OCI monitor pod in a Kubernetes environment?
- Question 2How should a Portworx administrator expose metrics to externally provisioned Prometheus?
- Question 3What command allows a Portworx admin to create a cloud credential for the Object Store?
- Question 4What Kubernetes resource allows visibility of the Parent Volume and the snapshot ID?
- Question 5What feature does a Portworx StorageClass provide to Kubernetes storage?
- Question 6A Portworx administrator wants to control which nodes will host a KVDB installation. What…
