0
0
Azurecloud~20 mins

Azure CLI and Cloud Shell - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Azure CLI and Cloud Shell Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
service_behavior
intermediate
2:00remaining
Understanding Azure Cloud Shell Storage

When you start Azure Cloud Shell for the first time, it asks to create a storage account. What is the main reason for this storage?

ATo store your shell session files and persist data across sessions
BTo host your web applications directly from Cloud Shell
CTo backup your Azure subscription configurations automatically
DTo increase the speed of Azure CLI commands by caching them
Attempts:
2 left
💡 Hint

Think about what happens when you close and reopen Cloud Shell.

Configuration
intermediate
1:30remaining
Correct Azure CLI Command to List Resource Groups

Which Azure CLI command correctly lists all resource groups in your subscription?

Aaz group list
Baz resource list-groups
Caz list resource-groups
Daz groups show
Attempts:
2 left
💡 Hint

Check the Azure CLI command structure for resource groups.

Architecture
advanced
2:30remaining
Choosing the Best Environment for Azure CLI Automation

You want to automate Azure resource deployment using Azure CLI scripts. Which environment is best suited for running these scripts securely and with minimal setup?

AAzure Portal's resource explorer, because it allows direct script execution
BLocal machine terminal, because it requires no internet connection
CAzure Cloud Shell, because it is pre-configured with Azure CLI and has secure access to your subscription
DAzure Storage Explorer, because it manages storage accounts and runs CLI scripts
Attempts:
2 left
💡 Hint

Consider ease of setup and security for running Azure CLI scripts.

security
advanced
2:00remaining
Azure CLI Authentication Methods in Cloud Shell

Which authentication method does Azure Cloud Shell use by default to run Azure CLI commands securely without prompting for credentials?

AStored username and password in Cloud Shell settings
BSSH key pair authentication
COAuth token cached in browser cookies
DManaged Identity assigned to the Cloud Shell environment
Attempts:
2 left
💡 Hint

Think about how Azure services authenticate without user input.

Best Practice
expert
3:00remaining
Optimizing Azure CLI Script Execution in Cloud Shell

You have a complex Azure CLI script that creates multiple resources. To optimize execution time and avoid hitting rate limits, which practice should you follow?

AUse Azure CLI interactive mode to manually approve each resource creation
BUse <code>az group deployment create</code> with an ARM template instead of multiple individual CLI commands
CRun each CLI command sequentially with a 10-second delay between commands
DRun the script multiple times in parallel Cloud Shell sessions to speed up deployment
Attempts:
2 left
💡 Hint

Consider how to deploy multiple resources efficiently and reliably.