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

Page 66 of 116

A company runs an application on Amazon EC2 instances. The EC2 instances open connections to an Amazon RDS for SQL Server database. A developer needs to store and access the credentials and wants to automatically rotate the credentials. The developer does not want to store the credentials for the database in the code.
Which solution will meet these requirements in the MOST secure way?

  1. Create an IAM role that has permissions to access the database. Attach the
    IAM role to the EC2 instances.
  2. Store the credentials as secrets in AWS Secrets Manager. Create an AWS
    Lambda function to update the secrets and the database. Retrieve the credentials from Secrets Manager as needed.
  3. Store the credentials in an encrypted text file in an Amazon S3 bucket.
    Configure the EC2 instance launch template to download the credentials from
    Amazon S3 as the instance launches. Create an AWS Lambda function to update the secrets and the database.
  4. Store the credentials in an Amazon DynamoDB table. Configure an Amazon
    CloudWatch Events rule to invoke an AWS Lambda function to periodically update the secrets and database.

Answer(s): B



A company wants to test its web application more frequently. The company deploys the application by using a separate AWS CloudFormation stack for each environment. The company deploys the same CloudFormation template to each stack as the application progresses through the development lifecycle.
A developer needs to build in notifications for the quality assurance (QA) team. The developer wants the notifications to occur for new deployments in the final preproduction environment.
Which solution will meet these requirements?

  1. Create an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the QA team to the Amazon SNS topic. Update the CloudFormation stack options to point to the SNS topic in the pre-production environment.
  2. Create an AWS Lambda function that notifies the QA team. Create an Amazon
    EventBridge rule to invoke the Lambda function on the default event bus.
    Filter the events on the CloudFormation service and on the CloudFormation stack Amazon Resource Name (ARN).
  3. Create an Amazon CloudWatch alarm that monitors the metrics from
    CloudFormation. Filter the metrics on the stack name and the stack status.
    Configure the CloudWatch alarm to notify the QA team.
  4. Create an AWS Lambda function that notifies the QA team. Configure the event source mapping to receive events from CloudFormation. Specify the filtering values to limit invocations to the desired CloudFormation stack.

Answer(s): A



A developer manages three AWS accounts. Each account contains an Amazon RDS DB
instance in a private subnet. The developer needs to define users in each database in a consistent way. The developer must ensure that the same users are created and updated later in all three accounts.
Which solution will meet these requirements with the MOST operational efficiency?

  1. Create an AWS CloudFormation template. Declare the users in the template.
    Attach the users to the database. Deploy the template in each account.
  2. Create an AWS CloudFormation template that contains a custom resource to create the users in the database. Deploy the template in each account.
  3. Write a script that creates the users. Deploy an Amazon EC2 instance in each account to run the script on the databases. Run the script in each account.
  4. Implement an AWS Lambda function that creates the users in the database.
    Provide the function with the details of all three accounts.

Answer(s): B



A company is building a new application that runs on AWS and uses Amazon API Gateway to expose APIs. Teams of developers are working on separate components of the application in parallel. The company wants to publish an API without an integrated backend so that teams that depend on the application backend can continue the development work before the API backend development is complete.
Which solution will meet these requirements?

  1. Create API Gateway resources and set the integration type value to MOCK.
    Configure the method integration request and integration response to associate a response with an HTTP status code. Create an API Gateway stage and deploy the API.
  2. Create an AWS Lambda function that returns mocked responses and various HTTP
    status codes. Create API Gateway resources and set the integration type value to AWS_PROXY. Deploy the API.
  3. Create an EC2 application that returns mocked HTTP responses. Create API
    Gateway resources and set the integration type value to AWS. Create an API
    Gateway stage and deploy the API.
  4. Create API Gateway resources and set the integration type value set to
    HTTP_PROXY. Add mapping templates and deploy the API. Create an AWS Lambda layer that returns various HTTP status codes. Associate the Lambda layer with the API deployment.

Answer(s): A



Page 66 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