0
0
Azurecloud~20 mins

Azure CLI installation and login - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure CLI Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:00remaining
What is the primary purpose of the Azure CLI?
Choose the best description of what the Azure CLI is used for.
AIt is a command-line tool to manage Azure resources and services.
BIt is a graphical interface for designing Azure virtual machines.
CIt is a programming language for writing Azure functions.
DIt is a database service for storing Azure logs.
Attempts:
2 left
💡 Hint
Think about how you interact with Azure using commands.
Configuration
intermediate
1:00remaining
Which command logs you into Azure using the CLI?
Select the exact Azure CLI command that initiates the login process.
Aaz login
Baz connect
Caz signin
Dazure login
Attempts:
2 left
💡 Hint
The command starts with 'az' and is followed by a simple word meaning 'enter'.
service_behavior
advanced
1:30remaining
What happens if you run 'az login' without a browser available?
Choose the correct behavior of the Azure CLI when logging in on a machine without a browser.
AIt opens a text-based login prompt in the terminal.
BIt fails immediately with a browser error.
CIt logs in automatically without user interaction.
DIt shows a device login code and URL to authenticate on another device.
Attempts:
2 left
💡 Hint
Think about how you can log in on a server without a graphical interface.
security
advanced
1:30remaining
Which Azure CLI command logs you in using a service principal securely?
Select the correct command to log in with a service principal using Azure CLI.
Aaz sp create-for-rbac
Baz login --service-principal -u <appId> -p <password> --tenant <tenantId>
Caz login --sp <appId> --secret <password>
Daz login --user <username> --password <password>
Attempts:
2 left
💡 Hint
Look for the option that uses --service-principal and tenant info.
Best Practice
expert
1:00remaining
After installing Azure CLI, which command verifies the installed version?
Choose the exact Azure CLI command that shows the installed version number.
Aaz version
Baz show version
Caz --version
Daz get-version
Attempts:
2 left
💡 Hint
The command uses two dashes before 'version'.