Exclusive Black Friday Deal: 75% Off All Exam Bundles! Use coupon code below to unlock your savings! - Ends in 0d 00h 00m 00s - Coupon code: e4s75best

Free AWS Certified Developer - Associate Practice Questions

Question # 91

A company is building an application to accept data from customers. The data must be encrypted at rest and in transit.

The application uses an Amazon API Gateway API that resolves to AWS Lambda functions. The Lambda functions store the data in an Amazon Aurora MySQL DB cluster. The application worked properly during testing.

A developer configured an Amazon CloudFront distribution with field-level encryption that uses an AWS Key Management Service (AWS KMS) key. After the configuration of the distribution, the application behaved unexpectedly. All the data in the database changed from plaintext to ciphertext.

The developer must ensure that the data is not stored in the database as the ciphertext from the CloudFront field-level encryption.

Which solution will meet this requirement?

Options:

A.  

Change the CloudFront Viewer protocol policy from " HTTP and HTTPS " to " HTTPS only. "

B.  

Add a Lambda function that uses the KMS key to decrypt the data fields before saving the data to the database.

C.  

Enable encryption on the DB cluster by using the same KMS key that is used in CloudFront.

D.  

Request and deploy a new SSL certificate to use with the CloudFront distribution.

Discussion 0
Question # 92

A developer is trying to make API calls using the AWS SDK. The IAM user credentials used by the application require multi-factor authentication for all API calls.

Which method should the developer use to access the multi-factor authentication-protected API?

Options:

A.  

GetFederationToken

B.  

GetCallerIdentity

C.  

GetSessionToken

D.  

DecodeAuthorizationMessage

Discussion 0
Question # 93

A developer manages a website that distributes its content by using Amazon CloudFront. The website ' s static artifacts are stored in an Amazon S3 bucket.

The developer deploys some changes and can see the new artifacts in the S3 bucket. However, the changes do not appear on the webpage that the CloudFront distribution delivers.

How should the developer resolve this issue?

Options:

A.  

Configure S3 Object Lock to update to the latest version of the files every time an S3 object is updated.

B.  

Configure the S3 bucket to clear all old objects from the bucket before new artifacts are uploaded.

C.  

Set CloudFront to invalidate the cache after the artifacts have been deployed to Amazon S3.

D.  

Set CloudFront to modify the distribution origin after the artifacts have been deployed to Amazon S3.

Discussion 0
Question # 94

A company is running Amazon EC2 instances in multiple AWS accounts. A developer needs to implement an application that collects all the lifecycle events of the EC2 instances. The application needs to store the lifecycle events in a single Amazon Simple Queue Service (Amazon SQS) queue in the company ' s main AWS account for further processing.

Which solution will meet these requirements?

Options:

A.  

Configure Amazon EC2 to deliver the EC2 instance lifecycle events from all accounts to the Amazon EventBridge event bus of the main account. Add an EventBridge rule to the event bus of the main account that matches all EC2 instance lifecycle events. Add the SQS queue as a target of the rule.

B.  

Use the resource policies of the SQS queue in the main account to give each account permissions to write to that SQS queue. Add to the Amazon EventBridge event bus of each account an EventBridge rule that matches all EC2 instance lifecycle events. Add the SQS queue in the main account as a target of the rule.

C.  

Write an AWS Lambda function that scans through all EC2 instances in the company accounts to detect EC2 instance lifecycle changes. Configure the Lambda function to write a notification message to the SQS queue in the main account if the function detects an EC2 instance lifecycle change. Add an Amazon EventBridge scheduled rule that invokes the Lambda function every minute.

D.  

Configure the permissions on the main account event bus to receive events from all accounts. Create an Amazon EventBridge rule in each account to send all the EC2 instance lifecycle events to the main account event bus. Add an EventBridge rule to the main account event bus that matches all EC2 instance lifecycle events. Set the SQS queue as a target for the rule.

Discussion 0
Question # 95

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.

Discussion 0
Question # 96

A developer is writing a web application that must share secure documents with end users. The documents are stored in a private Amazon S3 bucket. The application must allow only authenticated users to download specific documents when requested, and only for a duration of 15 minutes.

How can the developer meet these requirements?

Options:

A.  

Copy the documents to a separate S3 bucket that has a lifecycle policy for deletion after 15 minutes.

B.  

Create a presigned S3 URL using the AWS SDK with an expiration time of 15 minutes.

C.  

Use server-side encryption with AWS KMS managed keys (SSE-KMS) and download the documents using HTTPS.

D.  

Modify the S3 bucket policy to only allow specific users to download the documents. Revert the change after 15 minutes.

Discussion 0
Question # 97

A company operates a media streaming platform that delivers on-demand video content to users from around the world. User requests flow through an Amazon CloudFront distribution, an Amazon API Gateway REST API, AWS Lambda functions, and Amazon DynamoDB tables.

Some users have reported intermittent buffering issues and delays when users try to start a video stream. The company needs to investigate the issues to discover the underlying cause.

Which solution will meet this requirement?

Options:

A.  

Enable AWS X-Ray tracing for the REST API, Lambda functions, and DynamoDB tables. Analyze the service map to identify any performance bottlenecks or errors.

B.  

Enable logging in API Gateway. Ensure that each Lambda function is configured to send logs to Amazon CloudWatch. Use CloudWatch Logs Insights to query the log data.

C.  

Use AWS Config to review details of any recent configuration changes to AWS resources in the application that could result in increased latency for users.

D.  

Use AWS CloudTrail to track AWS resources in all AWS Regions. Stream CloudTrail data to an Amazon CloudWatch Logs log group. Enable CloudTrail Insights. Set up Amazon SN5 notifications if unusual API activity is detected.

Discussion 0
Question # 98

An application uses Lambda functions to extract metadata from files uploaded to an S3 bucket; the metadata is stored in Amazon DynamoD

B.  

The application starts behaving unexpectedly, and the developer wants to examine the logs of the Lambda function code for errors.

Based on this system configuration, where would the developer find the logs?

Options:

A.  

Amazon S3

B.  

AWS CloudTrail

C.  

Amazon CloudWatch

D.  

Amazon DynamoDB

Discussion 0
Question # 99

A developer is creating AWS CloudFormation templates to manage an application ' s deployment in Amazon Elastic Container Service (Amazon ECS) through AWS CodeDeploy. The developer wants to automatically deploy new versions of the application to a percentage of users before the new version becomes available for all users.

How should the developer manage the deployment of the new version?

Options:

A.  

Modify the CloudFormation template to include a Transform section and the AWS::CodeDeploy::BlueGreen hook.

B.  

Deploy the new version in a new CloudFormation stack. After testing is complete, update the application ' s DNS records for the new stack.

C.  

Run CloudFormation stack updates on the application stack to deploy new application versions when they are available.

D.  

Create a nested stack for the new version. Include a Transform section and the AWS::CodeDeploy::BlueGreen hook.

Discussion 0
Question # 100

A company has an ecommerce application. To track product reviews, the company ' s development team uses an Amazon DynamoDB table.

Every record includes the following

• A Review ID a 16-digrt universally unique identifier (UUID)

• A Product ID and User ID 16 digit UUlDs that reference other tables

• A Product Rating on a scale of 1-5

• An optional comment from the user

The table partition key is the Review I

D.  

The most performed query against the table is to find the 10 reviews with the highest rating for a given product.

Which index will provide the FASTEST response for this query " ?

Options:

A.  

A global secondary index (GSl) with Product ID as the partition key and Product Rating as the sort key

B.  

A global secondary index (GSl) with Product ID as the partition key and Review ID as the sort key

C.  

A local secondary index (LSI) with Product ID as the partition key and Product Rating as the sort key

D.  

A local secondary index (LSI) with Review ID as the partition key and Product ID as the sort key

Discussion 0
Question # 101

A company hosts a batch processing application on AWS Elastic Beanstalk with instances that run the most recent version of Amazon Linux. The application sorts and processes large datasets. In recent weeks, the application ' s performance has decreased significantly during a peak period for traffic. A developer suspects that the application issues are related to the memory usage. The developer checks the Elastic Beanstalk console and notices that memory usage is not being tracked.

How should the developer gather more information about the application performance issues?

Options:

A.  

Configure the Amazon CloudWatch agent to push logs to Amazon CloudWatch Logs by using port 443.

B.  

Configure the Elastic Beanstalk .ebextensions directory to track the memory usage of the instances.

C.  

Configure the Amazon CloudWatch agent to track the memory usage of the instances.

D.  

Configure an Amazon CloudWatch dashboard to track the memory usage of the instances.

Discussion 0
Question # 102

A company is building a content authoring application. The application has multiple user groups, such as content creator, reviewer, approver, and administrator. The company needs to assign users fine-grained permissions for specific parts of the application.

The company needs a solution to configure, maintain, and analyze user permissions. The company wants a solution that can be easily adapted to work with newer applications in the future. The company must use a third-party OpenID Connect (OIDC) identity provider (IdP) to authenticate users.

Options:

A.  

Configure an Amazon Cognito identity pool for the application. Use the identity pool identities within the application to manage user permissions.

B.  

Configure the application to check user permissions upon request. Configure the application logic to manage user permissions.

C.  

Use Amazon Verified Permissions to set up user permissions. Integrate Verified Permissions with a third-party IdP. Configure the application to request authorization decisions from Verified Permissions.

D.  

Set up an IAM role for each user group. Assign users appropriate IAM roles. Configure the application to determine appropriate permissions for each user based on the user ' s IAM role.

Discussion 0
Question # 103

A developer has implemented an AWS Lambda function that inserts new customers into an Amazon RDS database. The function is expected to run hundreds of times each hour. The function and RDS database are in the same VP

C.  

The function is configured to use 512 MB of RAM and is based on the following pseudocode:

def lambda_handler(event, context):

db = database.connect()

db.statement( " INSERT INTO Customers (CustomerName) VALUES (%s) " , event.name)

db.execute()

db.close()

After successfully testing the function multiple times, the developer notices that the execution time is longer than expected.

What should the developer do to improve performance?

Options:

A.  

Increase the reserved concurrency of the Lambda function.

B.  

Increase the size of the RDS database to facilitate an increased number of database connections each hour.

C.  

Move the database connection and close statement out of the handler. Place the connection in the global space.

D.  

Replace Amazon RDS with Amazon DynamoDB to implement control over the number of writes per second.

Discussion 0
Question # 104

A developer is using AWS Elastic Beanstalk to deploy an application. The application must be able to access API keys from a third-party service. Currently, the company stores the credentials to access the third-party service in the code bundle. The company must redeploy the code bundle when the credentials rotate. The developer wants to improve security and avoid redeployments. Which solution will meet these requirements with the LEAST operational overhead?

Options:

A.  

Store the credentials in an Amazon S3 bucket. Configure server-side encryption with Amazon S3 managed keys (SSE-S3). Fetch the credentials at runtime.

B.  

Store the credentials as SecureString parameters in AWS Systems Manager Parameter Store. Reference the credentials in Elastic Beanstalk environment variables.

C.  

Continue to store the credentials in an encrypted file within the application bundle.

D.  

Use AWS KMS to encrypt the credentials locally. Configure Elastic Beanstalk to decrypt the credentials on startup.

Discussion 0
Question # 105

A company needs to rapidly prototype a web application. However, the company has not yet designed the complete architecture.

A developer uses AWS Lambda functions to build three endpoints. A frontend team wants to test the endpoints while the team prototypes the frontend.

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

Options:

A.  

Set up a Lambda function URL for each endpoint. Use the function URLs for testing.

B.  

Set up an Amazon API Gateway REST API to have a Lambda proxy integration. Use the REST API endpoint URL for testing.

C.  

Set up an AWS AppSync API to have a Lambda resolver. Use a GraphQL endpoint for testing.

D.  

Set up an Amazon ECS container that runs an open source web proxy and Lambda code. Use the web proxy endpoint for testing.

Discussion 0

DVA-C03 PDF

DVA-C03 PDF (Printable)
$41.25
$164.99

DVA-C03 Testing Engine

DVA-C03 PDF (Printable)
$45
$179.99

DVA-C03 PDF + Testing Engine

DVA-C03 PDF (Printable)
$55.75
$222.99

Free Exams Sample Questions