0
0
AWScloud~20 mins

Resource tagging for cost tracking in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Resource Tagging Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why use resource tags for cost tracking?

Which of the following best explains why tagging cloud resources helps with cost tracking?

ATags allow grouping resources by purpose, making it easier to allocate costs to departments or projects.
BTags automatically reduce the cost of resources by applying discounts.
CTags prevent unauthorized users from accessing billing information.
DTags increase the performance of cloud resources, lowering operational costs.
Attempts:
2 left
💡 Hint

Think about how tags help organize resources for billing.

Configuration
intermediate
2:00remaining
Identify the correct AWS CLI command to tag an EC2 instance

You want to add a tag with key Project and value Alpha to an EC2 instance with ID i-1234567890abcdef0. Which AWS CLI command will do this correctly?

Aaws ec2 create-tags --resources i-1234567890abcdef0 --tags Key=Project,Value=Alpha
Baws ec2 tag-instance --instance-id i-1234567890abcdef0 --tag Project=Alpha
Caws ec2 add-tags --resource-id i-1234567890abcdef0 --tags Project=Alpha
Daws ec2 set-tags --instance i-1234567890abcdef0 --tags Key=Project,Value=Alpha
Attempts:
2 left
💡 Hint

Check the AWS CLI command syntax for tagging EC2 resources.

Architecture
advanced
2:30remaining
Designing a tagging strategy for multi-account AWS environment

You manage multiple AWS accounts for different business units. You want to ensure consistent cost tracking across all accounts using tags. Which approach is best?

ADisable tagging to avoid confusion and rely only on account-level billing.
BAllow each account to create its own tags independently without restrictions.
CUse random tag keys and values to allow flexibility for each team.
DDefine a centralized tagging policy using AWS Organizations and enforce it with Service Control Policies (SCPs).
Attempts:
2 left
💡 Hint

Think about how to enforce consistent tagging across multiple accounts.

security
advanced
2:30remaining
Preventing unauthorized tag changes on AWS resources

How can you prevent users from changing or deleting cost tracking tags on AWS resources?

ADisable tagging feature in AWS account settings.
BCreate IAM policies that deny <code>ec2:DeleteTags</code> and <code>ec2:CreateTags</code> actions except for specific tags.
CAllow all users full access to tags to encourage collaboration.
DUse AWS Config to automatically remove unauthorized tags after changes.
Attempts:
2 left
💡 Hint

Consider how IAM policies control permissions on tagging actions.

service_behavior
expert
3:00remaining
Effect of missing mandatory cost allocation tags on AWS billing reports

Your company requires the tag CostCenter on all resources for billing. You forget to apply this tag on some resources. What will happen in AWS Cost Explorer reports?

AResources without the tag will be excluded from billing and not charged.
BAWS will automatically assign a default <code>CostCenter</code> tag to untagged resources.
CResources without the <code>CostCenter</code> tag will appear under the <code>Unallocated</code> category in cost reports.
DAWS will generate an error and stop billing until all resources have the tag.
Attempts:
2 left
💡 Hint

Think about how AWS handles untagged resources in cost allocation.