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

Page 5 of 116

For a deployment using AWS Code Deploy, what is the run order of the hooks for in-place deployments?

  1. BeforeInstall -> ApplicationStop -> ApplicationStart ->
    AfterInstall
  2. ApplicationStop -> BeforeInstall -> AfterInstall ->
    ApplicationStart
  3. BeforeInstall -> ApplicationStop -> ValidateService ->
    ApplicationStart
  4. ApplicationStop -> BeforeInstall -> ValidateService ->
    ApplicationStart

Answer(s): B



A company is building a serverless application on AWS. The application uses an AWS
Lambda function to process customer orders 24 hours a day, 7 days a week. The Lambda function calls an external vendor's HTTP API to process payments.
During load tests, a developer discovers that the external vendor payment processing API occasionally times out and returns errors. The company expects that some payment processing API calls will return errors.
The company wants the support team to receive notifications in near real time only when the payment processing external API error rate exceed 5% of the total number of transactions in an hour. Developers need to use an existing Amazon Simple Notification Service (Amazon SNS) topic that is configured to notify the support team.
Which solution will meet these requirements?

  1. Write the results of payment processing API calls to Amazon CloudWatch. Use
    Amazon CloudWatch Logs Insights to query the CloudWatch logs. Schedule the
    Lambda function to check the CloudWatch logs and notify the existing SNS
    topic.
  2. Publish custom metrics to CloudWatch that record the failures of the external payment processing API calls. Configure a CloudWatch alarm to notify the existing SNS topic when error rate exceeds the specified rate.
  3. Publish the results of the external payment processing API calls to a new
    Amazon SNS topic. Subscribe the support team members to the new SNS topic.
  4. Write the results of the external payment processing API calls to Amazon S3.
    Schedule an Amazon Athena query to run at regular intervals. Configure
    Athena to send notifications to the existing SNS topic when the error rate exceeds the specified rate.

Answer(s): B



A company is offering APIs as a service over the internet to provide unauthenticated read access to statistical information that is updated daily. The company uses
Amazon API Gateway and AWS Lambda to develop the APIs. The service has become popular, and the company wants to enhance the responsiveness of the APIs.
Which action can help the company achieve this goal?

  1. Enable API caching in API Gateway.
  2. Configure API Gateway to use an interface VPC endpoint.
  3. Enable cross-origin resource sharing (CORS) for the APIs.
  4. Configure usage plans and API keys in API Gateway.

Answer(s): A



A developer wants to store information about movies. Each movie has a title, release year, and genre. The movie information also can include additional properties about the cast and production crew. This additional information is inconsistent across movies. For example, one movie might have an assistant director, and another movie might have an animal trainer.
The developer needs to implement a solution to support the following use cases:
For a given title and release year, get all details about the movie that has that title and release year.
For a given title, get all details about all movies that have that title.
For a given genre, get all details about all movies in that genre.
Which data store configuration will meet these requirements?

  1. Create an Amazon DynamoDB table. Configure the table with a primary key that consists of the title as the partition key and the release year as the sort key. Create a global secondary index that uses the genre as the partition key and the title as the sort key.
  2. Create an Amazon DynamoDB table. Configure the table with a primary key that consists of the genre as the partition key and the release year as the sort key. Create a global secondary index that uses the title as the partition key.
  3. On an Amazon RDS DB instance, create a table that contains columns for title, release year, and genre. Configure the title as the primary key.
  4. On an Amazon RDS DB instance, create a table where the primary key is the title and all other data is encoded into JSON format as one additional column.

Answer(s): A



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