AWS Certified Developer Associate

Here you have the best Amazon DVA-C01 practice exam questions

  • You have 443 total questions to study from
  • Each page has 5 questions, making a total of 89 pages
  • You can navigate through the pages using the buttons at the bottom
  • This questions were last updated on November 26, 2024
Question 1 of 443

A gaming website gives users the ability to trade game items with each other on the platform. The platform requires both users' records to be updated and persisted in one transaction. If any update fails, the transaction must roll back.

Which AWS solution can provide the transactional capability that is required for this feature?

    Correct Answer: C

    Amazon DynamoDB provides support for ACID (Atomicity, Consistency, Isolation, Durability) transactions through its TransactWriteItems and TransactGetItems operations. These operations allow you to group multiple write and read operations into a single, all-or-nothing transaction. If any part of the transaction fails, all changes are rolled back, ensuring data consistency. This capability is particularly suitable for scenarios like trading game items on a platform where multiple updates need to be made atomically.

Question 2 of 443

A developer has created a Java application that makes HTTP requests directly to AWS services. Application logging shows 5xx HTTP response codes that occur at irregular intervals. The errors are affecting users.

How should the developer update the application to improve the application's resiliency?

    Correct Answer: B

    Using the AWS SDK for Java to interact with AWS APIs is the best way to improve the application's resiliency. The AWS SDKs have built-in features for handling network connectivity issues, retries, and error handling, including exponential backoff algorithms for retrying failed requests. These features help manage temporary errors and network issues that could be causing the 5xx HTTP response codes. This approach ensures that the application follows AWS's best practices for error handling and improves its overall resilience.

Question 3 of 443

A global company has a mobile app with static data stored in an Amazon S3 bucket in the us-east-1 Region. The company serves the content through an Amazon

CloudFront distribution. The company is launching the mobile app in South Africa. The data must reside in the af-south-1 Region. The company does not want to deploy a specific mobile client for South Africa.

What should the company do to meet these requirements?

    Correct Answer: B

    To ensure the data resides in the af-south-1 Region for users in South Africa while maintaining a unified mobile client, the company should use a Lambda@Edge function associated as an origin request trigger with the CloudFront distribution. This function can dynamically change the S3 origin Region to af-south-1 for requests coming from South Africa. This approach allows the mobile app to route requests to the appropriate region without needing to deploy a specific mobile client for South Africa.

Question 4 of 443

A developer is testing an AWS Lambda function by using the AWS Serverless Application Model (AWS SAM) local CLI. The application that is implemented by the

Lambda function makes several AWS API calls by using the AWS software development kit (SDK). The developer wants to allow the function to make AWS API calls in a test AWS account from the developer's laptop.

What should the developer do to meet these requirements?

    Correct Answer: B

    To allow the AWS Lambda function to make AWS API calls in a test AWS account from the developer's laptop, the developer should configure a test profile by using the aws configure command with the --profile option. Then, the developer should run AWS SAM by using the sam local invoke command with the -profile option. This method securely provides the necessary AWS credentials without directly embedding them in the source code or configuration files, ensuring best practices for credential management.

Question 5 of 443

A developer designed an application on an Amazon EC2 instance. The application makes API requests to objects in an Amazon S3 bucket.

Which combination of steps will ensure that the application makes the API requests in the MOST secure manner? (Choose two.)

    Correct Answer: B, C

    To ensure the application makes the API requests to Amazon S3 in the most secure manner, the recommended steps are to create an IAM role with the required permissions and then attach this role to an instance profile associated with the EC2 instance. Using an IAM role provides temporary security credentials, which are more secure than long-term credentials associated with IAM users. By attaching the role to an EC2 instance through an instance profile, the instance can securely access the S3 bucket without the need to store sensitive credentials on the instance itself.