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 3 out of 11 pages
Viewing questions 31-45 out of questions
Questions # 31:

A gaming application stores scores for players in an Amazon DynamoDB table that has four attributes: user_id, user_name, user_score, and user_rank. The users are allowed to update their names only. A user is authenticated by web identity federation.

Which set of conditions should be added in the policy attached to the role for the dynamodb:PutItem API call?

Options:

A.

" Condition " : { " ForAllValues:StringEquals " : { " dynamodb:LeadingKeys " : [ " ${www.amazon.com:user_id} " ], " dynamodb:Attributes " : [ " user_name " ]}}


B.

" Condition " : { " ForAllValues:StringEquals " : { " dynamodb:LeadingKeys " : [ " ${www.amazon.com:user_name} " ], " dynamodb:Attributes " : [ " user_id " ]}}


C.

" Condition " : { " ForAllValues:StringEquals " : { " dynamodb:LeadingKeys " : [ " ${www.amazon.com:user_id} " ], " dynamodb:Attributes " : [ " user_name " , " user_id " ]}}


D.

" Condition " : { " ForAllValues:StringEquals " : { " dynamodb:LeadingKeys " : [ " ${www.amazon.com:user_name} " ], " dynamodb:Attributes " : [ " username " , " userid " ]}}


Expert Solution
Questions # 32:

A social media application is experiencing high volumes of new user requests after a recent marketing campaign. The application is served by an Amazon RDS for MySQL instance. A solutions architect examines the database performance and notices high CPU usage and many " too many connections " errors that lead to failed requests on the database. The solutions architect needs to address the failed requests.

Which solution will meet this requirement?

Options:

A.

Deploy an Amazon DynamoDB Accelerator (DAX) cluster. Configure the application to use the DAX cluster.


B.

Deploy an RDS Proxy. Configure the application to use the RDS Proxy.


C.

Migrate the database to an Amazon RDS for PostgreSQL instance.


D.

Deploy an Amazon ElastiCache (Redis OSS) cluster. Configure the application to use the ElastiCache cluster.


Expert Solution
Questions # 33:

An application development team decides to use AWS X-Ray to monitor application code to analyze performance and perform root cause analysis.

What does the team need to do to begin using X-Ray? (Select TWO.)

Options:

A.

Log instrumentation output into an Amazon SQS queue.


B.

Use a visualization tool to view application traces.


C.

Instrument application code using the AWS SDK.


D.

Install the X-Ray agent on the application servers.


E.

Create an Amazon DynamoDB table to store the trace logs.


Expert Solution
Questions # 34:

A banking company is building an application for users to create accounts, view balances, and review recent transactions. The company integrated an Amazon API Gateway REST API with AWS Lambda functions. The company wants to deploy a new version of a Lambda function that gives customers the ability to view their balances. The new version of the function displays customer transaction insights. The company wants to test the new version with a small group of users before deciding whether to make the feature available for all users. Which solution will meet these requirements with the LEAST disruption to users?

Options:

A.

Create a canary deployment for the REST API. Gradually increase traffic to the new version of the function. Revert traffic to the old version if issues are detected.


B.

Redeploy the REST API stage to use the new version of the function. If issues are detected, update the REST API to point to the previous version of the function.


C.

Deploy the new version of the function to a new stage in the REST API. Route traffic to the new stage. If the new version fails, route traffic to the original stage.


D.

Create a new REST API stage for the new version of the function. Create a weighted alias record set in Amazon Route 53 to distribute traffic between the original stage and the new stage.


Expert Solution
Questions # 35:

A healthcare company is developing a multi-tier web application to manage patient records that are in an Amazon Aurora PostgreSQL database cluster. The company stores the application code in a Git repository and deploys the code to Amazon EC2 instances.

The application must comply with security policies and follow the principle of least privilege. The company must securely manage database credentials and API keys within the application code. The company must have the ability to rotate encryption keys on demand.

Which solution will meet these requirements?

Options:

A.

Store database credentials and API keys in AWS Secrets Manager. Use AWS managed AWS KMS keys. Set up automatic key rotation. Use the AWS SDK to retrieve secrets.


B.

Store the database credentials and API keys in AWS Secrets Manager. Use customer managed AWS KMS keys. Set up automatic key rotation. Create a key policy in the application to retrieve secrets by using the AWS SDK.


C.

Store the database credentials in the application code. Separate credentials by using environment-specific branches that have restricted access to the code repositories.


D.

Store the database credentials and API keys as parameters in AWS Systems Manager Parameter Store. Encrypt the credentials and API keys with AWS managed AWS KMS keys. Use the AWS SDK to retrieve secrets.


Expert Solution
Questions # 36:

A developer is creating an AWS Lambda function. The Lambda function needs an external library to connect to a third-party solution The external library is a collection of files with a total size of 100 MB The developer needs to make the external library available to the Lambda execution environment and reduce the Lambda package space

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

Options:

A.

Create a Lambda layer to store the external library Configure the Lambda function to use the layer


B.

Create an Amazon S3 bucket Upload the external library into the S3 bucket. Mount the S3 bucket folder in the Lambda function Import the library by using the proper folder in the mount point.


C.

Load the external library to the Lambda function ' s /tmp directory during deployment of the Lambda package. Import the library from the /tmp directory.


D.

Create an Amazon Elastic File System (Amazon EFS) volume. Upload the external library to the EFS volume Mount the EFS volume in the Lambda function. Import the library by using the proper folder in the mount point.


Expert Solution
Questions # 37:

A developer is investigating an issue in part of a company ' s application. In the application messages are sent to an Amazon Simple Queue Service (Amazon SQS) queue The AWS Lambda function polls messages from the SQS queue and sends email messages by using Amazon Simple Email Service (Amazon SES) Users have been receiving duplicate email messages during periods of high traffic.

Which reasons could explain the duplicate email messages? (Select TWO.)

Options:

A.

Standard SQS queues support at-least-once message delivery


B.

Standard SQS queues support exactly-once processing, so the duplicate email messages are because of user error.


C.

Amazon SES has the DomainKeys Identified Mail (DKIM) authentication incorrectly configured


D.

The SQS queue ' s visibility timeout is lower than or the same as the Lambda function ' s timeout.


E.

The Amazon SES bounce rate metric is too high.


Expert Solution
Questions # 38:

A developer is testing an AWS Lambda function that has an event source of an Amazon SQS queue. The developer notices that some of the messages the Lambda function processes reappear in the queue while the messages are being processed. The developer must correct this behavior. Which solution will meet this requirement?

Options:

A.

Increase the timeout of the Lambda function.


B.

Increase the visibility timeout of the SQS queue.


C.

Increase the memory allocation of the Lambda function.


D.

Increase the batch size in the event source mapping.


Expert Solution
Questions # 39:

A developer is deploying an application on Amazon EC2 instances that run in Account A. In certain cases, this application needs to read data from a private Amazon S3 bucket in Account B. The developer must provide the application access to the S3 bucket without exposing the S3 bucket to anyone else.

Which combination of actions should the developer take to meet these requirements? (Select TWO.)

Options:

A.

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


B.

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


C.

Make the S3 bucket public with limited access for Account A.


D.

Configure the bucket policy in Account B to grant permissions to the instance profile role.


E.

Add a trust policy that allows s3:Get* permissions to the IAM role in Account B.


Expert Solution
Questions # 40:

A developer is deploying an AWS Lambda function The developer wants the ability to return to older versions of the function quickly and seamlessly.

How can the developer achieve this goal with the LEAST operational overhead?

Options:

A.

Use AWS OpsWorks to perform blue/green deployments.


B.

Use a function alias with different versions.


C.

Maintain deployment packages for older versions in Amazon S3.


D.

Use AWS CodePipeline for deployments and rollbacks.


Expert Solution
Questions # 41:

A developer writes an AWS Lambda function that processes new object uploads to an Amazon S3 bucket. The Lambda function runs for approximately 30 seconds. The function runs as expected under normal load conditions. Other Lambda functions in the AWS account also run as expected. Occasionally, up to 500 new objects are written to the bucket every minute. Each new object write invokes the processing Lambda function during the high-volume periods through an event. The developer must ensure that the processing function will continue to run as expected during the high-volume periods. Which solution will meet this requirement?

Options:

A.

Modify the function ' s timeout setting.


B.

Add an additional layer to optimize the code execution.


C.

Configure a reserved concurrency quota for the function.


D.

Decrease the function’s memory allocation.


Expert Solution
Questions # 42:

A bookstore has an ecommerce website that stores order information in an Amazon DynamoDB table named BookOrders. The DynamoDB table contains approximately one million records.

The table uses OrderID as a partition key. There are no other indexes.

A developer wants to build a new reporting feature to retrieve all records from the table for a specified customer, based on a CustomerID property.

Options:

A.

Create a DynamoDB global secondary index (GSI) on the table. Use CustomerID as the partition key. Use the specified CustomerID value to run a query on the table.


B.

Create a DynamoDB global secondary index (GSI) on the table. Use CustomerID as the sort key. Use a filter expression to perform a scan operation on the table to match on the specified CustomerID value.


C.

Create a DynamoDB local secondary index (LSI) on the table. Use CustomerID as the sort key. Run a PartiQL query on the table with a SELECT statement where CustomerID equals the specified CustomerID value.


D.

Create a DynamoDB local secondary index (LSI) on the table. Use CustomerID as the partition key. Use the specified CustomerID value to run a query on the table.


Expert Solution
Questions # 43:

A developer is integrating Amazon ElastiCache in an application. The cache will store data from a database. The cached data must populate real-time dashboards. Which caching strategy will meet these requirements?

Options:

A.

A read-through cache


B.

A write-behind cache


C.

A lazy-loading cache


D.

A write-through cache


Expert Solution
Questions # 44:

A retail company runs a sales analytics application that uses an AWS Lambda function to process transaction data that is stored in Amazon DocumentDB. The application aggregates daily sales data across 500 stores and uses the data to generate reports for senior managers.

Application users report that the application is taking longer to generate reports and that their requests sometimes time out. A developer investigates and notices that the application ' s average response time for report generation has increased from 3 seconds to over 25 seconds.

The developer needs to identify the application ' s performance bottlenecks.

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

Options:

A.

Enable AWS X-Ray tracing for the Lambda function and DocumentDB cluster. Implement custom subsegments to track query execution to identify slow-performing queries.


B.

Add Amazon CloudWatch Logs error streaming. Create custom CloudWatch metrics based on the logs. Create a CloudWatch dashboard that shows Lambda metrics.


C.

Modify the Lambda function to use DocumentDB connection pooling. Implement async/await patterns for database operations.


D.

Add logging statements within the Lambda function to output query execution times and database connection attempts. Store IDs in Amazon CloudWatch Logs. Use CloudWatch Logs Insights to analyze the logs.


Expert Solution
Questions # 45:

An online food company provides an Amazon API Gateway HTTP API 1o receive orders for partners. The API is integrated with an AWS Lambda function. The Lambda function stores the orders in an Amazon DynamoDB table.

The company expects to onboard additional partners Some to me panthers require additional Lambda function to receive orders. The company has created an Amazon S3 bucket. The company needs 10 store all orders and updates m the S3 bucket for future analysis

How can the developer ensure that an orders and updates are stored to Amazon S3 with the LEAST development effort?

Options:

A.

Create a new Lambda function and a new API Gateway API endpoint. Configure the new Lambda function to write to the S3 bucket. Modify the original Lambda function to post updates to the new API endpoint.


B.

Use Amazon Kinesis Data Streams to create a new data stream. Modify the Lambda function to publish orders to the oats stream Configure in data stream to write to the S3 bucket.


C.

Enable DynamoDB Streams on me DynamoOB table. Create a new lambda function. Associate the stream ' s Amazon Resource Name (ARN) with the Lambda Function Configure the Lambda function to write to the S3 bucket as records appear in the table’s stream.


D.

Modify the Lambda function to punish to a new Amazon. Simple Lambda function receives orders. Subscribe a new Lambda function to the topic. Configure the new Lambda function to write to the S3 bucket as updates come through the topic.


Expert Solution
Viewing page 3 out of 11 pages
Viewing questions 31-45 out of questions