Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Pass the Amazon Web Services AWS Certified Associate DVA-C02 Questions and answers with CertsForce

Viewing page 2 out of 11 pages
Viewing questions 16-30 out of questions
Questions # 16:

A developer is migrating a containerized application from an on-premises environment to an Amazon ECS cluster.

In the on-premises environment, the container uses a Docker file to store the application. Service dependency configurations such as databases, caches, and storage volumes are stored in a docker-compose.yml file.

Both files are located at the top level of the code base that the developer needs to containerize. When the developer deploys the code to Amazon ECS, the instructions from the Docker file are carried out. However, none of the configurations from docker-compose.yml are applied.

The developer needs to resolve the error and ensure the configurations are applied.

Options:

A.

Store the file path for the docker-compose.yml file as a Docker label. Add the label to the ECS cluster ' s container details.


B.

Add the details from the docker-compose.yml file to an ECS task definition. Associate the task with the ECS cluster.


C.

Create a namespace in the ECS cluster. Associate the docker-compose.yml file to the namespace.


D.

Update the service type of the ECS cluster to REPLICA, and redeploy the stack.


Expert Solution
Questions # 17:

A company has an application that is based on Amazon EC2. The company provides API access to the application through Amazon API Gateway and uses Amazon DynamoDB to store the application ' s data. A developer is investigating performance issues that are affecting the application. During peak usage, the application is overwhelmed by a large number of identical data read requests that come through APIs. What is the MOST operationally efficient way for the developer to improve the application ' s performance?

Options:

A.

Use DynamoDB Accelerator (DAX) to cache database responses.


B.

Configure Amazon EC2 Auto Scaling policies to meet fluctuating demand.


C.

Enable API Gateway caching to cache API responses.


D.

Use Amazon ElastiCache to cache application responses.


Expert Solution
Questions # 18:

A developer at a company has created a containerized application to serve public reporting APIs. The developer needs to migrate the application to run by using an Amazon ECS service. However, the company does not want to manage the underlying hosts that run the application. The developer must be able to monitor CPU and memory utilization of the application by using the Amazon CloudWatch console. Which combination of actions will meet these requirements? (Select TWO.)

Options:

A.

Configure the ECS cluster instances to use an EC2 user data script. Set the Amazon ECS agent ECS_DISABLE_METRICS environment variable to false.


B.

Write a script to publish a custom CloudWatch alarm for CPU utilization and memory utilization.


C.

Configure the task definition to use an IAM role that has allow permissions for the cloudwatch:GetMetricData action.


D.

Specify FARGATE in the requiresCompatibilities field of the task definition.


E.

Specify limits for the CPU field and the memory field of the task definition.


Expert Solution
Questions # 19:

A company is creating a new feature for existing software. Before the company fully releases a new version of the software, the company wants to test the feature.

The company needs to gather feedback about the feature from a small group of users while the current software version remains deployed. If the testing validates the feature, the company needs to deploy the new software version to all other users at the same time.

Which deployment strategy will meet these requirements?

Options:

A.

All-at-once deployment


B.

Canary deployment


C.

In-place deployment


D.

Linear deployment


Expert Solution
Questions # 20:

A developer maintains an Amazon API Gateway REST API. Customers use the API through a frontend UI and Amazon Cognito authentication.

The developer has a new version of the API that contains new endpoints and backward-incompatible interface changes. The developer needs to provide beta access to other developers on the team without affecting customers.

Which solution will meet these requirements with the LEAST operational overhead?

Options:

A.

Define a development stage on the API Gateway API. Instruct the other developers to point the endpoints to the development stage.


B.

Define a new API Gateway API that points to the new API application code. Instruct the other developers to point the endpoints to the new API.


C.

Implement a query parameter in the API application code that determines which code version to call.


D.

Specify new API Gateway endpoints for the API endpoints that the developer wants to add.


Expert Solution
Questions # 21:

A company is providing read access to objects in an Amazon S3 bucket for different customers. The company uses 1AM permissions to restrict access to the S3 bucket. The customers can access only their own files.

Due to a regulation requirement, the company needs to enforce encryption in transit for interactions with Amazon S3.

Which solution will meet these requirements?

Options:

A.

Add a bucket policy to the S3 bucket to deny S3 actions when the aws:SecureTransport condition is equal to false.


B.

Add a bucket policy to the S3 bucket to deny S3 actions when the s3:x-amz-acl condition is equal to public-read.


C.

Add an 1AM policy to the 1AM users to enforce the usage of the AWS SDK.


D.

Add an 1AM policy to the 1AM users that allows S3 actions when the s3:x-amz-acl condition is equal to bucket-owner-read.


Expert Solution
Questions # 22:

In a move toward using microservices, a company ' s management team has asked all development teams to build their services so that API requests depend only on that service ' s data store. One team is building a Payments service which has its own database; the service needs data that originates in the Accounts database. Both are using Amazon DynamoDB.

What approach will result in the simplest, decoupled, and reliable method to get near-real time updates from the Accounts database?

Options:

A.

Use AWS Glue to perform frequent ETL updates from the Accounts database to the Payments database.


B.

Use Amazon ElastiCache in Payments, with the cache updated by triggers in the Accounts database.


C.

Use Amazon Data Firehose to deliver all changes from the Accounts database to the Payments database.


D.

Use Amazon DynamoDB Streams to deliver all changes from the Accounts database to the Payments database.


Expert Solution
Questions # 23:

A company has an application that processes audio files for different departments. When audio files are saved to an Amazon S3 bucket, an AWS Lambda function receives an event notification and processes the audio input.

A developer needs to update the solution so that the application can process the audio files for each department independently. The application must publish the audio file location for each department to each department ' s existing Amazon SQS queue.

Which solution will meet these requirements with no changes to the Lambda function code?

Options:

A.

Configure the S3 bucket to send the event notifications to an Amazon SNS topic. Subscribe each department ' s SQS queue to the SNS topic. Configure subscription filter policies.


B.

Update the Lambda function to write the file location to a single shared SQS queue. Configure the shared SQS queue to send the file reference to each department ' s SQS queue.


C.

Update the Lambda function to send the file location to each department ' s SQS queue.


D.

Configure the S3 bucket to send the event notifications to each department ' s SQS queue.


Expert Solution
Questions # 24:

A company has an application that stores data in Amazon RDS instances. The application periodically experiences surges of high traffic that cause performance problems.

During periods of peak traffic, a developer notices a reduction in query speed in all database queries.

The team ' s technical lead determines that a multi-threaded and scalable caching solution should be used to offload the heavy read traffic. The solution needs to improve performance.

Which solution will meet these requirements with the LEAST complexity?

Options:

A.

Use Amazon ElastiCache for Memcached to offload read requests from the main database.


B.

Replicate the data to Amazon DynamoDB. Set up a DynamoDB Accelerator (DAX) cluster.


C.

Configure the Amazon RDS instances to use Multi-AZ deployment with one standby instance. Offload read requests from the main database to the standby instance.


D.

Use Amazon ElastiCache for Redis to offload read requests from the main database.


Expert Solution
Questions # 25:

A company is migrating an on-premises database to Amazon RDS for MySQL. The company has read-heavy workloads. The company wants to refactor the code to achieve optimum read performance for queries.

Which solution will meet this requirement with LEAST current and future effort?

Options:

A.

Use a multi-AZ Amazon RDS deployment. Increase the number of connections that the code makes to the database or increase the connection pool size if a connection pool is in use.


B.

Use a multi-AZ Amazon RDS deployment. Modify the code so that queries access the secondary RDS instance.


C.

Deploy Amazon RDS with one or more read replicas. Modify the application code so that queries use the URL for the read replicas.


D.

Use open source replication software to create a copy of the MySQL database on an Amazon EC2 instance. Modify the application code so that queries use the IP address of the EC2 instance.


Expert Solution
Questions # 26:

A company is creating an application that processes csv files from Amazon S3 A developer has created an S3 bucket The developer has also created an AWS Lambda function to process the csv files from the S3 bucket

Which combination of steps will invoke the Lambda function when a csv file is uploaded to Amazon S3? (Select TWO.)

Options:

A.

Create an Amazon EventBridge rule Configure the rule with a pattern to match the S3 object created event


B.

Schedule an Amazon EventBridge rule to run a new Lambda function to scan the S3 bucket.


C.

Add a trigger to the existing Lambda function. Set the trigger type to EventBridge Select the Amazon EventBridge rule.


D.

Create a new Lambda function to scan the S3 bucket for recently added S3 objects


E.

Add S3 Lifecycle rules to invoke the existing Lambda function


Expert Solution
Questions # 27:

A developer is deploying an application on Amazon EC2 instances that run in Account A. The application needs to read data from an existing Amazon Kinesis data stream in Account B.

Which actions should the developer take to provide the application with access to the stream? (Select TWO.)

Options:

A.

Update the instance profile role in Account A with stream read permissions.


B.

Create an IAM role with stream read permissions in Account B.


C.

Add a trust policy to the instance profile role and IAM role in Account B to allow the instance profile role to assume the IAM role.


D.

Add a trust policy to the instance profile role and IAM role in Account B to allow reads from the stream.


E.

Add a resource-based policy in Account B to allow read access from the instance profile role.


Expert Solution
Questions # 28:

A developer is building an application that needs to store an API key. An AWS Lambda function needs to use the API key. The developer ' s company requires secrets to be encrypted at rest by an AWS KMS key. The company must control key rotation.

Which solutions will meet these requirements? (Select TWO.)

Options:

A.

Store the API key as an AWS Secrets Manager secret. Encrypt the secret with an AWS managed KMS key.


B.

Store the API key as an AWS Systems Manager Parameter Store String parameter.


C.

Store the API key as an AWS Systems Manager Parameter Store SecureString parameter. Encrypt the parameter with a customer managed KMS key.


D.

Store the API key in a Lambda environment variable. Encrypt the environment variable with an AWS managed KMS key.


E.

Store the API key in a Lambda environment variable. Encrypt the environment variable with a customer managed KMS key.


Expert Solution
Questions # 29:

A company runs an AWS CodeBuild project on medium-sized Amazon EC2 instances. The company wants to cost optimize the project and reduce the provisioning time.

Options:

A.

Configure the project to run on a CodeBuild reserved capacity fleet.


B.

Select AWS Lambda as the compute mode for the CodeBuild project.


C.

Configure the project to run on a CodeBuild on-demand fleet.


D.

Set up Amazon S3 caching for the CodeBuild project.


Expert Solution
Questions # 30:

A developer has created an AWS Lambda function that is written in Python. The Lambda function reads data from objects in Amazon S3 and writes data to an Amazon DynamoDB table. The function is successfully invoked from an S3 event notification when an object is created. However, the function fails when it attempts to write to the DynamoDB table.

What is the MOST likely cause of this issue?

Options:

A.

The Lambda function ' s concurrency limit has been exceeded.


B.

DynamoDB table requires a global secondary index (GSI) to support writes.


C.

The Lambda function does not have IAM permissions to write to DynamoDB.


D.

The DynamoDB table is not running in the same Availability Zone as the Lambda function.


Expert Solution
Viewing page 2 out of 11 pages
Viewing questions 16-30 out of questions