Bird
Raised Fist0
Azurecloud~10 mins

Azure Advisor recommendations - Interactive Code Practice

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to get Azure Advisor recommendations using Azure CLI.

Azure
az advisor recommendation list --[1]
Drag options to blanks, or click blank then click option'
Asubscription
Bresource-group
Clocation
Dpolicy
Attempts:
3 left
💡 Hint
Common Mistakes
Using resource-group instead of subscription causes an error.
Using location or policy is not valid for this command.
2fill in blank
medium

Complete the code to filter Azure Advisor recommendations by category.

Azure
az advisor recommendation list --category [1]
Drag options to blanks, or click blank then click option'
ACompute
BNetwork
CStorage
DSecurity
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing Compute or Storage when filtering for security recommendations.
Using an invalid category name causes no results.
3fill in blank
hard

Fix the error in the command to suppress a specific Azure Advisor recommendation by its ID.

Azure
az advisor recommendation [1] --ids <recommendation-id>
Drag options to blanks, or click blank then click option'
Asuppress
Bdelete
Cremove
Ddisable
Attempts:
3 left
💡 Hint
Common Mistakes
Using delete or remove deletes the recommendation permanently, which is not supported.
Using disable is not a valid command for Azure Advisor.
4fill in blank
hard

Fill both blanks to create a JSON output of Azure Advisor recommendations filtered by resource type.

Azure
az advisor recommendation list --[1] [2] --output [3]
Drag options to blanks, or click blank then click option'
Aresource-type
Bjson
Ctable
Dsubscription
Attempts:
3 left
💡 Hint
Common Mistakes
Using subscription instead of resource-type for filtering.
Choosing table output when JSON is required.
5fill in blank
hard

Fill all three blanks to assign a suppression reason and expiration date when suppressing an Azure Advisor recommendation.

Azure
az advisor recommendation suppress --ids <recommendation-id> --[1] '[2]' --[3] '2024-12-31'
Drag options to blanks, or click blank then click option'
Areason
BJustified maintenance window
Cexpires-on
Dcomment
Attempts:
3 left
💡 Hint
Common Mistakes
Using comment instead of reason for the suppression explanation.
Omitting the expiration date or using wrong parameter name.

Practice

(1/5)
1. What is the main purpose of Azure Advisor?
easy
A. To monitor network traffic in real-time
B. To provide personalized recommendations to optimize your Azure resources
C. To create new Azure resources automatically
D. To manage user access and permissions

Solution

  1. Step 1: Understand Azure Advisor's role

    Azure Advisor analyzes your Azure resources and suggests improvements.
  2. Step 2: Compare options with Advisor's function

    Only To provide personalized recommendations to optimize your Azure resources matches the purpose of giving personalized recommendations.
  3. Final Answer:

    To provide personalized recommendations to optimize your Azure resources -> Option B
  4. Quick Check:

    Advisor = personalized recommendations [OK]
Hint: Advisor gives tips to improve, not create or monitor [OK]
Common Mistakes:
  • Confusing Advisor with monitoring tools
  • Thinking Advisor manages user permissions
  • Assuming Advisor creates resources automatically
2. Which Azure CLI command shows Advisor recommendations for your subscription?
easy
A. az advisor recommendation list
B. az vm list
C. az network watcher show
D. az storage account create

Solution

  1. Step 1: Identify command for Advisor recommendations

    The command az advisor recommendation list lists Advisor tips.
  2. Step 2: Check other commands' purposes

    Other commands manage VMs, network watcher, or storage, unrelated to Advisor.
  3. Final Answer:

    az advisor recommendation list -> Option A
  4. Quick Check:

    Advisor recommendations = az advisor recommendation list [OK]
Hint: Look for 'advisor' in the command for recommendations [OK]
Common Mistakes:
  • Using VM or storage commands instead of Advisor
  • Confusing network watcher with Advisor
  • Missing 'recommendation' keyword in command
3. You run az advisor recommendation list --category Performance. What will you see?
medium
A. List of all security alerts
B. Network traffic statistics
C. Details of billing invoices
D. Recommendations to improve your resource performance

Solution

  1. Step 1: Understand the command filter

    The command filters Advisor recommendations by the Performance category.
  2. Step 2: Match output with options

    Only Recommendations to improve your resource performance describes performance improvement tips, matching the command.
  3. Final Answer:

    Recommendations to improve your resource performance -> Option D
  4. Quick Check:

    Performance category = performance tips [OK]
Hint: Filter by category shows matching recommendations [OK]
Common Mistakes:
  • Expecting security alerts instead of performance tips
  • Confusing billing info with Advisor output
  • Thinking network stats appear in Advisor list
4. You tried to run az advisor recommendation list --category cost but got an error. What is a likely cause?
medium
A. The Azure CLI is not installed
B. Your Azure subscription has no resources
C. You misspelled the category name; it should be 'Cost' with capital C
D. The command requires administrator privileges

Solution

  1. Step 1: Check category name case sensitivity

    Azure CLI commands often require exact category names; 'cost' should be 'Cost'.
  2. Step 2: Evaluate other options

    Subscription without resources or CLI not installed cause different errors; admin rights not needed.
  3. Final Answer:

    You misspelled the category name; it should be 'Cost' with capital C -> Option C
  4. Quick Check:

    Category names are case-sensitive [OK]
Hint: Check exact spelling and case of category names [OK]
Common Mistakes:
  • Ignoring case sensitivity in command options
  • Assuming admin rights are required
  • Thinking no resources means no command output error
5. Your company wants to reduce Azure costs and improve security. How can Azure Advisor help you achieve both?
hard
A. By providing cost-saving and security improvement recommendations for your resources
B. By automatically deleting unused resources
C. By increasing the size of all virtual machines
D. By disabling all network traffic temporarily

Solution

  1. Step 1: Identify Advisor's recommendation scope

    Azure Advisor gives tips on cost savings and security improvements based on your resource usage.
  2. Step 2: Evaluate other options for feasibility

    Advisor does not delete resources, resize VMs automatically, or disable network traffic.
  3. Final Answer:

    By providing cost-saving and security improvement recommendations for your resources -> Option A
  4. Quick Check:

    Advisor = cost + security tips [OK]
Hint: Advisor suggests actions; it doesn't change resources automatically [OK]
Common Mistakes:
  • Thinking Advisor deletes or changes resources automatically
  • Confusing Advisor with network management tools
  • Assuming Advisor disables services to save costs