Free AWS Certified Developer - Associate DVA-C02 Exam Braindumps (page: 31)

Page 31 of 116

A company's developer is building a static website to be deployed in Amazon S3 for a production environment. The website integrates with an Amazon Aurora PostgreSQL
database by using an AWS Lambda function. The website that is deployed to production will use a Lambda alias that points to a specific version of the Lambda function.
The company must rotate the database credentials every 2 weeks. Lambda functions that the company deployed previously must be able to use the most recent credentials.
Which solution will meet these requirements?

  1. Store the database credentials in AWS Secrets Manager. Turn on rotation.
    Write code in the Lambda function to retrieve the credentials from Secrets
    Manager.
  2. Include the database credentials as part of the Lambda function code. Update the credentials periodically and deploy the new Lambda function.
  3. Use Lambda environment variables. Update the environment variables when new credentials are available.
  4. Store the database credentials in AWS Systems Manager Parameter Store. Turn on rotation. Write code in the Lambda function to retrieve the credentials from Systems Manager Parameter Store.

Answer(s): A



A developer is developing an application that uses signed requests (Signature
Version 4) to call other AWS services. The developer has created a canonical request, has created the string to sign, and has calculated signing information.
Which methods could the developer use to complete a signed request? (Choose two.)

  1. Add the signature to an HTTP header that is named Authorization.
  2. Add the signature to a session cookie.
  3. Add the signature to an HTTP header that is named Authentication.
  4. Add the signature to a query string parameter that is named X-Amz-Signature.
  5. Add the signature to an HTTP header that is named WWW-Authenticate.

Answer(s): A,D



A company must deploy all its Amazon RDS DB instances by using AWS CloudFormation templates as part of AWS CodePipeline continuous integration and continuous delivery
(CI/CD) automation. The primary password for the DB instance must be automatically generated as part of the deployment process.
Which solution will meet these requirements with the LEAST development effort?

  1. Create an AWS Lambda-backed CloudFormation custom resource. Write Lambda code that generates a secure string. Return the value of the secure string as a data field of the custom resource response object. Use the
    CloudFormation Fn::GetAtt intrinsic function to get the value of the secure string. Use the value to create the DB instance.
  2. Use the AWS CodeBuild action of CodePipeline to generate a secure string by using the following AWS CLI command: aws secretsmanager get-random-password.
    Pass the generated secure string as a CloudFormation parameter with the
    NoEcho attribute set to true. Use the parameter reference to create the DB
    instance.
  3. Create an AWS Lambda-backed CloudFormation custom resource. Write Lambda code that generates a secure string. Return the value of the secure string as a data field of the custom resource response object. Use the
    CloudFormation Fn::GetAtt intrinsic function to get a value of the secure string. Create secrets in AWS Secrets Manager. Use the secretsmanager dynamic reference to use the value stored in the secret to create the DB
    instance.
  4. Use the AWS::SecretsManager::Secret resource to generate a secure string.
    Store the secure string as a secret in AWS Secrets Manager. Use the secretsmanager dynamic reference to use the value stored in the secret to create the DB instance.

Answer(s): D



An organization is storing large files in Amazon S3, and is writing a web application to display meta-data about the files to end-users. Based on the metadata a user selects an object to download. The organization needs a mechanism to index the files and provide single-digit millisecond latency retrieval for the metadata.
What AWS service should be used to accomplish this?

  1. Amazon DynamoDB
  2. Amazon EC2
  3. AWS Lambda
  4. Amazon RDS

Answer(s): A



Page 31 of 116



Post your Comments and Discuss Amazon AWS Certified Developer - Associate DVA-C02 exam with other Community members:

Ernesto commented on August 26, 2024
Prepared and passed this exam. Valid question and very tough exam. So good luck.
Spain
upvote