0
0
AWScloud~20 mins

Parameters for customization in AWS - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Parameter Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Parameter Store usage in AWS

Which of the following best describes the primary purpose of AWS Systems Manager Parameter Store?

AIt stores and manages configuration data and secrets centrally for your applications.
BIt is used to deploy EC2 instances automatically.
CIt monitors network traffic between AWS services.
DIt provides a database service for storing application data.
Attempts:
2 left
💡 Hint

Think about a service that helps keep configuration and secrets safe and easy to update.

Configuration
intermediate
2:00remaining
Using CloudFormation Parameters for customization

Given the following CloudFormation snippet, what will be the value of the InstanceType property if the stack is launched without specifying any parameter overrides?

{
  "Parameters": {
    "InstanceTypeParam": {
      "Type": "String",
      "Default": "t3.micro",
      "AllowedValues": ["t3.micro", "t3.small", "t3.medium"]
    }
  },
  "Resources": {
    "MyEC2Instance": {
      "Type": "AWS::EC2::Instance",
      "Properties": {
        "InstanceType": { "Ref": "InstanceTypeParam" },
        "ImageId": "ami-0abcdef1234567890"
      }
    }
  }
}
At3.small
Bt3.medium
CNo value, stack creation will fail
Dt3.micro
Attempts:
2 left
💡 Hint

Check the default value defined in the parameter section.

Architecture
advanced
2:00remaining
Designing parameter usage for multi-environment deployment

You want to deploy the same CloudFormation template to multiple environments (dev, test, prod) with different database endpoints. Which approach best uses parameters to achieve this?

ADefine a parameter for the database endpoint with no default, and provide the endpoint value during stack creation for each environment.
BUse a single parameter with a default value set to the production database endpoint for all environments.
CHardcode the database endpoint in the template for each environment and create separate templates.
DUse environment variables on the EC2 instance to set the database endpoint instead of parameters.
Attempts:
2 left
💡 Hint

Think about flexibility and reusability of the template across environments.

security
advanced
2:00remaining
Securing sensitive parameters in AWS Systems Manager Parameter Store

Which option correctly describes how to securely store a database password in AWS Systems Manager Parameter Store?

AStore the password in an S3 bucket with public read access.
BStore the password as a String parameter and share the parameter ARN publicly.
CStore the password as a SecureString parameter encrypted with a KMS key and restrict access via IAM policies.
DStore the password in plain text in a String parameter and encrypt it manually in the application.
Attempts:
2 left
💡 Hint

Consider encryption and access control best practices.

service_behavior
expert
2:00remaining
Behavior of parameter versioning in AWS Systems Manager Parameter Store

You update a SecureString parameter in AWS Systems Manager Parameter Store multiple times. What happens to the parameter versions and how can you retrieve the previous version?

AEach update overwrites the existing version; previous versions are lost and cannot be retrieved.
BEach update creates a new version number; you can retrieve previous versions by specifying the version number in the API call.
CParameter Store keeps only the latest two versions; older versions are automatically deleted.
DParameter versions are not tracked; you must manually backup parameter values to keep history.
Attempts:
2 left
💡 Hint

Think about version control and retrieval capabilities of Parameter Store.