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 # 46

A developer wants to insert a record into an Amazon DynamoDB table as soon as a new file is added to an Amazon S3 bucket.

Which set of steps would be necessary to achieve this?

Options:

A.  

Create an event with Amazon EventBridge that will monitor the S3 bucket and then insert the records into DynamoD

B.  

B.  

Configure an S3 event to invoke an AWS Lambda function that inserts records into DynamoD

B.  

C.  

Create an AWS Lambda function that will poll the S3 bucket and then insert the records into DynamoD

B.  

D.  

Create a cron job that will run at a scheduled time and insert the records into DynamoD

B.  

Discussion 0
Question # 47

A developer needs to perform geographic load testing of an API. The developer must deploy resources to multiple AWS Regions to support the load testing of the API.

How can the developer meet these requirements without additional application code?

Options:

A.  

Create and deploy an AWS Lambda function in each desired Region. Configure the Lambda function to create a stack from an AWS CloudFormation template in that Region when the function is invoked.

B.  

Create an AWS CloudFormation template that defines the load test resources. Use the AWS CLI create-stack-set command to create a stack set in the desired Regions.

C.  

Create an AWS Systems Manager document that defines the resources. Use the document to create the resources in the desired Regions.

D.  

Create an AWS CloudFormation template that defines the load test resources. Use the AWS CLI deploy command to create a stack from the template in each Region.

Discussion 0
Question # 48

A developer built an application that calls an external API to obtain data, processes the data, and saves the result to Amazon S3. The developer built a container image with all of the necessary dependencies to run the application as a container.

The application runs locally and requires minimal CPU and RAM resources. The developer has created an Amazon ECS cluster. The developer needs to run the application hourly in Amazon ECS.

Which solution will meet these requirements with the LEAST amount of infrastructure management overhead?

Options:

A.  

Add a capacity provider to manage instances.

B.  

Add an Amazon EC2 instance that runs the application.

C.  

Define a task definition with an AWS Fargate launch type.

D.  

Create an Amazon ECS cluster and add the managed node groups feature to run the application.

Discussion 0
Question # 49

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?

Options:

A.  

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.

B.  

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.

C.  

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.

D.  

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.

Discussion 0
Question # 50

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.

Discussion 0
Question # 51

A financial company must store original customer records for 10 years for legal reasons. A complete record contains personally identifiable information (PII). According to local regulations, PII is available to only certain people in the company and must not be shared with third parties. The company needs to make the records available to third-party organizations for statistical analysis without sharing the PII.

A developer wants to store the original immutable record in Amazon S3. Depending on who accesses the S3 document, the document should be returned as is or with all the PII removed. The developer has written an AWS Lambda function to remove the PII from the document. The function is named removePii.

What should the developer do so that the company can meet the PII requirements while maintaining only one copy of the document?

Options:

A.  

Set up an S3 event notification that invokes the removePii function when an S3 GET request is made. Call Amazon S3 by using a GET request to access the object without PII.

B.  

Set up an S3 event notification that invokes the removePii function when an S3 PUT request is made. Call Amazon S3 by using a PUT request to access the object without PII.

C.  

Create an S3 Object Lambda access point from the S3 console. Select the removePii function. Use S3 Access Points to access the object without PII.

D.  

Create an S3 access point from the S3 console. Use the access point name to call the GetObjectLegalHold S3 API function. Pass in the removePii function name to access the object without PII.

Discussion 0
Question # 52

An application uses an Amazon API Gateway API that is integrated with an AWS Lambda function. Specific API requests are returning the HTTP 504 (Gateway Timeout) error message. The Lambda function is configured with a 20-second timeout. The API Gateway integration is configured with a 15-second timeout and a rate of 10 requests every second. There are no errors in the logs for the Lambda function. Which solution will prevent the HTTP 504 error responses?

Options:

A.  

Increase the reserved concurrency of the Lambda function.

B.  

Increase the timeout of the Lambda function.

C.  

Increase the timeout of the API Gateway integration.

D.  

Increase the per-client throttling limit.

Discussion 0
Question # 53

An application adds a processing date to each transaction that it receives. The application writes each transaction to an Amazon DynamoDB table by using the PutItem operation. Each transaction has a unique ID (transactionID). Sometimes the application receives transactions more than once. A developer notices that duplicate transactions in DynamoDB have the latest processing date instead of the date when the transaction was first received. Duplicate records happen infrequently, and most transactions are unique. What is the MOST cost-effective solution that the developer can implement to ensure that PutItem does not update an existing record?

Options:

A.  

Call the GetItem operation first to confirm that the record does not exist. Then call PutItem.

B.  

Enable the TTL attribute on the DynamoDB table.

C.  

Implement a conditional put by using the attribute_exists(transactionID) condition expression.

D.  

Implement a conditional put by using the attribute_not_exists(transactionID) condition expression.

Discussion 0
Question # 54

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.

Discussion 0
Question # 55

A developer is writing a new serverless application for a company. Several other developers must collaborate on the code for this application, and the company expects frequent changes to the code. The developer needs to deploy the code from source control to AWS Lambda with the fewest number of manual steps.

Which strategy for the build and deployment should the developer use to meet these requirements?

Options:

A.  

Build the code locally, and then upload the code into the source control system. When a release is needed, run AWS CodePipeline to extract the uploaded build and deploy the resources.

B.  

Use the AWS SAM CLI to build and deploy the application from the developer ' s local machine with the latest version checked out locally.

C.  

Use AWS CodeBuild and AWS CodePipeline to invoke builds and corresponding deployments when configured source-controlled branches have pull requests merged into them.

D.  

Use the Lambda console to upload a .zip file of the application that is created by the AWS SAM CLI build command.

Discussion 0
Question # 56

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 DynamoD

B.  

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.

Discussion 0
Question # 57

A company is developing a web application that allows its employees to upload a profile picture to a private Amazon S3 bucket. There is no size limit for the profile pictures, which should be displayed every time an employee logs in. For security reasons, the pictures cannot be publicly accessible.

What is a viable long-term solution for this scenario?

Options:

A.  

Generate a presigned URL when a picture is uploaded. Save the URL in an Amazon DynamoDB table. Return the URL to the browser when the employee logs in.

B.  

Save the picture ' s S3 key in an Amazon DynamoDB table. Create an Amazon S3 VPC endpoint to allow the employees to download pictures once they log in.

C.  

Encode a picture using base64. Save the base64 string in an Amazon DynamoDB table. Allow the browser to retrieve the string and convert it to a picture.

D.  

Save the picture ' s S3 key in an Amazon DynamoDB table. Use a function to generate a presigned URL every time an employee logs in. Return the URL to the browser.

Discussion 0
Question # 58

A company has an application that consists of different microservices that run inside an AWS account. The microservices are running in containers inside a single VP

C.  

The number of microservices is constantly increasing. A developer must create a central logging solution for application logs.

Which solution will meet these requirements?

Options:

A.  

Create a different Amazon CloudWatch Logs stream for each microservice.

B.  

Create an AWS CloudTrail trail to log all the API calls.

C.  

Configure VPC Flow Logs to track the communications between the microservices.

D.  

Use AWS Cloud Map to map the interactions of the microservices.

Discussion 0
Question # 59

A developer received the following error message during an AWS CloudFormation deployment:

Which action should the developer take to resolve this error?

Options:

A.  

Contact AWS Support to report an issue with the Auto Scaling Groups (ASG > service.

B.  

Add a DependsOn attribute to the ASGInstanceRole12345678 resource in the CloudFormation template. Then delete the stack.

C.  

Modify the CloudFormation template to retain the ASGInstanceRolet 2345678 resource. Then manually delete the resource after deployment.

D.  

Add a force parameter when calling CloudFormation with the role-am of ASGInstanceRole12345678.

Discussion 0
Question # 60

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.

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