Amazon AWS Certified Developer - Associate DVA-C01
Prev

There are 237 results

Next
#101 (Accuracy: 100% / 9 votes)
A developer needs to implement a cache to store data that an application frequently queries from an Amazon RDS for MySQL database. The data structures that will be cached include sets and sorted sets.
How should the developer implement the cache to achieve the LOWEST latency?
  • A. Create an Amazon ElastiCache for Memcached instance. Serialize the data as JSON before caching the data.
  • B. Create an Amazon ElastiCache for Redis instance. Use a Redis client library to cache the data.
  • C. Create an Amazon DynamoDB table. Serialize the data as JSON before caching the data.
  • D. Create an Amazon ElastiCache for Memcached instance. Use a Memcached client library to cache the data.
#102 (Accuracy: 100% / 6 votes)
A developer must use AWS X-Ray to monitor an application that is running on an Amazon EC2 instance. The developer has prepared the application by using the
X-Ray SDK.

What should the developer do to perform the monitoring?
  • A. Configure the X-Ray SDK sampling rule and target. Activate the X-Ray daemon from the EC2 console or the AWS CLI with the modify-instance-attribute command to set the XRayEnabled flag.
  • B. Install the X-Ray daemon. Assign an IAM role to the EC2 instance with a policy that allows writes to X-Ray.
  • C. Install the X-Ray daemon. Configure it to forward data to Amazon EventBridge (Amazon CloudWatch Events). Grant the EC2 instance permission to write to Event Bridge (CloudWatch Events).
  • D. Deploy the X-Ray SDK with the application, and instrument the application code. Use the SDK logger to capture and send the events.
#103 (Accuracy: 100% / 4 votes)
A front-end web application is using Amazon Cognito user pools to handle the user authentication flow. A developer is integrating Amazon DynamoDB into the application using the AWS SDK for JavaScript.
How would the developer securely call the API without exposing the access or secret keys?
  • A. Configure Amazon Cognito identity pools and exchange the JSON Web Token (JWT) for temporary credentials.
  • B. Run the web application in an Amazon EC2 instance with the instance profile configured.
  • C. Hardcore the credentials, use Amazon S3 to host the web application, and enable server-side encryption.
  • D. Use Amazon Cognito user pool JSON Web Tokens (JWITs) to access the DynamoDB APIs.
#104 (Accuracy: 94% / 7 votes)
A company is building a compute-intensive application that will run on a fleet of Amazon EC2 instances. The application uses attached Amazon EBS disks for storing data. The application will process sensitive information and all the data must be encrypted.
What should a Developer do to ensure the data is encrypted on disk without impacting performance?
  • A. Configure the Amazon EC2 instance fleet to use encrypted EBS volumes for storing data.
  • B. Add logic to write all data to an encrypted Amazon S3 bucket.
  • C. Add a custom encryption algorithm to the application that will encrypt and decrypt all data.
  • D. Create a new Amazon Machine Image (AMI) with an encrypted root volume and store the data to ephemeral disks.
#105 (Accuracy: 100% / 7 votes)
An application needs to use the IP address of the client in its processing. The application has been moved into AWS and has been placed behind an Application
Load Balancer (ALB).
However, all the client IP addresses now appear to be the same. The application must maintain the ability to scale horizontally.
Based on this scenario, what is the MOST cost-effective solution to this problem?
  • A. Remove the application from the ALB. Delete the ALB and change Amazon Route 53 to direct traffic to the instance running the application.
  • B. Remove the application from the ALB. Create a Classic Load Balancer in its place. Direct traffic to the application using the HTTP protocol.
  • C. Alter the application code to inspect the X-Forwarded-For header. Ensure that the code can work properly if a list of IP addresses is passed in the header.
  • D. Alter the application code to inspect a custom header. Alter the client code to pass the IP address in the custom header.
#106 (Accuracy: 100% / 11 votes)
A Company runs continuous integration/continuous delivery (CI/CD) pipelines for its application on AWS CodePipeline. A Developer must write unit tests and run them as part of the pipelines before staging the artifacts for testing.
How should the Developer incorporate unit tests as part of CI/CD pipelines?
  • A. Create a separate CodePipeline pipeline to run unit tests
  • B. Update the AWS CodeBuild specification to include a phase for running unit tests
  • C. Install the AWS CodeDeploy agent on an Amazon EC2 instance to run unit tests
  • D. Create a testing branch in AWS CodeCommit to run unit tests
#107 (Accuracy: 100% / 5 votes)
An application uses Amazon Kinesis Data Streams to ingest and process large streams of data records in real time. Amazon EC2 instances consume and process the data from the shards of the Kinesis data stream by using Amazon Kinesis Client Library (KCL). The application handles the failure scenarios and does not require standby workers. The application reports that a specific shard is receiving more data than expected. To adapt to the changes in the rate of data flow, the
`hot` shard is resharded.

Assuming that the initial number of shards in the Kinesis data stream is 4, and after resharding the number of shards increased to 6, what is the maximum number of EC2 instances that can be deployed to process data from all the shards?
  • A. 12
  • B. 6
  • C. 4
  • D. 1
#108 (Accuracy: 100% / 5 votes)
Where should the appspec.yml file be placed in order for AWS CodeDeploy to work?
  • A. In the root of the application source code directory structure
  • B. In the bin folder along with all the complied code
  • C. In an S3 bucket
  • D. In the same folder as the application configuration files
#109 (Accuracy: 100% / 6 votes)
A company is running a Docker application on Amazon ECS. The application must scale based on user load in the last 15 seconds.
How should a Developer instrument the code so that the requirement can be met?
  • A. Create a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 30 seconds
  • B. Create a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds
  • C. Create a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 30 seconds
  • D. Create a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds
#110 (Accuracy: 100% / 5 votes)
An application uploads photos to an Amazon S3 bucket. Each photo that is uploaded to the S3 bucket must be resized to a thumbnail image by the application.
Each thumbnail image is uploaded with a new name in the same S3 bucket.

Which AWS service can a developer configure to directly process each single S3 event for each S3 object upload?
  • A. Amazon EC2
  • B. Amazon Elastic Container Service (Amazon ECS)
  • C. AWS Elastic Beanstalk
  • D. AWS Lambda