Black Friday Reward - Upto 80% off - Ends in 0d 00h 00m 00s - Coupon code: VIP80

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

Viewing page 4 out of 11 pages
Viewing questions 46-60 out of questions
Questions # 46:

A developer is trying get data from an Amazon DynamoDB table called demoman-table. The developer configured the AWS CLI to use a specific IAM use ' s credentials and ran the following command.

The command returned errors and no rows were returned.

What is the MOST likely cause of these issues?

Options:

A.

The command is incorrect; it should be rewritten to use put-item with a string argument


B.

The developer needs to log a ticket with AWS Support to enable access to the demoman-table


C.

Amazon DynamoOB cannot be accessed from the AWS CLI and needs to called via the REST API


D.

The IAM user needs an associated policy with read access to demoman-table


Expert Solution
Questions # 47:

A developer needs to use a code template to create an automated deployment of an application onto Amazon EC2 instances. The template must be configured to repeat deployment, installation, and updates of resources for the application. The template must be able to create identical environments and roll back to previous versions.

Which solution will meet these requirements?

Options:

A.

Use AWS Amplify for automatic deployment templates. Use a traffic-splitting deployment to copy any deployments. Modify any resources created by Amplify, if necessary.


B.

Use AWS CodeBuild for automatic deployment. Upload the required AppSpec file template. Save the appspec.yml file in the root directory folder of the revision. Specify the deployment group that includes the EC2 instances for the deployment.


C.

Use AWS CloudFormation to create an infrastructure template in JSON format to deploy the EC2 instances. Use Cloud Formation helper scripts to install the necessary software and to start the application. Call the scripts directly from the template.


D.

Use AWS AppSync to deploy the application. Upload the template as a GraphQL schema. Specify the EC2 instances for deployment of the application. Use resolvers as a version control mechanism and to make any updates to the deployments.


Expert Solution
Questions # 48:

A company wants to migrate its web application to AWS and leverage auto scaling to handle peak workloads. The solutions architect determined that the best metric for an auto scaling event is the number of concurrent users.

Based on this information, what should the developer use to auto scale based on concurrent users?

Options:

A.

An Amazon SNS topic to be invoked when a concurrent user threshold is met


B.

An Amazon CloudWatch NetworkIn metric


C.

Amazon CloudFront to leverage AWS edge locations


D.

A custom Amazon CloudWatch metric for concurrent users


Expert Solution
Questions # 49:

A social media application stores millions of video clips in Amazon S3 and serves them to users across the world. The traffic to the application varies, but access often increases suddenly to more than 10,000 PUT requests and GET requests each second. As the application has grown in popularity, users report poor quality of video streaming. Which solution will provide the LARGEST improvement in performance?

Options:

A.

Create an Amazon Route 53 geolocation routing policy.


B.

Duplicate content in multiple AWS Regions by using S3 Cross-Region Replication.


C.

Use S3 Intelligent-Tiering to move data based on access patterns.


D.

Create an Amazon CloudFront distribution with Amazon S3 as an origin.


Expert Solution
Questions # 50:

A developer is creating an application that will be deployed on IoT devices. The application will send data to a RESTful API that is deployed as an AWS Lambda function. The application will assign each API request a unique identifier. The volume of API requests from the application can randomly increase at any given time of day.

During periods of request throttling, the application might need to retry requests. The API must be able to handle duplicate requests without inconsistencies or data loss.

Which solution will meet these requirements?

Options:

A.

Create an Amazon RDS for MySQL DB instance. Store the unique identifier for each request in a database table. Modify the Lambda function to check the table for the identifier before processing the request.


B.

Create an Amazon DynamoDB table. Store the unique identifier for each request in the table. Modify the Lambda function to check the table for the identifier before processing the request.


C.

Create an Amazon DynamoDB table. Store the unique identifier for each request in the table. Modify the Lambda function to return a client error response when the function receives a duplicate request.


D.

Create an Amazon ElastiCache for Memcached instance. Store the unique identifier for each request in the cache. Modify the Lambda function to check the cache for the identifier before processing the request.


Expert Solution
Questions # 51:

A company has built an AWS Lambda function to convert large image files into output files that can be used in a third-party viewer application The company recently added a new module to the function to improve the output of the generated files However, the new module has increased the bundle size and has increased the time that is needed to deploy changes to the function code.

How can a developer increase the speed of the Lambda function deployment?

Options:

A.

Use AWS CodeDeploy to deploy the function code


B.

Use Lambda layers to package and load dependencies.


C.

Increase the memory size of the function.


D.

Use Amazon S3 to host the function dependencies


Expert Solution
Questions # 52:

A developer maintains a serverless application that uses an Amazon API Gateway REST API to invoke an AWS Lambda function by using a non-proxy integration. The Lambda function returns data, which is stored in Amazon DynamoDB.

Several application users begin to receive intermittent errors from the API. The developer examines Amazon CloudWatch Logs for the Lambda function and discovers several ProvisionedThroughputExceededException errors.

The developer needs to resolve the errors and ensure that the errors do not reoccur.

Options:

A.

Use provisioned capacity mode for the DynamoDB table, and assign sufficient capacity units. Configure the Lambda function to retry requests with exponential backoff.


B.

Update the REST API to send requests on an Amazon SQS queue. Configure the Lambda function to process requests from the queue.


C.

Configure a usage plan for the REST API.


D.

Update the REST API to invoke the Lambda function asynchronously.


Expert Solution
Questions # 53:

A company wants to use AWS AppConfig to gradually deploy a new feature to 15% of users to test the feature before a full deployment.

Which solution will meet this requirement with the LEAST operational overhead?

Options:

A.

Set up a custom script within the application to randomly select 15% of users. Assign a flag for the new feature to the selected users.


B.

Create separate AWS AppConfig feature flags for both groups of users. Configure the flags to target 15% of users.


C.

Create an AWS AppConfig feature flag. Define a variant for the new feature, and create a rule to target 15% of users.


D.

Use AWS AppConfig to create a feature flag without variants. Implement a custom traffic splitting mechanism in the application code.


Expert Solution
Questions # 54:

A developer is using an AWS CloudFormation template to create a pipeline in AWS CodePipeline. The template creates an Amazon S3 bucket that the pipeline references in a source stage. The template also creates an AWS CodeBuild project for a build stage. The pipeline sends notifications to an Amazon SNS topic. Logs for the CodeBuild project are stored in Amazon CloudWatch Logs.

The company needs to ensure that the pipeline ' s artifacts are encrypted with an existing customer-managed AWS KMS key. The developer has granted the pipeline permissions to use the KMS key.

Which additional step will meet these requirements?

Options:

A.

Create an Amazon S3 gateway endpoint that the pipeline can access.


B.

In the CloudFormation template, use the KMS key to encrypt the logs in CloudWatch Logs.


C.

Apply an S3 bucket policy that ensures the pipeline sends only encrypted objects to the S3 bucket.


D.

Configure the notification topic to use the existing KMS key to enable encryption with the existing KMS key.


Expert Solution
Questions # 55:

An application writes transactions to an Amazon DynamoDB table by using the PutItem operation. Each transaction has a unique transactionId. Sometimes duplicate transactions are received. The developer wants to ensure that a duplicate PutItem does not overwrite an existing item. Duplicate transactions are rare.

What is the MOST cost-effective solution?

Options:

A.

Call GetItem before calling PutItem.


B.

Enable TTL on the table.


C.

Use a conditional put with attribute_exists(transactionId).


D.

Use a conditional put with attribute_not_exists(transactionId).


Expert Solution
Questions # 56:

A company runs an application as an Amazon ECS service on an AWS Fargate cluster. The company has configured the service to use the rolling update deployment type. The company set the minimum healthy percentage to 100% and set the maximum healthy percentage to 200%.

A developer observes that a new deployment of the ECS service is failing continuously. The developer must ensure that Amazon ECS restores the most recently completed service deployment when a new service deployment fails.

Which solution will meet this requirement?

Options:

A.

Use Amazon ECS service auto scaling. Set the scaling policy type as step scaling.


B.

Use Amazon ECS service auto scaling. Set the scaling policy type as target tracking.


C.

Use the blue/green deployment type. Enable the deployment circuit breaker and rollback on failures options.


D.

Use the rolling deployment type. Enable deployment circuit breaker and rollback on failures options.


Expert Solution
Questions # 57:

A developer is creating an AWS Lambda function in VPC mode An Amazon S3 event will invoke the Lambda function when an object is uploaded into an S3 bucket The Lambda function will process the object and produce some analytic results that will be recorded into a file Each processed object will also generate a log entry that will be recorded into a file.

Other Lambda functions. AWS services, and on-premises resources must have access to the result files and log file. Each log entry must also be appended to the same shared log file. The developer needs a solution that can share files and append results into an existing file.

Which solution should the developer use to meet these requirements?

Options:

A.

Create an Amazon Elastic File System (Amazon EFS) file system. Mount the EFS file system in Lambda. Store the result files and log file in the mount point. Append the log entries to the log file.


B.

Create an Amazon Elastic Block Store (Amazon EBS) Multi-Attach enabled volume Attach the EBS volume to all Lambda functions. Update the Lambda function code to download the log file, append the log entries, and upload the modified log file to Amazon EBS


C.

Create a reference to the /tmp local directory. Store the result files and log file by using the directory reference. Append the log entry to the log file.


D.

Create a reference to the /opt storage directory Store the result files and log file by using the directory reference Append the log entry to the log file


Expert Solution
Questions # 58:

A developer wants to deploy a new version of an AWS Elastic Beanstalk application. During deployment the application must maintain full capacity and avoid service interruption. Additionally, the developer must minimize the cost of additional resources that support the deployment.

Which deployment method should the developer use to meet these requirements?

Options:

A.

All at once


B.

Rolling with additional batch


C.

Bluegreen


D.

Immutable


Expert Solution
Questions # 59:

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 # 60:

A developer uses AWS IAM Identity Center to interact with the AWS CLI and AWS SDKs on a local workstation. API calls to AWS services were working when the SSO access was first configured. However, the developer is now receiving Access Denied errors. The developer has not changed any configuration files or scripts that were previously working on the workstation.

What is the MOST likely cause of the developer ' s access issue?

Options:

A.

The access permissions to the developer ' s AWS CLI binary file have changed.


B.

The permission set that is assumed by IAM Identity Center does not have the necessary permissions to complete the API call.


C.

The credentials from the IAM Identity Center federated role have expired.


D.

The developer is attempting to make API calls to the incorrect AWS account.


Expert Solution
Viewing page 4 out of 11 pages
Viewing questions 46-60 out of questions