Exams > Amazon > AWS Certified Developer Associate
AWS Certified Developer Associate
Page 5 out of 39 pages Questions 41-50 out of 390 questions
Question#41

A developer is creating an AWS CloudFormation template for an application. The application includes an Amazon RDS database. The password to be set for the resource's MasterUserPassword property is already stored in AWS Secrets Manager.
How can the developer reference the value of the password in the CloudFormation template?

  • A. Use a parameter in the CloudFormation template with the same name of the secret.
  • B. Use the ssm dynamic reference by specifying the name of the secret and its version.
  • C. Use the secretsmanager dynamic reference by specifying the appropriate reference-key segment.
  • D. Use the ssm-secure dynamic reference by specifying the name of the secret and its version.
Discover Answer Hide Answer

C

Question#42

An application is using Amazon DynamoDB as its data store, and should be able to read 100 items per second as strongly consistent reads. Each item is 5 KB in size.
To what value should the table's provisioned read throughput be set?

  • A. 50 read capacity units
  • B. 100 read capacity units
  • C. 200 read capacity units
  • D. 500 read capacity units
Discover Answer Hide Answer

B

Question#43

A developer created a Lambda function for a web application backend. When testing the Lambda function from the AWS Lambda console, the developer can see that the function is being run, but there is no log data being generated in Amazon CloudWatch Logs, even after several minutes.
What could cause this situation?

  • A. The Lambda function does not have any explicit log statements for the log data to send it to CloudWatch Logs.
  • B. The Lambda function is missing CloudWatch Logs as a source trigger to send log data.
  • C. The execution role for the Lambda function is missing permissions to write log data to the CloudWatch Logs.
  • D. The Lambda function is missing a target CloudWatch Log group.
Discover Answer Hide Answer

C

Question#44

A developer has written code for an application and wants to share it with other developers on the team to receive feedback. The shared application code needs to be stored long-term with multiple versions and batch change tracking.
Which AWS service should the developer use?

  • A. AWS CodeBuild
  • B. Amazon S3
  • C. AWS CodeCommit
  • D. AWS Cloud9
Discover Answer Hide Answer

C

Question#45

A developer has created a new IAM user that has the s3:PutObject permission to write to a specific Amazon S3 bucket. The S3 bucket uses server-side encryption with AWS KMS managed keys (SSE-KMS) as the default encryption. When an application uses the access key and secret key of the IAM user to call the PutObject API operation, the application receives an access denied error.
What should the developer do to resolve this error?

  • A. Update the policy of the IAM user to allow the s3:EncryptionConfiguration action.
  • B. Update the bucket policy of the S3 bucket to allow the IAM user to upload objects.
  • C. Update the policy of the IAM user to allow the kms:GenerateDataKey action.
  • D. Update the ACL of the S3 bucket to allow the IAM user to upload objects.
Discover Answer Hide Answer

C

Question#46

A static website is hosted in an Amazon S3 bucket. Several HTML pages on the site use JavaScript to download images from another Amazon S3 bucket. These images are not displayed when users browse the site.
What is the possible cause for the issue?

  • A. The referenced Amazon S3 bucket is in another region.
  • B. The images must be stored in the same Amazon S3 bucket.
  • C. Port 80 must be opened on the security group in which the Amazon S3 bucket is located.
  • D. Cross Origin Resource Sharing must be enabled on the Amazon S3 bucket.
Discover Answer Hide Answer

D

Question#47

An application needs to encrypt data that is written to Amazon S3 where the keys are managed in an on-premises data center, and the encryption is handled by
S3.
Which type of encryption should be used?

  • A. Use server-side encryption with Amazon S3-managed keys.
  • B. Use server-side encryption with AWS KMS-managed keys.
  • C. Use client-side encryption with AWS KMS-managed keys.
  • D. Use server-side encryption with customer-provided keys.
Discover Answer Hide Answer

D

Question#48

A developer is building a serverless application that is based on AWS Lambda. The developer initializes the AWS software development kit (SDK) outside of the
Lambda handler function.
What is the PRIMARY benefit of this action?

  • A. Improves legibility and stylistic convention
  • B. Takes advantage of runtime environment reuse
  • C. Provides better error handling
  • D. Creates a new SDK instance for each invocation
Discover Answer Hide Answer

B

Question#49

A developer is testing a Docker-based application that uses the AWS SDK to interact with Amazon DynamoDB. In the local development environment, the application has used IAM access keys. The application is now ready for deployment onto an ECS cluster.
How should the application authenticate with AWS services in production?

  • A. Configure an ECS task IAM role for the application to use.
  • B. Refactor the application to call AWS STS AssumeRole based on an instance role.
  • C. Configure AWS access key/secret access key environment variables with new credentials.
  • D. Configure the credentials file with a new access key/secret access key.
Discover Answer Hide Answer

A

Question#50

A developer has created an AWS Lambda function to provide notification through Amazon Simple Notification Service (Amazon SNS) whenever a file is uploaded to Amazon S3 that is larger than 50 MB. The developer has deployed and tested the Lambda function by using the CLI. However, when the event notification is added to the S3 bucket and a 3,000 MB file is uploaded, the Lambda function does not launch.
Which of the following is a possible reason for the Lambda function's inability to launch?

  • A. The S3 event notification does not activate for files that are larger than 1,000 MB.
  • B. The resource-based policy for the Lambda function does not have the required permissions to be invoked by Amazon S3.
  • C. Lambda functions cannot be invoked directly from an S3 event.
  • D. The S3 bucket needs to be made public.
Discover Answer Hide Answer

B

chevron rightPrevious Nextchevron right