AWS Certified Developer Associate DVA-C02 Practice Question

An application requires secure storage of sensitive configuration data. The developer has chosen to use AWS Systems Manager Parameter Store and must write code to retrieve an encrypted parameter. Assuming the AWS SDK for Python (Boto3) is used and proper IAM permissions are set, which code snippet correctly retrieves an encrypted parameter named '/app/config/database-password' with decryption?

  • ssm_client = boto3.client('ssm') response = ssm_client.get_secret_value(SecretId='/app/config/database-password') password = response['SecretString']

  • ssm_client = boto3.client('ssm') response = ssm_client.get_parameter(Name='/app/config/database-password', WithDecryption=True) password = response['Parameter']['Value']

  • ssm_client = boto3.client('ssm') response = ssm_client.retrieve_parameter(Name='/app/config/database-password', Decrypt=True) password = response['Parameter']['Value']

  • ssm_client = boto3.client('ssm') response = ssm_client.get_parameter(Name='/app/config/database-password') password = response['Parameter']['Value']

AWS Certified Developer Associate DVA-C02
Development with AWS Services
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot